combat: remove excessive ducking
This commit is contained in:
parent
e7a67347f1
commit
d2ba4b6ab6
1 changed files with 1 additions and 4 deletions
|
|
@ -1354,14 +1354,11 @@ void Bot::attackMovement () {
|
|||
}
|
||||
|
||||
if (m_difficulty >= Difficulty::Normal && isOnFloor () && m_duckTime < game.time ()) {
|
||||
if (distance < 768.0f) {
|
||||
if (distance < kDoubleSprayDistance) {
|
||||
if (rg.get (0, 1000) < rg.get (5, 10) && pev->velocity.length2d () > 150.0f && isInViewCone (m_enemy->v.origin)) {
|
||||
pev->button |= IN_JUMP;
|
||||
}
|
||||
}
|
||||
else {
|
||||
m_duckTime = game.time () + m_frameInterval * 2.0f;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_isReloading) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue