mirror of
https://github.com/HaodongMo/ARC-9.git
synced 2025-03-04 03:02:58 -05:00
ply.ARC9NoScopes variable for nvgs
This commit is contained in:
parent
541c9cf66e
commit
0ce40c2d7f
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user