04.05.2016, 12:14
Quote:
Couldnt you just OnPlayerGiveDamage just set all the weapon values to give 0 damage? lol
|
You can only reverse the damage by putting his health back when he's hit, but apart from OnPlayerWeaponShot the callbacks are only called afterwards as mentioned.
Quote:
player A with 30.0HP gets hit by another player B using a sniper rifle which does about 49.0 damage. In the case of OnPlayerTakeDamage, player A would die. Why? Because the damage is applied first, resulting in -19.0HP |