parent
5d5c3a5b23
commit
8523d6b5ab
1 changed files with 5 additions and 0 deletions
|
|
@ -307,6 +307,11 @@ bool Bot::lookupEnemies () {
|
|||
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...
|
||||
if (seesEnemy (player)) {
|
||||
// low priority fo shielded enemies
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue