Update obj_entity_extend.lua
This commit is contained in:
parent
b4b3442e1c
commit
8f248f3d30
1 changed files with 7 additions and 2 deletions
|
@ -33,8 +33,13 @@ function meta:ClipHullTraceHull(distance, size, start, dir)
|
|||
return self:TraceHull(distance, mask, size, filter, start)
|
||||
end
|
||||
|
||||
function meta:ClipHullMeleeTrace(distance, size, start)
|
||||
return self:ClipHullTraceHull(distance, size, start)
|
||||
function meta:ClipHullMeleeTrace(distance, size, filter, start)
|
||||
local cliphullpretrace = self:ClipHullTraceHull(distance, size, start)
|
||||
if cliphullpretrace and LASTHITCLIPHULL then
|
||||
return cliphullpretrace
|
||||
end
|
||||
|
||||
return self:MeleeTrace(distance, size, filter, start)
|
||||
end
|
||||
|
||||
-- Extremely shitty workaround for util trace functions not using clip hulls
|
||||
|
|
Loading…
Reference in a new issue