From 2a1bd74ecafe11b81fec0cb3a9182d21c8999eb5 Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Sat, 10 Dec 2016 20:25:36 -0500 Subject: [PATCH] Fix no damage from hitting ground after HALO if autoOpenChute=-1 My mistake when adding this. --- CHANGE LOG 1.0.6.1.txt | 1 + SQF/dayz_code/compile/BIS_fnc/fn_halo.sqf | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGE LOG 1.0.6.1.txt b/CHANGE LOG 1.0.6.1.txt index fbb960428..d76295eeb 100644 --- a/CHANGE LOG 1.0.6.1.txt +++ b/CHANGE LOG 1.0.6.1.txt @@ -18,5 +18,6 @@ [FIXED] WoodenArrow and other WeaponHolderBase inherited objects catching fire when destroyed due to destrType. #1815 @DeVloek @ebayShopper [FIXED] Arrows floating in air when shot at same position against a wall multiple times. #1815 @DeVloek @ebayShopper [FIXED] Swimming in ground glitch when relogging at certain positions on certain maps like Napf and Tavi. @ebayShopper +[FIXED] No damage from hitting ground after HALO jump when DZE_HaloOpenChuteHeight was set to -1. @ebayShopper [INFO] See Documents\CHANGE LOG 1.0.6.txt for the full list of 1.0.5.1 --> 1.0.6 changes. \ No newline at end of file diff --git a/SQF/dayz_code/compile/BIS_fnc/fn_halo.sqf b/SQF/dayz_code/compile/BIS_fnc/fn_halo.sqf index 89ca38b83..bc783c251 100644 --- a/SQF/dayz_code/compile/BIS_fnc/fn_halo.sqf +++ b/SQF/dayz_code/compile/BIS_fnc/fn_halo.sqf @@ -174,7 +174,6 @@ if (typename _this == typename objnull) then { ],"PLAIN DOWN",0.01 ]; }; - player allowDamage false; //Prevent glitch death when opening chute uiSleep 0.01; }; @@ -249,6 +248,7 @@ if (typename _this == typename []) then { _para = objnull; _vel = []; + _unit allowDamage false; //Prevent glitch death when opening chute _paraPosition1 = [_unit] call FNC_GetPos; _para = createVehicle ["ParachuteWest", _paraPosition1, [], 0, "CAN_COLLIDE"]; //_para = "BIS_Steerable_Parachute" createVehicle position _unit; @@ -260,7 +260,7 @@ if (typename _this == typename []) then { _para lock false; bis_fnc_halo_para_dirAbs = direction _para; - player allowDamage true; + _unit allowDamage true; //--- Key controls if (_unit == player) then {