Quote:
Originally Posted by JaKe Elite
The health & armor can be resetted back once they got the damage OnPlayerGiveDamage, though this is a bad idea on my perspective. I have chosen OnPlayerGiveDamage for a reason (none bulleted weapons doesnt get called OnPlayerWeaponShot) however OnPlayerWeaponShot could work too except that this callback gets called for bullet weapons only.
|
That's not wrong, GiveDamage could also be used for detecting melees or projectiles. The benefit of using OnPlayerWeaponShot for shootable weapons is that you can completely disregard every single bullet they shoot, meaning players won't be affected by hacked bullets at all (meaning no health or armor is ever lost). You're also able to detect hacked bullets that don't hit or damage a player as well.