Add auto-start countdown for multiplayer lobbies - #1
Open
CnCRAZER wants to merge 5 commits into
Open
Conversation
Introduce an auto-start countdown that can automatically ready remaining players and launch games. Changes include: - MultiplayerGameLobby: add AUTO_START_COUNTDOWN_SECONDS and ALL_READY_COUNTDOWN_SECONDS, XNATimerControl (autoStartTimer) and state variables; implement StartAutoStartCountdown, AutoStartTimer_TimeElapsed, ForceReadyAndLaunch, CancelAutoStartCountdown, AreAllNonHostPlayersReady and a virtual AutoStartCountdownNotification. Integrate countdown start when host attempts launch and not all players are ready, handle immediate force-launch behavior, shorten countdown when all players become ready, and emit periodic/localized notices. - LANGameLobby: add AUTO_START command, handler to show notices/flash window for clients, broadcast AUTO_START when host triggers, and cancel countdown on player leave/timeouts. - CnCNetGameLobby: add AUTOSTART IntNotificationHandler, send CTCP AUTOSTART when host triggers, handle client-side notice/flash/TopBar switching, and cancel countdown when players leave. - Hook countdown cancellation into relevant flows (lobby init/host change, map/start location changes, player leaves, and game option/map changes). The feature provides timely user notices, shortens the timer if everyone readies, and forces ready/launch at timeout to reduce stalled games.
|
Nightly build for this pull request:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce an auto-start countdown that can automatically ready remaining players and launch games. Changes include:
The feature provides timely user notices, shortens the timer if everyone readies, and forces ready/launch at timeout to reduce stalled games.