h1-mod/data/cdata/ui_scripts/classes/__init__.lua
Vlad Loktionov bf2d533ac5
Add "Quit to desktop" button in pause menu (#558)
* Add "Quit to desktop" button in pause menu

* classes & custom_weapons: fix for SP

* "Quit to desktop" button for MP
2023-04-03 08:59:10 -05:00

13 lines
300 B
Lua

if game:issingleplayer() or (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