Switched to true/false

This commit is contained in:
ChocoTaco 2018-11-10 23:11:00 -05:00
parent 7755d719e2
commit 008f7789cc
2 changed files with 24 additions and 24 deletions

View file

@ -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;
}