Update shared.lua
This commit is contained in:
parent
1e67e2dc31
commit
8167e9bf75
1 changed files with 4 additions and 4 deletions
|
@ -150,9 +150,9 @@ function SWEP:MeleeSwing()
|
||||||
|
|
||||||
local filter = owner:GetMeleeFilter()
|
local filter = owner:GetMeleeFilter()
|
||||||
|
|
||||||
owner:LagCompensation(true)
|
--owner:LagCompensation(true)
|
||||||
|
|
||||||
local tr = owner:MeleeTrace(self.MeleeRange, self.MeleeSize, filter)
|
local tr = owner:ClipHullMeleeTrace(self.MeleeRange, self.MeleeSize, filter)
|
||||||
if tr.Hit then
|
if tr.Hit then
|
||||||
local damagemultiplier = (owner.BuffMuscular and owner:Team()==TEAM_HUMAN) 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
|
||||||
|
@ -179,7 +179,7 @@ function SWEP:MeleeSwing()
|
||||||
end
|
end
|
||||||
|
|
||||||
if self.OnMeleeHit and self:OnMeleeHit(hitent, hitflesh, tr) then
|
if self.OnMeleeHit and self:OnMeleeHit(hitent, hitflesh, tr) then
|
||||||
owner:LagCompensation(false)
|
--owner:LagCompensation(false)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -247,7 +247,7 @@ function SWEP:MeleeSwing()
|
||||||
if self.PostOnMeleeMiss then self:PostOnMeleeMiss(tr) end
|
if self.PostOnMeleeMiss then self:PostOnMeleeMiss(tr) end
|
||||||
end
|
end
|
||||||
|
|
||||||
owner:LagCompensation(false)
|
--owner:LagCompensation(false)
|
||||||
end
|
end
|
||||||
|
|
||||||
function SWEP:StopSwinging()
|
function SWEP:StopSwinging()
|
||||||
|
|
Loading…
Reference in a new issue