From c8f5c56b12c32eaf9014206b5219df7139b1a3c9 Mon Sep 17 00:00:00 2001 From: Ben Date: Sun, 5 Apr 2015 22:01:34 +0100 Subject: [PATCH] Prevented Zombies getting muscular damage buff. --- .../entities/weapons/weapon_zs_basemelee/shared.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamemodes/zombiesurvival/entities/weapons/weapon_zs_basemelee/shared.lua b/gamemodes/zombiesurvival/entities/weapons/weapon_zs_basemelee/shared.lua index 6a60a50..7376e47 100644 --- a/gamemodes/zombiesurvival/entities/weapons/weapon_zs_basemelee/shared.lua +++ b/gamemodes/zombiesurvival/entities/weapons/weapon_zs_basemelee/shared.lua @@ -154,7 +154,7 @@ function SWEP:MeleeSwing() local tr = owner:MeleeTrace(self.MeleeRange, self.MeleeSize, filter) if tr.Hit then - local damagemultiplier = owner.BuffMuscular and 1.2 or 1 + local damagemultiplier = (owner.BuffMuscular and owner:Team()==TEAM_HUMAN) and 1.2 or 1 local damage = self.MeleeDamage * damagemultiplier local hitent = tr.Entity local hitflesh = tr.MatType == MAT_FLESH or tr.MatType == MAT_BLOODYFLESH or tr.MatType == MAT_ANTLION or tr.MatType == MAT_ALIENFLESH