From 47e8282d9881eaa9aa2050eb8b0b2d4deaafdbf9 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Fri, 23 Jan 2015 16:05:14 -0600 Subject: [PATCH] Movement/Climb Keybind --- addons/movement/XEH_postInit.sqf | 18 ++++++++++++++++++ addons/movement/config.cpp | 12 ------------ 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/addons/movement/XEH_postInit.sqf b/addons/movement/XEH_postInit.sqf index edf1991006..54a94ad21f 100644 --- a/addons/movement/XEH_postInit.sqf +++ b/addons/movement/XEH_postInit.sqf @@ -17,3 +17,21 @@ }, 0, _this select 0] call CBA_fnc_addPerFrameHandler; }] call EFUNC(common,addEventHandler); + +["ACE3", + localize "STR_ACE_Movement_Climb", + { + // Conditions: canInteract + _exceptions = []; + if !(_exceptions call EGVAR(common,canInteract)) exitWith {false}; + // Conditions: specific + if (ACE_player != (vehicle ACE_player)) exitWith {false}; + + // Statement + [ACE_player] call FUNC(climb); + true + }, + [47, [false, true, false]], //DIK_V + CTRL//STRG + false, + "keydown" +] call cba_fnc_registerKeybind; diff --git a/addons/movement/config.cpp b/addons/movement/config.cpp index 822d85383f..e8661b748c 100644 --- a/addons/movement/config.cpp +++ b/addons/movement/config.cpp @@ -17,18 +17,6 @@ class CfgPatches { //#include "CfgInventoryGlobalVariable.hpp" #include "CfgMoves.hpp" -class ACE_Default_Keys { - class climb { - displayName = "$STR_ACE_Movement_Climb"; - condition = QUOTE(_player == _vehicle); - statement = QUOTE([_player] call FUNC(climb);); - key = 47; - shift = 0; - control = 1; - alt = 0; - }; -}; - class ACE_Options { class GVAR(useImperial) { displayName = "$STR_ACE_Movement_UseImperial";