Page 1 of 1

[Rseding91] original_damage_amount and final_damage_amount output the same value

Posted: Fri May 24, 2019 9:54 pm
by ownlyme
I thought original_damage_amount was supposed to output the amount of damage before armor mitigation?
It would also be nice if some value was provided where we can read the absorbed damage by shields.
Ty

Re: original_damage_amount and final_damage_amount output the same value

Posted: Fri May 24, 2019 10:24 pm
by Ultros
Why would this be a bug? If your armor doesn't defend against that damage type (eg impact on power armor, laser on biters), one would obviously expect the two values to be identical.

Re: original_damage_amount and final_damage_amount output the same value

Posted: Sat May 25, 2019 1:03 am
by Rseding91
Thanks for the report. It's now fixed for the next version of 0.17.

Re: [Rseding91] original_damage_amount and final_damage_amount output the same value

Posted: Mon Jun 03, 2019 3:40 pm
by ownlyme
O... M.. G!
THANK YOU!!!!
I think we can now even calculate how much hp an entity had before the killing blow (at least if it has no shields) :)
Awesome!

Re: [Rseding91] original_damage_amount and final_damage_amount output the same value

Posted: Tue Jun 18, 2019 5:28 pm
by ownlyme
hmm nope final_damage_amount doesn't get limited by the entity's hp..

Re: original_damage_amount and final_damage_amount output the same value

Posted: Wed Jul 03, 2019 1:13 pm
by ownlyme
Rseding91 wrote: Sat May 25, 2019 1:03 am Thanks for the report. It's now fixed for the next version of 0.17.
interestingly, when calling LuaEntity.damage(), that function returns the correct damage amount, when the entity's hp get reduced to 0.
(But final_damage_amount doesn't)

Can you fix that too? would give the event another edge in usefulness