Update cl_light.lua

This commit is contained in:
Darsu 2025-02-27 17:53:40 +07:00 committed by GitHub
parent 85696eaa9d
commit e6730a41e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()