From b4e0e11d0cd8e40e57a3eecde79ae955ebe687e5 Mon Sep 17 00:00:00 2001 From: zaCade Date: Thu, 7 Sep 2017 20:11:27 +0200 Subject: [PATCH] CSGO: Fix (knife) skins not beign able to infect. They use diffrent weapon entities for some reason. (Bless volvo) --- src/zr/damage.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zr/damage.inc b/src/zr/damage.inc index cd375e0..3a95a64 100644 --- a/src/zr/damage.inc +++ b/src/zr/damage.inc @@ -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;