h1-mod/data/ui_scripts/patches/__init__.lua
ジョク アーウェント 272094f76d Disable useless things (#153)
2022-07-03 11:19:57 -05:00

21 lines
446 B
Lua

if (game:issingleplayer()) then
return
end
if (Engine.InFrontend()) then
require("shaderdialog")
require("gamemodes")
require("no_mode_switch")
require("disable_useless_things")
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