Skip to content

Commit

Permalink
Merge pull request #25 from wrefgtzweve/fix-skybox-hittexture
Browse files Browse the repository at this point in the history
Whitelist **empty** for skybox
  • Loading branch information
StyledStrike authored Dec 28, 2024
2 parents fd022f0 + 1af335a commit f593d15
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lua/entities/glide_rotor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -177,17 +177,19 @@ function ENT:CheckRotorClearance( dt, parent )

local tr = TraceHull( data )

if tr.Hit and not tr.HitSky and not tr.HitNoDraw then
if tr.Hit and not tr.HitSky and not tr.HitNoDraw and tr.HitTexture ~= "**empty**" then
self:OnRotorHit( tr.Entity, tr.HitPos, origin )
return
end

-- Another trace on the opposite direction
data.endpos = origin - dir * self.radius

tr = TraceHull( data )

if tr.Hit and not tr.HitSky and not tr.HitNoDraw then
if tr.Hit and not tr.HitSky and not tr.HitNoDraw and tr.HitTexture ~= "**empty**" then
self:OnRotorHit( tr.Entity, tr.HitPos, origin )
return
end
end

Expand Down

0 comments on commit f593d15

Please sign in to comment.