mirror of
https://github.com/shadowscion/TankTrackTool.git
synced 2025-03-04 03:03:06 -05:00
Return if drawing skybox or depth
This commit is contained in:
parent
6a2129a2da
commit
6ed5aa604a
@ -24,7 +24,8 @@ local draws, emptyCSENT = tanktracktool.render.draws, tanktracktool.render.empty
|
||||
local eyepos, eyedir = Vector(), Vector()
|
||||
local flashlightMODE
|
||||
|
||||
hook.Add( "PostDrawOpaqueRenderables", "tanktracktoolRenderDraw", function()
|
||||
hook.Add( "PostDrawOpaqueRenderables", "tanktracktoolRenderDraw", function(bDrawingDepth, bDrawingSkybox)
|
||||
if bDrawingDepth or bDrawingSkybox then return end
|
||||
flashlightMODE = LocalPlayer():FlashlightIsOn() --or #ents.FindByClass "*projectedtexture*" ~= 0
|
||||
eyepos = EyePos()
|
||||
eyedir = EyeVector()
|
||||
|
Loading…
Reference in New Issue
Block a user