View Single Post
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 12-25-2022 , 13:02   Re: [CS:GO] Detect player in Taser's range
Reply With Quote #6

Quote:
Originally Posted by Xc_ace View Post
Thanks to answer, but I have another question, can I detect the taser's damage to player? as far as I know, the Taser has damage attenuation when player is out-of-range and I don't know how many damage attenuation per hammer units
Damage can be detected using the player_hurt event. See the details for CS:GO here:
https://wiki.alliedmods.net/Counter-...ts#player_hurt

If you need to modify the taser damage then use SDKHook_OnTakeDamage; for example, use that SDKHook if you want to remove the damage attentuation for the taser and cause it to kill anyone within range.
__________________
databomb is offline