2022-06-02 10:14:40 -04:00
|
|
|
if (game:issingleplayer()) then
|
2022-11-10 14:45:19 -05:00
|
|
|
return
|
2022-06-02 10:14:40 -04:00
|
|
|
end
|
|
|
|
|
2022-06-24 19:02:44 -04:00
|
|
|
if (Engine.InFrontend()) then
|
2022-11-10 14:45:19 -05:00
|
|
|
require("shader_dialog")
|
|
|
|
require("gamemodes")
|
|
|
|
require("no_mode_switch")
|
|
|
|
require("disable_useless_things")
|
|
|
|
else
|
|
|
|
require("scoreboard")
|
2022-06-24 19:02:44 -04:00
|
|
|
end
|
2022-06-24 18:44:43 -04:00
|
|
|
|
2022-06-02 10:14:40 -04:00
|
|
|
-- defined in mp_hud/hudutils.lua
|
|
|
|
function GetGameModeName()
|
2022-11-10 14:45:19 -05:00
|
|
|
return Engine.Localize(Engine.TableLookup(GameTypesTable.File,
|
|
|
|
GameTypesTable.Cols.Ref, GameX.GetGameMode(), GameTypesTable.Cols.Name))
|
2022-06-02 10:14:40 -04:00
|
|
|
end
|
2022-06-02 19:47:03 -04:00
|
|
|
|
|
|
|
function NeverAllowChangeTeams()
|
2022-11-10 14:45:19 -05:00
|
|
|
return false
|
2022-06-02 19:47:03 -04:00
|
|
|
end
|