Update Autobalance.cs

This commit is contained in:
ChocoTaco1 2021-04-02 17:46:37 -04:00
parent f72e3dcfd1
commit edad129836

View file

@ -61,9 +61,6 @@ function Autobalance( %game )
//Select lower half of team rank as canidates for team change
if(!$Autobalance::UseAllMode)
{
//Reset clients canidate var
ResetABClients();
$Autobalance::Max = mFloor($TeamRank[$BigTeam, count]/2);
for(%i = $Autobalance::Max; %i < $TeamRank[$BigTeam, count]; %i++)
{
@ -127,14 +124,17 @@ function DefaultGame::gameOver(%game)
{
Parent::gameOver(%game);
//Reset Autobalance
$BigTeam = "";
//Reset all clients canidate var
for (%i = 0; %i < ClientGroup.getCount(); %i++)
if($CurrentMissionType $= "CTF" || $CurrentMissionType $= "SCtF")
{
%client = ClientGroup.getObject(%i);
%client.abCanidate = false;
//Reset Autobalance
$BigTeam = "";
//Reset all clients canidate var
for (%i = 0; %i < ClientGroup.getCount(); %i++)
{
%client = ClientGroup.getObject(%i);
%client.abCanidate = false;
}
}
}