Allow WorldThingDamaged to be called before WorldThingDied.
Moderator: GZDoom Developers
-
- Posts: 419
- Joined: Fri Dec 22, 2017 1:53 am
- Graphics Processor: ATI/AMD (Modern GZDoom)
- Contact:
Allow WorldThingDamaged to be called before WorldThingDied.
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.
Re: Allow WorldThingDamaged to be called before WorldThingDi
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.
The thing is WorldThingDied is triggered before WorldThingDamaged that does the final hit.
It looks more like a bug to me.
Re: Allow WorldThingDamaged to be called before WorldThingDi
Here is pull request with the fix. Not the most elegant solution but still.