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

13 lines
275 B
Lua
Raw Normal View History

2023-01-27 17:34:16 -05:00
if (Engine.InFrontend()) then
return
end
local getclasscount = Cac.GetCustomClassCount
Cac.GetCustomClassCount = function(...)
local value = Engine.GetDvarBool("sv_disableCustomClasses")
if (value) then
return 0
end
return getclasscount(...)
end