From 359db19619417117d5cd5cb8fada93e694198767 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sat, 27 Feb 2021 00:09:15 -0500 Subject: [PATCH] Restore bots crushing unseen player on q3tourney6 in non-CTF The affect of my 2017 commit c3e64d380685419f96f71035c961907b9dc09a9a "Make bots only use q3tourney6 crusher to kill their enemy" made it easier to beat the last map of the Quake 3 single player campaign. It was mainly intended for CTF and Team Arena gametypes variants of the map. (Team deathmatch is usually treated as deathmatch with teams rather than an actual team based gametype.) Restore original difficulty for non-CTF/Team Arena gametypes; bot will crush player even if bot hasn't seen the player since either they or player respawned. [This is not good in CTF where all five bots on the team suddenly flip around and shoot at the crusher trigger.] Team deathmatch still uses my added behavior of not triggering crusher if there is a teammate under the crusher. --- code/game/ai_dmq3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/ai_dmq3.c b/code/game/ai_dmq3.c index 30df7acb..3ecaccb7 100644 --- a/code/game/ai_dmq3.c +++ b/code/game/ai_dmq3.c @@ -3733,7 +3733,7 @@ void BotMapScripts(bot_state_t *bs) { shootbutton = qfalse; break; } - else if (bs->enemy == i) { + else if (gametype < GT_CTF || bs->enemy == i) { shootbutton = qtrue; } }