Here is a proposition to make a teambalancer, maybe admins will see it and will get inspired !
So, if you connect to this page (http://www.gametracker.com/server_info/ ... p_players/) you can see all players' stats. Balance teams is not that difficult, like everyone seems to think. The idea is simple.
Teams are balanced when the sum of the "levels" of all players of Team A is about the same as the sum of "levels" of all players of Team B. It is hard to know exactly the level of a player but we can calculate something close to, and we actually get it on the page : the score/min. So, let the level of a player be his score/min.
I don't know wich data structure are used by UT so I will just write a pseudo code (inspired by an article found on wikipedia (told you it is very simple, anyway..)) :
Code: Select all
var S = array containing all players online
var A = empty array of players
var B = empty array of players
var a = integer
var b = integer
begin
Sort players in S by level in ascending order
a := 0
b := 0
for each element i of S :
if a <= b
add i to A
a = a+level of i
else
add i to B
b = b+level of i
end if
end for
end