[Not a bug] [GZD 4.2.4] A_Saw and Damage Type...again

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

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

Postby XLightningStormL » Wed Nov 13, 2019 6:41 am

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.
User avatar
XLightningStormL
DUSK Wiki Master
 
Joined: 09 May 2016
Discord: XLightningStormL#7461
Twitch ID: XLightmingStormL

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

Postby _mental_ » Wed Nov 13, 2019 7:07 am

Post a runnable sample please.
_mental_
 
 
 
Joined: 07 Aug 2011

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

Postby XLightningStormL » Fri Jan 17, 2020 4:46 am

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 19 times
User avatar
XLightningStormL
DUSK Wiki Master
 
Joined: 09 May 2016
Discord: XLightningStormL#7461
Twitch ID: XLightmingStormL

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

Postby _mental_ » Sat Jan 18, 2020 3:35 am

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.
_mental_
 
 
 
Joined: 07 Aug 2011


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 0 guests