Updated notes

This commit is contained in:
ChocoTaco 2021-07-17 11:01:42 -04:00
parent 8a0f3ae763
commit cd954d6c3e

View file

@ -3,7 +3,7 @@
// Dont allow the match to end if a time vote is pending // Dont allow the match to end if a time vote is pending
// Or if the timelimit has changed // Or if the timelimit has changed
// //
// Changes were also made in the Evo Admin.ovl and DefaultGame.ovl // Changes were also made in how time votes are handled in scripts/autoexec/VoteMenu.cs
// DefaultGame::voteChangeMission, DefaultGame::voteChangeTimeLimit, serverCmdStartNewVote // DefaultGame::voteChangeMission, DefaultGame::voteChangeTimeLimit, serverCmdStartNewVote
// //
// The VoteChangeTimeLimit functions in evo dictate VOStatus conditions // The VoteChangeTimeLimit functions in evo dictate VOStatus conditions
@ -25,7 +25,7 @@ function DefaultGame::checkTimeLimit(%game, %forced)
%game.timeCheck = %game.schedule(20000, "checkTimeLimit"); %game.timeCheck = %game.schedule(20000, "checkTimeLimit");
return; return;
} }
%curTimeLeftMS = ($Host::TimeLimit * 60 * 1000) + $missionStartTime - getSimTime(); %curTimeLeftMS = ($Host::TimeLimit * 60 * 1000) + $missionStartTime - getSimTime();
if (%curTimeLeftMS <= 0) if (%curTimeLeftMS <= 0)
@ -43,9 +43,9 @@ function DefaultGame::checkTimeLimit(%game, %forced)
} }
case InProgress: case InProgress:
//Do Nothing //Do Nothing
case TimeChanged: case TimeChanged:
//Do Nothing //Do Nothing
case Normal: case Normal:
// time's up, put down your pencils // time's up, put down your pencils
%game.timeLimitReached(); %game.timeLimitReached();
} }
@ -65,7 +65,7 @@ function DefaultGame::checkTimeLimit(%game, %forced)
function DefaultGame::gameOver(%game) function DefaultGame::gameOver(%game)
{ {
Parent::gameOver(%game); Parent::gameOver(%game);
//Reset everything to do with Vote Overtime //Reset everything to do with Vote Overtime
ResetVOall(%game); ResetVOall(%game);
} }
@ -95,4 +95,4 @@ function ResetVOall(%game)
// Prevent package from being activated if it is already // Prevent package from being activated if it is already
if (!isActivePackage(VoteOverTime)) if (!isActivePackage(VoteOverTime))
activatePackage(VoteOverTime); activatePackage(VoteOverTime);