mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-03-05 20:50:21 +00:00
Added GetRandomMaps.cs Safety
This commit is contained in:
parent
84af2979d6
commit
816eb9661a
2 changed files with 7 additions and 1 deletions
|
|
@ -2,6 +2,10 @@
|
|||
//
|
||||
//
|
||||
|
||||
//This file is present
|
||||
//If this isnt present other things will crash
|
||||
$GetRandomMapsLoaded = true;
|
||||
|
||||
//Map pool
|
||||
//
|
||||
//1-5
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
//To help decrease the chances of a repeated map in the map rotation by correcting repeated maps thru script
|
||||
//$EvoCachedNextMission = "RoundTheMountain";
|
||||
//
|
||||
//$GetRandomMapsLoaded makes sure GetRandomMaps.cs is present
|
||||
//MapRepetitionChecker can't funtion without it
|
||||
|
||||
//Run in GetTeamCounts.cs
|
||||
function MapRepetitionChecker( %game )
|
||||
|
|
@ -8,7 +10,7 @@ function MapRepetitionChecker( %game )
|
|||
//Debug
|
||||
//%MapRepetitionCheckerDebug = true;
|
||||
|
||||
if( $CurrentMissionType $= "CTF" && !$Host::TournamentMode && $MapRepetitionCheckerRunOnce !$= 1 )
|
||||
if( $CurrentMissionType $= "CTF" && !$Host::TournamentMode && $MapRepetitionCheckerRunOnce !$= 1 && $GetRandomMapsLoaded )
|
||||
{
|
||||
if( $PreviousMission1back $= $EvoCachedNextMission || $PreviousMission2back $= $EvoCachedNextMission || $PreviousMission3back $= $EvoCachedNextMission || $PreviousMission4back $= $EvoCachedNextMission )
|
||||
MapRepetitionCheckerFindRandom();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue