mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-02-28 02:13:35 +00:00
Switched to true/false
This commit is contained in:
parent
7755d719e2
commit
008f7789cc
2 changed files with 24 additions and 24 deletions
|
|
@ -10,20 +10,27 @@ function NBRStatusNotify( %game, %client, %respawn )
|
|||
//echo ("$TeamBalanceClient " @ $TeamBalanceClient);
|
||||
|
||||
//On
|
||||
if( !$Host::TournamentMode && $Host::EvoNoBaseRapeEnabled && $Host::EvoNoBaseRapeClassicPlayerCount > $TotalTeamPlayerCount && $NoBaseRapeNotifyCount !$= 0 )
|
||||
if( !$Host::TournamentMode && $Host::EvoNoBaseRapeEnabled && $Host::EvoNoBaseRapeClassicPlayerCount > $TotalTeamPlayerCount && $NoBaseRapeNotifyCount )
|
||||
{
|
||||
messageAll('MsgNoBaseRapeNotify', 'No Base Rape is \c1Enabled.~wfx/misc/nexus_cap.wav');
|
||||
$NoBaseRapeNotifyCount = 0;
|
||||
$NoBaseRapeNotifyCount = false;
|
||||
}
|
||||
//Off
|
||||
else if( $NoBaseRapeNotifyCount !$= 1 )
|
||||
else if( !$NoBaseRapeNotifyCount )
|
||||
{
|
||||
messageAll('MsgNoBaseRapeNotify', 'No Base Rape is \c1Disabled.~wfx/misc/diagnostic_on.wav');
|
||||
$NoBaseRapeNotifyCount = 1;
|
||||
$NoBaseRapeNotifyCount = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//This function is at DefaultGame::gameOver(%game) CTFGame.cs
|
||||
//Resets the client NotifyCount when the mission ends
|
||||
function ResetNBRNotify()
|
||||
{
|
||||
$NoBaseRapeNotifyCount = -1;
|
||||
}
|
||||
|
||||
//This function is at StaticShapeData::damageObject(%data, %targetObject, %sourceObject, %position, %amount, %damageType)
|
||||
//In the staticshape.ovl in evoClassic.vl2
|
||||
//Plays a sound when a player hits a protected asset
|
||||
|
|
@ -32,11 +39,4 @@ function NBRAssetSound( %game, %sourceObject )
|
|||
messageClient(%sourceObject.client, 'MsgNoBaseRapeNotify', '~wfx/misc/diagnostic_beep.wav');
|
||||
}
|
||||
|
||||
//This function is at DefaultGame::gameOver(%game) CTFGame.cs
|
||||
//Resets the client NotifyCount when the mission ends
|
||||
function ResetNBRNotify()
|
||||
{
|
||||
$NoBaseRapeNotifyCount = -1;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue