Support 16 pilots + 1 cameraship in multiplayer
MW4Shell.cpp: - CTCL_DefaultHostSetup (non-coop): replaced hardcoded Environment.NetworkMaxPlayers=16 with params->m_maxPlayers + (CTCL_GetTeslaCountAll() - CTCL_GetTeslaCount()) so DirectPlay reserves one extra slot per installed cameraship. CTCL_GetTeslaCountAll() - CTCL_GetTeslaCount() = camera-only seat count. - SetNetworkMissionParamater / PLAYER_LIMIT_PARAMETER: applied the same camera-slot formula when the host changes the player limit at runtime. Also restored the gos_NetServerCommands(gos_Commend_UpdateMaxPlayers) call (was accidentally dropped) and the missing break that caused fall-through into JOIN_IN_PROGRESS_PARAMETER. - COOP branch: no change (capped at 9+bots; camera seats not needed there). ConLobby.script: - Raised the launch-guard cap from nTempPlayerCount > 16 to > 17, allowing the 17th connection (the cameraship) to not trigger the 'Too many player/bots' error.
This commit is contained in:
@@ -2721,7 +2721,8 @@ main
|
||||
}
|
||||
}
|
||||
// MSL 5.06
|
||||
if nLaunchState == 0 && (nTempPlayerCount > 16)
|
||||
// RT 07/19/26: raised cap from 16 to 17 to allow 16 pilots + 1 cameraship
|
||||
if nLaunchState == 0 && (nTempPlayerCount > 17)
|
||||
{
|
||||
o_error_string.text = "Too many player/bots"
|
||||
nLaunchState = -7
|
||||
|
||||
Reference in New Issue
Block a user