05.01.2019, 18:39
I do not know why, but when I put the code below "OnPlayerShootPlayer" with some SetPlayerHealth for a custom damage, it simply does not damage the player, but it does this below the "OnPlayerGiveDamage", but below that CallFunction, when the player is with the weapon in hand and give a hit (No-Fire hit) in the other player, the damage done is the same as the weapon would cause in firing.
EDIT: I think I had an idea to make it stop, I'll get the "Targetid" Pos and compare it with "Playerid" using "IsPlayerInRangeOfPoint" as 1, if it is within the delimited area, the damage will be 1 regardless of the weapon. I'll test it, thanks for the help .
EDIT: I think I had an idea to make it stop, I'll get the "Targetid" Pos and compare it with "Playerid" using "IsPlayerInRangeOfPoint" as 1, if it is within the delimited area, the damage will be 1 regardless of the weapon. I'll test it, thanks for the help .