CSGO: Fix (knife) skins not beign able to infect.
They use diffrent weapon entities for some reason. (Bless volvo)
This commit is contained in:
parent
226619f24b
commit
b4e0e11d0c
|
@ -269,7 +269,7 @@ public Action:DamageOnTakeDamage(client, &attacker, &inflictor, &Float:damage, &
|
|||
return Plugin_Continue;
|
||||
}
|
||||
|
||||
if (!clientzombie && attackerzombie && !StrEqual(weaponname, "weapon_knife"))
|
||||
if (!clientzombie && attackerzombie && !(StrEqual(weaponname, "weapon_bayonet") || strncmp(weaponname, "weapon_knife", 12) == 0))
|
||||
{
|
||||
damage = 1.0;
|
||||
return Plugin_Changed;
|
||||
|
|
Loading…
Reference in New Issue
Block a user