don't half-customize when deploying

This commit is contained in:
TheOnly8Z 2023-08-29 19:45:44 -05:00
parent 214eb0b036
commit a724bf9baa
3 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ local shortname = ""
local genAttCvar = GetConVar("arccw_reloadatts_registerentities")
function ArcCW.LoadAttachmentType(att, name)
if name == "" then return end
name = name or shortname
if !att.Ignore or GetConVar("arccw_reloadatts_showignored"):GetBool() then

View File

@ -287,7 +287,6 @@ ArcCW.Inv_ShownAtt = nil
ArcCW.Inv_Hidden = false
function SWEP:CreateCustomize2HUD()
local cvar_reloadincust = GetConVar("arccw_reloadincust")
local cvar_cust_sounds = GetConVar("arccw_cust_sounds")
local cvar_darkunowned = GetConVar("arccw_attinv_darkunowned")

View File

@ -50,6 +50,7 @@ local noinspect = GetConVar("arccw_noinspect")
function SWEP:ToggleCustomizeHUD(ic)
if ic and self:GetState() == ArcCW.STATE_SPRINT then return end
if self:GetReloading() then ic = false end
if self:GetState() == ArcCW.STATE_DISABLE then return end
noinspect = noinspect or GetConVar("arccw_noinspect")
if ic then