diff --git a/gamemodes/zombiesurvival/entities/weapons/weapon_zs_basemelee/shared.lua b/gamemodes/zombiesurvival/entities/weapons/weapon_zs_basemelee/shared.lua index 9ac3f8d..925694c 100644 --- a/gamemodes/zombiesurvival/entities/weapons/weapon_zs_basemelee/shared.lua +++ b/gamemodes/zombiesurvival/entities/weapons/weapon_zs_basemelee/shared.lua @@ -150,9 +150,9 @@ function SWEP:MeleeSwing() 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 local damagemultiplier = (owner.BuffMuscular and owner:Team()==TEAM_HUMAN) and 1.2 or 1 local damage = self.MeleeDamage * damagemultiplier @@ -179,7 +179,7 @@ function SWEP:MeleeSwing() end if self.OnMeleeHit and self:OnMeleeHit(hitent, hitflesh, tr) then - owner:LagCompensation(false) + --owner:LagCompensation(false) return end @@ -247,7 +247,7 @@ function SWEP:MeleeSwing() if self.PostOnMeleeMiss then self:PostOnMeleeMiss(tr) end end - owner:LagCompensation(false) + --owner:LagCompensation(false) end function SWEP:StopSwinging()