Skip to content

Automatically keep bots balanced

terencehill requested to merge terencehill/auto-balanced_bots into master

Automatically keep bots balanced even if g_balance_teams and g_balance_teams_prevent_imbalance are off (e.g. when human players disconnect or manually change team).

Human players can still join whatever team they like if g_balance_teams and g_balance_teams_prevent_imbalance are off.

Example:

REDS:  pl+bot
BLUES: pl2+bot2

pl is much stronger than pl2 and decides to move to the blue team, teams become:

REDS:  bot
BLUES: pl+pl2+bot2

auto-balancing bots:

REDS:  bot+bot2
BLUES: pl+pl2

Another example:

REDS:  pl
BLUES: pl2+bot2

pl disconnects

REDS:  <none>
BLUES: pl2+bot2

auto-balancing bots:

REDS:  bot2
BLUES: pl2
Edited by terencehill

Merge request reports