Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions lua/entities/base_glide/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -424,10 +424,7 @@ do
local GetDevMode = Glide.GetDevMode
local TraceHull = util.TraceHull

local traceData = {
mask = MASK_SHOT_HULL - MASK_WATER, -- Ignore water
collisiongroup = COLLISION_GROUP_VEHICLE,
}
local traceData = {}

local function ValidateExitPos( vehicle, origin, localPos )
return Glide.ValidateExitPos( origin, vehicle:LocalToWorld( localPos ), traceData )
Expand All @@ -450,7 +447,6 @@ do

-- Ignore the vehicle itself and players
traceData.filter[#traceData.filter + 1] = self
traceData.filter[#traceData.filter + 1] = "player"

-- Try the original exit position first
local origin = self:LocalToWorld( self:OBBCenter() )
Expand Down
Loading