Add stub code for fraglimit selection

This commit is contained in:
Michael Taboada 2024-01-21 10:17:54 -08:00
parent e62533b2ce
commit 98ce0a96ee

View File

@ -102,6 +102,8 @@ case ${buttonCode} in
[8]="2 4")
# Dialog statement to choose map goes here
map="1"
# Dialog statement to choose fraglimit goes here
fraglimit=20
# Get ip address
yourIpAddress="$(curl -4s https://icanhazip.com)"
players="$(dialog --backtitle "Host Deathmatch Game" \
@ -121,7 +123,7 @@ case ${buttonCode} in
'-skill' "${skillLevel}"
'-deathmatch'
'+set' 'sv_cheats' '1'
'+fraglimit' '20' # Change this to be user selectable
'+fraglimit' "$fraglimit"
'+dmflags' '16384' '+dmflags' '4' '+dmflags' '128' '+dmflags' '4096'
'-extratic' '-dup' '3'
'-warp' "$map"