]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
Allow g_balance_teams_prevent_imbalance without g_balance_teams
authorbones_was_here <bones_was_here@xonotic.au>
Tue, 4 Jun 2024 12:15:37 +0000 (22:15 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Mon, 5 Aug 2024 16:26:20 +0000 (02:26 +1000)
commit9aadc9955061d8c520f7313701c82b6e50221306
tree9b82bed386ce6a849817cd92d5d283c9aa5952b1
parentb16c4a8031be0337ce1165355435c7971d5dc7c6
Allow g_balance_teams_prevent_imbalance without g_balance_teams

I disagree with the comment because g_balance_teams is a misnomer: all
it does is change whether the team selection UI appears when pressing
+jump. Selecting a team manually can improve balance when players know
each other's skills, and the fact that's in use doesn't automatically
mean that people should be allowed to stack mid-match.

Added a condition to only enforce during the match or countdown, because
it's easier to reorganise teams during warmup when players can directly
switch to their team, instead of one of them needing to spec before the
other can swap.
qcsrc/server/command/cmd.qc
qcsrc/server/teamplay.qc
xonotic-server.cfg