aim: do not adjust enemy spot dir for hard bots

This commit is contained in:
jeefo 2024-03-09 22:18:12 +03:00
commit 0b119c0389
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED

View file

@ -576,8 +576,8 @@ Vector Bot::getEnemyBodyOffset () {
} }
auto idealSpot = m_enemyOrigin; auto idealSpot = m_enemyOrigin;
if (m_difficulty < Difficulty::Expert && isEnemyInSight (idealSpot)) { if (m_difficulty < Difficulty::Hard && isEnemyInSight (idealSpot)) {
spot = idealSpot + ((spot - idealSpot) * 0.01f); // gradually adjust the aiming direction spot = idealSpot + ((spot - idealSpot) * 0.005f); // gradually adjust the aiming direction
} }
spot += compensation; spot += compensation;