ACE3/addons/interaction/config.cpp

115 lines
3.5 KiB
C++
Raw Normal View History

#include "script_component.hpp"
2015-01-11 19:32:51 +00:00
class CfgPatches {
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"};
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/";
};
};
#include "CfgEventHandlers.hpp"
#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 {
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)};);
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 {
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 {
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);
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 {
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 {
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;);
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 {
displayName = "$STR_ACE_Interaction_FlowMenu";
2015-01-11 19:32:51 +00:00
default = 0;
};
class Interaction_AutoCloseMenu {
displayName = "$STR_ACE_Interaction_AutoCloseMenu";
2015-01-11 19:32:51 +00:00
default = 0;
};
class Interaction_AutoCenterCursor {
displayName = "$STR_ACE_Interaction_AutoCenterCursor";
2015-01-11 19:32:51 +00:00
default = 1;
};
};
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) {
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) {
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) {
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) {
condition = QUOTE( !underwater _player );
2015-01-11 19:32:51 +00:00
};
};