bot: fix think fps limiter when running on xash3d

aim: simplify enemy origin compensation when moving
This commit is contained in:
jeefo 2024-03-11 08:06:39 +03:00
commit 0873975678
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
2 changed files with 4 additions and 3 deletions

View file

@ -544,7 +544,7 @@ Vector Bot::getEnemyBodyOffset () {
Vector compensation = nullptr;
if (!usesSniper () && !usesKnife () && distance > kSprayDistance) {
compensation = 1.0f * m_frameInterval * m_enemy->v.velocity - 1.0f * m_frameInterval * pev->velocity;
compensation = (m_enemy->v.velocity - pev->velocity) * m_frameInterval * 2.8f;
compensation.z = 0.0f;
}
else {