From e4483ab58b7fef574791df3920084c68eeb484eb Mon Sep 17 00:00:00 2001 From: ChocoTaco1 Date: Tue, 7 Jun 2022 19:37:51 -0400 Subject: [PATCH] 30 Minutes Only Tournament Mode --- Classic/scripts/autoexec/VoteMenu.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Classic/scripts/autoexec/VoteMenu.cs b/Classic/scripts/autoexec/VoteMenu.cs index eb3aff3..08fb656 100644 --- a/Classic/scripts/autoexec/VoteMenu.cs +++ b/Classic/scripts/autoexec/VoteMenu.cs @@ -419,12 +419,19 @@ function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, % return; } - if($CurrentMissionType $= "Siege") // Can't change time in this one + if($CurrentMissionType $= "Siege") // Can't change time in this one { messageClient(%client, "", "\c2Cannot change the time limit in this gametype."); return; } + // 30 minutes Only in Tournament mode + if($Host::TournamentMode && %arg1 !$= "30") + { + messageClient(%client, "", "\c2Only 30 minute time limit allowed in tournament mode."); + return; + } + // Eolk - don't let votes/admins end the map immediately by switching the time limit below the elapsed time if((%arg1 * 60 * 1000) < (getSimTime() - $missionStartTime)) {