mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-02-13 03:33: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
|
||||
$EnableMultipleMapRotation = 0;
|
||||
|
||||
|
|
@ -9,8 +11,14 @@ function multipleMapRotation()
|
|||
{
|
||||
if($EnableMultipleMapRotation)
|
||||
{
|
||||
%random = getrandom(1, $mapRotationFilesCount);
|
||||
%mapRot = "prefs/mapRotation" @ %random @ ".cs";
|
||||
%var = stripChars($Host::ClassicRotationFile, "prefs/mapRotation.cs");
|
||||
//echo("var: " @ %var);
|
||||
if(%var $= $mapRotationFilesCount)
|
||||
%var = 1;
|
||||
else
|
||||
%var = %var + 1;
|
||||
|
||||
%mapRot = "prefs/mapRotation" @ %var @ ".cs";
|
||||
$Host::ClassicRotationFile = %mapRot;
|
||||
|
||||
//Echo at start
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue