aim: fix: prediction for body target
This commit is contained in:
parent
3729be6aab
commit
3f3e20ece0
1 changed files with 2 additions and 2 deletions
|
|
@ -488,8 +488,8 @@ Vector Bot::getBodyOffsetError (float distance) {
|
||||||
Vector spot = m_enemy->v.origin;
|
Vector spot = m_enemy->v.origin;
|
||||||
Vector compensation = nullptr;
|
Vector compensation = nullptr;
|
||||||
|
|
||||||
if (!usesSniper () && !usesKnife ()) {
|
if (!usesSniper () && !usesKnife () && distance > kSprayDistance) {
|
||||||
compensation = (m_enemy->v.velocity - pev->velocity) * m_frameInterval * (distance < kSprayDistance ? 4.0f : 1.5f);
|
compensation = 1.0f * m_frameInterval * m_enemy->v.velocity - 1.0f * m_frameInterval * pev->velocity;
|
||||||
compensation.z = 0.0f;
|
compensation.z = 0.0f;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue