From 48207e65731ad1bb9a9bcf6ce7c2ad459486f124 Mon Sep 17 00:00:00 2001 From: He-Man Date: Tue, 21 Jan 2020 17:35:12 +0100 Subject: [PATCH] Small fix / tweak for r3f keydown --- .../interface_event_handlers/EPOCH_KeyDown.sqf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Sources/epoch_code/compile/interface_event_handlers/EPOCH_KeyDown.sqf b/Sources/epoch_code/compile/interface_event_handlers/EPOCH_KeyDown.sqf index 9cea2b65..08b7bb0d 100644 --- a/Sources/epoch_code/compile/interface_event_handlers/EPOCH_KeyDown.sqf +++ b/Sources/epoch_code/compile/interface_event_handlers/EPOCH_KeyDown.sqf @@ -290,9 +290,9 @@ if (_dikCode in (actionKeys "NightVision")) then { if(!_ctrl && (_dikCode in (actionKeys "HeliRopeAction")))then{ if (player == vehicle player) exitwith {}; _msg = ""; - if(EPOCH_ArmaSlingLoad)then{ - if (["CfgEpochClient", "ActionHookRope", true] call EPOCH_fnc_returnConfigEntryV2) then { - if(driver vehicle player isEqualTo player)then{ + if(currentPilot vehicle player isEqualTo player)then{ + if(EPOCH_ArmaSlingLoad)then{ + if (["CfgEpochClient", "ActionHookRope", true] call EPOCH_fnc_returnConfigEntryV2) then { _slung = ropeAttachedObjects vehicle player; if(_slung isEqualTo [])then{ if!('ItemRope' in magazines player) then { @@ -305,10 +305,10 @@ if(!_ctrl && (_dikCode in (actionKeys "HeliRopeAction")))then{ player addItem 'ItemRope'; }; }; + }else{ + _msg = "Hook/Unhook Malfunction, overrode by R3F or AdvSlingLoad"; + _handled = true; }; - }else{ - _msg = "Hook/Unhook Malfunction, overrode by R3F or AdvSlingLoad"; - _handled = true; }; if!(_msg isEqualTo "")then{ [_msg,5,[[0,0,0,0.2],[1,1,1,1]]] call Epoch_message_stack;