I have spend the weekend finishing my port of my old team code.
It is now ported to the current 2.8.0 cvs state.
The features:
- Display current Team and Next Team in Team Selection Menu
- Player settable Teamname either set a custom teamname (with menu) , let the server assign a color teamname or the default teamname.
Note: Requires protocol addition - Removed Teamname voting (oldest player sets teamname)
- Rewrote probalistic team balancing to determistic:
1) Adjust Teams to min_team, max_team values
2) Adjust number of players per team (team_min_players, team_max_players)
3) If there are not enough players spread them equally among as many teams as possible (until min_team is reached) - The configuration will be interpreted as strict as possible.
(currently imbalances are not yet respected) - Score for team kills can be configured.
This allows positive or negative scores for both players involved.
Seems to be broken right now, but should be fixed soon.Code: Select all
# config descriptions / english text might be worse (not sure) score_die_help Amount of points you lose for being killed score_kill_help Amount of points you gain for killing someone score_die_teammate_help Amount of points you get for being killed by a teammate score_kill_teammate_help Amount of points you get for killing a teammate score_suicide_help Amount of points you get for stupidly dying score_win_help Amount of points your team gets for winning a round score_deathzone_help Amount of points you get for hitting the Death Zone # additional text messages player_win_teamfrag \1 core dumped it's own TEAM MATE \3 for \2 points.\n player_punish_teamfrag \1 lost \2 points as punishment for killing it's TEAM MATE \3 !\n player_win_teamfrag_ai \1 got \2 points for core dumping a TEAM MATE AI player.\n player_punish_teamfrag_ai \1 lost \2 points for core dumping a TEAM MATE AI player.\n player_lose_teamfrag \1 lost \2 points since it was killed by it's own TEAM MATE.\n player_luckyloser_teamfrag \1 gained \2 points since it was killed by it's own TEAM MATE.\n
- Add deterministic bot balancing
- Should single player bots be balanced like players ?
e.g. Each bot has it's own player-joinable team and the team
will be strictly configured. This would improve bot teams, but might prevent dynamically adjusting the AI for single. - Remove STL code blocks ??!?!
- What happens if teams_max=2 team_max_players=2, but the 5th player joined the server. Proposal: Add a feature for tournament "mode"
by having more than 2 teams on the server but just setting two teams to alive. (Should be possible?)
My code uses STL is this ok ? I tried to use tList/tArray but I could not sort the list then.
Tried to make it short ... but it was long winded again .
joda.bot