mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-20 00:24:49 +00:00
Skip Confirm+
This commit is contained in:
parent
a9bc48fa53
commit
be0adbecca
|
|
@ -839,7 +839,7 @@ function DMGame::sendGameVoteMenu(%game, %client, %key)
|
||||||
if(%game.scheduleVote $= "")
|
if(%game.scheduleVote $= "")
|
||||||
{
|
{
|
||||||
//echo(%client.ForceVote);
|
//echo(%client.ForceVote);
|
||||||
if(%client.ForceVote $= "skip_confirm")
|
if(%client.ForceVote $= "skip_confirm+")
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(!%isAdmin || (%isAdmin && %client.ForceVote))
|
if(!%isAdmin || (%isAdmin && %client.ForceVote))
|
||||||
|
|
|
||||||
|
|
@ -2265,7 +2265,7 @@ function LCTFGame::sendGameVoteMenu(%game, %client, %key)
|
||||||
if(%game.scheduleVote $= "")
|
if(%game.scheduleVote $= "")
|
||||||
{
|
{
|
||||||
//echo(%client.ForceVote);
|
//echo(%client.ForceVote);
|
||||||
if(%client.ForceVote $= "skip_confirm")
|
if(%client.ForceVote $= "skip_confirm+")
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(!%isAdmin || (%isAdmin && %client.ForceVote))
|
if(!%isAdmin || (%isAdmin && %client.ForceVote))
|
||||||
|
|
|
||||||
|
|
@ -1175,7 +1175,7 @@ function LakRabbitGame::sendGameVoteMenu( %game, %client, %key )
|
||||||
if( %game.scheduleVote $= "" )
|
if( %game.scheduleVote $= "" )
|
||||||
{
|
{
|
||||||
//echo(%client.ForceVote);
|
//echo(%client.ForceVote);
|
||||||
if(%client.ForceVote $= "skip_confirm")
|
if(%client.ForceVote $= "skip_confirm+")
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(!%isAdmin || (%isAdmin && %client.ForceVote))
|
if(!%isAdmin || (%isAdmin && %client.ForceVote))
|
||||||
|
|
|
||||||
|
|
@ -2006,7 +2006,7 @@ function SCtFGame::sendGameVoteMenu(%game, %client, %key)
|
||||||
if ( %game.scheduleVote $= "" )
|
if ( %game.scheduleVote $= "" )
|
||||||
{
|
{
|
||||||
//echo(%client.ForceVote);
|
//echo(%client.ForceVote);
|
||||||
if(%client.ForceVote $= "skip_confirm")
|
if(%client.ForceVote $= "skip_confirm+")
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(!%isAdmin || (%isAdmin && %client.ForceVote))
|
if(!%isAdmin || (%isAdmin && %client.ForceVote))
|
||||||
|
|
|
||||||
|
|
@ -41,11 +41,13 @@ function DefaultGame::sendGameVoteMenu(%game, %client, %key)
|
||||||
%multipleTeams = %game.numTeams > 1;
|
%multipleTeams = %game.numTeams > 1;
|
||||||
%client.k = %key; //For set next mission
|
%client.k = %key; //For set next mission
|
||||||
|
|
||||||
if (%client.ForceVote > 0)
|
if(%client.ForceVote > 0)
|
||||||
%client.ForceVote = %client.ForceVote - 1;
|
%client.ForceVote = %client.ForceVote - 1;
|
||||||
|
if(%client.ForceVote $= "skip_confirm+")
|
||||||
|
%client.ForceVote = 0;
|
||||||
|
|
||||||
//Admin Submenu
|
//Admin Submenu
|
||||||
if (%client.ForceVote > 0)
|
if(%client.ForceVote > 0)
|
||||||
{
|
{
|
||||||
if(!$Host::TournamentMode)
|
if(!$Host::TournamentMode)
|
||||||
messageClient(%client, 'MsgVoteItem', "", %key, 'VoteTournamentMode', 'change server to Tournament.', 'Vote Tournament Mode');
|
messageClient(%client, 'MsgVoteItem', "", %key, 'VoteTournamentMode', 'change server to Tournament.', 'Vote Tournament Mode');
|
||||||
|
|
@ -67,6 +69,7 @@ function DefaultGame::sendGameVoteMenu(%game, %client, %key)
|
||||||
{
|
{
|
||||||
messageClient(%client, 'MsgVoteItem', "", %key, 'VoteSkipConfirm', 'Are you sure you want to Skip the Mission?','Are you sure you want to Skip the Mission?');
|
messageClient(%client, 'MsgVoteItem', "", %key, 'VoteSkipConfirm', 'Are you sure you want to Skip the Mission?','Are you sure you want to Skip the Mission?');
|
||||||
messageClient(%client, 'MsgVoteItem', "", %key, 'VoteSkipMission', 'Yes, Skip the Mission', 'Yes, Skip the Mission' );
|
messageClient(%client, 'MsgVoteItem', "", %key, 'VoteSkipMission', 'Yes, Skip the Mission', 'Yes, Skip the Mission' );
|
||||||
|
%client.ForceVote = "skip_confirm+";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -554,13 +557,13 @@ function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, %
|
||||||
}
|
}
|
||||||
|
|
||||||
case "VoteSkipConfirm":
|
case "VoteSkipConfirm":
|
||||||
if(%isAdmin && %client.ForceVote !$= "skip_confirm")
|
if(%client.ForceVote $= "skip_confirm+")
|
||||||
|
%client.ForceVote = 0;
|
||||||
|
else if(%isAdmin && %client.ForceVote !$= "skip_confirm")
|
||||||
{
|
{
|
||||||
%client.ForceVote = "skip_confirm";
|
%client.ForceVote = "skip_confirm";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
%client.ForceVote = 0;
|
|
||||||
|
|
||||||
case "VoteSkipMission":
|
case "VoteSkipMission":
|
||||||
if((!%isAdmin && $Host::AllowPlayerVoteSkipMission) || (%isAdmin && %client.ForceVote))
|
if((!%isAdmin && $Host::AllowPlayerVoteSkipMission) || (%isAdmin && %client.ForceVote))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue