Simplified

This commit is contained in:
ChocoTaco 2019-03-31 17:49:13 -04:00
parent 2d3a41e19d
commit 02194d8198

View file

@ -52,16 +52,9 @@ function GetTeamCounts( %game, %client, %respawn )
%client = ClientGroup.getObject(%i);
//Pick a client for autobalance
if( %client.team == 1)
{
if(%client.score <= %lastclient1.score || %lastclient1 $= "") $team1canidate = %client;
%lastclient1 = %client;
}
if( %client.team == 2)
{
if(%client.score <= %lastclient2.score || %lastclient2 $= "") $team2canidate = %client;
%lastclient2 = %client;
}
%team = %client.team;
if(%client.score <= %lastclient[%team].score || %lastclient[%team] $= "") %teamcanidate[%team] = %client;
%lastclient[%team] = %client;
//Check ver
if(!%client.isAIControlled()) //No bots
@ -71,6 +64,9 @@ function GetTeamCounts( %game, %client, %respawn )
$PlayerCount[%client.team]++;
}
$team1canidate = %teamcanidate1;
$team2canidate = %teamcanidate2;
//echo ("$PlayerCount[0] " @ $PlayerCount[0]);
//echo ("$PlayerCount[1] " @ $PlayerCount[1]);
//echo ("$PlayerCount[2] " @ $PlayerCount[2]);