From 25681fd39cb418e8decacac51727c6e1647bed81 Mon Sep 17 00:00:00 2001 From: ChocoTaco Date: Mon, 11 Apr 2022 16:38:46 -0400 Subject: [PATCH] Integrated multipleMapRotation --- Classic/prefs/serverPrefs.cs | 2 ++ Classic/scripts/autoexec/multipleMapRotation.cs | 8 ++++---- Classic/scripts/serverDefaults.cs | 2 ++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Classic/prefs/serverPrefs.cs b/Classic/prefs/serverPrefs.cs index 987858b..1967cdb 100644 --- a/Classic/prefs/serverPrefs.cs +++ b/Classic/prefs/serverPrefs.cs @@ -149,6 +149,8 @@ $Host::MaxPlayers = 30; $Host::MinBotDifficulty = 0; $Host::MinFlagRecordPlayerCount = 6; $Host::MissionType = "LakRabbit"; +$Host::MultipleMapRotation = 0; +$Host::MultipleMapRotationCount = 3; $Host::NoBaseRapeEnabled = 1; $Host::NoBaseRapePlayerCount = 14; $Host::NoSmurfs = 0; diff --git a/Classic/scripts/autoexec/multipleMapRotation.cs b/Classic/scripts/autoexec/multipleMapRotation.cs index 4014961..c35740f 100644 --- a/Classic/scripts/autoexec/multipleMapRotation.cs +++ b/Classic/scripts/autoexec/multipleMapRotation.cs @@ -1,11 +1,11 @@ //$Host::ClassicRotationFile = "prefs/mapRotation1.cs"; //Enable/Disable -$EnableMultipleMapRotation = 0; +//$Host::MultipleMapRotation = 0; //How any mapRotation Files //Naming scheme mapRotation1.cs, mapRotation2.cs, mapRotation3.cs, etc -$mapRotationFilesCount = 3; +//$Host::MultipleMapRotationCount = 3; function multipleMapRotation() { @@ -15,7 +15,7 @@ function multipleMapRotation() if(%var) //If number exists proceed { - if(%var $= $mapRotationFilesCount) + if(%var $= $Host::MultipleMapRotationCount) %var = 1; else %var = %var + 1; @@ -34,5 +34,5 @@ function multipleMapRotationEcho() } //Run -if($EnableMultipleMapRotation) +if($Host::MultipleMapRotation) multipleMapRotation(); diff --git a/Classic/scripts/serverDefaults.cs b/Classic/scripts/serverDefaults.cs index c4a395f..dca31e9 100755 --- a/Classic/scripts/serverDefaults.cs +++ b/Classic/scripts/serverDefaults.cs @@ -212,6 +212,8 @@ $Host::LoadScreenShowLogo = 0; $Host::LoadScreenShowLogoName = "dpub/DPUB_logo"; //Logo location Filename $Host::MapChangeMSG = 0; //Center Print between mapchanges $Host::MapChangeMSGContent = "Pickup Night\nSaturday, March 5th\nJoin discord for details"; +$Host::MultipleMapRotation = 0; //Rotate thru multiple map rotation files 1,2,3, etc +$Host::MultipleMapRotationCount = 3; //How many multiple map rotation files (mapRotation1.cs, mapRotation2.cs, mapRotation3.cs, etc) //LakRabbit $Host::LakRabbitUnlimitedDJ = 1; //Unlimited disc-jumps if enabled