Fix parachute bug

Thx @ch0c
This commit is contained in:
A Man
2020-02-20 10:23:16 +01:00
parent 7587f4d748
commit 2a41d122f6

View File

@@ -165,7 +165,7 @@ if (typename _this == typename objnull) then {
bis_fnc_halo_ppRadialBlur ppEffectAdjust [0.02,0.02,0.3 - (bis_fnc_halo_vel/7)/_fpsCoef,0.3 - (bis_fnc_halo_vel/7)/_fpsCoef];
bis_fnc_halo_ppRadialBlur ppEffectCommit 0.01;
*/
if (DZE_HaloAltitudeMeter && !isNil "Dayz_loginCompleted") then {
if (DZE_HaloAltitudeMeter && {!isNil "Dayz_loginCompleted"}) then {
titleText [
format [
localize "str_halo_altitude_speed",
@@ -199,7 +199,7 @@ if (typename _this == typename objnull) then {
player switchmove "adthppnemstpsraswrfldnon_1";
player setvelocity [0,0,0];
} else {
if (DZE_HaloOpenChuteHeight > -1 && isNil "bis_fnc_halo_para_dirAbs") then {
if (DZE_HaloOpenChuteHeight > -1 && {isNil "bis_fnc_halo_para_dirAbs"}) then {
//Auto open chute
[player] spawn BIS_fnc_Halo;
};
@@ -345,6 +345,17 @@ if (typename _this == typename []) then {
(-bis_fnc_halo_para_vel * 75) + 0.5*(sin (time * 180)),
(+bis_fnc_halo_para_dir * 25) + 0.5*(cos (time * 180))
] call bis_fnc_setpitchbank;
_para = vehicle player;
_speed = abs speed _para;
if ((_para != player) && {_speed > 13}) then {
_velocity = velocity _para;
_y = 0.8;
if (_speed > 20) then {_y = 0.1;};
_drop = [(_velocity select 0) * _y, (_velocity select 1) * _y, (_velocity select 2) * 1.1];
_para SetVelocity _drop;
};
};
bis_fnc_halo_para_mousemoving_eh = (finddisplay 46) displayaddeventhandler ["mousemoving","_this call bis_fnc_halo_para_loop;"];