mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-19 16:14:44 +00:00
Overtime Bug
This commit is contained in:
parent
1e6ad89251
commit
9aea8e23a6
|
|
@ -1266,8 +1266,9 @@ function CTFGame::checkTimeLimit(%game, %forced)
|
|||
{
|
||||
%teamOneCaps = mFloor($TeamScore[1] / %game.SCORE_PER_TEAM_FLAG_CAP);
|
||||
%teamTwoCaps = mFloor($TeamScore[2] / %game.SCORE_PER_TEAM_FLAG_CAP);
|
||||
if(%teamOneCaps == %teamTwoCaps && $CTF::Overtime && $Host::TournamentMode){ //Setting exists
|
||||
if(!%game.overtime){
|
||||
if(%teamOneCaps == %teamTwoCaps && $CTF::Overtime && (($TeamRank[1, count] + $TeamRank[2, count]) > 6)){
|
||||
if(!%game.overtime)
|
||||
{
|
||||
%game.overtime = 1;
|
||||
if($CTF::Overtime > 1){ %s = "s"; }
|
||||
messageAll('MsgOvertime', '\c2Sudden-Death Overtime Initiated: %1 Minute%2 Remaining~wfx/powered/turret_heavy_activate.wav', $CTF::Overtime, %s);
|
||||
|
|
@ -1277,14 +1278,15 @@ function CTFGame::checkTimeLimit(%game, %forced)
|
|||
%game.timeCheck = %game.schedule($CTF::Overtime * 60 * 1000, "timeLimitReached");
|
||||
}
|
||||
}
|
||||
else{
|
||||
if(%game.scheduleVote !$= ""){
|
||||
if(!%game.voteOT){
|
||||
messageAll('MsgOvertime', '\c2Vote Overtime Initiated.~wfx/powered/turret_heavy_activate.wav');
|
||||
%game.voteOT = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(%game.scheduleVote !$= "" && !%game.voteOT)
|
||||
{
|
||||
messageAll('MsgOvertime', '\c2Vote Overtime Initiated.~wfx/powered/turret_heavy_activate.wav');
|
||||
%game.voteOT = 1;
|
||||
}
|
||||
else{
|
||||
else
|
||||
{
|
||||
%game.timeLimitReached();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1566,8 +1566,9 @@ function LCTFGame::checkTimeLimit(%game, %forced)
|
|||
{
|
||||
%teamOneCaps = mFloor($TeamScore[1] / %game.SCORE_PER_TEAM_FLAG_CAP);
|
||||
%teamTwoCaps = mFloor($TeamScore[2] / %game.SCORE_PER_TEAM_FLAG_CAP);
|
||||
if(%teamOneCaps == %teamTwoCaps && $LCTF::Overtime && $Host::TournamentMode){ //Setting exists
|
||||
if(!%game.overtime){
|
||||
if(%teamOneCaps == %teamTwoCaps && $LCTF::Overtime && (($TeamRank[1, count] + $TeamRank[2, count]) > 6)){
|
||||
if(!%game.overtime)
|
||||
{
|
||||
%game.overtime = 1;
|
||||
if($LCTF::Overtime > 1){ %s = "s"; }
|
||||
messageAll('MsgOvertime', '\c2Sudden-Death Overtime Initiated: %1 Minute%2 Remaining~wfx/powered/turret_heavy_activate.wav', $LCTF::Overtime, %s);
|
||||
|
|
@ -1577,14 +1578,15 @@ function LCTFGame::checkTimeLimit(%game, %forced)
|
|||
%game.timeCheck = %game.schedule($LCTF::Overtime * 60 * 1000, "timeLimitReached");
|
||||
}
|
||||
}
|
||||
else{
|
||||
if(%game.scheduleVote !$= ""){
|
||||
if(!%game.voteOT){
|
||||
messageAll('MsgOvertime', '\c2Vote Overtime Initiated.~wfx/powered/turret_heavy_activate.wav');
|
||||
%game.voteOT = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(%game.scheduleVote !$= "" && !%game.voteOT)
|
||||
{
|
||||
messageAll('MsgOvertime', '\c2Vote Overtime Initiated.~wfx/powered/turret_heavy_activate.wav');
|
||||
%game.voteOT = 1;
|
||||
}
|
||||
else{
|
||||
else
|
||||
{
|
||||
%game.timeLimitReached();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue