Update obj_entity_extend.lua
This commit is contained in:
parent
d6db60b86a
commit
d6a17dfee1
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue