Skip to content

Match pausing#758

Merged
nullsystem merged 1 commit into
NeotokyoRebuild:masterfrom
nullsystem:GH-681_Pausing
Oct 22, 2024
Merged

Match pausing#758
nullsystem merged 1 commit into
NeotokyoRebuild:masterfrom
nullsystem:GH-681_Pausing

Conversation

@nullsystem

@nullsystem nullsystem commented Oct 20, 2024

Copy link
Copy Markdown
Collaborator

Description

  • .pause/.unpause commands to pause/unpause
  • Menu popup on .pause, giving either short (30s) or long (3m)
  • Pause is its own round state
  • Pause can happen instant if during a pre-round freeze, otherwise will just goes into the next round
  • Cannot pause during idle/warmup as that is not a live match, neither could pause commands used during DM/TDM as those are not multi-rounds
  • HUD updated and center text flashing to indicate pause state. Pause state have it red in the HUD round state.
  • Pausing:
    • .pause -> Pause menu -> 30s/3m
    • If pause required at freeze time, it will happen immediately
    • Otherwise pause will happen when the current round ends
  • Unpausing:
    • The team that paused can start unpause request with .unpause, non-pausing team cannot start unpause request
    • Then the non-pausing team is required to respond with .unpause which will then immediately after, unpause the game
    • The pausing team can cancel the unpause request by .pause
  • ConVars:
    • neo_sv_pausematch_enabled - 0 by default, enable match pausing feature
    • neo_sv_pausematch_unpauseimmediate - 0 by default, locked by cheat flag, unpause command is immediate

Toolchain

  • Linux GCC Distro Native Arch/GCC 14

Linked Issues

@nullsystem
nullsystem force-pushed the GH-681_Pausing branch 2 times, most recently from c7f1442 to 9691d1f Compare October 20, 2024 15:47
@nullsystem
nullsystem marked this pull request as ready for review October 20, 2024 15:47
@nullsystem
nullsystem requested a review from a team October 20, 2024 15:47
@nullsystem nullsystem changed the title [WIP] Match pausing Match pausing Oct 20, 2024
@nullsystem
nullsystem marked this pull request as draft October 20, 2024 15:48
@nullsystem
nullsystem marked this pull request as ready for review October 20, 2024 16:14
* .pause/.unpause commands to pause/unpause
* Menu popup on .pause, giving either short (30s) or long (3m)
* Pause is its own round state
* Pause can happen instant if during a pre-round freeze, otherwise will
  just goes into the next round
* Cannot pause during idle/warmup as that is not a live match
* HUD updated and center text flashing to indicate pause state
* fixes NeotokyoRebuild#681
@nullsystem nullsystem added this to the v10.0-prealpha milestone Oct 20, 2024
@nullsystem
nullsystem requested a review from a team October 20, 2024 20:49
@nullsystem
nullsystem merged commit 5046ef6 into NeotokyoRebuild:master Oct 22, 2024
@nullsystem
nullsystem deleted the GH-681_Pausing branch May 7, 2025 20:34
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.

[FEATURE] Match pausing mechanic (!pause)

4 participants