h1-mod/data/cdata/ui_scripts/classes/__init__.lua

13 lines
300 B
Lua
Raw Normal View History

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