Synched gist at Sat Jun 1 18:43:16 PDT 2024
This commit is contained in:
parent
067aac34db
commit
2adf0a4731
1 changed files with 71 additions and 0 deletions
71
reaction.sh
Executable file
71
reaction.sh
Executable file
|
@ -0,0 +1,71 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Pick a random gamemode, map and record a demo of it too
|
||||
# This will launch the Steam version, feel free to modify.
|
||||
# No capture, no fraglimit. Only a timelimit of 5 minutes.
|
||||
|
||||
DMMAP=$(( $RANDOM % 26 + 1 ))
|
||||
CTFMAP=$(( $RANDOM % 4 + 1 ))
|
||||
TOURNEYMAP=$(( $RANDOM % 6 + 1 ))
|
||||
MODE=$(( $RANDOM % 2 + 1 ))
|
||||
DEMONAME=$(date +"%m-%d-%y-%H-%M").dm3
|
||||
SKILL=3 # 1 = I can win 2 = bring it on 3 = hurt me plenty 4 = hardcore and 5 = nightmare
|
||||
TIMELIMIT=5
|
||||
|
||||
MAP_DMMAP1=420main
|
||||
MAP_DMMAP2=archives
|
||||
MAP_DMMAP3=atrium
|
||||
MAP_DMMAP4=bank
|
||||
MAP_DMMAP5=blockwar
|
||||
MAP_DMMAP6=bullmarket
|
||||
MAP_DMMAP7=bumtown
|
||||
MAP_DMMAP8=chill
|
||||
MAP_DMMAP9=city
|
||||
MAP_DMMAP10=deepcanyon2
|
||||
MAP_DMMAP11=friction
|
||||
MAP_DMMAP12=jericho
|
||||
MAP_DMMAP13=kumanru
|
||||
MAP_DMMAP14=lighthouse
|
||||
MAP_DMMAP15=passin
|
||||
MAP_DMMAP16=pastoral
|
||||
MAP_DMMAP17=pitfall
|
||||
MAP_DMMAP18=reactionmall
|
||||
MAP_DMMAP19=sludge
|
||||
MAP_DMMAP20=subway
|
||||
MAP_DMMAP21=teamjungle
|
||||
MAP_DMMAP22=tequila
|
||||
MAP_DMMAP23=theclub
|
||||
MAP_DMMAP24=urban
|
||||
MAP_DMMAP25=vashes
|
||||
MAP_DMMAP26=waterfront
|
||||
|
||||
MAP=MAP_DMMAP${DMMAP}
|
||||
|
||||
if [ $# -gt 0 ]
|
||||
then
|
||||
MODE=$1
|
||||
fi
|
||||
|
||||
if [ $MODE = "1" ]; then
|
||||
# Team Deathmatch
|
||||
quake3 +set fs_game rq3 \
|
||||
+set bot_minplayers 7 \
|
||||
+set capturelimit 0 \
|
||||
+set fraglimit 0 \
|
||||
+set timelimit $TIMELIMIT \
|
||||
+set g_gametype 4 \
|
||||
+set g_spSkill $SKILL \
|
||||
+set sv_maxclients "8" \
|
||||
+map ${!MAP}
|
||||
else
|
||||
# Deathmatch
|
||||
quake3 +set fs_game rq3 \
|
||||
+set bot_minplayers 8 \
|
||||
+set capturelimit 0 \
|
||||
+set fraglimit 0 \
|
||||
+set timelimit $TIMELIMIT \
|
||||
+set g_gametype 0 \
|
||||
+set g_spSkill $SKILL \
|
||||
+set sv_maxclients "8" \
|
||||
+map ${!MAP}
|
||||
fi
|
Loading…
Reference in a new issue