help with team balance
How do i balance teams? I have found "balanced_teams": 2 in config file, but i dont know how to use it.
TDM server -> aos://1536342821:11717
-
Deleted User
Deuce - Posts: 11
- 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
* 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
- My servers:
- Zombie Survival -> aos://1931556250:32883
-
TC -> aos://1931556250:32887
thank you!
TDM server -> aos://1536342821:11717
-
Deleted User
Deuce - Posts: 11
- Joined: Wed Jun 23, 2021 1:42 pm
No problem!
- My servers:
- Zombie Survival -> aos://1931556250:32883
-
TC -> aos://1931556250:32887
Who is online
Users browsing this forum: No registered users and 2 guests