mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 14:52:00 +00:00
Fix notarget cheat
Bots no longer target players in 'no target mode'.
This commit is contained in:
parent
c99281a0da
commit
8956ab41dd
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue