health hack and callbacks
#1

I just have a small doubt

If a player has health hack enabled, does OnPlayerTakeDamage(for the hacker) and OnPlayerWeaponShot(for the shooter) get called?

Also does SetPlayerHealth and Createexplosion affect them?
Reply
#2

OnPlayerTakeDamage:
It gets called, but doesn't give the player damage.

OnPlayerWeaponShot:
This always gets called when a player shoots a weapons.

SetPlayerHealth:
This works on hackers.
(Note: Some hacks automatically refill after SetPlayerHealth)

CreateExplosion:
If the player is health hacking, they wouldn't get any damage.
Reply
#3

Well but the amount parameter parameter in Onplayertakedamage will hold the value of amount of damage the player has taken or the amount of damage the player should have taken?
Reply
#4

The damage param holds the damage the player should take. (He already takes the damage if he is not health hacking)
Reply
#5

Ok ty
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)