Prevented Zombies getting muscular damage buff.
This commit is contained in:
parent
6ecc246e57
commit
c8f5c56b12
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue