]> git.xonotic.org Git - xonotic/xonotic.git/blob - misc/tools/xonotic-map-screenshot
Turn off cl_movement on the screenshot server.
[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         -noconfig \
14         +'locksession 0' \
15         +'scr_screenshot_timestamp 0' \
16         +'vid_fullscreen 0' \
17         +'exec effects-ultra.cfg' \
18         "$@" \
19         +'sv_precacheplayermodels 0' \
20         +'cl_hidewaypoints 1' \
21         +'cl_movement 0' \
22         +'r_motionblur 0' \
23         +'r_damageblur 0' \
24         +'r_letterbox -1' \
25         +'r_drawviewmodel 0' \
26         +'crosshair 0' \
27         +'sv_cheats 2' \
28         +'sv_gravity 0' \
29         +'r_nolerp 1' \
30         +'sv_clientcommand_antispam_time -999' \
31         +'sv_clientcommand_antispam_count 999' \
32         +'set catchme "catchme_"' \
33         +"alias catchme_$count \"quit\"" \
34         +'alias NARF "sv_cmd nextframe cl_cmd nextframe sv_cmd nextframe cl_cmd nextframe $*"' \
35         +'alias ZORT "god; NARF EGAD"' \
36         +'alias EGAD "noclip; NARF POIT"' \
37         +'alias POIT "$catchme; set catchme \"${catchme}x\"; impulse 911; NARF TROZ"' \
38         +'alias TROZ "screenshot; NARF POIT"' \
39         +'alias cl_hook_gamestart_all "defer 1.1 \"cmd join\"; defer 2 ZORT"' \
40         +"defer \"$watchdog\" quit" \
41         +"map \"$map\"" \
42         +'timelimit 0' \
43         +'fraglimit 0' \
44         </dev/null