[SOLVED] DryFire state not working

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Guardsoul
Posts: 195
Joined: Sun Dec 11, 2011 3:58 am
Location: Creating a new dimension

[SOLVED] DryFire state not working

Post by Guardsoul »

I´ve finally decided to go a little bit deeper in my knowledge of decorate creating reloadable weapons like a silenced pistol. Everything goes fine except when I´m out of ammo it´s supposed to go to the DryFire state for the typical click noise but the weapon does nothing, not even the offset effects. Any help?
Spoiler:
Last edited by Guardsoul on Thu Sep 08, 2016 3:02 am, edited 1 time in total.
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Re: DryFire state not working

Post by wildweasel »

You'll need to add the Ammo_Optional flag, otherwise regular Doom ammo logic applies and the Fire state is never entered. If you had any other weapons in your inventory, the weapon would auto switch away instead of doing nothing as it currently does.
User avatar
Guardsoul
Posts: 195
Joined: Sun Dec 11, 2011 3:58 am
Location: Creating a new dimension

Re: DryFire state not working

Post by Guardsoul »

Thanks for the info. Now it works properly!
Locked

Return to “Editing (Archive)”