unlock DLC classes

This commit is contained in:
m 2022-03-14 10:19:12 -05:00
parent ecc247fe51
commit 17f5e2b35c

View File

@ -184,3 +184,12 @@ luiglobals.Cac.IsCustomClassLocked = function(...)
return isclasslocked(table.unpack({...}))
end
local isdlcclasslocked = luiglobals.Cac.IsCustomClassDlcLocked
luiglobals.Cac.IsCustomClassDlcLocked = function(...)
if (Engine.GetDvarBool("cg_unlockall_classes")) then
return false
end
return isdlcclasslocked(table.unpack({...}))
end