h1-mod/data/cdata/ui_scripts/patches/__init__.lua
Vlad 917dd80625
Minor fix (#422)
* Re-enable disable_useless_things.lua

* Minor localization changes (sync with H2)

* Update language.lua & stats/init.lua

* Fix for HUD ammo zeros
* Language: Reorganizing items on menu
* Stats: Fix localized headers
2022-12-22 08:51:33 -06:00

28 lines
603 B
Lua

require("language")
require("background_effects")
if game:issingleplayer() then
require("sp_unlockall")
return
end
require("disable_useless_things")
if Engine.InFrontend() then
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