diff --git a/data/ui_scripts/party/__init__.lua b/data/ui_scripts/party/__init__.lua index 741d9378..7702e6df 100644 --- a/data/ui_scripts/party/__init__.lua +++ b/data/ui_scripts/party/__init__.lua @@ -1,4 +1,3 @@ - -- Removed check for public matches to allow team change in ranked matches CoD.IsTeamChangeAllowed = function() if Engine.GetGametypeSetting( "allowInGameTeamChange" ) == 1 then @@ -8,6 +7,18 @@ CoD.IsTeamChangeAllowed = function() 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() ) + + DataSources.StartMenuGameOptions = ListHelper_SetupDataSource("StartMenuGameOptions", function (controller) local options = {} if Engine.IsDemoPlaying() then