iw7-mod/data/cdata/ui_scripts/Conditions/InGame.lua
WantedDV 010bdb41aa
combat training (#299)
* combat training

* Disable bot & gamesetting customization menus - feature not yet available.

- cleanup unused code
2024-10-02 21:12:32 +03:00

31 lines
568 B
Lua

if Engine.InFrontend() then
return
end
-- Multiplayer
if CONDITIONS.IsMultiplayer then
function CONDITIONS.IsTeamChoiceAllowed(self)
return IsCurrentGameTypeteamBased()
end
function CONDITIONS.IsCODCastingAllowed(self)
return true
end
function CONDITIONS.IsTeamOrCodcasterChoiceAllowed(self)
return CONDITIONS.IsTeamChoiceAllowed(self) or CONDITIONS.IsCODCastingAllowed(self)
end
function Lobby.IsTeamAssignmentEnabled()
return true
end
end
-- ZOMBIES
if CONDITIONS.IsThirdGameMode then
end
-- Singleplayer
if CONDITIONS.IsSingleplayer then
end