mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-15 16:14:35 +00:00
VO Tweaks
This commit is contained in:
parent
715fa822a6
commit
b900cfb4b1
1 changed files with 26 additions and 2 deletions
|
|
@ -31,7 +31,7 @@ function DefaultGame::checkTimeLimit(%game, %forced)
|
||||||
}
|
}
|
||||||
else if( $missionRunning && $VoteInProgress && !$TimeLimitChanged ) {
|
else if( $missionRunning && $VoteInProgress && !$TimeLimitChanged ) {
|
||||||
//Restart the function so the map can end if the Vote doesnt pass.
|
//Restart the function so the map can end if the Vote doesnt pass.
|
||||||
schedule(1000, 0, "RestartcheckTimeLimit", %game, %forced);
|
schedule(2000, 0, "RestartcheckTimeLimit", %game, %forced);
|
||||||
|
|
||||||
//Messege
|
//Messege
|
||||||
if( !$VoteInProgressMessege ) {
|
if( !$VoteInProgressMessege ) {
|
||||||
|
|
@ -52,12 +52,36 @@ function DefaultGame::checkTimeLimit(%game, %forced)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
function RestartcheckTimeLimit(%game, %forced)
|
function RestartcheckTimeLimit(%game, %forced)
|
||||||
{
|
{
|
||||||
%game.checkTimeLimit(%game, %forced);
|
%game.checkTimeLimit(%game, %forced);
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
function StartVOTimeVote(%game)
|
||||||
|
{
|
||||||
|
$VoteSoundInProgress = true;
|
||||||
|
$VoteInProgress = true;
|
||||||
|
$TimeLimitChanged = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
function ResetVOTimeChanged(%game)
|
||||||
|
{
|
||||||
|
$VoteInProgress = false;
|
||||||
|
$TimeLimitChanged = true;
|
||||||
|
$VoteInProgressMessege = false;
|
||||||
|
$VoteSoundInProgress = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
function ResetVOall(%game)
|
||||||
|
{
|
||||||
|
$VoteInProgress = false;
|
||||||
|
$TimeLimitChanged = false;
|
||||||
|
$VoteInProgressMessege = false;
|
||||||
|
$VoteSoundInProgress = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Prevent package from being activated if it is already
|
// Prevent package from being activated if it is already
|
||||||
if (!isActivePackage(VoteOverTime))
|
if (!isActivePackage(VoteOverTime))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue