Allow WorldThingDamaged to be called before WorldThingDied.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Allow WorldThingDamaged to be called before WorldThingDied.

Re: Allow WorldThingDamaged to be called before WorldThingDi

by _mental_ » Tue May 15, 2018 9:26 am

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

Re: Allow WorldThingDamaged to be called before WorldThingDi

by _mental_ » Tue May 15, 2018 8:48 am

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.

Allow WorldThingDamaged to be called before WorldThingDied.

by Cacodemon345 » Tue May 15, 2018 8:33 am

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.

Top