bf2d533ac5
* Add "Quit to desktop" button in pause menu * classes & custom_weapons: fix for SP * "Quit to desktop" button for MP
13 lines
300 B
Lua
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 |