2018-08-07 02:50:49 -04:00
|
|
|
//Make a sound every so seconds to make sure everyone votes
|
2019-02-12 21:48:53 -05:00
|
|
|
//
|
2019-02-20 17:59:45 -05:00
|
|
|
//Enable or Disable VoteSound
|
|
|
|
|
//$Host::EnableVoteSound = 1;
|
|
|
|
|
//
|
|
|
|
|
//%VotesoundRandom must match $VoteSoundRandom to prevent duplicate messages
|
|
|
|
|
//$VoteSoundRandom is generated everytime a vote starts and if it doesnt match an ongoing schedule does not play.
|
2018-12-04 18:41:06 -05:00
|
|
|
|
2019-02-20 17:59:45 -05:00
|
|
|
function VoteSound( %game, %typename, %arg1, %arg2, %VoteSoundRandom )
|
|
|
|
|
{
|
|
|
|
|
if( $VoteSoundInProgress && $Host::EnableVoteSound && $VoteSoundRandom $= %VoteSoundRandom )
|
2018-12-04 18:41:06 -05:00
|
|
|
{
|
2019-03-15 12:39:00 -04:00
|
|
|
switch$(%typename)
|
2019-02-23 01:03:10 -05:00
|
|
|
{
|
2019-03-15 12:39:00 -04:00
|
|
|
case "VoteChangeMission":
|
|
|
|
|
messageAll('', '\c1Vote in Progress: \c0To change the mission to %1 (%2). Press Insert for Yes or Delete for No.~wgui/objective_notification.wav', %arg1, %arg2 );
|
|
|
|
|
|
|
|
|
|
case "VoteSkipMission":
|
|
|
|
|
messageAll('', '\c1Vote in Progress: \c0To skip the mission to %1. Press Insert for Yes or Delete for No.~wgui/objective_notification.wav', $EvoCachedNextMission );
|
|
|
|
|
|
|
|
|
|
case "VoteChangeTimeLimit":
|
|
|
|
|
if(%arg1 $= "999") %arg1 = "unlimited";
|
|
|
|
|
messageAll('', '\c1Vote in Progress: \c0To change the time limit to %1. Press Insert for Yes or Delete for No.~wgui/objective_notification.wav', %arg1 );
|
|
|
|
|
|
|
|
|
|
case "VoteKickPlayer":
|
|
|
|
|
messageAll('', '\c1Vote in Progress: \c0To kick player %1. Press Insert for Yes or Delete for No.~wgui/objective_notification.wav', %arg1.name );
|
|
|
|
|
|
|
|
|
|
case "VoteTournamentMode":
|
|
|
|
|
messageAll('', '\c1Vote in Progress: \c0To change the mission to Tournament Mode (%1). Press Insert for Yes or Delete for No.~wgui/objective_notification.wav', %arg1, %arg2 );
|
2019-02-23 01:03:10 -05:00
|
|
|
}
|
2019-02-20 17:59:45 -05:00
|
|
|
|
|
|
|
|
schedule(12000, 0, "VoteSound", %game, %typename, %arg1, %arg2, %VoteSoundRandom);
|
2018-08-07 02:50:49 -04:00
|
|
|
}
|
|
|
|
|
}
|