ply.ARC9NoScopes variable for nvgs

This commit is contained in:
Darsu 2025-01-30 23:53:55 +07:00
parent 541c9cf66e
commit 0ce40c2d7f
2 changed files with 3 additions and 2 deletions

View File

@ -7,7 +7,8 @@ local colbcvar = GetConVar("arc9_reflex_b")
function SWEP:DoHolosight(mdl, atttbl)
if self:GetSightAmount() <= 0 and !self:GetCustomize() and !atttbl.HoloSightAlwaysOn then return end
if ARC9.OverDraw then return end
if self:GetOwner() != LocalPlayer() then return end
local owner = self:GetOwner()
if owner != LocalPlayer() or owner.ARC9NoScopes then return end
self.RenderingHolosight = true
local ref = 56

View File

@ -4,7 +4,7 @@ local rtmat = GetRenderTarget("arc9_pipscope", rtsize, rtsize, false)
local rtmat_spare = GetRenderTarget("arc9_rtmat_spare", ScrW(), ScrH(), false)
function SWEP:ShouldDoScope()
if self:GetSight().Disassociate then return false end
if self:GetSight().Disassociate or self:GetOwner().ARC9NoScopes then return false end
return true
end