xonotic/misc/tools/xonotic-map-screenshot

31 lines
763 B
Plaintext
Raw Normal View History

2010-09-29 12:48:44 +00:00
#!/bin/sh
map=$1; shift
count=$1; shift
watchdog=$1; shift
# convert count to unary
count=`yes x | head -n "$count" | tr -cd x`
./all run \
2010-09-29 13:50:28 +00:00
-nosound \
+'locksession 0' \
+'scr_screenshot_timestamp 0' \
2010-09-29 12:48:44 +00:00
+'vid_fullscreen 0' \
+'exec effects-ultimate.cfg' \
"$@" \
+'r_motionblur 0' \
+'r_damageblur 0' \
+'r_letterbox -1' \
+'r_drawviewmodel 0' \
+'crosshair 0' \
2010-09-29 13:10:04 +00:00
+'sv_cheats 2' \
2010-09-29 12:48:44 +00:00
+'set catchme "catchme_"' \
+"alias catchme_$count \"quit\"" \
2010-10-02 11:26:21 +00:00
+'alias "autoscreenshot" "$catchme; set catchme \"${catchme}x\"; impulse 911; defer 2 \"screenshot; autoscreenshot\""' \
2010-09-29 12:48:44 +00:00
+'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'