Update obj_entity_extend.lua

This commit is contained in:
William Moodhe / JetBoom 2015-10-24 17:21:38 -04:00
parent d6db60b86a
commit d6a17dfee1

View file

@ -52,7 +52,7 @@ function meta:PenetratingClipHullMeleeTrace(distance, size, prehit, start, dir)
local cliphullpretrace = self:ClipHullTraceHull(distance, size, start, dir) local cliphullpretrace = self:ClipHullTraceHull(distance, size, start, dir)
self:LagCompensation(true) self:LagCompensation(true)
t = self:PenetratingMeleeTrace(distance, size, prehit, start, dir) t = self:PenetratingMeleeTrace(distance, size, prehit, start, dir)
if cliphullpretrace and LASTHITCLIPHULL and cliphullpretrace.Entity ~= prehit then if cliphullpretrace and LASTHITCLIPHULL and cliphullpretrace.Entity ~= prehit and not (t[1] and t[1].Entity:IsValid() and t[1].Entity == cliphullpretrace.Entity) then
table.insert(t, 1, cliphullpretrace) table.insert(t, 1, cliphullpretrace)
end end
self:LagCompensation(false) self:LagCompensation(false)