t7x/data/ui_scripts/party/__init__.lua
2023-04-11 17:27:59 -02:30

22 lines
487 B
Lua

-- Removed check for public matches to allow team change in ranked matches
CoD.IsTeamChangeAllowed = function()
if Engine.GetGametypeSetting( "allowInGameTeamChange" ) == 1 then
return true
else
return false
end
end
-- Set com_maxclients InGame so players can join via direct connect
local maxclients = function()
if Engine.IsZombiesGame() then
return 4
else
return 18
end
end
Engine.SetDvar( "com_maxclients", maxclients() )
require("DataSources_StartMenuGameOptions")