2023-04-03 09:59:10 -04:00
|
|
|
if game:issingleplayer() or (Engine.InFrontend()) then
|
2023-01-27 17:34:16 -05:00
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
local getclasscount = Cac.GetCustomClassCount
|
|
|
|
Cac.GetCustomClassCount = function(...)
|
|
|
|
local value = Engine.GetDvarBool("sv_disableCustomClasses")
|
|
|
|
if (value) then
|
|
|
|
return 0
|
|
|
|
end
|
|
|
|
|
|
|
|
return getclasscount(...)
|
|
|
|
end
|