mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-03-09 06:30:29 +00:00
Proper Overrides
Moved some things around so its easier to find using proper overrides instead of inserting code in random places. Works the same way.
This commit is contained in:
parent
d10d3cb1e9
commit
083af158ae
7 changed files with 153 additions and 35 deletions
|
|
@ -24,7 +24,7 @@ function TeamBalanceNotify( %game, %team1difference, %team2difference )
|
|||
{
|
||||
//Reset Balanced.
|
||||
$BalancedMsgPlayed = 0;
|
||||
|
||||
|
||||
if( %team1difference >= 2 || %team2difference >= 2 )
|
||||
{
|
||||
if( $UnbalancedMsgPlayed !$= 1)
|
||||
|
|
@ -98,10 +98,28 @@ function UnbalancedSound( %game )
|
|||
}
|
||||
|
||||
|
||||
//Reset Notify at defaultgame::gameOver in evo defaultgame.ovl
|
||||
// Reset Notify
|
||||
function ResetTeamBalanceNotifyGameOver()
|
||||
{
|
||||
//Reset All TeamBalance Variables
|
||||
$BalancedMsgPlayed = -1;
|
||||
$UnbalancedMsgPlayed = -1;
|
||||
}
|
||||
}
|
||||
|
||||
// Reset every map change
|
||||
package ResetTeamBalanceNotify
|
||||
{
|
||||
|
||||
function DefaultGame::gameOver(%game)
|
||||
{
|
||||
Parent::gameOver(%game);
|
||||
|
||||
//Reset All TeamBalance Variables
|
||||
ResetTeamBalanceNotifyGameOver();
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
// Prevent package from being activated if it is already
|
||||
if (!isActivePackage(ResetTeamBalanceNotify))
|
||||
activatePackage(ResetTeamBalanceNotify);
|
||||
Loading…
Add table
Add a link
Reference in a new issue