mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-02-04 23:50:59 +00:00
Updated notes
This commit is contained in:
parent
8a0f3ae763
commit
cd954d6c3e
|
|
@ -3,7 +3,7 @@
|
|||
// Dont allow the match to end if a time vote is pending
|
||||
// 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
|
||||
//
|
||||
// The VoteChangeTimeLimit functions in evo dictate VOStatus conditions
|
||||
|
|
@ -25,7 +25,7 @@ function DefaultGame::checkTimeLimit(%game, %forced)
|
|||
%game.timeCheck = %game.schedule(20000, "checkTimeLimit");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
%curTimeLeftMS = ($Host::TimeLimit * 60 * 1000) + $missionStartTime - getSimTime();
|
||||
|
||||
if (%curTimeLeftMS <= 0)
|
||||
|
|
@ -43,9 +43,9 @@ function DefaultGame::checkTimeLimit(%game, %forced)
|
|||
}
|
||||
case InProgress:
|
||||
//Do Nothing
|
||||
case TimeChanged:
|
||||
case TimeChanged:
|
||||
//Do Nothing
|
||||
case Normal:
|
||||
case Normal:
|
||||
// time's up, put down your pencils
|
||||
%game.timeLimitReached();
|
||||
}
|
||||
|
|
@ -65,7 +65,7 @@ function DefaultGame::checkTimeLimit(%game, %forced)
|
|||
function DefaultGame::gameOver(%game)
|
||||
{
|
||||
Parent::gameOver(%game);
|
||||
|
||||
|
||||
//Reset everything to do with Vote Overtime
|
||||
ResetVOall(%game);
|
||||
}
|
||||
|
|
@ -95,4 +95,4 @@ function ResetVOall(%game)
|
|||
|
||||
// Prevent package from being activated if it is already
|
||||
if (!isActivePackage(VoteOverTime))
|
||||
activatePackage(VoteOverTime);
|
||||
activatePackage(VoteOverTime);
|
||||
|
|
|
|||
Loading…
Reference in a new issue