From eadbbb18bf83d6cd11d92eec3137981a8b35bbbd Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Fri, 9 Sep 2016 11:41:09 -0400 Subject: [PATCH] Fix double tap bunny hop with no weapon glitch Also makes it easier to bunny hop in quick succession. Previously double tap triggered a bunny hop immediately followed by a regular vault. Vanilla commit: https://github.com/DayZMod/DayZ/commit/5833c76491879677f3dc0b95b9378276e5bde205 --- SQF/dayz_code/compile/keyboard.sqf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SQF/dayz_code/compile/keyboard.sqf b/SQF/dayz_code/compile/keyboard.sqf index 617123ce7..90476b93b 100644 --- a/SQF/dayz_code/compile/keyboard.sqf +++ b/SQF/dayz_code/compile/keyboard.sqf @@ -250,6 +250,10 @@ if (isNil "keyboard_keys") then { _handled = true; r_interrupt = true; }; + if (animationState player in ["bunnyhopunarmed","bunnyhoprifle"]) then { + //Fixes invisible weapon switch glitch if double tapping vault with no weapon in hands + _handled = true; + }; if (player isKindOf "PZombie_VB") then { _handled = true; // do not allow player zombies to vault or jump } else {