]> git.xonotic.org Git - xonotic/xonotic.git/blob - misc/tools/xonotic-map-screenshot
turn off flood control
[xonotic/xonotic.git] / misc / tools / xonotic-map-screenshot
1 #!/bin/sh
2
3 map=$1; shift
4 count=$1; shift
5 watchdog=$1; shift
6 dummy=$1; shift
7
8 # convert count to unary
9 count=`yes x | head -n "$count" | tr -cd x`
10
11 ./all run \
12         -nosound \
13         +'locksession 0' \
14         +'scr_screenshot_timestamp 0' \
15         +'vid_fullscreen 0' \
16         +'exec effects-ultimate.cfg' \
17         "$@" \
18         +'r_motionblur 0' \
19         +'r_damageblur 0' \
20         +'r_letterbox -1' \
21         +'r_drawviewmodel 0' \
22         +'crosshair 0' \
23         +'sv_cheats 2' \
24         +'sv_gravity 0' \
25         +'r_nolerp 1' \
26         +'sv_clientcommand_antispam_time -999' \
27         +'sv_clientcommand_antispam_count 999' \
28         +'set catchme "catchme_"' \
29         +"alias catchme_$count \"quit\"" \
30         +'alias NARF "sv_cmd nextframe cl_cmd nextframe $*"' \
31         +'alias ZORT "god; NARF EGAD"' \
32         +'alias EGAD "noclip; NARF POIT"' \
33         +'alias POIT "$catchme; set catchme \"${catchme}x\"; impulse 911; NARF TROZ"' \
34         +'alias TROZ "screenshot; NARF POIT"' \
35         +'alias cl_hook_gamestart_all "cmd join; defer 2 ZORT"' \
36         +"defer \"$watchdog\" quit" \
37         +"map \"$map\"" \
38         +'timelimit 0' \
39         +'fraglimit 0' \
40         </dev/null