help with team balance

Host your own server and communicate with server operators.
4 posts Page 1 of 1 First unread post
sil80
Deuce
Posts: 4
Joined: Sun Jul 03, 2022 4:24 pm


How do i balance teams? I have found "balanced_teams": 2 in config file, but i dont know how to use it.
Deleted User
Deuce
Posts: 10
Joined: Wed Jun 23, 2021 1:42 pm


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
sil80
Deuce
Posts: 4
Joined: Sun Jul 03, 2022 4:24 pm


thank you!
Deleted User
Deuce
Posts: 10
Joined: Wed Jun 23, 2021 1:42 pm


No problem!
4 posts Page 1 of 1 First unread post
Return to “Servers”

Who is online

Users browsing this forum: No registered users and 1 guest