<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Randomised Map Rotation In Custom Games]]></title><description><![CDATA[<p dir="auto">I want to run a <strong>custom games</strong> match, <strong>not a local server</strong> with bots and a <strong>randomised map rotation</strong>, not vote, randomised. How do I do this, or is it even possible. Thanks</p>
]]></description><link>https://forum.plutonium.pw/topic/46970/randomised-map-rotation-in-custom-games</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Nov 2026 11:25:29 GMT</lastBuildDate><atom:link href="https://forum.plutonium.pw/topic/46970.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 06 Nov 2026 17:40:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Randomised Map Rotation In Custom Games on Wed, 11 Nov 2026 17:27:07 GMT]]></title><description><![CDATA[<p dir="auto">Yes please, how would it improve it, would it be more efficient or consistent.</p>
]]></description><link>https://forum.plutonium.pw/post/181095</link><guid isPermaLink="true">https://forum.plutonium.pw/post/181095</guid><dc:creator><![CDATA[La_Ferrari2013]]></dc:creator><pubDate>Wed, 11 Nov 2026 17:27:07 GMT</pubDate></item><item><title><![CDATA[Reply to Randomised Map Rotation In Custom Games on Sun, 08 Nov 2026 14:14:21 GMT]]></title><description><![CDATA[<p dir="auto">You can always take a mapvote script, such as mine, and make it rotate directly instead of displaying the vote by editing the code a little bit</p>
<p dir="auto">I've edited mine for some people before for this use case and it's just a few lines, would gladly send it to you if you wish</p>
]]></description><link>https://forum.plutonium.pw/post/181012</link><guid isPermaLink="true">https://forum.plutonium.pw/post/181012</guid><dc:creator><![CDATA[Resxt]]></dc:creator><pubDate>Sun, 08 Nov 2026 14:14:21 GMT</pubDate></item><item><title><![CDATA[Reply to Randomised Map Rotation In Custom Games on Fri, 06 Nov 2026 21:26:35 GMT]]></title><description><![CDATA[<p dir="auto">For anyone wondering, here was the code that ended up working in the end. To go in the scripts folder.</p>
<p dir="auto">#include maps\mp_utility;<br />
#include maps\mp\gametypes_hud_util;</p>
<p dir="auto">main()<br />
{<br />
level thread bot_lobby_monitor();<br />
}</p>
<p dir="auto">bot_lobby_monitor()<br />
{<br />
level waittill("prematch_over");</p>
<pre><code>score_limit = getDvarInt("scr_war_scorelimit"); 
time_limit = getDvarInt("scr_war_timelimit");   

if(score_limit &lt;= 0) 
{
    score_limit = 75; 
}
if(time_limit &lt;= 0) 
{
    time_limit = 10; 
}

time_limit_seconds = time_limit * 60;
elapsed_seconds = 0;

while(1)
{
    // Check Score Conditions
    if (isDefined(game["teamScores"]["allies"]) &amp;&amp; game["teamScores"]["allies"] &gt;= score_limit)
    {
        wait 5; 
        force_next_random_map();
        break;
    }
    
    if (isDefined(game["teamScores"]["axis"]) &amp;&amp; game["teamScores"]["axis"] &gt;= score_limit)
    {
        wait 5; 
        force_next_random_map();
        break;
    }

    // Check Time Conditions
    if (elapsed_seconds &gt;= time_limit_seconds)
    {
        wait 5;
        force_next_random_map();
        break;
    }

    // Handle Natural or Manual Break Ends
    if(isDefined(level.gameEnded) &amp;&amp; level.gameEnded)
    {
        if(isDefined(level.forcedEnd) &amp;&amp; level.forcedEnd)
        {
            return; 
        }
        wait 5;
        force_next_random_map();
        break;
    }

    wait 0.5; 
    elapsed_seconds += 0.5;
}
</code></pre>
<p dir="auto">}</p>
<p dir="auto">force_next_random_map()<br />
{<br />
// FIX: Manually starting the index at 0 so the array initializes perfectly<br />
maps[0] = "mp_carrier";<br />
maps[maps.size] = "mp_cargo";<br />
maps[maps.size] = "mp_drone";<br />
maps[maps.size] = "mp_express";<br />
maps[maps.size] = "mp_hijacked";<br />
maps[maps.size] = "mp_meltdown";<br />
maps[maps.size] = "mp_nuketown_2020";<br />
maps[maps.size] = "mp_overflow";<br />
maps[maps.size] = "mp_plaza";<br />
maps[maps.size] = "mp_raid";<br />
maps[maps.size] = "mp_slums";<br />
maps[maps.size] = "mp_standoff";<br />
maps[maps.size] = "mp_turbine";<br />
maps[maps.size] = "mp_yemen";</p>
<pre><code>// DLC 1
maps[maps.size] = "mp_downhill";   
maps[maps.size] = "mp_mirage";     
maps[maps.size] = "mp_hydro";      
maps[maps.size] = "mp_skate";      

// DLC 2
maps[maps.size] = "mp_concert";    
maps[maps.size] = "mp_magma";      
maps[maps.size] = "mp_studio";     
maps[maps.size] = "mp_vertigo";    

// DLC 3
maps[maps.size] = "mp_uplink";     
maps[maps.size] = "mp_bridge";     
maps[maps.size] = "mp_castaway";   
maps[maps.size] = "mp_paintball";  

// DLC 4
maps[maps.size] = "mp_dig";        
maps[maps.size] = "mp_frostbite";  
maps[maps.size] = "mp_pod";        
maps[maps.size] = "mp_takeoff";    

random_map = maps[ randomInt( maps.size ) ];

// Change the global rotation variable so the game picks it up when transitioning
setDvar("g_gametype", "war"); 
setDvar("sv_mapRotation", "gametype war map " + random_map);
setDvar("sv_mapRotationCurrent", "gametype war map " + random_map);

// Override the UI lobby pointers directly
setDvar("ui_mapname", random_map);
setDvar("mapname", random_map);

// Command the engine to progress immediately to the rotation we just established
exitLevel( false );
</code></pre>
<p dir="auto">}</p>
]]></description><link>https://forum.plutonium.pw/post/180992</link><guid isPermaLink="true">https://forum.plutonium.pw/post/180992</guid><dc:creator><![CDATA[La_Ferrari2013]]></dc:creator><pubDate>Fri, 06 Nov 2026 21:26:35 GMT</pubDate></item><item><title><![CDATA[Reply to Randomised Map Rotation In Custom Games on Fri, 06 Nov 2026 17:48:49 GMT]]></title><description><![CDATA[<p dir="auto">Not sure if there is a pre-made solution but you can simply write that in GSC.<br />
Set a map rotation on the client, split it up in your GSC script, choose a random map and switch to that map.<br />
Should be a simple beginner project to start learning GSC.</p>
]]></description><link>https://forum.plutonium.pw/post/180991</link><guid isPermaLink="true">https://forum.plutonium.pw/post/180991</guid><dc:creator><![CDATA[Xerxes]]></dc:creator><pubDate>Fri, 06 Nov 2026 17:48:49 GMT</pubDate></item></channel></rss>