Allow WorldThingDamaged to be called before WorldThingDied.

Moderator: GZDoom Developers

Post Reply
Cacodemon345
Posts: 419
Joined: Fri Dec 22, 2017 1:53 am
Graphics Processor: ATI/AMD (Modern GZDoom)
Contact:

Allow WorldThingDamaged to be called before WorldThingDied.

Post by Cacodemon345 »

WorldThingDamaged isn't called if an actor dies, so I would like it to be called before WorldThingDied. It would allow stuff like scoring behave properly.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: Allow WorldThingDamaged to be called before WorldThingDi

Post by _mental_ »

WorldThingDamaged event is triggered regardless of target life status.
The thing is WorldThingDied is triggered before WorldThingDamaged that does the final hit.
It looks more like a bug to me.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: Allow WorldThingDamaged to be called before WorldThingDi

Post by _mental_ »

Here is pull request with the fix. Not the most elegant solution but still.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”