Change low speed value, remove air check from autostrafe

This commit is contained in:
8dcc 2023-07-24 15:17:11 +02:00
parent 913e1c9a69
commit caf008403c
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ static void autostrafe_rage(usercmd_t* cmd) {
float speed = vec_len2d(i_pmove->velocity); float speed = vec_len2d(i_pmove->velocity);
/* If low speed, start forward */ /* If low speed, start forward */
if (speed < 30 && (cmd->buttons & IN_FORWARD)) { if (speed < 15 && (cmd->buttons & IN_FORWARD)) {
cmd->forwardmove = 450.0f; cmd->forwardmove = 450.0f;
return; return;
} }
@ -81,7 +81,7 @@ void bhop(usercmd_t* cmd) {
was_in_air = (i_pmove->flags & FL_ONGROUND) == 0; was_in_air = (i_pmove->flags & FL_ONGROUND) == 0;
/* Autostrafe if enabled. Check if we are in the air and holding space. */ /* 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) { switch ((int)cv_autostrafe->value) {
case 1: case 1:
autostrafe_rage(cmd); autostrafe_rage(cmd);