OnPlayerGiveDamage
#13

Since 0.3z, the callbacks are called in such an order:

- OnPlayerWeaponShot - This is called first whenever a player shoots.
- OnPlayerGiveDamage - OnPlayerGiveDamage is being called when player gives damage. It gets called for the player when that player damages other player in-game. It doesn't mean that the damage had been received by the other player.
- OnPlayerTakeDamage - This is called whenever the player takes damage or when a damage is received. There can be a chance where HP may not be changed but through my experiences using this callback, it's always called when player takes damage or when a hit is synchronized.

If you're thinking about anti-health cheats, you must also make sure that HP related functions are always hooked. Otherwise you might encounter false detections.
Reply


Messages In This Thread
OnPlayerGiveDamage - by audriuxxx - 20.05.2014, 04:11
Re: OnPlayerGiveDamage - by nmader - 20.05.2014, 04:15
Re: OnPlayerGiveDamage - by audriuxxx - 20.05.2014, 04:18
Re: OnPlayerGiveDamage - by SickAttack - 20.05.2014, 04:19
Re: OnPlayerGiveDamage - by PaulDinam - 20.05.2014, 04:23
Re: OnPlayerGiveDamage - by audriuxxx - 20.05.2014, 04:23
Re: OnPlayerGiveDamage - by PaulDinam - 20.05.2014, 04:27
Re: OnPlayerGiveDamage - by SickAttack - 20.05.2014, 04:28
Re: OnPlayerGiveDamage - by Threshold - 20.05.2014, 10:32
Re: OnPlayerGiveDamage - by SickAttack - 20.05.2014, 23:45
Re : OnPlayerGiveDamage - by Ramoboss - 21.05.2014, 00:48
Re: OnPlayerGiveDamage - by Threshold - 21.05.2014, 01:55
Re: OnPlayerGiveDamage - by Lordzy - 21.05.2014, 07:20
Re: OnPlayerGiveDamage - by audriuxxx - 21.05.2014, 14:07

Forum Jump:


Users browsing this thread: 1 Guest(s)