View Single Post
Mathias.
Veteran Member
Join Date: Aug 2010
Location: Canada is my city
Old 02-05-2015 , 20:50   Re: SourceMod 1.7 released!
#21

Quote:
Originally Posted by psychonic View Post
Largest requests for it were actually from TF2 and CS:S/CS:GO scripters.

It gives you the damage amount after game logic makes adjustments to it (from critical hits, armor, other damage reduction/buffs), before the damage is actually applied.
I had a bug in dota 2 where take damage will still trigger even if the unit was dead (projectile on his way) and checking health was not working either because I had to detect if he died, so what I did is gived the unit health even if he was dead which fix the issue (because I only needed take dmg for when the entity is dead) but now they were attacking the last location wehre the unit was dead at until it respawn or die again (invisible).

So is that new hook be able to check only if the unit is alive and will I be able to check if unit health is zero with triggering after he die?

Sorry for my extreme broken english.

Last edited by Mathias.; 02-05-2015 at 20:51.
Mathias. is offline