diff --git a/reaction.sh b/reaction.sh new file mode 100755 index 0000000..cb2c5e5 --- /dev/null +++ b/reaction.sh @@ -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