From 8167e9bf75bf7bc67a52c5052d71b0e12a85baa9 Mon Sep 17 00:00:00 2001 From: William Moodhe / JetBoom Date: Thu, 22 Oct 2015 04:01:05 -0400 Subject: [PATCH] Update shared.lua --- .../entities/weapons/weapon_zs_basemelee/shared.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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()