]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/xonotic-map-screenshot
autobuild updater: make it possible to pick between autobuild and release by separate...
[xonotic/xonotic.git] / misc / tools / xonotic-map-screenshot
index c3bd23697ca0ee52ca10ff0b9b4d14770f627fea..e102f766973727cd8969e13dce44b59e4cffb7cf 100755 (executable)
@@ -3,7 +3,7 @@
 map=$1; shift
 count=$1; shift
 watchdog=$1; shift
-step=$1; shift
+dummy=$1; shift
 
 # convert count to unary
 count=`yes x | head -n "$count" | tr -cd x`
@@ -21,10 +21,18 @@ count=`yes x | head -n "$count" | tr -cd x`
        +'r_drawviewmodel 0' \
        +'crosshair 0' \
        +'sv_cheats 2' \
+       +'sv_gravity 0' \
+       +'r_nolerp 1' \
+       +'sv_clientcommand_antispam_time -999' \
+       +'sv_clientcommand_antispam_count 999' \
        +'set catchme "catchme_"' \
        +"alias catchme_$count \"quit\"" \
-       +'alias "autoscreenshot" "$catchme; set catchme \"${catchme}x\"; impulse 911; defer '$step' \"screenshot; autoscreenshot\""' \
-       +'alias cl_hook_gamestart_all "cmd join; defer 1 god; defer 2 noclip; defer 3 autoscreenshot"' \
+       +'alias NARF "sv_cmd nextframe cl_cmd nextframe sv_cmd nextframe cl_cmd nextframe $*"' \
+       +'alias ZORT "god; NARF EGAD"' \
+       +'alias EGAD "noclip; NARF POIT"' \
+       +'alias POIT "$catchme; set catchme \"${catchme}x\"; impulse 911; NARF TROZ"' \
+       +'alias TROZ "screenshot; NARF POIT"' \
+       +'alias cl_hook_gamestart_all "cmd join; defer 2 ZORT"' \
        +"defer \"$watchdog\" quit" \
        +"map \"$map\"" \
        +'timelimit 0' \