aim: do not adjust enemy spot dir for hard bots
This commit is contained in:
parent
642493089e
commit
0b119c0389
1 changed files with 2 additions and 2 deletions
|
|
@ -576,8 +576,8 @@ Vector Bot::getEnemyBodyOffset () {
|
|||
}
|
||||
auto idealSpot = m_enemyOrigin;
|
||||
|
||||
if (m_difficulty < Difficulty::Expert && isEnemyInSight (idealSpot)) {
|
||||
spot = idealSpot + ((spot - idealSpot) * 0.01f); // gradually adjust the aiming direction
|
||||
if (m_difficulty < Difficulty::Hard && isEnemyInSight (idealSpot)) {
|
||||
spot = idealSpot + ((spot - idealSpot) * 0.005f); // gradually adjust the aiming direction
|
||||
}
|
||||
spot += compensation;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue