From 8956ab41dd67c9eff889821bec1e1b13ea012568 Mon Sep 17 00:00:00 2001 From: Tobias Kuehnhammer Date: Wed, 7 Jun 2017 21:19:42 -0500 Subject: [PATCH] Fix notarget cheat Bots no longer target players in 'no target mode'. --- code/game/ai_dmq3.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/game/ai_dmq3.c b/code/game/ai_dmq3.c index 8f22e2f5..5198cb3d 100644 --- a/code/game/ai_dmq3.c +++ b/code/game/ai_dmq3.c @@ -2988,6 +2988,10 @@ int BotFindEnemy(bot_state_t *bs, int curenemy) { if (i == bs->client) continue; //if it's the current enemy if (i == curenemy) continue; + //if the enemy has targeting disabled + if (g_entities[i].flags & FL_NOTARGET) { + continue; + } // BotEntityInfo(i, &entinfo); //