xonotic/misc/tools/xonotic-map-screenshot

41 lines
1.0 KiB
Plaintext
Raw Normal View History

2010-09-29 12:48:44 +00:00
#!/bin/sh
map=$1; shift
count=$1; shift
watchdog=$1; shift
2012-01-15 17:28:56 +00:00
dummy=$1; shift
2010-09-29 12:48:44 +00:00
# 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' \
2012-01-16 10:56:33 +00:00
+'sv_gravity 0' \
+'r_nolerp 1' \
2012-01-16 16:44:51 +00:00
+'sv_clientcommand_antispam_time -999' \
+'sv_clientcommand_antispam_count 999' \
2010-09-29 12:48:44 +00:00
+'set catchme "catchme_"' \
+"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"' \
2012-01-15 17:28:56 +00:00
+'alias POIT "$catchme; set catchme \"${catchme}x\"; impulse 911; NARF TROZ"' \
+'alias TROZ "screenshot; NARF POIT"' \
2012-01-16 10:56:33 +00:00
+'alias cl_hook_gamestart_all "cmd join; defer 2 ZORT"' \
2010-09-29 12:48:44 +00:00
+"defer \"$watchdog\" quit" \
+"map \"$map\"" \
+'timelimit 0' \
2011-12-01 12:24:59 +00:00
+'fraglimit 0' \
</dev/null