Jump to content

Modern Shootist Weapon Template


Recommended Posts

                       This is for The Newer Doom Mod enthusiast's!

after spending hours reading zdoom wiki and deciphering wild weasel gunlabs... I decided to throw together a pk3 that has everything you need to make a modern style weapon with reloading and ammo pooling.  absolute time saver right here trust me.. I plan on making a weapon spriting tutorial video in the near future. but for those who don't have anything to go by code wise this template is for you.

 crappy colt 1911 sprite made by me.  sounds from call of duty 2 . code written with the help of wild weasel and zdoom wiki.   

                            

d49c8b573206b617fd26a7c80aadec6c.png

 

 

Pistol.rar

AK47.rar

ProjectileWeapons.zip

LAUNCHER.rar

Edited by Tyler-J

Share this post


Link to post

When I load up the pk3, it says that there is no READY3 from template gun. If hit shoot, the weapon reloads and then disappears and can't be switched off of.

Share this post


Link to post
1 hour ago, Fraston said:

When I load up the pk3, it says that there is no READY3 from template gun. If hit shoot, the weapon reloads and then disappears and can't be switched off of.

 

yeah that state is supposed to be ready2 , I fixed with a text editor earlier but for some reason it didn't save. it's fixed now

Share this post


Link to post

so, i revised your code for seeing what was wrong . . .

there is some important issues with your code, some pointless states, a lot of empty TNTA0 frames that did nothing, etc

just for explaining, the 0 duration frames in decorate are used for executing various actions in one game frame, not to exist alone

i modified the code to solve the problem, also made the code more readable: Modern Shootist Weapon Template.zip

also i seen that you put an action to play a dry shot sound (the action that plays the "weapons/empty" sound). i added one from freesound (licensed with CC-0)

Share this post


Link to post
22 hours ago, URROVA said:

so, i revised your code for seeing what was wrong . . .

there is some important issues with your code, some pointless states, a lot of empty TNTA0 frames that did nothing, etc

just for explaining, the 0 duration frames in decorate are used for executing various actions in one game frame, not to exist alone

i modified the code to solve the problem, also made the code more readable: Modern Shootist Weapon Template.zip

also i seen that you put an action to play a dry shot sound (the action that plays the "weapons/empty" sound). i added one from freesound (licensed with CC-0)

 

Yeah I just realized how much usesless code was left. it was originally for my pistol that had several ready states  and tnt frames that were used to slow down time between frames until you made me realize after all this time lol.. thank you very much. I was gonna fix it up today but had a huge migraine. i"m still a newbie trying to help other newbie's

Share this post


Link to post
On 6/2/2022 at 6:33 PM, URROVA said:

 

I actually needed those TNT1A frames to make null sounds work and get shells to spawn, sorry bro for this confusion. 

I re added them and re uploaded the pk3

 

Edited by Tyler-J

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...