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:

5833c76491
This commit is contained in:
ebaydayz
2016-09-09 11:41:09 -04:00
parent 32db983f34
commit eadbbb18bf

View File

@@ -249,6 +249,10 @@ if (isNil "keyboard_keys") then {
Dayz_constructionContext set [ 5, !(Dayz_constructionContext select 5) ];
_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