28 Dec 14, 01:35PM
If people are keen on this, I can supply one, based on these maps: http://gibbed.me/custom.shtml
Anyone else looking to do a custom-map server, you can use this script to generate a maprot via cron:
Anyone else looking to do a custom-map server, you can use this script to generate a maprot via cron:
[SELECT ALL] Code:
# List the maps:
find /path/to/custom-map-files/*.cgz /path/to/official-map-files/*.cgz -type f -printf "%f\n" > /path/to/.TEMPFILE.txt
# Delete the old maprot.cfg
echo "" > /path/to/maprot.cfg
# Set a random mode+time for each map in maprot.cfg:
while read line; do
RANDOMMODE=`echo "0\n2\n3\n4\n5\n6\n9\n10\n11\n13\14\n15" | sort -uR | head -n1`
RANDOMTIME=`shuf -i 7-13 | head -n1`
echo $line | sed s/.cgz/:"$RANDOMMODE":"$RANDOMTIME":1/g >> /path/to/maprot.cfg
done < /path/to/.TEMPFILE.txt