Pistol animation is broken
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Re: Pistol animation is broken
I'd like to see an explanation of the bug, because from a cursory glance at the vanilla P_SetPsprite() I don't see anything that would shorten flash states specifically.
Re: Pistol animation is broken
I addressed the same issue some years ago: http://forum.zdoom.org/viewtopic.php?f=4&t=33036
But I couldn't test my suggested changes because I never managed to compile the source code (due to me missing essential files that I couldn't find), so I just gave up.
Still, I hope this sheds some light on the issue.
But I couldn't test my suggested changes because I never managed to compile the source code (due to me missing essential files that I couldn't find), so I just gave up.
Still, I hope this sheds some light on the issue.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49067
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Pistol animation is broken
Oh, no. Please don't tell me that some external patch got applied that made an uninformed and unconditional change to established behavior. Stuff like this needs to be toggleable.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49067
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Pistol animation is broken
And here we got the corresponding bug report:
http://forum.zdoom.org/viewtopic.php?f=7&t=31689
The fix apparently went too far and should have left the original weapon functions alone.
http://forum.zdoom.org/viewtopic.php?f=7&t=31689
The fix apparently went too far and should have left the original weapon functions alone.
Re: Pistol animation is broken
Huh, I wouldn't be surprised if this was the thing that broke Parkour's dual wielding a while back. I reuploaded the mod with a fix afterward; I wonder if I"ll need to re-reupload it.
Normally I'd vote for such a fix to be opt-in via flag, but I'll bet there's a bunch of stuff floating around (e.g. above) that relies on the new behavior now. :/
Normally I'd vote for such a fix to be opt-in via flag, but I'll bet there's a bunch of stuff floating around (e.g. above) that relies on the new behavior now. :/
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49067
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Pistol animation is broken
I hope this is fixed now. For the attack functions that also set the flash I especially disabled the check causing the problem, but I left A_GunFlash alone - even though I wouldn't mind removing this ill-informed bit of code - which should have opt-in and not unconditional. It just escapes me how this got added without ever checking what it implied.
- StrikerMan780
- Posts: 485
- Joined: Tue Nov 29, 2005 2:15 pm
- Graphics Processor: nVidia with Vulkan support
- Contact:
Re: Pistol animation is broken
Wait what, so you reverted the fix to flashes being processed in 2 tics? If so, shit... (I had adapted a lot of my mods to it, being able to define 1-tic flashes is extremely useful.)
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49067
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Pistol animation is broken
No. Only for the standard weapons, because those were all made for the duplicated frame.
- StrikerMan780
- Posts: 485
- Joined: Tue Nov 29, 2005 2:15 pm
- Graphics Processor: nVidia with Vulkan support
- Contact:
Re: Pistol animation is broken
Ah, alright, thanks for clarification.Graf Zahl wrote:No. Only for the standard weapons, because those were all made for the duplicated frame.