mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-03-09 14:40:27 +00:00
Simplified
This commit is contained in:
parent
2d3a41e19d
commit
02194d8198
1 changed files with 6 additions and 10 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue