VoteCooldown

This commit is contained in:
ChocoTaco1 2020-07-24 14:47:20 -04:00
parent c3aa660dfd
commit 713d28a994
3 changed files with 10 additions and 1 deletions

View file

@ -175,6 +175,7 @@ $Host::TN::beat = 3;
$Host::TN::echo = 1;
$Host::TournamentMode = 0;
$Host::useCustomSkins = 1;
$Host::VoteCooldown = 120;
$Host::VotePassPercent = 60;
$Host::VoteSpread = 20;
$Host::VoteTime = "45";

View file

@ -300,6 +300,12 @@ function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, %
}
case "VoteChangeTimeLimit":
if($CMHasVoted[%client.guid] >= $Host::ClassicMaxVotes && !%isAdmin)
{
messageClient(%client, "", "\c2You have exhausted your voting rights for this mission.");
return;
}
if($CurrentMissionType $= "Siege") // Can't change time in this one
{
messageClient(%client, "", "\c2Cannot change the time limit in this gametype.");
@ -328,6 +334,7 @@ function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, %
%msg = %client.nameBase @ " initiated a vote to change the time limit to " @ %time @ ".";
// VoteOvertime
StartVOTimeVote(%game);
$CMHasVoted[%client.guid]++;
}
case "VoteMatchStart":
@ -615,7 +622,7 @@ function playerStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, %tea
clearBottomPrint(%client);
%client.canVote = false;
%client.rescheduleVote = schedule(($Host::voteSpread * 1000) + ($Host::voteTime * 1000) , 0, "resetVotePrivs", %client);
%client.rescheduleVote = schedule(($Host::VoteCooldown * 1000) + ($Host::VoteTime * 1000) , 0, "resetVotePrivs", %client);
// Log Vote
voteLog(%client, %typeName, %arg1, %arg2, %arg3, %arg4);

View file

@ -193,6 +193,7 @@ $Host::AveragePings = 1;
$Host::GuidCheck = 1;
$Host::MinFlagRecordPlayerCount = 6;
$Host::ItemRespawnTime = 30;
$Host::VoteCooldown = 120;
//LakRabbit
$Host::LakRabbitUnlimitedDJ = 1; //Unlimited disc-jumps if enabled