mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-14 15:44:34 +00:00
Update
Progression instead of Random
This commit is contained in:
parent
4542aff473
commit
e44b1fcdd7
1 changed files with 10 additions and 2 deletions
|
|
@ -1,3 +1,5 @@
|
||||||
|
//$Host::ClassicRotationFile = "prefs/mapRotation1.cs";
|
||||||
|
|
||||||
//Enable/Disable
|
//Enable/Disable
|
||||||
$EnableMultipleMapRotation = 0;
|
$EnableMultipleMapRotation = 0;
|
||||||
|
|
||||||
|
|
@ -9,8 +11,14 @@ function multipleMapRotation()
|
||||||
{
|
{
|
||||||
if($EnableMultipleMapRotation)
|
if($EnableMultipleMapRotation)
|
||||||
{
|
{
|
||||||
%random = getrandom(1, $mapRotationFilesCount);
|
%var = stripChars($Host::ClassicRotationFile, "prefs/mapRotation.cs");
|
||||||
%mapRot = "prefs/mapRotation" @ %random @ ".cs";
|
//echo("var: " @ %var);
|
||||||
|
if(%var $= $mapRotationFilesCount)
|
||||||
|
%var = 1;
|
||||||
|
else
|
||||||
|
%var = %var + 1;
|
||||||
|
|
||||||
|
%mapRot = "prefs/mapRotation" @ %var @ ".cs";
|
||||||
$Host::ClassicRotationFile = %mapRot;
|
$Host::ClassicRotationFile = %mapRot;
|
||||||
|
|
||||||
//Echo at start
|
//Echo at start
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue