From d6db60b86a6226aa3228858373418fb4ca1e0f25 Mon Sep 17 00:00:00 2001 From: William Moodhe / JetBoom Date: Thu, 22 Oct 2015 04:01:26 -0400 Subject: [PATCH] Update obj_entity_extend.lua --- gamemodes/zombiesurvival/gamemode/obj_entity_extend.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gamemodes/zombiesurvival/gamemode/obj_entity_extend.lua b/gamemodes/zombiesurvival/gamemode/obj_entity_extend.lua index 905c8be..eb402e7 100644 --- a/gamemodes/zombiesurvival/gamemode/obj_entity_extend.lua +++ b/gamemodes/zombiesurvival/gamemode/obj_entity_extend.lua @@ -39,7 +39,11 @@ function meta:ClipHullMeleeTrace(distance, size, filter, start) return cliphullpretrace end - return self:MeleeTrace(distance, size, filter, start) + self:LagCompensation(true) + local t = self:MeleeTrace(distance, size, filter, start) + self:LagCompensation(false) + + return t end -- Extremely shitty workaround for util trace functions not using clip hulls