mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-14 07:34:36 +00:00
Moved Start
Ran once each time map is loaded.
This commit is contained in:
parent
bc4536c7b1
commit
8f6d8ce4ce
2 changed files with 4 additions and 9 deletions
|
|
@ -24,7 +24,7 @@ function MapRepetitionChecker( %game )
|
||||||
if($EvoCachedNextMission $= "")
|
if($EvoCachedNextMission $= "")
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(!$Host::TournamentMode && $MapRepetitionCheckerRunOnce !$= 1 )
|
if(!$Host::TournamentMode)
|
||||||
{
|
{
|
||||||
//Do work
|
//Do work
|
||||||
if( $PreviousMission1back $= $EvoCachedNextMission || $PreviousMission2back $= $EvoCachedNextMission ||
|
if( $PreviousMission1back $= $EvoCachedNextMission || $PreviousMission2back $= $EvoCachedNextMission ||
|
||||||
|
|
@ -47,7 +47,6 @@ function MapRepetitionChecker( %game )
|
||||||
if($PreviousMission4back !$= "") echo("PM4: " @ $PreviousMission4back);
|
if($PreviousMission4back !$= "") echo("PM4: " @ $PreviousMission4back);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$MapRepetitionCheckerRunOnce = 1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -87,11 +86,4 @@ function MapRepetitionCheckerFindRandom()
|
||||||
messageClient(%cl, 'MsgMapRepCorrection', '\crMap Repetition Corrected: Next mission set from %1 to %2.', $SetNextMissionRestore, $EvoCachedNextMission);
|
messageClient(%cl, 'MsgMapRepCorrection', '\crMap Repetition Corrected: Next mission set from %1 to %2.', $SetNextMissionRestore, $EvoCachedNextMission);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
//Once per match
|
|
||||||
//Called in DefaultGame::gameOver(%game) in defaultGame.ovl evo
|
|
||||||
function MapRepetitionCheckerReset( %game )
|
|
||||||
{
|
|
||||||
$MapRepetitionCheckerRunOnce = 0;
|
|
||||||
}
|
}
|
||||||
|
|
@ -34,6 +34,9 @@ function loadMissionStage2()
|
||||||
//Set server mode to DISTANCE
|
//Set server mode to DISTANCE
|
||||||
$Host::HiVisibility = "1";
|
$Host::HiVisibility = "1";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Start MapRepetitionChecker
|
||||||
|
schedule(20000, 0, "MapRepetitionChecker", %game);
|
||||||
|
|
||||||
parent::loadMissionStage2();
|
parent::loadMissionStage2();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue