courgette/b3-plugin-poweradminbf3 — Issue #11: add a team balancing mechanism
Author: courgette
Created: 2011-11-01 13:33:56+00:00
State: open

this should only work for game modes having 2 teams

teams will be considered unbalanced if there are more players in one of them.

!teams will balance teams instantly
!teambalancer will start/stop scheduled team balancer

## how to pick the players to move to the other team
Different strategies could be made available. A strategy implementation consists in producing an filtered and ordered list of players. Last players in that list will be the ones to move to the other team.

Multiple strategies could be applied in a serial manner to produce the filtered ordered player list to choose from.

when applying multiple strategies, if on strategy ends up with producing an empty list, then list from previous strategy is used.

### Level immunity strategy : players above a given strategy aren't picked up
This strategy filters out players whose level is above a predefined one.

### Preserve squad strategy : do not break up squads
This strategy filters out players who are part of a squad of at least two members

### team time strategy : Latest player to join the team is the first one to be picked up
This strategy is not filtering and only sorts the players based on how long they have been in the team.
As it would be very annoying for one to be move back an forth, the team time counter is only reset when one choose to move team. In other words a player who would have join the team because of the bot would not see his team time counter reset. This is to prevent situations where a player would be moved back and forth.