mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Fix parachute bug
Thx @ch0c
This commit is contained in:
@@ -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 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;
|
bis_fnc_halo_ppRadialBlur ppEffectCommit 0.01;
|
||||||
*/
|
*/
|
||||||
if (DZE_HaloAltitudeMeter && !isNil "Dayz_loginCompleted") then {
|
if (DZE_HaloAltitudeMeter && {!isNil "Dayz_loginCompleted"}) then {
|
||||||
titleText [
|
titleText [
|
||||||
format [
|
format [
|
||||||
localize "str_halo_altitude_speed",
|
localize "str_halo_altitude_speed",
|
||||||
@@ -199,7 +199,7 @@ if (typename _this == typename objnull) then {
|
|||||||
player switchmove "adthppnemstpsraswrfldnon_1";
|
player switchmove "adthppnemstpsraswrfldnon_1";
|
||||||
player setvelocity [0,0,0];
|
player setvelocity [0,0,0];
|
||||||
} else {
|
} 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
|
//Auto open chute
|
||||||
[player] spawn BIS_fnc_Halo;
|
[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_vel * 75) + 0.5*(sin (time * 180)),
|
||||||
(+bis_fnc_halo_para_dir * 25) + 0.5*(cos (time * 180))
|
(+bis_fnc_halo_para_dir * 25) + 0.5*(cos (time * 180))
|
||||||
] call bis_fnc_setpitchbank;
|
] 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;"];
|
bis_fnc_halo_para_mousemoving_eh = (finddisplay 46) displayaddeventhandler ["mousemoving","_this call bis_fnc_halo_para_loop;"];
|
||||||
|
|||||||
Reference in New Issue
Block a user