mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-14 00:40:39 +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 (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);
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue