This commit is contained in:
ChocoTaco1 2021-03-06 02:34:22 -05:00
parent 7da510530e
commit c8a2205caa

View file

@ -171,11 +171,6 @@ function DefaultGame::sendGameVoteMenu(%game, %client, %key)
messageClient(%client, 'MsgVoteItem', "", %key, 'TogglePUGpassword', 'Disable PUG Password', 'Disable PUG Password');
else
messageClient(%client, 'MsgVoteItem', "", %key, 'TogglePUGpassword', 'Enable PUG Password', 'Enable PUG Password');
if(!$IFFColors)
messageClient(%client, 'MsgVoteItem', "", %key, 'ToggleIFFColors', 'Enable Alt IFF Colors', 'Enable Alt IFF Colors');
else
messageClient(%client, 'MsgVoteItem', "", %key, 'ToggleIFFColors', 'Disable Alt IFF Colors', 'Disable Alt IFF Colors');
}
// if(%multipleTeams)
// {
@ -547,27 +542,7 @@ function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, %
adminLog(%client, " has enabled Net Tourney Client checking.");
}
}
return;
case "ToggleIFFColors":
if (%client.isAdmin && $Host::TournamentMode)
{
if(!$IFFColors)
{
// Red Green Blue Alpha - may need some fine tuning
setSensorGroupColor(0, 1 << 1, "0 0 255 255");
setSensorGroupColor(0, 1 << 2, "255 0 0 255");
$IFFColors = 1;
messageClient( %client, '', "Alternate IFF Colors have been enabled. (This will Reset after every match)~wfx/powered/vehicle_screen_on.wav" );
}
else
{
// Red Green Blue Alpha - may need some fine tuning
setSensorGroupColor(0, 1 << 1, "0 255 0 255");
setSensorGroupColor(0, 1 << 2, "255 0 0 255");
$IFFColors = 0;
messageClient( %client, '', "Alternate IFF Colors have been disabled.~wfx/powered/vehicle_screen_on.wav" );
}
}
return;
case "ForceVote":
if (%client.isAdmin && $Host::AllowAdminVotes)
{
@ -705,10 +680,6 @@ function DefaultGame::gameOver(%game)
//Reset ClassicMaxMapChangeVotes
deleteVariables("$CMHasVoted*"); // Eolk - let people who have voted vote again
//Reset IFF Colors
if($IFFColors)
$IFFColors = 0;
}
function DefaultGame::cancelMatchStart(%game, %admin)