//Enable or Disable //$Host::EnableNoBaseRapeNotify = 1; // //Notifys the user if NoBase rape is on or off. function NBRStatusNotify( %game, %client, %respawn ) { if( $CurrentMissionType $= "CTF" && $Host::EnableNoBaseRapeNotify && !$Host::TournamentMode && $Host::EvoNoBaseRapeEnabled ) { //echo ("%client " @ %client); //echo ("$TeamBalanceClient " @ $TeamBalanceClient); //On if( $Host::EvoNoBaseRapeClassicPlayerCount > $TotalTeamPlayerCount ) { if( $NoBaseRapeNotifyCount !$= 0 ) { //messageAll('MsgNoBaseRapeNotify', 'No Base Rape is \c1Enabled.~wfx/misc/nexus_cap.wav'); messageAll('MsgNoBaseRapeNotify', 'No Base Rape is \c1Enabled.'); $NoBaseRapeNotifyCount = 0; } } //Off else if( $NoBaseRapeNotifyCount !$= 1 ) { //messageAll('MsgNoBaseRapeNotify', 'No Base Rape is \c1Disabled.~wfx/misc/diagnostic_on.wav'); messageAll('MsgNoBaseRapeNotify', 'No Base Rape is \c1Disabled.'); $NoBaseRapeNotifyCount = 1; } } } //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 function NBRAssetSound( %game, %sourceObject ) { messageClient(%sourceObject.client, 'MsgNoBaseRapeNotify', '~wfx/misc/diagnostic_beep.wav'); }