fix: allow to plant bomb only when icon blinking (ref #323)

fix: random bots shoots and enemy ignorance on es_industrial (ref #323)
This commit is contained in:
jeefo 2024-02-27 12:31:37 +03:00
commit 9201daf9f9
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
8 changed files with 19 additions and 14 deletions

View file

@ -176,7 +176,7 @@ void Bot::normal_ () {
pushChatterMessage (Chatter::GoingToGuardVIPSafety); // play info about that
}
}
else if (game.mapIs (MapFlags::Demolition) && ((m_pathFlags & NodeFlag::Goal) || m_inBombZone)) {
else if (game.mapIs (MapFlags::Demolition) && ((m_pathFlags & NodeFlag::Goal) && m_inBombZone)) {
// is it a terrorist carrying the bomb?
if (m_hasC4) {
if ((m_states & Sense::SeeingEnemy) && numFriendsNear (pev->origin, 768.0f) == 0) {