Revert "aim: remove redundant code"

This reverts commit 5d5c3a5b23.
This commit is contained in:
jeefo 2023-06-04 22:11:18 +03:00
commit 8523d6b5ab
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED

View file

@ -307,6 +307,11 @@ bool Bot::lookupEnemies () {
continue; continue;
} }
// extra skill player can see through smoke... if beeing attacked
if (m_difficulty == Difficulty::Expert && (player->v.button & (IN_ATTACK | IN_ATTACK2)) && m_viewDistance < m_maxViewDistance) {
nearestDistance = cr::sqrf (m_maxViewDistance);
}
// see if bot can see the player... // see if bot can see the player...
if (seesEnemy (player)) { if (seesEnemy (player)) {
// low priority fo shielded enemies // low priority fo shielded enemies