Page 1 of 1

help with team balance

Posted: Tue Jul 05, 2022 1:52 pm
by sil80
How do i balance teams? I have found "balanced_teams": 2 in config file, but i dont know how to use it.

Re: help with team balance

Posted: Wed Jul 06, 2022 12:40 am
by Deleted User
Hello, looking in the source code we can check how that work, but basically that do a check when someone will join, he checks if the other team has less players than the team you is trying to join, i.g.:

* Blue has 5 players
* Green has 3 players

* balanced_teams is 2

So, you want to join on Blue, then the server will check if Green team has less players than Blue team count plus 1 and minus balanced_teams (3 < 5+1-2 = 3<4 = True), making you go to the Green team instead of Blue.

If you want to disable the team balance just set it to 16 (just a pretty high value), then will be always negative and never will balance the teams ( 3 < 5+1-16 = 3 < -10 = False).

Here is the source code:
https://github.com/NateShoffner/PySnip/ ... un.py#L387

Re: help with team balance

Posted: Wed Jul 06, 2022 3:02 pm
by sil80
thank you!

Re: help with team balance

Posted: Wed Jul 06, 2022 10:51 pm
by Deleted User
No problem!