forked from HaodongMo/ArcCW
don't half-customize when deploying
This commit is contained in:
parent
214eb0b036
commit
a724bf9baa
@ -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
|
||||
|
@ -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")
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user