From 337eb6343dadd66e82d658be2d345fa992d77c35 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 7 Sep 2018 02:42:39 +1000 Subject: [PATCH] Use crouch status instead of crouch key to indicate when player is crouching in pressed keys code --- qcsrc/server/client.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index 85514bdf9..262d1d1a7 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -1647,7 +1647,7 @@ void GetPressedKeys(entity this) keys = BITSET(keys, KEY_LEFT, CS(this).movement.y < 0); keys = BITSET(keys, KEY_JUMP, PHYS_INPUT_BUTTON_JUMP(this)); - keys = BITSET(keys, KEY_CROUCH, PHYS_INPUT_BUTTON_CROUCH(this)); + keys = BITSET(keys, KEY_CROUCH, IS_DUCKED(this)); // workaround: player can't un-crouch until their path is clear, so we keep the button held here keys = BITSET(keys, KEY_ATCK, PHYS_INPUT_BUTTON_ATCK(this)); keys = BITSET(keys, KEY_ATCK2, PHYS_INPUT_BUTTON_ATCK2(this)); CS(this).pressedkeys = keys; // store for other users -- 2.39.2