Rather than rewriting the entirety of mapcycle.txt or something, one could make a plugin that edits sourcemod/configs/maplists.cfg
Not sure if mapchooser extended also uses that file though, but hopefully mce would be supported.
If I have more time I might make it myself, but if someone wants to take it up instead, or knows a more optimal method of making this, that's cool too ;p
a little thing I made in C# as a console app week ago because I was too lazy to make a mapcycle.txt, modified for you...
Ideally you'd just place it inside the maps folder, run it and it'll generate a mapcycle.txt. However, this untested modified version *should* work the exact same, just filtering for whatever you may deem worthy.
Spoiler
PHP Code:
using System; using System.IO;
namespace Map_List_Generator { public class MapListGenerator { public static string[] MAP_FILTER = new string[] { "holiday", "christmas", "xmas" };
static void Main(string[] args) { string location = AppDomain.CurrentDomain.BaseDirectory; DirectoryInfo d = new DirectoryInfo(location); FileInfo[] files = d.GetFiles("*.bsp");
foreach(FileInfo file in files) { for(int i = 0; i < MAP_FILTER.Length; i++) { if (!file.Name.Contains(MAP_FILTER[i])) continue; } string temp = file.Name.Replace(".bsp", ""); write.WriteLine(temp); } Console.Beep(); } } }
You'd just need to change what was contained by MAP_FILTER and I reckon it'd work? Very simple way of going about things rather than running around goofing with all kinda configs and such