13.12.2011, 20:35
OnPlayerGiveDamage is not designed to be accurate. It's only really useful for checking if the player is engaged in something.
Use OnPlayerTakeDamage for a more stable and reliable result, however even this will occasionally return strange values at times due to lag.
If you script serverside health, you can actually observe health bounce up and down the bar thanks to this phenomenon.
Use OnPlayerTakeDamage for a more stable and reliable result, however even this will occasionally return strange values at times due to lag.
If you script serverside health, you can actually observe health bounce up and down the bar thanks to this phenomenon.