]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add an option to ignore the player count limits on maps
authorMario <mario@smbclan.net>
Sat, 27 Jul 2019 06:55:27 +0000 (16:55 +1000)
committerMario <mario@smbclan.net>
Sat, 27 Jul 2019 06:55:27 +0000 (16:55 +1000)
qcsrc/server/autocvars.qh
qcsrc/server/g_world.qc
xonotic-server.cfg

index a763b97267b5a69dcec8883b66a4a8c71127bf70..fd5009edcace8f89097248255b59d4b51c6d48a7 100644 (file)
@@ -156,6 +156,7 @@ string autocvar_g_maplist_votable_screenshot_dir;
 bool autocvar_g_maplist_votable_suggestions;
 bool autocvar_g_maplist_votable_suggestions_override_mostrecent;
 float autocvar_g_maplist_votable_timeout;
+bool autocvar_g_maplist_ignore_sizes;
 int autocvar_g_maxplayers;
 float autocvar_g_maxplayers_spectator_blocktime;
 float autocvar_g_maxpushtime;
index 9ef72ae832352149d3dce0b2dc11253774218bbf..07027875ee6c340f5c8e4106ec52f48b7c04e768 100644 (file)
@@ -1022,6 +1022,9 @@ bool MapHasRightSize(string map)
                LOG_TRACE(checkwp_msg, ": has waypoints");
        }
 
+       if(autocvar_g_maplist_ignore_sizes)
+               return true;
+
        // open map size restriction file
        string opensize_msg = strcat("opensize ", map);
        float fh = fopen(strcat("maps/", map, ".sizes"), FILE_READ);
index 463df7224e364a9c6aad3c3517c7a5321e2ee611..dadc207b573a7ddce547617d6fadd90f95a254df 100644 (file)
@@ -212,6 +212,7 @@ set g_maplist_index 0       "this is used internally for saving position in maplist cy
 set g_maplist_selectrandom 0   "if 1, a random map will be chosen as next map - DEPRECATED in favor of g_maplist_shuffle"
 set g_maplist_shuffle 1        "new randomization method: like selectrandom, but avoid playing the same maps in short succession. This works by taking out the first element and inserting it into g_maplist with a bias to the end of the list"
 set g_maplist_check_waypoints 0        "when 1, maps are skipped if there currently are bots, but the map has no waypoints"
+set g_maplist_ignore_sizes 0 "when 1, all maps are shown in the map list regardless of player count"
 
 set g_items_mindist 4000 "starting distance for the fading of items"
 set g_items_maxdist 4500 "maximum distance at which an item can be viewed, after which it will be invisible"