From 98a85d26f44cbb5a757cc030466a62e0ac5a5054 Mon Sep 17 00:00:00 2001 From: ChocoTaco Date: Wed, 6 Feb 2019 13:39:36 -0500 Subject: [PATCH] Added Annotations --- Classic/scripts/autoexec/Autobalance.cs | 8 +++++++- Classic/scripts/autoexec/TeamBalanceNotify.cs | 11 +++++++---- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/Classic/scripts/autoexec/Autobalance.cs b/Classic/scripts/autoexec/Autobalance.cs index 0eb04ca..6f4b149 100644 --- a/Classic/scripts/autoexec/Autobalance.cs +++ b/Classic/scripts/autoexec/Autobalance.cs @@ -1,4 +1,10 @@ -//Fire Autobalance +// Enable or Disable Autobalance +// $Host::EnableAutobalance = 1; +// +// Run from TeamBalanceNotify.cs via StatsUnbalanceSound( %game ) +// Getting random client aspects run in GetTeamCounts.cs +// +// Fire Autobalance function Autobalance( %game, %AutobalanceSafetynetTrys ) { if( $CurrentMissionType !$= "LakRabbit" && $Host::EnableTeamBalanceNotify && $StatsMsgPlayed $= 1 && !$Host::TournamentMode ) diff --git a/Classic/scripts/autoexec/TeamBalanceNotify.cs b/Classic/scripts/autoexec/TeamBalanceNotify.cs index 64be1da..8d9b07c 100644 --- a/Classic/scripts/autoexec/TeamBalanceNotify.cs +++ b/Classic/scripts/autoexec/TeamBalanceNotify.cs @@ -1,8 +1,11 @@ -//Enable or Disable -//$Host::EnableTeamBalanceNotify = 1; +// Enable or Disable +// $Host::EnableTeamBalanceNotify = 1; +// Enable or Disable Autobalance +// $Host::EnableAutobalance = 1; // -//Give the client a notification on the current state of balancing. -//This function is in GetTeamCounts.cs +// Give the client a notification on the current state of balancing. +// +// This function is in GetTeamCounts.cs function TeamBalanceNotify( %game ) { if( $CurrentMissionType !$= "LakRabbit" && $TotalTeamPlayerCount !$= 0 && $Host::EnableTeamBalanceNotify && !$Host::TournamentMode )