mirror of
https://github.com/HaodongMo/ARC-9.git
synced 2025-03-04 03:02:58 -05:00
Update cl_light.lua
This commit is contained in:
parent
85696eaa9d
commit
e6730a41e1
@ -14,6 +14,7 @@ end
|
||||
local nvgon = false
|
||||
local function checknvg(wpn) -- this func a bit different than what in cl_laser
|
||||
local lp = LocalPlayer()
|
||||
if !IsValid(lp) then return end
|
||||
if lp.quadnodsonlight or lp:GetNWBool("nvg_on", false) then return true end -- arctic nvgs and mw nvgs
|
||||
if lp.EZarmor and lp.EZarmor.effects and lp.EZarmor.effects.nightVision then return true end -- jmod
|
||||
local sight = wpn:GetSight()
|
||||
@ -305,4 +306,4 @@ function SWEP:DrawLightFlare(pos, ang, col, size, vm, nodotter, dir) -- mostly t
|
||||
render.DrawSprite(pos, rad, rad, col)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user