iw7-mod/data/cdata/ui_scripts/Conditions/InGame.lua

31 lines
568 B
Lua
Raw Normal View History

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