Barotrauma icon indicating copy to clipboard operation
Barotrauma copied to clipboard

PvP: Set Non-Random Teams in PvP

Open Ek-Videogames opened this issue 4 years ago • 4 comments

New design by @JeroonBosch

image

Team selection mode ("The method at which teams are formed in PvP mode" on-hover):

  • Player preference (current functionality)
  • Player chosen (functionality described below)

Auto-balance teams threshold ("Ensure teams are equal before starting a round). Values:

  • Off
  • 1 (default value)
  • 2
  • 3

Choose team Replace "No preference" with "Spectate" or "No team" - the value/variable is directly linked to the Spectator checkbox. When a team is selected, "Spectate" checkbox is no longer checked.

If auto-balance is on, grey out and make it unable to join a team that's already at it's limit.

Upon certain triggers (1. when a player leaves a server, 2. when a player leaves a team to join spectators, maybe more) reevaluate auto-balance and do a countdown in chat:

Server: Teams are imbalanced, automatically balancing the teams in 10 seconds...

10 seconds later it will switch random player(s) part of the full team to the less full team

Server: Teams have been balanced automatically. Switched players: [player A], [Player B]

Ek-Videogames avatar Aug 11 '20 13:08 Ek-Videogames