mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-14 15:44:34 +00:00
Cleaned up
This commit is contained in:
parent
7065415033
commit
dceea0853a
1 changed files with 3 additions and 9 deletions
|
|
@ -1,11 +1,8 @@
|
||||||
//Enable or Disable
|
//Enable or Disable
|
||||||
//$Host::EnableNoBaseRapeNotify = 1;
|
//$Host::EnableNoBaseRapeNotify = 1;
|
||||||
//
|
//
|
||||||
|
|
||||||
//Notifys the user if NoBase rape is on or off.
|
//Notifys the user if NoBase rape is on or off.
|
||||||
|
|
||||||
//Set First notify varible
|
|
||||||
$NoBaseRapeNotifyFirst = 0;
|
|
||||||
|
|
||||||
function NBRStatusNotify( %game, %client, %respawn )
|
function NBRStatusNotify( %game, %client, %respawn )
|
||||||
{
|
{
|
||||||
if( $CurrentMissionType $= "CTF" && $Host::EnableNoBaseRapeNotify && !$Host::TournamentMode && $Host::EvoNoBaseRapeEnabled )
|
if( $CurrentMissionType $= "CTF" && $Host::EnableNoBaseRapeNotify && !$Host::TournamentMode && $Host::EvoNoBaseRapeEnabled )
|
||||||
|
|
@ -26,10 +23,7 @@ function NBRStatusNotify( %game, %client, %respawn )
|
||||||
}
|
}
|
||||||
//Each corresponding time per map will get a sound.
|
//Each corresponding time per map will get a sound.
|
||||||
else
|
else
|
||||||
{
|
|
||||||
messageAll('MsgNoBaseRapeNotify', '\c1No Base Rape: \c0Enabled.~wfx/misc/nexus_cap.wav');
|
messageAll('MsgNoBaseRapeNotify', '\c1No Base Rape: \c0Enabled.~wfx/misc/nexus_cap.wav');
|
||||||
//messageAll('MsgNoBaseRapeNotify', '\c1No Base Rape: \c0Enabled.');
|
|
||||||
}
|
|
||||||
|
|
||||||
$NoBaseRapeNotifyCount = 0;
|
$NoBaseRapeNotifyCount = 0;
|
||||||
}
|
}
|
||||||
|
|
@ -37,8 +31,8 @@ function NBRStatusNotify( %game, %client, %respawn )
|
||||||
//Off
|
//Off
|
||||||
else if( $NoBaseRapeNotifyCount !$= 1 )
|
else if( $NoBaseRapeNotifyCount !$= 1 )
|
||||||
{
|
{
|
||||||
//messageAll('MsgNoBaseRapeNotify', 'No Base Rape is \c1Disabled.~wfx/misc/diagnostic_on.wav');
|
|
||||||
messageAll('MsgNoBaseRapeNotify', '\c1No Base Rape: \c0Disabled.~wfx/misc/diagnostic_on.wav');
|
messageAll('MsgNoBaseRapeNotify', '\c1No Base Rape: \c0Disabled.~wfx/misc/diagnostic_on.wav');
|
||||||
|
|
||||||
$NoBaseRapeNotifyCount = 1;
|
$NoBaseRapeNotifyCount = 1;
|
||||||
$NoBaseRapeNotifyFirst = 1;
|
$NoBaseRapeNotifyFirst = 1;
|
||||||
}
|
}
|
||||||
|
|
@ -50,7 +44,7 @@ function NBRStatusNotify( %game, %client, %respawn )
|
||||||
function ResetNBRNotify()
|
function ResetNBRNotify()
|
||||||
{
|
{
|
||||||
$NoBaseRapeNotifyCount = -1;
|
$NoBaseRapeNotifyCount = -1;
|
||||||
$NoBaseRapeNotifyFirst = 0;
|
$NoBaseRapeNotifyFirst = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
//This function is at StaticShapeData::damageObject(%data, %targetObject, %sourceObject, %position, %amount, %damageType)
|
//This function is at StaticShapeData::damageObject(%data, %targetObject, %sourceObject, %position, %amount, %damageType)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue