2021-12-11 16:52:12 +00:00
|
|
|
//$Host::ClassicRotationFile = "prefs/mapRotation1.cs";
|
|
|
|
|
|
2021-12-05 17:16:41 +00:00
|
|
|
//Enable/Disable
|
2022-04-11 20:38:46 +00:00
|
|
|
//$Host::MultipleMapRotation = 0;
|
2021-12-05 17:16:41 +00:00
|
|
|
|
|
|
|
|
//How any mapRotation Files
|
|
|
|
|
//Naming scheme mapRotation1.cs, mapRotation2.cs, mapRotation3.cs, etc
|
2022-04-11 20:38:46 +00:00
|
|
|
//$Host::MultipleMapRotationCount = 3;
|
2021-12-05 17:16:41 +00:00
|
|
|
|
2022-02-11 18:39:42 +00:00
|
|
|
function multipleMapRotation()
|
2021-12-05 17:16:41 +00:00
|
|
|
{
|
2022-02-11 18:39:42 +00:00
|
|
|
//Look for a progressing number
|
|
|
|
|
%var = stripChars($Host::ClassicRotationFile, "prefs/mapRotation.cs");
|
|
|
|
|
//echo("var: " @ %var);
|
|
|
|
|
|
|
|
|
|
if(%var) //If number exists proceed
|
2021-12-05 17:16:41 +00:00
|
|
|
{
|
2022-04-11 20:38:46 +00:00
|
|
|
if(%var $= $Host::MultipleMapRotationCount)
|
2021-12-11 16:52:12 +00:00
|
|
|
%var = 1;
|
|
|
|
|
else
|
|
|
|
|
%var = %var + 1;
|
|
|
|
|
|
|
|
|
|
%mapRot = "prefs/mapRotation" @ %var @ ".cs";
|
2021-12-05 17:16:41 +00:00
|
|
|
$Host::ClassicRotationFile = %mapRot;
|
|
|
|
|
}
|
2022-02-11 18:39:42 +00:00
|
|
|
|
|
|
|
|
schedule(10000,0,"multipleMapRotationEcho",0); //Echo at start
|
2021-12-05 17:16:41 +00:00
|
|
|
}
|
|
|
|
|
|
2022-02-11 18:39:42 +00:00
|
|
|
//Echo
|
2021-12-05 17:16:41 +00:00
|
|
|
function multipleMapRotationEcho()
|
|
|
|
|
{
|
|
|
|
|
echo("Current MapRotation: " @ $Host::ClassicRotationFile);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//Run
|
2022-04-11 20:38:46 +00:00
|
|
|
if($Host::MultipleMapRotation)
|
2022-02-11 18:39:42 +00:00
|
|
|
multipleMapRotation();
|