Add an option for single player death match against bots.
This commit is contained in:
		@@ -119,7 +119,7 @@ case ${buttonCode} in
 | 
			
		||||
                --clear \
 | 
			
		||||
                --ok-label "Next" \
 | 
			
		||||
                --cancel-label "Exit" \
 | 
			
		||||
                --rangebox "Select Fraglimit" -1 -1 1 1000000 20 --stdout)"
 | 
			
		||||
                --rangebox "Select Fraglimit" -1 -1 1 500 20 --stdout)"
 | 
			
		||||
            [[ $? -eq 1 ]] && exit 0
 | 
			
		||||
            # Get ip address
 | 
			
		||||
            yourIpAddress="$(curl -4s https://icanhazip.com)"
 | 
			
		||||
@@ -133,8 +133,16 @@ case ${buttonCode} in
 | 
			
		||||
                --clear \
 | 
			
		||||
                --ok-label "Start" \
 | 
			
		||||
                --cancel-label "Exit" \
 | 
			
		||||
                --extra-button \
 | 
			
		||||
                --extra-label "Bots Only" \
 | 
			
		||||
                --rangebox "Select difficulty. 1 easiest, 5 hardest." -1 -1 1 5 3 --stdout)"
 | 
			
		||||
            [[ $? -eq 1 ]] && exit 0
 | 
			
		||||
            code=$?
 | 
			
		||||
            [[ $code -eq 1 ]] && exit 0
 | 
			
		||||
            if [[ $code -eq 3 ]]; then
 | 
			
		||||
                players=1
 | 
			
		||||
                dialog --backtitle "Preparing to Launch" \
 | 
			
		||||
                    --msgbox "When the game starts, press \` to open the console. Type addbot, press enter. Repeat addbot for as many bots as you would like. Press \` again to close the console." -1 -1 --stdout
 | 
			
		||||
            fi
 | 
			
		||||
            flags=(
 | 
			
		||||
                    '-host' "${players}"
 | 
			
		||||
                    '-skill' "${skillLevel}"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user