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

@ -327,7 +327,7 @@ bool Bot::lookupEnemies () {
continue;
}
// extra skill player can see thru smoke... if beeing attacked
// extra skill player can see through smoke... if being attacked
if (cv_whose_your_daddy.bool_ () && (player->v.button & (IN_ATTACK | IN_ATTACK2)) && m_viewDistance < m_maxViewDistance) {
nearestDistanceSq = cr::sqrf (m_maxViewDistance);
}