h1-mod/data/ui_scripts/patches/__init__.lua

19 lines
384 B
Lua
Raw Normal View History

2022-06-02 10:14:40 -04:00
if (game:issingleplayer()) then
return
end
2022-06-24 19:02:44 -04:00
if (Engine.InFrontend()) then
require("shaderdialog")
require("gamemodes")
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()
return Engine.Localize(Engine.TableLookup(GameTypesTable.File,
GameTypesTable.Cols.Ref, GameX.GetGameMode(), GameTypesTable.Cols.Name))
end
2022-06-02 19:47:03 -04:00
function NeverAllowChangeTeams()
return false
end