Prevented Zombies getting muscular damage buff.

This commit is contained in:
Ben 2015-04-05 22:01:34 +01:00
parent 6ecc246e57
commit c8f5c56b12

View file

@ -154,7 +154,7 @@ function SWEP:MeleeSwing()
local tr = owner:MeleeTrace(self.MeleeRange, self.MeleeSize, filter) local tr = owner:MeleeTrace(self.MeleeRange, self.MeleeSize, filter)
if tr.Hit then 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 damage = self.MeleeDamage * damagemultiplier
local hitent = tr.Entity 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 local hitflesh = tr.MatType == MAT_FLESH or tr.MatType == MAT_BLOODYFLESH or tr.MatType == MAT_ANTLION or tr.MatType == MAT_ALIENFLESH