revert: some changes that are broke behavior

nav: fix: can strafe left is doing wrong things
This commit is contained in:
jeefo 2024-02-10 21:20:25 +03:00
commit 78a5dd50a1
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
2 changed files with 46 additions and 7 deletions

View file

@ -1355,8 +1355,8 @@ void Bot::attackMovement () {
if (m_difficulty >= Difficulty::Normal && isOnFloor () && m_duckTime < game.time ()) {
if (distance < 768.0f) {
if (pev->velocity.length2d () > 150.0f && isInViewCone (m_enemy->v.origin)) {
m_jumpTime = game.time () + m_frameInterval * 2.0f;
if (rg.get (0, 1000) < rg.get (5, 10) && pev->velocity.length2d () > 150.0f && isInViewCone (m_enemy->v.origin)) {
pev->button |= IN_JUMP;
}
}
else {