X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=misc%2Ftools%2Fxonotic-map-screenshot;h=f402d2d86977c3791bad856f24f75b3641da05e5;hb=fcad75b2a506656e3c592cedf364287c1046b0dc;hp=c3575e3b816f099814a88d43d50faf4247c96ef8;hpb=f66634cb2b8ef913823b61d52828085a62cb1083;p=xonotic%2Fxonotic.git diff --git a/misc/tools/xonotic-map-screenshot b/misc/tools/xonotic-map-screenshot index c3575e3b..f402d2d8 100755 --- a/misc/tools/xonotic-map-screenshot +++ b/misc/tools/xonotic-map-screenshot @@ -3,27 +3,43 @@ map=$1; shift count=$1; shift watchdog=$1; shift +dummy=$1; shift # convert count to unary count=`yes x | head -n "$count" | tr -cd x` ./all run \ + -nocrashdialog \ -nosound \ + -noconfig \ + +'locksession 0' \ + +'scr_screenshot_timestamp 0' \ +'vid_fullscreen 0' \ - +'exec effects-ultimate.cfg' \ - +'vid_soft 1; r_damageblur 0; r_motionblur 0; r_bloom 0; r_hdr 0' \ + +'exec effects-ultra.cfg' \ "$@" \ + +'sv_precacheplayermodels 0' \ + +'cl_hidewaypoints 1' \ + +'cl_movement 0' \ +'r_motionblur 0' \ +'r_damageblur 0' \ +'r_letterbox -1' \ +'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 2 \"screenshot; autoscreenshot\""' \ - +'alias cl_hook_gamestart_all "cmd join; defer 1 god; defer 2 noclip; defer 3 autoscreenshot"' \ + +"alias catchme_$count quit" \ + +'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 "defer 1.1 join; defer 2 ZORT"' \ +"defer \"$watchdog\" quit" \ +"map \"$map\"" \ +'timelimit 0' \ - +'fraglimit 0' + +'fraglimit 0' \ +