Update shared.lua

This commit is contained in:
William Moodhe / JetBoom 2015-10-22 04:01:05 -04:00
parent 1e67e2dc31
commit 8167e9bf75

View file

@ -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()