Home › Forum Archive › Miscellaneous › Archives › Liam Team Balancer › Reply To: Liam Team Balancer
As a suggestion.
After balancing team numbers….
How about making the Balancer total all kills on both teams, total all deaths on both teams, then subtract the Deaths from the Wins. And then make it check the difference between both teams Values at the end of the round, If the difference is greater than the 2/3rd of the number of players in the server it places the lowest scorer on the losing team onto the winning team then looks for the a player on the winning team with a score (Kills minus Deaths) that is greater than half the initial difference between the two team values + the number of kills of the person just switched from the losing team. This chosen person is then switched to the losing team.
If the team that lost the round has the higher Team Value, only balancing based on team sizes occurs.
Example .start
Team CT Wins the round.
Teams are balanced if necessary
Check if Winning team has a greater Team Value.
Team CT = 24Kills 12Deaths
Team T = 23kills 21Deaths
Team CT Value = 12
Team T Value = 2
Lowest scorer (2Kills) from Team T is switched to Team CT.
Difference in Team Values = 10
Divide by 2 = 5
Plus Switched players kills = 7
Is there a Player on Team CT with 7+ kills?
Look for CT player with kills = to 7? Increment till a player is found.
If no player is found with 7+ kills, Switch CT player with highest Kills to Team T.
.end