mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-16 00:24:35 +00:00
Cleaned up code
This commit is contained in:
parent
6c728080ba
commit
7755d719e2
2 changed files with 7 additions and 7 deletions
|
|
@ -69,7 +69,7 @@ function GetTeamCounts( %game, %client, %respawn )
|
||||||
//AntiCloak Start
|
//AntiCloak Start
|
||||||
ActivateAntiCloak ();
|
ActivateAntiCloak ();
|
||||||
|
|
||||||
|
//Set so counter wont run when it doesnt need to.
|
||||||
$GetCountsClientTeamChange = false;
|
$GetCountsClientTeamChange = false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,19 +22,19 @@ function DefaultGame::checkTimeLimit(%game, %forced)
|
||||||
{
|
{
|
||||||
//Vote Overtime
|
//Vote Overtime
|
||||||
//Check if Vote is active or if the timelimit has changed.
|
//Check if Vote is active or if the timelimit has changed.
|
||||||
if( !$VoteInProgress && !$TimeLimitChanged ) {
|
if( !$VoteInProgress && !$TimeLimitChanged )
|
||||||
|
{
|
||||||
// time's up, put down your pencils
|
// time's up, put down your pencils
|
||||||
%game.timeLimitReached();
|
%game.timeLimitReached();
|
||||||
|
|
||||||
//Reset Everything to do with Vote Overtime
|
|
||||||
//Moved to function DefaultGame::gameOver in DefaultGame.ovl in evo
|
|
||||||
}
|
}
|
||||||
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(2000, 0, "RestartcheckTimeLimit", %game, %forced);
|
schedule(2000, 0, "RestartcheckTimeLimit", %game, %forced);
|
||||||
|
|
||||||
//Messege
|
//Messege
|
||||||
if( !$VoteInProgressMessege ) {
|
if( !$VoteInProgressMessege )
|
||||||
|
{
|
||||||
messageAll('', '\c2Vote Overtime Initiated.~wfx/powered/turret_heavy_activate.wav', %display);
|
messageAll('', '\c2Vote Overtime Initiated.~wfx/powered/turret_heavy_activate.wav', %display);
|
||||||
$VoteInProgressMessege = true;
|
$VoteInProgressMessege = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue