Skip to content

Srcds shell script snippits

[foo] bar edited this page Jul 23, 2013 · 2 revisions

Starting srcds with a random map each restart

MAP=$(basename `ls hl2mp/maps/*.bsp |sort -R |head --lines 1` .bsp)
if [ ! -r hl2mp/maps/$MAP.bsp ]; then
        MAP="dm_runoff"
fi

echo "Starting with startmap $MAP"
./srcds_run -game hl2mp +port 27015 +map $MAP