fix: prevent hearing player entities with some flags (ref #605)
This commit is contained in:
parent
d9c75115e9
commit
68993aa434
1 changed files with 2 additions and 1 deletions
|
|
@ -3986,7 +3986,8 @@ void Bot::updateHearing () {
|
|||
continue;
|
||||
}
|
||||
|
||||
if (!game.checkVisibility (client.ent, set)) {
|
||||
// ignore invincible, no-target and not potentially visible players
|
||||
if (isEnemyInvincible (client.ent) || isEnemyNoTarget (client.ent) || !game.checkVisibility (client.ent, set)) {
|
||||
continue;
|
||||
}
|
||||
const float distanceSq = client.noise.pos.distanceSq (pev->origin);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue