Quote:
|
Originally Posted by BioHazardousWaste
well that code is called BEFORE they get shot!!
|
No, the Damage Event is called after the damage is inflicted, unfortunately..
So Avalanche was right in his post, but he knew that..
Quote:
|
Originally Posted by BioHazardousWaste
look through the code, damage is set in this line:
new Attacker = get_user_attacker(id,Weapon,HitZone)
It sets Damage to the amount of HP the shot is about to take off.
|
No, that line will return the ID of the Attacking Player, and will also store values in the Weapon variable indicating the Weapon ID that was used by the Attacker, and the HitZone variable will have the HitZone ID of where the Victim was hit during the attack..
Maybe you just posted the wrong line of code you were talking about?
Anyway, I hope that lil' bit helps..