nav: removed strange behavior for ducking when hunting
This commit is contained in:
parent
7c76c57974
commit
a088528f46
1 changed files with 1 additions and 5 deletions
|
|
@ -3260,13 +3260,9 @@ void Bot::huntEnemy_ () {
|
||||||
if (!(m_currentTravelFlags & PathFlag::Jump)) {
|
if (!(m_currentTravelFlags & PathFlag::Jump)) {
|
||||||
if (m_currentNodeIndex != kInvalidNodeIndex) {
|
if (m_currentNodeIndex != kInvalidNodeIndex) {
|
||||||
if (m_path->radius < 32.0f && !isOnLadder () && !isInWater () && m_seeEnemyTime + 4.0f > game.time ()) {
|
if (m_path->radius < 32.0f && !isOnLadder () && !isInWater () && m_seeEnemyTime + 4.0f > game.time ()) {
|
||||||
pev->button |= IN_DUCK;
|
m_moveSpeed = getShiftSpeed ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_lastEnemyOrigin.distanceSq (pev->origin) < cr::square (512.0f)) {
|
|
||||||
m_moveSpeed = getShiftSpeed ();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue