This commit is contained in:
ChocoTaco1 2020-08-22 16:57:41 -04:00
parent 95b7acb9b7
commit b2af77f9de

View file

@ -41,6 +41,9 @@ function Autobalance( %game, %AutobalanceSafetynetTrys )
//Toggle for All Mode //Toggle for All Mode
//If a team is behind pick anyone, not just a low scoring player //If a team is behind pick anyone, not just a low scoring player
if( $TeamScore[%bigTeam] > ($TeamScore[%littleTeam] + $AllModeThreshold)) if( $TeamScore[%bigTeam] > ($TeamScore[%littleTeam] + $AllModeThreshold))
%UseAllMode = 1;
if(%UseAllMode)
{ {
//We need to find out how many people are on a team holding flags and in vehicles to make the proper exceptions in the loop //We need to find out how many people are on a team holding flags and in vehicles to make the proper exceptions in the loop
for(%i = 0; %i < ClientGroup.getCount(); %i++) for(%i = 0; %i < ClientGroup.getCount(); %i++)
@ -56,7 +59,6 @@ function Autobalance( %game, %AutobalanceSafetynetTrys )
} }
} }
%UseAllMode = 1;
%autobalanceRandom = getRandom(1,($TeamRank[%bigTeam, count] - %exceptioncount)); %autobalanceRandom = getRandom(1,($TeamRank[%bigTeam, count] - %exceptioncount));
} }
@ -153,9 +155,9 @@ function AutobalanceDebug(%teamcanidate1, %teamcanidate2, %team1difference, %tea
} }
if(%UseAllMode) if(%UseAllMode)
%mode = "All Mode"; %mode = "All";
else else
%mode = "Low Mode"; %mode = "Low";
if( %teamcanidate1 $= "" ) if( %teamcanidate1 $= "" )
%teamcanidate1 = "NULL"; %teamcanidate1 = "NULL";