bot: fix think fps limiter when running on xash3d
aim: simplify enemy origin compensation when moving
This commit is contained in:
parent
1736bd9c8a
commit
0873975678
2 changed files with 4 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue