mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-16 08:34:43 +00:00
Tweaks
This commit is contained in:
parent
95b7acb9b7
commit
b2af77f9de
1 changed files with 7 additions and 5 deletions
|
|
@ -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";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue