2022-12-21 13:31:29 -05:00
|
|
|
require("language")
|
|
|
|
require("background_effects")
|
|
|
|
|
2022-12-22 09:51:33 -05:00
|
|
|
if game:issingleplayer() then
|
2022-12-21 13:31:29 -05:00
|
|
|
require("sp_unlockall")
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
2022-12-22 09:51:33 -05:00
|
|
|
require("disable_useless_things")
|
|
|
|
|
|
|
|
if Engine.InFrontend() then
|
2022-12-21 13:31:29 -05:00
|
|
|
require("shader_dialog")
|
|
|
|
require("gamemodes")
|
|
|
|
require("no_mode_switch")
|
|
|
|
else
|
|
|
|
require("scoreboard")
|
|
|
|
end
|
|
|
|
|
|
|
|
-- defined in mp_hud/hudutils.lua
|
|
|
|
function GetGameModeName()
|
|
|
|
return Engine.Localize(Engine.TableLookup(GameTypesTable.File, GameTypesTable.Cols.Ref, GameX.GetGameMode(),
|
|
|
|
GameTypesTable.Cols.Name))
|
|
|
|
end
|
|
|
|
|
|
|
|
function NeverAllowChangeTeams()
|
|
|
|
return false
|
|
|
|
end
|