2015-01-11 19:50:29 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-01-11 19:32:51 +00:00
|
|
|
class CfgPatches {
|
2015-01-11 19:50:29 +00:00
|
|
|
class ADDON {
|
2015-01-11 19:32:51 +00:00
|
|
|
units[] = {};
|
|
|
|
weapons[] = {};
|
|
|
|
requiredVersion = 0.60;
|
2015-01-13 05:14:27 +00:00
|
|
|
requiredAddons[] = {"ace_common"};
|
2015-01-14 04:14:47 +00:00
|
|
|
version = QUOTE(VERSION);
|
|
|
|
versionStr = QUOTE(VERSION);
|
|
|
|
versionAr[] = { VERSION_AR };
|
2015-01-11 19:32:51 +00:00
|
|
|
author[] = {"commy2", "KoffeinFlummi", "CAA-Picard", "bux578"};
|
|
|
|
authorUrl = "https://github.com/commy2/";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-01-11 19:50:29 +00:00
|
|
|
#include "CfgEventHandlers.hpp"
|
|
|
|
|
2015-01-14 04:47:39 +00:00
|
|
|
#include "CfgVehicles.hpp"
|
|
|
|
|
|
|
|
#include <Menu_Config.hpp>
|
|
|
|
|
2015-01-13 16:08:49 +00:00
|
|
|
class ACE_Default_Keys {
|
2015-01-11 19:32:51 +00:00
|
|
|
class openInteractionMenuNew {
|
2015-01-12 04:20:02 +00:00
|
|
|
displayName = "$STR_ACE_Interaction_InteractionMenu";
|
2015-01-11 19:32:51 +00:00
|
|
|
condition = "true";
|
2015-01-13 22:54:21 +00:00
|
|
|
statement = QUOTE(call FUNC(onButtonDown));
|
|
|
|
conditionUp = QUOTE(!isNull (findDisplay 1713999) && {profileNamespace getVariable [ARR_2(QUOTE(QGVAR(AutoCloseMenu)), false)]});
|
|
|
|
statementUp = QUOTE(if (GVAR(MenuType) mod 2 == 0) then {call FUNC(onButtonUp)};);
|
2015-01-12 04:20:02 +00:00
|
|
|
exceptions[] = {"ACE_Drag_isNotDragging", "ACE_Medical_canTreat", "ACE_Interaction_isNotEscorting", "ACE_Interaction_isNotSwimming"};
|
2015-01-11 19:32:51 +00:00
|
|
|
key = 219;
|
|
|
|
shift = 0;
|
|
|
|
control = 0;
|
|
|
|
alt = 0;
|
|
|
|
};
|
|
|
|
class openInteractionMenuSelfNew {
|
2015-01-12 04:20:02 +00:00
|
|
|
displayName = "$STR_ACE_Interaction_InteractionMenuSelf";
|
2015-01-11 19:32:51 +00:00
|
|
|
condition = "true";
|
2015-01-13 22:54:21 +00:00
|
|
|
statement = QUOTE(call FUNC(onButtonDownSelf));
|
|
|
|
conditionUp = QUOTE(!isNull (findDisplay 1713999) && {profileNamespace getVariable [ARR_2(QUOTE(QGVAR(AutoCloseMenu)), false)]});
|
|
|
|
statementUp = QUOTE(if (EGVAR(interaction,MenuType) mod 2 == 1) then {call FUNC(onButtonUp)};);
|
2015-01-14 13:28:04 +00:00
|
|
|
exceptions[] = {"ACE_Drag_isNotDragging", "ACE_Medical_canTreat", "ACE_Interaction_isNotEscorting", "ACE_Interaction_isNotSwimming", "ACE_Common_notOnMap"};
|
2015-01-11 19:32:51 +00:00
|
|
|
key = 219;
|
|
|
|
shift = 0;
|
|
|
|
control = 1;
|
|
|
|
alt = 0;
|
|
|
|
};
|
|
|
|
class openDoor {
|
2015-01-12 04:20:02 +00:00
|
|
|
displayName = "$STR_ACE_Interaction_OpenDoor";
|
2015-01-13 22:54:21 +00:00
|
|
|
condition = QUOTE(!GVAR(isOpeningDoor) && {[2] call FUNC(getDoor) select 1 != ''});
|
|
|
|
statement = QUOTE(call ACE_Interaction_fnc_openDoor);
|
2015-01-11 20:41:04 +00:00
|
|
|
conditionUp = QUOTE( GVAR(isOpeningDoor) );
|
|
|
|
statementUp = QUOTE( GVAR(isOpeningDoor) = false;);
|
2015-01-11 19:32:51 +00:00
|
|
|
key = 57;
|
|
|
|
shift = 0;
|
|
|
|
control = 1;
|
|
|
|
alt = 0;
|
|
|
|
};
|
|
|
|
class tapShoulder {
|
2015-01-12 04:20:02 +00:00
|
|
|
displayName = "$STR_ACE_Interaction_TapShoulder";
|
2015-01-13 22:54:21 +00:00
|
|
|
condition = QUOTE([_player, cursorTarget] call FUNC(canTapShoulder));
|
|
|
|
statement = QUOTE([_player, cursorTarget] call FUNC(tapShoulder););
|
2015-01-11 19:32:51 +00:00
|
|
|
key = 20;
|
|
|
|
shift = 1;
|
|
|
|
control = 0;
|
|
|
|
alt = 0;
|
|
|
|
};
|
|
|
|
class modifierKey {
|
2015-01-12 04:20:02 +00:00
|
|
|
displayName = "$STR_ACE_Interaction_ModifierKey";
|
2015-01-11 19:32:51 +00:00
|
|
|
condition = "";
|
2015-01-15 20:15:39 +00:00
|
|
|
statement = QUOTE(ACE_Modifier = 1;);
|
2015-01-11 19:32:51 +00:00
|
|
|
conditionUp = "";
|
2015-01-15 20:15:39 +00:00
|
|
|
statementUp = QUOTE(ACE_Modifier = 0;);
|
2015-01-12 04:20:02 +00:00
|
|
|
exceptions[] = {"ACE_Drag_isNotDragging"};
|
2015-01-11 19:32:51 +00:00
|
|
|
key = 29;
|
|
|
|
shift = 0;
|
|
|
|
control = 0;
|
|
|
|
alt = 0;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-01-13 16:08:49 +00:00
|
|
|
class ACE_Options {
|
2015-01-11 19:32:51 +00:00
|
|
|
class Interaction_FlowMenu {
|
2015-01-12 04:20:02 +00:00
|
|
|
displayName = "$STR_ACE_Interaction_FlowMenu";
|
2015-01-11 19:32:51 +00:00
|
|
|
default = 0;
|
|
|
|
};
|
|
|
|
class Interaction_AutoCloseMenu {
|
2015-01-12 04:20:02 +00:00
|
|
|
displayName = "$STR_ACE_Interaction_AutoCloseMenu";
|
2015-01-11 19:32:51 +00:00
|
|
|
default = 0;
|
|
|
|
};
|
|
|
|
class Interaction_AutoCenterCursor {
|
2015-01-12 04:20:02 +00:00
|
|
|
displayName = "$STR_ACE_Interaction_AutoCenterCursor";
|
2015-01-11 19:32:51 +00:00
|
|
|
default = 1;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Parameters_Boolean {
|
|
|
|
ACE_Interaction_EnableTeamManagement = 1;
|
2015-01-11 19:32:51 +00:00
|
|
|
};
|
|
|
|
|
2015-01-13 16:08:49 +00:00
|
|
|
class ACE_canInteractConditions {
|
2015-01-17 17:26:51 +00:00
|
|
|
class GVAR(isNotEscorting) {
|
2015-01-12 04:20:02 +00:00
|
|
|
condition = QUOTE( !(_player getVariable ['ACE_isEscorting', false]) );
|
2015-01-11 19:32:51 +00:00
|
|
|
};
|
2015-01-17 17:26:51 +00:00
|
|
|
class GVAR(isNotCaptive) {
|
2015-01-12 04:20:02 +00:00
|
|
|
condition = QUOTE( !(_player getVariable ['ACE_isCaptive', false]) );
|
2015-01-11 19:32:51 +00:00
|
|
|
};
|
2015-01-17 17:26:51 +00:00
|
|
|
class GVAR(isNotSurrendering) {
|
2015-01-12 04:20:02 +00:00
|
|
|
condition = QUOTE( !(_player getVariable ['ACE_isSurrender', false]) );
|
2015-01-11 19:32:51 +00:00
|
|
|
};
|
2015-01-17 17:26:51 +00:00
|
|
|
class GVAR(isNotSwimming) {
|
2015-01-11 20:41:04 +00:00
|
|
|
condition = QUOTE( !underwater _player );
|
2015-01-11 19:32:51 +00:00
|
|
|
};
|
|
|
|
};
|