Update obj_entity_extend.lua

This commit is contained in:
William Moodhe / JetBoom 2015-10-22 03:56:21 -04:00
parent b4b3442e1c
commit 8f248f3d30

View file

@ -33,8 +33,13 @@ function meta:ClipHullTraceHull(distance, size, start, dir)
return self:TraceHull(distance, mask, size, filter, start) return self:TraceHull(distance, mask, size, filter, start)
end end
function meta:ClipHullMeleeTrace(distance, size, start) function meta:ClipHullMeleeTrace(distance, size, filter, start)
return self:ClipHullTraceHull(distance, size, start) local cliphullpretrace = self:ClipHullTraceHull(distance, size, start)
if cliphullpretrace and LASTHITCLIPHULL then
return cliphullpretrace
end
return self:MeleeTrace(distance, size, filter, start)
end end
-- Extremely shitty workaround for util trace functions not using clip hulls -- Extremely shitty workaround for util trace functions not using clip hulls