mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-16 00:24:35 +00:00
Update TeamBalanceNotify.cs
This commit is contained in:
parent
59fe9259b5
commit
5147cc3631
1 changed files with 6 additions and 6 deletions
|
|
@ -16,15 +16,15 @@ function TeamBalanceNotify(%game)
|
||||||
{
|
{
|
||||||
if( Game.numTeams > 1 && $TotalTeamPlayerCount !$= 0 )
|
if( Game.numTeams > 1 && $TotalTeamPlayerCount !$= 0 )
|
||||||
{
|
{
|
||||||
%team1difference = $TeamRank[1, count] - $TeamRank[2, count];
|
|
||||||
%team2difference = $TeamRank[2, count] - $TeamRank[1, count];
|
|
||||||
|
|
||||||
//echo("%Team1Difference " @ %team1difference);
|
|
||||||
//echo("%Team2Difference " @ %team2difference);
|
|
||||||
|
|
||||||
//Uneven
|
//Uneven
|
||||||
if($TeamRank[1, count] !$= $TeamRank[2, count])
|
if($TeamRank[1, count] !$= $TeamRank[2, count])
|
||||||
{
|
{
|
||||||
|
%team1difference = $TeamRank[1, count] - $TeamRank[2, count];
|
||||||
|
%team2difference = $TeamRank[2, count] - $TeamRank[1, count];
|
||||||
|
|
||||||
|
//echo("%Team1Difference " @ %team1difference);
|
||||||
|
//echo("%Team2Difference " @ %team2difference);
|
||||||
|
|
||||||
if( %team1difference >= 2 || %team2difference >= 2 ) //Teams are unbalanced
|
if( %team1difference >= 2 || %team2difference >= 2 ) //Teams are unbalanced
|
||||||
{
|
{
|
||||||
if( $TBNStatus !$= "NOTIFY" ) //Stops any new schedules
|
if( $TBNStatus !$= "NOTIFY" ) //Stops any new schedules
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue