[GZD 4.2.4] A_Saw and Damage Type...again

Bugs that have been investigated and resolved somehow.

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.
Post Reply
XLightningStormL
Posts: 384
Joined: Mon May 09, 2016 1:38 am
Location: Anywhere but here
Contact:

[GZD 4.2.4] A_Saw and Damage Type...again

Post by XLightningStormL »

Matt, circa Almost 12 years ago wrote:I set A_Saw to use and a puff that does a damage type that should get certain actors into special pain states. The test actor does not go into the desired state.
It would seem that this pesky bug has returned. I tested this on the "NewPuff" actor I use for my guns, and sure enough, it was working. And before someone asks, I tried inheriting the A_Saw puff from BulletPuff, and well, nothing happened.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: [GZD 4.2.4] A_Saw and Damage Type...again

Post by _mental_ »

Post a runnable sample please.
XLightningStormL
Posts: 384
Joined: Mon May 09, 2016 1:38 am
Location: Anywhere but here
Contact:

Re: [GZD 4.2.4] A_Saw and Damage Type...again

Post by XLightningStormL »

Finally got around to doing this, As they say, better late, then never.

Extremely stripped down version of the original code, but more or less shows the problem (and test pistol gives the intended effect)

Compare the test chainsaw and test pistol objects (they are given for free automatically, just test in MAP32 and "summon doomimprobot")
Both the test weapons utilize the same test puff.
Attachments
hackingexample.pk3
(1.63 KiB) Downloaded 28 times
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: [GZD 4.2.4] A_Saw and Damage Type...again

Post by _mental_ »

It works as expected because with chainsaw the damage is zero. Pistol usually deals some damage which leads to triggering a pain chance.
For the reference, here is the related condition in code, and the commit that added it.

Set FORCEPAIN flag on HacktoolPuff actor to workaround zero damage case.
Post Reply

Return to “Closed Bugs [GZDoom]”