I have written a script to calculate the amount of damage in player_hurt for TF2 (since valve does not provide a it in the event).
To do this, I have to track the amout of health for all players and subtract the health in the player_hurt event form the previous health of the wounded client.
I placed the stocks in damage.inc and have provided an example test_damage.sp plugin that shows damage and weapon info in chat and logs it.
Oh, I also have stocks to detect gametype (cstrike, dod, tf2, etc...), health and maxhealth (for TF2).
Last edited by naris; 12-31-2007 at 12:04.
Reason: typo