diff --git a/src/botlib.cpp b/src/botlib.cpp index bc0cf13..e22d258 100644 --- a/src/botlib.cpp +++ b/src/botlib.cpp @@ -3260,13 +3260,9 @@ void Bot::huntEnemy_ () { if (!(m_currentTravelFlags & PathFlag::Jump)) { if (m_currentNodeIndex != kInvalidNodeIndex) { 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 (); - } } } }