From 66d770f28b1f20696321ac6ceb276bd1e2a126cf Mon Sep 17 00:00:00 2001 From: Bethea Date: Mon, 29 Apr 2024 17:21:43 -0500 Subject: [PATCH 1/2] MH-47 Support for Jump Script --- cScripts/functions/mission/fn_addLineJump.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cScripts/functions/mission/fn_addLineJump.sqf b/cScripts/functions/mission/fn_addLineJump.sqf index 1c24edb91..76103b367 100644 --- a/cScripts/functions/mission/fn_addLineJump.sqf +++ b/cScripts/functions/mission/fn_addLineJump.sqf @@ -29,7 +29,7 @@ params [ // Check so the options arent added twice. if (!isNil {_vehicle getVariable QEGVAR(VehicleFunc,JumpAction)}) exitWith {SHOW_WARNING_1("JumpAction", "Aircraft jump setting already applied for %1.", _vehicle)}; -private _conditionHoldAction = format ["((_target getCargoIndex player) != -1) && ((_target animationPhase 'ramp_bottom' > 0.64) or (_target animationPhase 'door_2_1' == 1) or (_target animationPhase 'door_2_2' == 1) or (_target animationPhase 'jumpdoor_1' == 1) or (_target animationPhase 'jumpdoor_2' == 1) or (_target animationPhase 'back_ramp_switch' == 1) or (_target animationPhase 'back_ramp_half_switch' == 1) or (_target doorPhase 'RearDoors' > 0.5) or (_target doorPhase 'Door_1_source' > 0.5) or (_target animationSourcePhase 'ramp_anim' > 0.5)) && ((getPosVisual _target) select 2 >= %1) && ((getPosVisual _target) select 2 <= %2) && (speed _target <= %3)", _minAltetude, _maxAltetude, _maxSpeed]; +private _conditionHoldAction = format ["((_target getCargoIndex player) != -1) && ((_target animationPhase 'ramp_bottom' > 0.64) or (_target animationPhase 'door_2_1' == 1) or (_target animationPhase 'door_2_2' == 1) or (_target animationPhase 'jumpdoor_1' == 1) or (_target animationPhase 'jumpdoor_2' == 1) or (_target animationPhase 'back_ramp_switch' == 1) or (_target animationPhase 'back_ramp_half_switch' == 1) or (_target doorPhase 'RearDoors' > 0.5) or (_target doorPhase 'Door_1_source' > 0.5) or (_target animationSourcePhase 'ramp_anim' > 0.5) or (_target animationPhase 'Ramp' < 0.5)) && ((getPosVisual _target) select 2 >= %1) && ((getPosVisual _target) select 2 <= %2) && (speed _target <= %3)", _minAltetude, _maxAltetude, _maxSpeed]; // Add hold action for jump private _actionID = [ From 11b88b204d5ce504c28fc781566e54ec67c7577a Mon Sep 17 00:00:00 2001 From: Jonah Pool Date: Mon, 29 Apr 2024 18:59:02 -0400 Subject: [PATCH 2/2] Updated fn_addLineJump.sqf --- cScripts/functions/mission/fn_addLineJump.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cScripts/functions/mission/fn_addLineJump.sqf b/cScripts/functions/mission/fn_addLineJump.sqf index 76103b367..f450008a9 100644 --- a/cScripts/functions/mission/fn_addLineJump.sqf +++ b/cScripts/functions/mission/fn_addLineJump.sqf @@ -1,6 +1,6 @@ #include "..\script_component.hpp"; /* - * Author: CPL.Brostrom.A + * Author: CPL.Brostrom.A, Elemtael * This function adds a Jump out option to a vehicle. * * Arguments: