]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/xonotic-map-screenshot
map screenshot: do not use stdin
[xonotic/xonotic.git] / misc / tools / xonotic-map-screenshot
index 36f7e8ce74f96671dd26b0473c534817e9b88e9b..f4df78c612b4eb5f879f75257d9a9dd11f29dc81 100755 (executable)
@@ -8,6 +8,9 @@ watchdog=$1; shift
 count=`yes x | head -n "$count" | tr -cd x`
 
 ./all run \
+       -nosound \
+       +'locksession 0' \
+       +'scr_screenshot_timestamp 0' \
        +'vid_fullscreen 0' \
        +'exec effects-ultimate.cfg' \
        "$@" \
@@ -16,12 +19,13 @@ count=`yes x | head -n "$count" | tr -cd x`
        +'r_letterbox -1' \
        +'r_drawviewmodel 0' \
        +'crosshair 0' \
-       +'sv_cheats 1' \
+       +'sv_cheats 2' \
        +'set catchme "catchme_"' \
        +"alias catchme_$count \"quit\"" \
-       +'alias "autoscreenshot" "$catchme; set catchme \"${catchme}x\"; impulse 911; defer 1 \"screenshot; autoscreenshot\""' \
+       +'alias "autoscreenshot" "$catchme; set catchme \"${catchme}x\"; impulse 911; defer 2 \"screenshot; autoscreenshot\""' \
        +'alias cl_hook_gamestart_all "cmd join; defer 1 god; defer 2 noclip; defer 3 autoscreenshot"' \
        +"defer \"$watchdog\" quit" \
        +"map \"$map\"" \
        +'timelimit 0' \
-       +'fraglimit 0'
+       +'fraglimit 0' \
+       </dev/null