Fix notarget cheat

Bots no longer target players in 'no target mode'.
This commit is contained in:
Tobias Kuehnhammer 2017-06-07 21:19:42 -05:00 committed by Zack Middleton
parent c99281a0da
commit 8956ab41dd

View file

@ -2988,6 +2988,10 @@ int BotFindEnemy(bot_state_t *bs, int curenemy) {
if (i == bs->client) continue; if (i == bs->client) continue;
//if it's the current enemy //if it's the current enemy
if (i == curenemy) continue; if (i == curenemy) continue;
//if the enemy has targeting disabled
if (g_entities[i].flags & FL_NOTARGET) {
continue;
}
// //
BotEntityInfo(i, &entinfo); BotEntityInfo(i, &entinfo);
// //