mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-15 08:04:39 +00:00
Oops
Forgot to add NoBaseRapeNotify
This commit is contained in:
parent
81585f4a72
commit
34ca01b20b
1 changed files with 62 additions and 0 deletions
|
|
@ -278,6 +278,68 @@ if (!isActivePackage(ResetTBNGameOver))
|
||||||
activatePackage(ResetTBNGameOver);
|
activatePackage(ResetTBNGameOver);
|
||||||
|
|
||||||
|
|
||||||
|
// No Base Rape Notify Script
|
||||||
|
//
|
||||||
|
// Notifys clients if NoBase rape is on or off.
|
||||||
|
//
|
||||||
|
// Enable or Disable
|
||||||
|
// $Host::EnableNoBaseRapeNotify = 1;
|
||||||
|
//
|
||||||
|
|
||||||
|
// Called in GetTeamCounts.cs
|
||||||
|
function NBRStatusNotify( %game )
|
||||||
|
{
|
||||||
|
if( $Host::EnableNoBaseRapeNotify && $Host::NoBaseRapeEnabled )
|
||||||
|
{
|
||||||
|
//On
|
||||||
|
if( $Host::NoBaseRapePlayerCount > $TotalTeamPlayerCount )
|
||||||
|
{
|
||||||
|
if( $NBRStatus !$= "PLAYEDON" )
|
||||||
|
$NBRStatus = "ON";
|
||||||
|
}
|
||||||
|
//Off
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if( $NBRStatus !$= "PLAYEDOFF" )
|
||||||
|
$NBRStatus = "OFF";
|
||||||
|
}
|
||||||
|
|
||||||
|
switch$($NBRStatus)
|
||||||
|
{
|
||||||
|
case ON:
|
||||||
|
messageAll('MsgNoBaseRapeNotify', '\c1No Base Rape: \c0Enabled.');
|
||||||
|
$NBRStatus = "PLAYEDON";
|
||||||
|
case OFF:
|
||||||
|
messageAll('MsgNoBaseRapeNotify', '\c1No Base Rape: \c0Disabled.~wfx/misc/diagnostic_on.wav');
|
||||||
|
$NBRStatus = "PLAYEDOFF";
|
||||||
|
case PLAYEDON:
|
||||||
|
//Do Nothing
|
||||||
|
case PLAYEDOFF:
|
||||||
|
//Do Nothing
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Reset gameover
|
||||||
|
package ResetNBRNotify
|
||||||
|
{
|
||||||
|
|
||||||
|
function DefaultGame::gameOver(%game)
|
||||||
|
{
|
||||||
|
Parent::gameOver(%game);
|
||||||
|
|
||||||
|
//Reset NoBaseRapeNotify
|
||||||
|
$NBRStatus = "IDLE";
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
// Prevent package from being activated if it is already
|
||||||
|
if (!isActivePackage(ResetNBRNotify))
|
||||||
|
activatePackage(ResetNBRNotify);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Team Autobalance Script
|
// Team Autobalance Script
|
||||||
//
|
//
|
||||||
// Determines which team needs players and proceeds to switch them
|
// Determines which team needs players and proceeds to switch them
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue