Skip to content

feat: ready_status rcon command - #360

Closed
Flegma wants to merge 1 commit into
mainfrom
feat/ready-status
Closed

Flegma wants to merge 1 commit into
mainfrom
feat/ready-status

Conversation

@Flegma

@Flegma Flegma commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

New server-only ready_status command: replies with JSON {match_id, waiting, not_ready} for the ready check in warmup.

  • not_ready lists the steam ids the check still waits on: only lineups ReadyCount still counts short (Players: short of seats, Captains: no ready captain, Coach and Admin: none), never a camera-blocked player.
  • Same command on SwiftlyS2 and CounterStrikeSharp, shared ReadyUtility.WaitingLineups; the simulator answers it with an empty not_ready.
  • Pairs with an api PR (matchmade ready no-show cooldown) that reads this over rcon when it cancels a match that never readied; see 5stackgg/api#1516.

Tested: apps/swiftly/test (1534 passed), apps/counterstrikesharp/test (1303 passed), apps/simulator/test (139 passed).

Reports the match, whether the ready check is running and the steam ids it still waits on, so the api can record no-shows when it cancels. Only lineups the ready count still counts short are listed, never a player the camera check keeps from readying. The simulator answers it too.
@lukepolo

Copy link
Copy Markdown
Contributor

Closing for now: nothing reads this yet, so on its own it doesn't change anything. Worth settling in the api design before it comes back:

  • not_ready only covers connected players, so players who never connected aren't in it. waiting:true, not_ready:[] can mean a no-show, an unlinked placeholder, a camera-blocked player, or Coach/Admin mode. A cooldown on not_ready alone punishes connecting without readying, but not staying away.
  • A player who readied and then reconnected is listed again, because ready state is keyed on UserId and cleared on disconnect.
  • The selection that picks the ids (skip ready, skip camera-blocked, keep waiting lineups) is untested and copied in both plugins.

@lukepolo lukepolo closed this Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants