CSGO: Fix (knife) skins not beign able to infect.

They use diffrent weapon entities for some reason. (Bless volvo)
This commit is contained in:
zaCade 2017-09-07 20:11:27 +02:00
parent 226619f24b
commit b4e0e11d0c
1 changed files with 1 additions and 1 deletions

View File

@ -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;