Thread
:
Ham Damage (Knife)
View Single Post
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
09-18-2019 , 16:06 Re: Ham Damage (Knife)
#
17
get_user_weapon()
checks the weapon that the player is holding at the moment when the damage is done. When you throw a HE grenade, it doesn't immediately explode, so the player is probably going to hold the knife again when it explodes and causes damage.
In order to prevent this, you need to check if
iAttacker == iInflictor
.
__________________
My public plugins.
Last edited by OciXCrom; 09-18-2019 at
16:06
.
OciXCrom
View Public Profile
Send a private message to OciXCrom
Find More Posts by OciXCrom