X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=blobdiff_plain;f=misc%2Ftools%2Fxonotic-map-screenshot;h=0d3127e5d23aaed92f1630acf1d549d6cc66d8b6;hp=67206363648af70b999e474ce31fe4f2ae6276f9;hb=97fe16d7d3bf7c97873cc5ef52730fee817a6f72;hpb=7f344c656ad301785c7962a628bdc2da746db249 diff --git a/misc/tools/xonotic-map-screenshot b/misc/tools/xonotic-map-screenshot index 67206363..0d3127e5 100755 --- a/misc/tools/xonotic-map-screenshot +++ b/misc/tools/xonotic-map-screenshot @@ -8,6 +8,7 @@ watchdog=$1; shift count=`yes x | head -n "$count" | tr -cd x` ./all run \ + -nosound \ +'vid_fullscreen 0' \ +'exec effects-ultimate.cfg' \ "$@" \ @@ -19,7 +20,7 @@ count=`yes x | head -n "$count" | tr -cd x` +'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\"" \