From caf008403c78f9542a209356470b8faccf4fbd55 Mon Sep 17 00:00:00 2001 From: 8dcc <8dcc.git@gmail.com> Date: Mon, 24 Jul 2023 15:17:11 +0200 Subject: [PATCH] Change low speed value, remove air check from autostrafe --- src/features/movement.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/movement.c b/src/features/movement.c index 58f3e87..e32efad 100644 --- a/src/features/movement.c +++ b/src/features/movement.c @@ -37,7 +37,7 @@ static void autostrafe_rage(usercmd_t* cmd) { float speed = vec_len2d(i_pmove->velocity); /* If low speed, start forward */ - if (speed < 30 && (cmd->buttons & IN_FORWARD)) { + if (speed < 15 && (cmd->buttons & IN_FORWARD)) { cmd->forwardmove = 450.0f; return; } @@ -81,7 +81,7 @@ void bhop(usercmd_t* cmd) { was_in_air = (i_pmove->flags & FL_ONGROUND) == 0; /* Autostrafe if enabled. Check if we are in the air and holding space. */ - if (is_jumping && was_in_air) { + if (is_jumping) { switch ((int)cv_autostrafe->value) { case 1: autostrafe_rage(cmd);