2015-02-03 02:04:50 +00:00
|
|
|
class CfgVehicles {
|
2015-02-04 05:13:44 +00:00
|
|
|
class Man;
|
|
|
|
class CAManBase: Man {
|
|
|
|
class ACE_Actions {
|
|
|
|
class ACE_SetCaptive {
|
|
|
|
displayName = "$STR_ACE_Captives_SetCaptive";
|
|
|
|
distance = 4;
|
2015-02-04 05:56:51 +00:00
|
|
|
condition = QUOTE(('ACE_CableTie' in (items _player)) && {alive _target} && {!(_target getVariable [ARR_2('ACE_isCaptive', false)])});
|
|
|
|
statement = QUOTE(_player removeItem 'ACE_CableTie'; [ARR_3('SetCaptive', [_target], [ARR_2(_target, true)])] call EFUNC(common,targetEvent););
|
2015-02-04 05:13:44 +00:00
|
|
|
showDisabled = 0;
|
|
|
|
priority = 2.4;
|
|
|
|
icon = QUOTE(PATHTOF(UI\handcuff_ca.paa));
|
|
|
|
hotkey = "C";
|
|
|
|
};
|
|
|
|
class ACE_ReleaseCaptive {
|
|
|
|
displayName = "$STR_ACE_Captives_ReleaseCaptive";
|
|
|
|
distance = 4;
|
2015-02-04 05:56:51 +00:00
|
|
|
condition = QUOTE(_target getVariable [ARR_2('ACE_isCaptive', false)] && {isNull (attachedTo _target)});
|
|
|
|
statement = QUOTE([ARR_3('SetCaptive', [_target], [ARR_2(_target, false)])] call EFUNC(common,targetEvent););
|
2015-02-04 05:13:44 +00:00
|
|
|
exceptions[] = {"ACE_Interaction_isNotEscorting"};
|
|
|
|
showDisabled = 0;
|
|
|
|
priority = 2.4;
|
|
|
|
icon = QUOTE(PATHTOF(UI\handcuff_ca.paa));
|
|
|
|
hotkey = "R";
|
|
|
|
};
|
|
|
|
class ACE_EscortCaptive {
|
|
|
|
displayName = "$STR_ACE_Captives_EscortCaptive";
|
|
|
|
distance = 4;
|
2015-02-04 05:56:51 +00:00
|
|
|
condition = QUOTE((_target getVariable [ARR_2('ACE_isCaptive', false)]) && {isNull (attachedTo _target)} && {alive _target} && {!(_target getVariable [ARR_2('ACE_isUnconscious', false)])});
|
2015-02-04 05:13:44 +00:00
|
|
|
statement = QUOTE([ARR_2(_target, true)] call FUNC(escortCaptive));
|
|
|
|
exceptions[] = {"ACE_Interaction_isNotEscorting"};
|
|
|
|
showDisabled = 0;
|
|
|
|
icon = QUOTE(PATHTOF(UI\captive_ca.paa));
|
|
|
|
priority = 2.3;
|
|
|
|
hotkey = "E";
|
|
|
|
};
|
|
|
|
class ACE_StopEscorting {
|
|
|
|
displayName = "$STR_ACE_Captives_StopEscorting";
|
|
|
|
distance = 4;
|
2015-02-04 05:56:51 +00:00
|
|
|
condition = QUOTE((_target getVariable [ARR_2('ACE_isCaptive', false)]) && {_target in (attachedObjects _player)});
|
2015-02-04 05:13:44 +00:00
|
|
|
statement = QUOTE([ARR_2(_target, false)] call FUNC(escortCaptive));
|
|
|
|
exceptions[] = {"ACE_Interaction_isNotEscorting"};
|
|
|
|
showDisabled = 0;
|
|
|
|
icon = QUOTE(PATHTOF(UI\captive_ca.paa));
|
|
|
|
priority = 2.3;
|
|
|
|
hotkey = "E";
|
|
|
|
};
|
|
|
|
class ACE_LoadCaptive {
|
|
|
|
displayName = "$STR_ACE_Captives_LoadCaptive";
|
|
|
|
distance = 4;
|
|
|
|
condition = QUOTE([ARR_3(_player, _target, objNull)] call FUNC(canLoadCaptive));
|
|
|
|
statement = QUOTE([ARR_3(_player, _target, objNull)] call FUNC(loadCaptive));
|
|
|
|
exceptions[] = {"ACE_Interaction_isNotEscorting"};
|
|
|
|
showDisabled = 0;
|
|
|
|
icon = QUOTE(PATHTOF(UI\captive_ca.paa));
|
|
|
|
priority = 2.2;
|
|
|
|
hotkey = "L";
|
|
|
|
};
|
|
|
|
class ACE_FriskPerson {
|
|
|
|
displayName = "$STR_ACE_Captives_FriskPerson";
|
|
|
|
distance = 2;
|
|
|
|
condition = QUOTE([ARR_2(_player, _target)] call FUNC(canFriskPerson));
|
|
|
|
statement = QUOTE([ARR_2(_player, _target)] call FUNC(openFriskMenu));
|
|
|
|
showDisabled = 0;
|
|
|
|
//icon = ""; //@todo
|
|
|
|
priority = 3;
|
|
|
|
hotkey = "F";
|
|
|
|
};
|
|
|
|
};
|
2015-02-03 02:04:50 +00:00
|
|
|
|
2015-02-04 05:13:44 +00:00
|
|
|
class ACE_SelfActions {
|
|
|
|
class ACE_StopEscortingSelf {
|
|
|
|
displayName = "$STR_ACE_Captives_StopEscorting";
|
2015-02-04 05:56:51 +00:00
|
|
|
condition = QUOTE(((_player getVariable [ARR_2('ACE_escortedUnit', objNull)]) getVariable ['ACE_isCaptive', false]) && {(_player getVariable [ARR_2('ACE_escortedUnit', objNull)]) in attachedObjects _player});
|
|
|
|
statement = QUOTE([ARR_2((_player getVariable [ARR_2('ACE_escortedUnit', objNull)]), false)] call FUNC(_escortCaptive););
|
2015-02-04 05:13:44 +00:00
|
|
|
exceptions[] = {"ACE_Interaction_isNotEscorting"};
|
|
|
|
showDisabled = 0;
|
|
|
|
priority = 2.3;
|
|
|
|
hotkey = "C";
|
|
|
|
};
|
|
|
|
/*class ACE_LoadCaptiveSelf {
|
2015-02-03 02:04:50 +00:00
|
|
|
displayName = "$STR_ACE_Captives_LoadCaptive";
|
|
|
|
condition = "[_player, objNull, objNull] call ACE_Captives_fnc_canLoadCaptiveIntoVehicle";
|
|
|
|
statement = "[_player, objNull, objNull] call ACE_Captives_fnc_loadCaptiveIntoVehicle";
|
|
|
|
exceptions[] = {"ACE_Interaction_isNotEscorting"};
|
|
|
|
showDisabled = 0;
|
|
|
|
priority = 2.2;
|
|
|
|
hotkey = "K";
|
2015-02-04 05:13:44 +00:00
|
|
|
};*/
|
|
|
|
};
|
2015-02-03 02:04:50 +00:00
|
|
|
};
|
|
|
|
|
2015-02-04 05:13:44 +00:00
|
|
|
#define MACRO_LOADUNLOADCAPTIVE \
|
|
|
|
class ACE_Actions { \
|
|
|
|
class ACE_LoadCaptive { \
|
|
|
|
displayName = "$STR_ACE_Captives_LoadCaptive"; \
|
|
|
|
distance = 4; \
|
|
|
|
condition = QUOTE([ARR_3(_player, objNull, _target)] call FUNC(canLoadCaptive)); \
|
|
|
|
statement = QUOTE([ARR_3(_player, objNull, _target)] call FUNC(loadCaptive)); \
|
|
|
|
exceptions[] = {"ACE_Interaction_isNotEscorting"}; \
|
|
|
|
showDisabled = 0; \
|
|
|
|
priority = 1.2; \
|
|
|
|
hotkey = "L"; \
|
|
|
|
}; \
|
|
|
|
class ACE_UnloadCaptive { \
|
|
|
|
displayName = "$STR_ACE_Captives_UnloadCaptive"; \
|
|
|
|
distance = 4; \
|
|
|
|
condition = QUOTE([ARR_2(_player, _target)] call FUNC(canUnloadCaptive)); \
|
|
|
|
statement = QUOTE([ARR_2(_player, _target)] call FUNC(unloadCaptive)); \
|
|
|
|
showDisabled = 0; \
|
|
|
|
priority = 1.2; \
|
|
|
|
hotkey = "C"; \
|
|
|
|
}; \
|
|
|
|
};
|
2015-02-03 02:04:50 +00:00
|
|
|
|
2015-02-04 05:13:44 +00:00
|
|
|
class LandVehicle;
|
|
|
|
class Car: LandVehicle {
|
|
|
|
MACRO_LOADUNLOADCAPTIVE
|
|
|
|
};
|
|
|
|
class Tank: LandVehicle {
|
|
|
|
MACRO_LOADUNLOADCAPTIVE
|
|
|
|
};
|
2015-02-03 02:04:50 +00:00
|
|
|
|
2015-02-04 05:13:44 +00:00
|
|
|
class Air;
|
|
|
|
class Helicopter: Air {
|
|
|
|
MACRO_LOADUNLOADCAPTIVE
|
|
|
|
};
|
|
|
|
class Plane: Air {
|
|
|
|
MACRO_LOADUNLOADCAPTIVE
|
|
|
|
};
|
2015-02-03 02:04:50 +00:00
|
|
|
|
2015-02-04 05:13:44 +00:00
|
|
|
class Ship;
|
|
|
|
class Ship_F: Ship {
|
|
|
|
MACRO_LOADUNLOADCAPTIVE
|
|
|
|
};
|
2015-02-03 02:04:50 +00:00
|
|
|
|
2015-02-04 05:13:44 +00:00
|
|
|
class StaticWeapon: LandVehicle {
|
|
|
|
MACRO_LOADUNLOADCAPTIVE
|
|
|
|
};
|
2015-02-03 02:04:50 +00:00
|
|
|
|
2015-02-04 05:13:44 +00:00
|
|
|
class StaticMortar;
|
|
|
|
class Mortar_01_base_F: StaticMortar {
|
|
|
|
MACRO_LOADUNLOADCAPTIVE
|
|
|
|
};
|
2015-02-03 02:04:50 +00:00
|
|
|
|
2015-02-04 05:13:44 +00:00
|
|
|
#define MACRO_ADDITEM(ITEM,COUNT) class _xx_##ITEM { \
|
|
|
|
name = #ITEM; \
|
|
|
|
count = COUNT; \
|
|
|
|
};
|
2015-02-03 02:04:50 +00:00
|
|
|
|
2015-02-04 05:13:44 +00:00
|
|
|
class Box_NATO_Support_F;
|
|
|
|
class ACE_Box_Misc: Box_NATO_Support_F {
|
|
|
|
class TransportItems {
|
|
|
|
MACRO_ADDITEM(ACE_CableTie,12)
|
|
|
|
};
|
2015-02-03 02:04:50 +00:00
|
|
|
};
|
|
|
|
};
|