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-11 19:32:51 +00:00
|
|
|
version = "0.95";
|
|
|
|
versionStr = "0.95";
|
|
|
|
versionAr[] = {0,95,0};
|
|
|
|
author[] = {"commy2", "KoffeinFlummi", "CAA-Picard", "bux578"};
|
|
|
|
authorUrl = "https://github.com/commy2/";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-01-11 19:50:29 +00:00
|
|
|
#include "CfgEventHandlers.hpp"
|
|
|
|
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Core_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-11 20:41:04 +00:00
|
|
|
statement = QUOTE( call FUNC(onButtonDown) );
|
|
|
|
conditionUp = QUOTE( !isNull (findDisplay 1713999) && {profileNamespace getVariable [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-11 20:41:04 +00:00
|
|
|
statement = QUOTE( call FUNC(onButtonDownSelf) );
|
|
|
|
conditionUp = QUOTE( !isNull (findDisplay 1713999) && {profileNamespace getVariable [QUOTE(QGVAR(AutoCloseMenu)), false]} );
|
|
|
|
statementUp = QUOTE( if (EGVAR(interaction,MenuType) mod 2 == 1) 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", "ACE_Core_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-11 20:41:04 +00:00
|
|
|
condition = QUOTE( !GVAR(isOpeningDoor) && {[2] call FUNC(getDoor) select 1 != ''} );
|
2015-01-12 04:20:02 +00:00
|
|
|
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-11 20:41:04 +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-11 20:41:04 +00:00
|
|
|
statement = QUOTE( GVAR(Modifier) = 1; );
|
2015-01-11 19:32:51 +00:00
|
|
|
conditionUp = "";
|
2015-01-11 20:41:04 +00:00
|
|
|
statementUp = QUOTE( GVAR(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-12 04:20:02 +00:00
|
|
|
class ACE_Core_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 {
|
|
|
|
ACE_Modifier = 0;
|
2015-01-11 19:32:51 +00:00
|
|
|
};
|
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-12 04:20:02 +00:00
|
|
|
class ACE_Core_canInteractConditions {
|
|
|
|
class ACE_Interaction_isNotEscorting {
|
|
|
|
condition = QUOTE( !(_player getVariable ['ACE_isEscorting', false]) );
|
2015-01-11 19:32:51 +00:00
|
|
|
};
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Interaction_isNotCaptive {
|
|
|
|
condition = QUOTE( !(_player getVariable ['ACE_isCaptive', false]) );
|
2015-01-11 19:32:51 +00:00
|
|
|
};
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Interaction_isNotSurrendering {
|
|
|
|
condition = QUOTE( !(_player getVariable ['ACE_isSurrender', false]) );
|
2015-01-11 19:32:51 +00:00
|
|
|
};
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Interaction_isNotSwimming {
|
2015-01-11 20:41:04 +00:00
|
|
|
condition = QUOTE( !underwater _player );
|
2015-01-11 19:32:51 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
#define MACRO_ADDITEM(ITEM,COUNT) class _xx_##ITEM { \
|
|
|
|
name = #ITEM; \
|
|
|
|
count = COUNT; \
|
|
|
|
};
|
|
|
|
|
|
|
|
class CfgVehicles {
|
|
|
|
|
|
|
|
class Module_F;
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_ModuleInteraction: Module_F {
|
|
|
|
author = "$STR_ACE_Core_ACETeam";
|
|
|
|
category = "ACE";
|
2015-01-11 19:32:51 +00:00
|
|
|
displayName = "Interaction System";
|
2015-01-12 04:20:02 +00:00
|
|
|
function = "ACE_Interaction_fnc_moduleInteraction";
|
2015-01-11 19:32:51 +00:00
|
|
|
scope = 2;
|
|
|
|
isGlobal = 1;
|
2015-01-11 21:22:47 +00:00
|
|
|
icon = PATHTOF(UI\IconInteraction_ca.paa);
|
2015-01-11 19:32:51 +00:00
|
|
|
class Arguments {
|
|
|
|
class EnableTeamManagement {
|
|
|
|
displayName = "Enable Team Management";
|
|
|
|
description = "Should players be allowed to use the Team Management Menu? Default: Yes";
|
|
|
|
typeName = "BOOL";
|
|
|
|
class values {
|
|
|
|
class Yes { default = 1; name = "Yes"; value = 1;};
|
|
|
|
class No { name = "No"; value = 0; };
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class Man;
|
|
|
|
class CAManBase: Man {
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Actions {
|
|
|
|
class ACE_TeamManagement {
|
|
|
|
displayName = "$STR_ACE_Interaction_TeamManagement";
|
2015-01-11 19:32:51 +00:00
|
|
|
distance = 4;
|
2015-01-11 21:22:47 +00:00
|
|
|
condition = QUOTE( alive _target && {!isPlayer _target} && {_target in units group _player} && {GVAR(EnableTeamManagement)} );
|
2015-01-11 19:32:51 +00:00
|
|
|
statement = "";
|
|
|
|
showDisabled = 0;
|
|
|
|
priority = 3.2;
|
2015-01-11 21:22:47 +00:00
|
|
|
icon = PATHOF(UI\team\team_management_ca.paa);
|
2015-01-12 04:20:02 +00:00
|
|
|
subMenu[] = {"ACE_TeamManagement", 0};
|
2015-01-11 19:32:51 +00:00
|
|
|
hotkey = "M";
|
|
|
|
enableInside = 1;
|
|
|
|
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_JoinTeamRed {
|
|
|
|
displayName = "$STR_ACE_Interaction_JoinTeamRed";
|
2015-01-11 19:32:51 +00:00
|
|
|
distance = 4;
|
2015-01-11 21:22:47 +00:00
|
|
|
condition = QUOTE( alive _target && {!isPlayer _target} && {_target in units group _player} );
|
|
|
|
statement = QUOTE( [_target, 'RED'] call FUNC(joinTeam) );
|
2015-01-11 19:32:51 +00:00
|
|
|
showDisabled = 1;
|
2015-01-11 21:22:47 +00:00
|
|
|
icon = PATHOF(UI\team\team_red_ca.paa);
|
2015-01-11 19:32:51 +00:00
|
|
|
priority = 2.4;
|
|
|
|
hotkey = "R";
|
|
|
|
enableInside = 1;
|
|
|
|
};
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_JoinTeamGreen {
|
|
|
|
displayName = "$STR_ACE_Interaction_JoinTeamGreen";
|
2015-01-11 19:32:51 +00:00
|
|
|
distance = 4;
|
2015-01-11 21:22:47 +00:00
|
|
|
condition = QUOTE( alive _target && {!isPlayer _target} && {_target in units group _player} );
|
|
|
|
statement = QUOTE( [_target, 'GREEN'] call FUNC(joinTeam) );
|
2015-01-11 19:32:51 +00:00
|
|
|
showDisabled = 1;
|
2015-01-11 21:22:47 +00:00
|
|
|
icon = PATHOF(UI\team\team_green_ca.paa);
|
2015-01-11 19:32:51 +00:00
|
|
|
priority = 2.3;
|
|
|
|
hotkey = "G";
|
|
|
|
enableInside = 1;
|
|
|
|
};
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_JoinTeamBlue {
|
|
|
|
displayName = "$STR_ACE_Interaction_JoinTeamBlue";
|
2015-01-11 19:32:51 +00:00
|
|
|
distance = 4;
|
2015-01-11 21:22:47 +00:00
|
|
|
condition = QUOTE( alive _target && {!isPlayer _target} && {_target in units group _player} );
|
|
|
|
statement = QUOTE( [_target, 'BLUE'] call FUNC(joinTeam) );
|
2015-01-11 19:32:51 +00:00
|
|
|
showDisabled = 1;
|
2015-01-11 21:22:47 +00:00
|
|
|
icon = PATHOF(UI\team\team_blue_ca.paa);
|
2015-01-11 19:32:51 +00:00
|
|
|
priority = 2.2;
|
|
|
|
hotkey = "B";
|
|
|
|
enableInside = 1;
|
|
|
|
};
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_JoinTeamYellow {
|
|
|
|
displayName = "$STR_ACE_Interaction_JoinTeamYellow";
|
2015-01-11 19:32:51 +00:00
|
|
|
distance = 4;
|
2015-01-11 21:22:47 +00:00
|
|
|
condition = QUOTE( alive _target && {!isPlayer _target} && {_target in units group _player} );
|
|
|
|
statement = QUOTE( [_target, 'YELLOW'] call FUNC(joinTeam) );
|
2015-01-11 19:32:51 +00:00
|
|
|
showDisabled = 1;
|
2015-01-11 21:22:47 +00:00
|
|
|
icon = PATHOF(UI\team\team_yellow_ca.paa);
|
2015-01-11 19:32:51 +00:00
|
|
|
priority = 2.1;
|
|
|
|
hotkey = "Y";
|
|
|
|
enableInside = 1;
|
|
|
|
};
|
|
|
|
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_LeaveTeam {
|
|
|
|
displayName = "$STR_ACE_Interaction_LeaveTeam";
|
2015-01-11 19:32:51 +00:00
|
|
|
distance = 4;
|
2015-01-11 21:22:47 +00:00
|
|
|
condition = QUOTE( alive _target && {!isPlayer _target} && {_target in units group _player} && {assignedTeam _player != 'MAIN'} );
|
|
|
|
statement = QUOTE( [_target, 'MAIN'] call FUNC(joinTeam) );
|
2015-01-11 19:32:51 +00:00
|
|
|
showDisabled = 1;
|
2015-01-11 21:22:47 +00:00
|
|
|
icon = PATHOF(UI\team\team_white_ca.paa);
|
2015-01-11 19:32:51 +00:00
|
|
|
priority = 2.5;
|
|
|
|
hotkey = "N";
|
|
|
|
enableInside = 1;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_TapShoulder {
|
|
|
|
displayName = "$STR_ACE_Interaction_TapShoulder";
|
2015-01-11 19:32:51 +00:00
|
|
|
distance = 4;
|
2015-01-11 21:22:47 +00:00
|
|
|
condition = QUOTE( [_player, _target] call FUNC(canTapShoulder) );
|
|
|
|
statement = QUOTE( [_player, _target] call FUNC(tapShoulder) );
|
2015-01-11 19:32:51 +00:00
|
|
|
showDisabled = 1;
|
|
|
|
priority = 2.8;
|
|
|
|
hotkey = "Q";
|
|
|
|
enableInside = 1;
|
|
|
|
};
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_JoinGroup {
|
|
|
|
displayName = "$STR_ACE_Interaction_JoinGroup";
|
2015-01-11 19:32:51 +00:00
|
|
|
distance = 4;
|
2015-01-11 21:22:47 +00:00
|
|
|
condition = QUOTE( side group _player == side group _target && {group _player != group _target} );
|
|
|
|
statement = QUOTE( [_player] joinSilent group _target; );
|
2015-01-11 19:32:51 +00:00
|
|
|
showDisabled = 0;
|
|
|
|
priority = 2.6;
|
2015-01-11 21:22:47 +00:00
|
|
|
icon = PATHOF(UI\team\team_management_ca.paa);
|
2015-01-11 19:32:51 +00:00
|
|
|
hotkey = "J";
|
|
|
|
enableInside = 1;
|
|
|
|
};
|
|
|
|
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_GetDown {
|
|
|
|
displayName = "$STR_ACE_Interaction_GetDown";
|
2015-01-11 19:32:51 +00:00
|
|
|
distance = 4;
|
2015-01-11 21:22:47 +00:00
|
|
|
condition = QUOTE( [_target] call FUNC(canInteractWith) );
|
|
|
|
statement = QUOTE( [_target] call FUNC(getDown) );
|
2015-01-11 19:32:51 +00:00
|
|
|
showDisabled = 0;
|
|
|
|
priority = 2.2;
|
|
|
|
};
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_SendAway {
|
|
|
|
displayName = "$STR_ACE_Interaction_SendAway";
|
2015-01-11 19:32:51 +00:00
|
|
|
distance = 4;
|
2015-01-11 21:22:47 +00:00
|
|
|
condition = QUOTE( [_target] call FUNC(canInteractWith) );
|
|
|
|
statement = QUOTE( [_target] call FUNC(sendAway) );
|
2015-01-11 19:32:51 +00:00
|
|
|
showDisabled = 0;
|
|
|
|
priority = 2.0;
|
|
|
|
};
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Pardon {
|
|
|
|
displayName = "$STR_ACE_Interaction_Pardon";
|
2015-01-11 19:32:51 +00:00
|
|
|
distance = 4;
|
2015-01-11 21:22:47 +00:00
|
|
|
condition = QUOTE( rating _target < -2000 && {alive _target} && {side group _player == side group _target} );
|
|
|
|
statement = QUOTE( [_target, '{_this addRating -rating _this}', _target] call EFUNC(core,execRemoteFnc) );
|
2015-01-11 19:32:51 +00:00
|
|
|
showDisabled = 0;
|
|
|
|
priority = 2.5;
|
|
|
|
enableInside = 1;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_SelfActions {
|
|
|
|
class ACE_TeamManagement {
|
|
|
|
displayName = "$STR_ACE_Interaction_TeamManagement";
|
2015-01-11 21:22:47 +00:00
|
|
|
condition = QUOTE( GVAR(EnableTeamManagement) );
|
2015-01-11 19:32:51 +00:00
|
|
|
statement = "";
|
|
|
|
showDisabled = 1;
|
|
|
|
priority = 3.2;
|
2015-01-11 21:22:47 +00:00
|
|
|
icon = PATHOF(UI\team\team_management_ca.paa);
|
2015-01-12 04:20:02 +00:00
|
|
|
subMenu[] = {"ACE_TeamManagement", 1};
|
2015-01-11 19:32:51 +00:00
|
|
|
enableInside = 1;
|
|
|
|
hotkey = "M";
|
|
|
|
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_JoinTeamRed {
|
|
|
|
displayName = "$STR_ACE_Interaction_JoinTeamRed";
|
2015-01-11 21:22:47 +00:00
|
|
|
condition = QUOTE( true );
|
|
|
|
statement = QUOTE( [_player, 'RED'] call FUNC(joinTeam) );
|
2015-01-11 19:32:51 +00:00
|
|
|
showDisabled = 1;
|
|
|
|
priority = 2.4;
|
2015-01-11 21:22:47 +00:00
|
|
|
icon = PATHOF(UI\team\team_red_ca.paa);
|
2015-01-11 19:32:51 +00:00
|
|
|
enableInside = 1;
|
|
|
|
hotkey = "R";
|
|
|
|
};
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_JoinTeamGreen {
|
|
|
|
displayName = "$STR_ACE_Interaction_JoinTeamGreen";
|
2015-01-11 21:22:47 +00:00
|
|
|
condition = QUOTE( true );
|
|
|
|
statement = QUOTE( [_player, 'GREEN'] call FUNC(joinTeam) );
|
2015-01-11 19:32:51 +00:00
|
|
|
showDisabled = 1;
|
|
|
|
priority = 2.3;
|
2015-01-11 21:22:47 +00:00
|
|
|
icon = PATHOF(UI\team\team_green_ca.paa);
|
2015-01-11 19:32:51 +00:00
|
|
|
enableInside = 1;
|
|
|
|
hotkey = "G";
|
|
|
|
};
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_JoinTeamBlue {
|
|
|
|
displayName = "$STR_ACE_Interaction_JoinTeamBlue";
|
2015-01-11 21:22:47 +00:00
|
|
|
condition = QUOTE( true );
|
|
|
|
statement = QUOTE( [_player, 'BLUE'] call FUNC(joinTeam) );
|
2015-01-11 19:32:51 +00:00
|
|
|
showDisabled = 1;
|
|
|
|
priority = 2.2;
|
2015-01-11 21:22:47 +00:00
|
|
|
icon = PATHOF(UI\team\team_blue_ca.paa);
|
2015-01-11 19:32:51 +00:00
|
|
|
enableInside = 1;
|
|
|
|
hotkey = "B";
|
|
|
|
};
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_JoinTeamYellow {
|
|
|
|
displayName = "$STR_ACE_Interaction_JoinTeamYellow";
|
2015-01-11 21:22:47 +00:00
|
|
|
condition = QUOTE( true );
|
|
|
|
statement = QUOTE( [_player, 'YELLOW'] call FUNC(joinTeam) );
|
2015-01-11 19:32:51 +00:00
|
|
|
showDisabled = 1;
|
|
|
|
priority = 2.1;
|
2015-01-11 21:22:47 +00:00
|
|
|
icon = PATHOF(UI\team\team_yellow_ca.paa);
|
2015-01-11 19:32:51 +00:00
|
|
|
enableInside = 1;
|
|
|
|
hotkey = "Y";
|
|
|
|
};
|
|
|
|
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_LeaveTeam {
|
|
|
|
displayName = "$STR_ACE_Interaction_LeaveTeam";
|
2015-01-11 21:22:47 +00:00
|
|
|
condition = QUOTE( assignedTeam _player != 'MAIN' );
|
|
|
|
statement = QUOTE( [_player, 'MAIN'] call FUNC(joinTeam) );
|
2015-01-11 19:32:51 +00:00
|
|
|
showDisabled = 1;
|
|
|
|
priority = 2.5;
|
2015-01-11 21:22:47 +00:00
|
|
|
icon = PATHOF(UI\team\team_white_ca.paa);
|
2015-01-11 19:32:51 +00:00
|
|
|
enableInside = 1;
|
|
|
|
hotkey = "N";
|
|
|
|
};
|
|
|
|
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_BecomeLeader {
|
|
|
|
displayName = "$STR_ACE_Interaction_BecomeLeader";
|
2015-01-11 21:22:47 +00:00
|
|
|
condition = QUOTE( count (units group _player) > 1 && {leader group _player != _player} );
|
|
|
|
statement = QUOTE( _newGroup = createGroup side group _player; (units group _player) joinSilent _newGroup; _newGroup selectLeader _player; );
|
2015-01-11 19:32:51 +00:00
|
|
|
showDisabled = 1;
|
|
|
|
priority = 1.0;
|
2015-01-11 21:22:47 +00:00
|
|
|
icon = PATHOF(UI\team\team_white_ca.paa);
|
2015-01-11 19:32:51 +00:00
|
|
|
enableInside = 1;
|
|
|
|
hotkey = "L";
|
|
|
|
};
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_LeaveGroup {
|
|
|
|
displayName = "$STR_ACE_Interaction_LeaveGroup";
|
2015-01-11 21:22:47 +00:00
|
|
|
condition = QUOTE( count (units group _player) > 1 );
|
|
|
|
statement = QUOTE( _oldGroup = units group _player; _newGroup = createGroup side _player; [_player] joinSilent _newGroup; {_player reveal _x} forEach _oldGroup; );
|
2015-01-11 19:32:51 +00:00
|
|
|
showDisabled = 1;
|
|
|
|
priority = 1.2;
|
2015-01-11 21:22:47 +00:00
|
|
|
icon = PATHOF(UI\team\team_management_ca.paa);
|
2015-01-11 19:32:51 +00:00
|
|
|
enableInside = 1;
|
|
|
|
hotkey = "M";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
/* DANCE ANIMATION DOESN'T WORK :(
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Dance {
|
|
|
|
displayName = "$STR_ACE_Interaction_Dance";
|
|
|
|
condition = "isClass (configFile >> 'CfgPatches' >> 'ACE_Movement') and !ACE_Dancing";
|
|
|
|
statement = "ACE_Dancing = true; [-2, {_this switchMove 'TestDance';}, player] call CBA_fnc_globalExecute;";
|
2015-01-11 19:32:51 +00:00
|
|
|
showDisabled = 0;
|
|
|
|
priority = -1.2;
|
|
|
|
};
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_StopDancing {
|
|
|
|
displayName = "$STR_ACE_Interaction_StopDancing";
|
|
|
|
condition = "ACE_Dancing";
|
|
|
|
statement = "ACE_Dancing = false; [-2, {_this switchMove '';}, player] call CBA_fnc_globalExecute;";
|
2015-01-11 19:32:51 +00:00
|
|
|
showDisabled = 0;
|
|
|
|
priority = -1.2;
|
|
|
|
};
|
|
|
|
*/
|
|
|
|
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Gestures {
|
|
|
|
displayName = "$STR_ACE_Interaction_Gestures";
|
2015-01-11 19:32:51 +00:00
|
|
|
condition = "canStand _target";
|
|
|
|
statement = "";
|
|
|
|
showDisabled = 1;
|
|
|
|
priority = 3.5;
|
2015-01-12 04:20:02 +00:00
|
|
|
subMenu[] = {"ACE_Gestures", 1};
|
|
|
|
icon = "ACE_Interaction\UI\gestures_ca.paa";
|
2015-01-11 19:32:51 +00:00
|
|
|
hotkey = "G";
|
|
|
|
|
2015-01-12 04:20:02 +00:00
|
|
|
/*class ACE_Gesture_Advance {
|
|
|
|
displayName = "$STR_ACE_Interaction_Gestures_Attack";
|
2015-01-11 19:32:51 +00:00
|
|
|
condition = "canStand _target";
|
|
|
|
statement = "_target playActionNow 'gestureAttack';";
|
|
|
|
showDisabled = 1;
|
|
|
|
priority = 2.0;
|
|
|
|
};*/
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Gesture_Advance {
|
|
|
|
displayName = "$STR_ACE_Interaction_Gestures_Advance";
|
2015-01-11 19:32:51 +00:00
|
|
|
condition = "canStand _target";
|
|
|
|
statement = "_target playActionNow 'gestureAdvance';";
|
|
|
|
showDisabled = 1;
|
|
|
|
priority = 1.9;
|
|
|
|
hotkey = "1";
|
|
|
|
};
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Gesture_Go {
|
|
|
|
displayName = "$STR_ACE_Interaction_Gestures_Go";
|
2015-01-11 19:32:51 +00:00
|
|
|
condition = "canStand _target";
|
|
|
|
statement = "_target playActionNow (['gestureGo', 'gestureGoB'] select (floor random 2));";
|
|
|
|
showDisabled = 1;
|
|
|
|
priority = 1.8;
|
|
|
|
hotkey = "2";
|
|
|
|
};
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Gesture_Follow {
|
|
|
|
displayName = "$STR_ACE_Interaction_Gestures_Follow";
|
2015-01-11 19:32:51 +00:00
|
|
|
condition = "canStand _target";
|
|
|
|
statement = "_target playActionNow 'gestureFollow';";
|
|
|
|
showDisabled = 1;
|
|
|
|
priority = 1.7;
|
|
|
|
hotkey = "3";
|
|
|
|
};
|
2015-01-12 04:20:02 +00:00
|
|
|
/*class ACE_Gesture_Point {
|
|
|
|
displayName = "$STR_ACE_Interaction_Gestures_Point";
|
2015-01-11 19:32:51 +00:00
|
|
|
condition = "canStand _target";
|
|
|
|
statement = "_target playActionNow 'gesturePoint';";
|
|
|
|
showDisabled = 1;
|
|
|
|
priority = 1.6;
|
|
|
|
};*/
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Gesture_Up {
|
|
|
|
displayName = "$STR_ACE_Interaction_Gestures_Up";
|
2015-01-11 19:32:51 +00:00
|
|
|
condition = "canStand _target";
|
|
|
|
statement = "_target playActionNow 'gestureUp';";
|
|
|
|
showDisabled = 1;
|
|
|
|
priority = 1.5;
|
|
|
|
hotkey = "4";
|
|
|
|
};
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Gesture_Cover {
|
|
|
|
displayName = "$STR_ACE_Interaction_Gestures_Cover";
|
2015-01-11 19:32:51 +00:00
|
|
|
condition = "canStand _target";
|
|
|
|
statement = "_target playActionNow 'gestureCover';";
|
|
|
|
showDisabled = 1;
|
|
|
|
priority = 1.4;
|
|
|
|
hotkey = "5";
|
|
|
|
};
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Gesture_CeaseFire {
|
|
|
|
displayName = "$STR_ACE_Interaction_Gestures_Cease_Fire";
|
2015-01-11 19:32:51 +00:00
|
|
|
condition = "canStand _target";
|
|
|
|
statement = "_target playActionNow 'gestureCeaseFire';";
|
|
|
|
showDisabled = 1;
|
|
|
|
priority = 1.3;
|
|
|
|
hotkey = "6";
|
|
|
|
};
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Gesture_Freeze {
|
|
|
|
displayName = "$STR_ACE_Interaction_Gestures_Freeze";
|
2015-01-11 19:32:51 +00:00
|
|
|
condition = "canStand _target";
|
|
|
|
statement = "_target playActionNow 'gestureFreeze';";
|
|
|
|
showDisabled = 1;
|
|
|
|
priority = 1.2;
|
|
|
|
hotkey = "7";
|
|
|
|
};
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Gesture_Yes {
|
|
|
|
displayName = "$STR_ACE_Interaction_Gestures_Yes";
|
2015-01-11 19:32:51 +00:00
|
|
|
condition = "canStand _target";
|
|
|
|
statement = "_target playActionNow (['gestureYes', 'gestureNod'] select (floor random 2));";
|
|
|
|
showDisabled = 1;
|
|
|
|
priority = 1.1;
|
|
|
|
hotkey = "8";
|
|
|
|
};
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Gesture_No {
|
|
|
|
displayName = "$STR_ACE_Interaction_Gestures_No";
|
2015-01-11 19:32:51 +00:00
|
|
|
condition = "canStand _target";
|
|
|
|
statement = "_target playActionNow 'gestureNo';";
|
|
|
|
showDisabled = 1;
|
|
|
|
priority = 1.0;
|
|
|
|
hotkey = "9";
|
|
|
|
};
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Gesture_Hi {
|
|
|
|
displayName = "$STR_ACE_Interaction_Gestures_Hi";
|
2015-01-11 19:32:51 +00:00
|
|
|
condition = "canStand _target";
|
|
|
|
statement = "_target playActionNow (['gestureHi', 'gestureHiB', 'gestureHiC'] select (floor random 3));";
|
|
|
|
showDisabled = 1;
|
|
|
|
priority = 0.9;
|
|
|
|
hotkey = "0";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Equipment {
|
|
|
|
displayName = "$STR_ACE_Interaction_Equipment";
|
2015-01-11 19:32:51 +00:00
|
|
|
condition = "true";
|
|
|
|
statement = "";
|
|
|
|
showDisabled = 1;
|
|
|
|
priority = 4.5;
|
|
|
|
icon = ""; // @todo
|
2015-01-12 04:20:02 +00:00
|
|
|
subMenu[] = {"ACE_Equipment", 1};
|
2015-01-11 19:32:51 +00:00
|
|
|
enableInside = 1;
|
|
|
|
hotkey = "E";
|
|
|
|
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Dummy {
|
2015-01-11 19:32:51 +00:00
|
|
|
displayName = "";
|
|
|
|
condition = "false";
|
|
|
|
statement = "";
|
|
|
|
showDisabled = 1;
|
|
|
|
priority = -99;
|
2015-01-12 04:20:02 +00:00
|
|
|
icon = PATHOF(UI\blank_CO.paa);
|
2015-01-11 19:32:51 +00:00
|
|
|
enableInside = 1;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class LandVehicle;
|
|
|
|
class Car: LandVehicle {
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Actions {};
|
|
|
|
class ACE_SelfActions {};
|
2015-01-11 19:32:51 +00:00
|
|
|
};
|
|
|
|
class Tank: LandVehicle {
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Actions {};
|
|
|
|
class ACE_SelfActions {};
|
2015-01-11 19:32:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class Air;
|
|
|
|
class Helicopter: Air {
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Actions {};
|
|
|
|
class ACE_SelfActions {};
|
2015-01-11 19:32:51 +00:00
|
|
|
};
|
|
|
|
class Plane: Air {
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Actions {};
|
|
|
|
class ACE_SelfActions {};
|
2015-01-11 19:32:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class Ship;
|
|
|
|
class Ship_F: Ship {
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Actions {
|
|
|
|
class ACE_Push {
|
|
|
|
displayName = "$STR_ACE_Interaction_Push";
|
2015-01-11 19:32:51 +00:00
|
|
|
distance = 4;
|
2015-01-11 21:22:47 +00:00
|
|
|
condition = QUOTE( getMass _target < 1000 and alive _target );
|
2015-01-12 20:35:18 +00:00
|
|
|
//statement = QUOTE( [_target, [2 * (vectorDir _player select 0), 2 * (vectorDir _player select 1), 0.5]] call FUNC(push); );
|
2015-01-11 19:32:51 +00:00
|
|
|
showDisabled = 0;
|
|
|
|
priority = -1;
|
|
|
|
};
|
|
|
|
};
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_SelfActions {};
|
2015-01-11 19:32:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class StaticWeapon: LandVehicle {
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Actions {};
|
|
|
|
class ACE_SelfActions {};
|
2015-01-11 19:32:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class StaticMortar;
|
|
|
|
class Mortar_01_base_F: StaticMortar {
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Actions {};
|
|
|
|
class ACE_SelfActions {};
|
2015-01-11 19:32:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class Box_NATO_Support_F;
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Box_Misc: Box_NATO_Support_F {
|
2015-01-11 19:32:51 +00:00
|
|
|
class TransportItems {
|
2015-01-12 04:20:02 +00:00
|
|
|
MACRO_ADDITEM(ACE_CableTie,24)
|
2015-01-11 19:32:51 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class CfgWeapons {
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_ItemCore;
|
2015-01-11 19:32:51 +00:00
|
|
|
class InventoryItem_Base_F;
|
|
|
|
|
2015-01-12 04:20:02 +00:00
|
|
|
class ACE_CableTie: ACE_ItemCore {
|
|
|
|
displayName = "$STR_ACE_Interaction_CableTie_Name";
|
|
|
|
descriptionShort = "$STR_ACE_Interaction_CableTie_Description";
|
|
|
|
model = PATHOF(ACE_cabletie.p3d);
|
|
|
|
picture = PATHOF(UI\ACE_cabletie_x_ca.paa);
|
2015-01-11 19:32:51 +00:00
|
|
|
scope = 2;
|
|
|
|
class ItemInfo: InventoryItem_Base_F {
|
|
|
|
mass = 1;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
#include <Menu_Config.hpp>
|