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 {
|
2015-03-01 03:48:29 +00:00
|
|
|
class ACE_ApplyHandcuffs {
|
2015-05-27 17:04:25 +00:00
|
|
|
displayName = CSTRING(SetCaptive);
|
2015-02-19 18:36:27 +00:00
|
|
|
selection = "righthand";
|
2015-03-01 03:48:29 +00:00
|
|
|
distance = 2;
|
|
|
|
condition = QUOTE([ARR_2(_player, _target)] call FUNC(canApplyHandcuffs));
|
|
|
|
statement = QUOTE([ARR_2(_player, _target)] call FUNC(doApplyHandcuffs));
|
2017-08-22 18:30:56 +00:00
|
|
|
exceptions[] = {"isNotSwimming", "isNotInside"};
|
2016-04-08 18:34:50 +00:00
|
|
|
icon = QPATHTOF(UI\handcuff_ca.paa);
|
2015-03-01 03:48:29 +00:00
|
|
|
};
|
|
|
|
|
2015-02-19 18:36:27 +00:00
|
|
|
class ACE_MainActions {
|
2015-08-24 04:41:35 +00:00
|
|
|
class ACE_RemoveHandcuffs {
|
|
|
|
displayName = CSTRING(ReleaseCaptive);
|
|
|
|
selection = "righthand";
|
|
|
|
distance = 2;
|
|
|
|
condition = QUOTE([ARR_2(_player, _target)] call FUNC(canRemoveHandcuffs));
|
|
|
|
statement = QUOTE([ARR_2(_player, _target)] call FUNC(doRemoveHandcuffs));
|
2017-08-22 18:30:56 +00:00
|
|
|
exceptions[] = {"isNotSwimming", "isNotInside"};
|
2016-04-08 18:34:50 +00:00
|
|
|
icon = QPATHTOF(UI\handcuff_ca.paa);
|
2015-08-24 04:41:35 +00:00
|
|
|
};
|
2015-02-19 18:36:27 +00:00
|
|
|
class ACE_EscortCaptive {
|
2015-05-27 17:04:25 +00:00
|
|
|
displayName = CSTRING(EscortCaptive);
|
2015-02-19 18:36:27 +00:00
|
|
|
distance = 4;
|
|
|
|
condition = QUOTE([ARR_2(_player, _target)] call FUNC(canEscortCaptive));
|
|
|
|
statement = QUOTE([ARR_3(_player, _target, true)] call FUNC(doEscortCaptive));
|
2017-08-22 18:30:56 +00:00
|
|
|
exceptions[] = {"isNotSwimming"};
|
2015-02-19 18:36:27 +00:00
|
|
|
showDisabled = 0;
|
2016-04-08 18:34:50 +00:00
|
|
|
icon = QPATHTOF(UI\captive_ca.paa);
|
2015-02-19 18:36:27 +00:00
|
|
|
priority = 2.3;
|
|
|
|
};
|
|
|
|
class ACE_StopEscorting {
|
2015-05-27 17:04:25 +00:00
|
|
|
displayName = CSTRING(StopEscorting);
|
2015-02-19 18:36:27 +00:00
|
|
|
distance = 4;
|
|
|
|
condition = QUOTE([ARR_2(_player, _target)] call FUNC(canStopEscorting));
|
|
|
|
statement = QUOTE([ARR_3(_player,_target, false)] call FUNC(doEscortCaptive));
|
2017-08-22 18:30:56 +00:00
|
|
|
exceptions[] = {"isNotEscorting", "isNotSwimming"};
|
2015-02-19 18:36:27 +00:00
|
|
|
showDisabled = 0;
|
2016-04-08 18:34:50 +00:00
|
|
|
icon = QPATHTOF(UI\captive_ca.paa);
|
2015-02-19 18:36:27 +00:00
|
|
|
priority = 2.3;
|
|
|
|
};
|
|
|
|
class ACE_LoadCaptive {
|
2015-05-27 17:04:25 +00:00
|
|
|
displayName = CSTRING(LoadCaptive);
|
2015-02-19 18:36:27 +00:00
|
|
|
distance = 4;
|
|
|
|
condition = QUOTE([ARR_3(_player, _target, objNull)] call FUNC(canLoadCaptive));
|
|
|
|
statement = QUOTE([ARR_3(_player, _target, objNull)] call FUNC(doLoadCaptive));
|
2017-08-22 18:30:56 +00:00
|
|
|
exceptions[] = {"isNotEscorting", "isNotSwimming"};
|
2015-02-19 18:36:27 +00:00
|
|
|
showDisabled = 0;
|
2016-04-08 18:34:50 +00:00
|
|
|
icon = QPATHTOF(UI\captive_ca.paa);
|
2015-02-19 18:36:27 +00:00
|
|
|
priority = 2.2;
|
2017-09-29 20:00:47 +00:00
|
|
|
insertChildren = QUOTE(call DFUNC(addLoadCaptiveActions));
|
2015-02-19 18:36:27 +00:00
|
|
|
};
|
2015-06-13 05:02:30 +00:00
|
|
|
class GVAR(UnloadCaptive) {
|
|
|
|
displayName = CSTRING(UnloadCaptive);
|
|
|
|
distance = 4;
|
|
|
|
condition = QUOTE([ARR_2(_player, _target)] call FUNC(canUnloadCaptive));
|
|
|
|
statement = QUOTE([ARR_2(_player, _target)] call FUNC(doUnloadCaptive));
|
2017-08-22 18:30:56 +00:00
|
|
|
exceptions[] = {"isNotSwimming"};
|
2015-06-13 05:02:30 +00:00
|
|
|
priority = 1.2;
|
|
|
|
};
|
2015-02-04 05:13:44 +00:00
|
|
|
};
|
|
|
|
};
|
2015-02-03 02:04:50 +00:00
|
|
|
|
2015-02-04 05:13:44 +00:00
|
|
|
class ACE_SelfActions {
|
|
|
|
class ACE_StopEscortingSelf {
|
2015-05-27 17:04:25 +00:00
|
|
|
displayName = CSTRING(StopEscorting);
|
2015-02-04 19:16:19 +00:00
|
|
|
condition = QUOTE([ARR_2(_player, objNull)] call FUNC(canStopEscorting));
|
|
|
|
statement = QUOTE([ARR_3(_player,objNull, false)] call FUNC(doEscortCaptive));
|
2017-08-22 18:30:56 +00:00
|
|
|
exceptions[] = {"isNotEscorting", "isNotSwimming"};
|
2015-02-04 05:13:44 +00:00
|
|
|
showDisabled = 0;
|
|
|
|
priority = 2.3;
|
2015-02-07 21:20:51 +00:00
|
|
|
};
|
2015-02-06 21:54:26 +00:00
|
|
|
class ACE_StartSurrenderingSelf {
|
2015-05-27 17:04:25 +00:00
|
|
|
displayName = CSTRING(StartSurrendering);
|
2015-02-06 21:54:26 +00:00
|
|
|
condition = QUOTE([ARR_2(_player, true)] call FUNC(canSurrender));
|
2015-02-17 00:03:09 +00:00
|
|
|
statement = QUOTE([ARR_2(_player, true)] call FUNC(setSurrendered));
|
2017-08-22 18:30:56 +00:00
|
|
|
exceptions[] = {"isNotSwimming"};
|
2015-02-06 21:54:26 +00:00
|
|
|
showDisabled = 0;
|
|
|
|
priority = 0;
|
2016-04-08 18:34:50 +00:00
|
|
|
icon = QPATHTOF(UI\Surrender_ca.paa);
|
2015-02-07 21:20:51 +00:00
|
|
|
};
|
2015-02-06 21:54:26 +00:00
|
|
|
class ACE_StopSurrenderingSelf {
|
2015-05-27 17:04:25 +00:00
|
|
|
displayName = CSTRING(StopSurrendering);
|
2015-02-06 21:54:26 +00:00
|
|
|
condition = QUOTE([ARR_2(_player, false)] call FUNC(canSurrender));
|
2015-02-17 01:20:55 +00:00
|
|
|
statement = QUOTE([ARR_2(_player, false)] call FUNC(setSurrendered));
|
2017-08-22 18:30:56 +00:00
|
|
|
exceptions[] = {"isNotSurrendering", "isNotSwimming"};
|
2015-02-06 21:54:26 +00:00
|
|
|
showDisabled = 0;
|
|
|
|
priority = 0;
|
2016-04-08 18:34:50 +00:00
|
|
|
icon = QPATHTOF(UI\Surrender_ca.paa);
|
2015-02-04 05:13:44 +00:00
|
|
|
};
|
|
|
|
};
|
2015-02-03 02:04:50 +00:00
|
|
|
};
|
|
|
|
|
2015-08-24 04:41:35 +00:00
|
|
|
#define MACRO_LOADCAPTIVE \
|
2015-02-04 05:13:44 +00:00
|
|
|
class ACE_Actions { \
|
2015-02-19 18:36:27 +00:00
|
|
|
class ACE_MainActions { \
|
2015-04-25 21:03:21 +00:00
|
|
|
class GVAR(LoadCaptive) { \
|
2015-05-27 17:04:25 +00:00
|
|
|
displayName = CSTRING(LoadCaptive); \
|
2015-02-19 18:36:27 +00:00
|
|
|
distance = 4; \
|
|
|
|
condition = QUOTE([ARR_3(_player, objNull, _target)] call FUNC(canLoadCaptive)); \
|
|
|
|
statement = QUOTE([ARR_3(_player, objNull, _target)] call FUNC(doLoadCaptive)); \
|
2017-08-22 18:30:56 +00:00
|
|
|
exceptions[] = {"isNotEscorting", "isNotSwimming"}; \
|
2015-02-19 18:36:27 +00:00
|
|
|
priority = 1.2; \
|
|
|
|
}; \
|
2015-02-04 05:13:44 +00:00
|
|
|
}; \
|
|
|
|
};
|
2015-02-03 02:04:50 +00:00
|
|
|
|
2015-02-04 05:13:44 +00:00
|
|
|
class LandVehicle;
|
|
|
|
class Car: LandVehicle {
|
2015-08-24 04:41:35 +00:00
|
|
|
MACRO_LOADCAPTIVE
|
2015-02-04 05:13:44 +00:00
|
|
|
};
|
|
|
|
class Tank: LandVehicle {
|
2015-08-24 04:41:35 +00:00
|
|
|
MACRO_LOADCAPTIVE
|
2015-02-04 05:13:44 +00:00
|
|
|
};
|
2015-02-03 02:04:50 +00:00
|
|
|
|
2015-02-04 05:13:44 +00:00
|
|
|
class Air;
|
|
|
|
class Helicopter: Air {
|
2015-08-24 04:41:35 +00:00
|
|
|
MACRO_LOADCAPTIVE
|
2015-02-04 05:13:44 +00:00
|
|
|
};
|
|
|
|
class Plane: Air {
|
2015-08-24 04:41:35 +00:00
|
|
|
MACRO_LOADCAPTIVE
|
2015-02-04 05:13:44 +00:00
|
|
|
};
|
2015-02-03 02:04:50 +00:00
|
|
|
|
2015-02-04 05:13:44 +00:00
|
|
|
class Ship;
|
|
|
|
class Ship_F: Ship {
|
2015-08-24 04:41:35 +00:00
|
|
|
MACRO_LOADCAPTIVE
|
2015-02-04 05:13:44 +00:00
|
|
|
};
|
2015-02-03 02:04:50 +00:00
|
|
|
|
2015-02-04 05:13:44 +00:00
|
|
|
class StaticWeapon: LandVehicle {
|
2015-08-24 04:41:35 +00:00
|
|
|
MACRO_LOADCAPTIVE
|
2015-02-04 05:13:44 +00:00
|
|
|
};
|
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 {
|
2015-03-11 22:36:40 +00:00
|
|
|
MACRO_ADDITEM(ACE_CableTie,12);
|
2015-02-04 05:13:44 +00:00
|
|
|
};
|
2015-02-03 02:04:50 +00:00
|
|
|
};
|
2015-02-07 21:20:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Logic;
|
|
|
|
class Module_F: Logic {
|
|
|
|
class ArgumentsBaseUnits {};
|
|
|
|
class ModuleDescription {};
|
|
|
|
};
|
|
|
|
|
|
|
|
class GVAR(ModuleSurrender): Module_F {
|
2015-05-27 20:04:41 +00:00
|
|
|
author = ECSTRING(common,ACETeam);
|
2015-02-07 21:20:51 +00:00
|
|
|
category = "ACE";
|
2015-10-23 19:17:31 +00:00
|
|
|
displayName = CSTRING(ModuleSurrender_DisplayName);
|
2015-06-03 01:50:27 +00:00
|
|
|
function = QFUNC(moduleSurrender);
|
2017-11-11 19:21:55 +00:00
|
|
|
scope = 1; //show in editor
|
2015-10-23 19:17:31 +00:00
|
|
|
isGlobal = 0; //run on server
|
2015-02-07 21:20:51 +00:00
|
|
|
isTriggerActivated = 1; //Wait for triggers
|
2016-04-08 18:34:50 +00:00
|
|
|
icon = QPATHTOF(UI\Icon_Module_Make_Unit_Surrender_ca.paa);
|
2015-02-07 21:20:51 +00:00
|
|
|
functionPriority = 0;
|
|
|
|
class Arguments {};
|
|
|
|
class ModuleDescription: ModuleDescription {
|
2015-10-23 19:17:31 +00:00
|
|
|
description = CSTRING(ModuleSurrender_Description);
|
|
|
|
sync[] = {"AnyAI"};
|
|
|
|
};
|
2015-12-30 10:23:52 +00:00
|
|
|
};
|
2015-10-23 19:17:31 +00:00
|
|
|
class GVAR(ModuleHandcuffed): Module_F {
|
|
|
|
author = ECSTRING(common,ACETeam);
|
|
|
|
category = "ACE";
|
|
|
|
displayName = CSTRING(ModuleHandcuffed_DisplayName);
|
|
|
|
function = QFUNC(moduleHandcuffed);
|
2017-11-11 19:21:55 +00:00
|
|
|
scope = 1; //show in editor
|
2015-10-23 19:17:31 +00:00
|
|
|
isGlobal = 0; //run on server
|
|
|
|
isTriggerActivated = 1; //Wait for triggers
|
2016-04-08 18:34:50 +00:00
|
|
|
icon = QPATHTOF(UI\Icon_Module_Make_Unit_Handcuffed_ca.paa);
|
2015-10-23 19:17:31 +00:00
|
|
|
functionPriority = 0;
|
|
|
|
class Arguments {};
|
|
|
|
class ModuleDescription: ModuleDescription {
|
|
|
|
description = CSTRING(ModuleHandcuffed_Description);
|
2015-02-07 21:20:51 +00:00
|
|
|
sync[] = {"AnyAI"};
|
|
|
|
};
|
|
|
|
};
|
2015-06-03 01:50:27 +00:00
|
|
|
|
|
|
|
class ACE_Module: Module_F {};
|
|
|
|
class GVAR(moduleSettings): ACE_Module {
|
2015-06-06 02:02:24 +00:00
|
|
|
author = ECSTRING(common,ACETeam);
|
2015-06-03 01:50:27 +00:00
|
|
|
category = "ACE";
|
2015-06-04 18:19:05 +00:00
|
|
|
displayName = CSTRING(ModuleSettings_DisplayName);
|
2015-06-03 01:50:27 +00:00
|
|
|
function = QFUNC(moduleSettings);
|
2017-11-11 19:21:55 +00:00
|
|
|
scope = 1;
|
2016-04-08 18:34:50 +00:00
|
|
|
icon = QPATHTOF(UI\Icon_Module_settings_ca.paa);
|
2015-06-03 01:50:27 +00:00
|
|
|
isGlobal = 1;
|
2015-10-19 04:34:11 +00:00
|
|
|
isSingular = 1;
|
2015-06-03 01:50:27 +00:00
|
|
|
class Arguments {
|
|
|
|
class allowHandcuffOwnSide {
|
2015-06-04 18:19:05 +00:00
|
|
|
displayName = CSTRING(ModuleSettings_handcuffSide_name);
|
|
|
|
description = CSTRING(ModuleSettings_handcuffSide_description);
|
2015-06-03 01:50:27 +00:00
|
|
|
typeName = "BOOL";
|
|
|
|
defaultValue = 1;
|
|
|
|
};
|
|
|
|
class allowSurrender {
|
2015-06-04 18:19:05 +00:00
|
|
|
displayName = CSTRING(ModuleSettings_allowSurrender_name);
|
|
|
|
description = CSTRING(ModuleSettings_allowSurrender_description);
|
2015-06-03 01:50:27 +00:00
|
|
|
typeName = "BOOL";
|
|
|
|
defaultValue = 1;
|
|
|
|
};
|
2015-08-08 22:21:59 +00:00
|
|
|
class requireSurrender {
|
2015-08-13 04:32:57 +00:00
|
|
|
displayName = CSTRING(ModuleSettings_requireSurrender_name);
|
|
|
|
description = CSTRING(ModuleSettings_requireSurrender_description);
|
2015-08-08 22:21:59 +00:00
|
|
|
typeName = "NUMBER";
|
|
|
|
class values {
|
|
|
|
class disable {
|
|
|
|
name = ECSTRING(common,No);
|
|
|
|
value = 0;
|
|
|
|
};
|
|
|
|
class Surrender {
|
|
|
|
name = CSTRING(SurrenderOnly);
|
|
|
|
value = 1;
|
|
|
|
default = 1;
|
|
|
|
};
|
|
|
|
class SurrenderOrNoWeapon {
|
|
|
|
name = CSTRING(SurrenderOrNoWeapon);
|
|
|
|
value = 2;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2017-09-19 18:21:30 +00:00
|
|
|
class requireSurrenderAi {
|
|
|
|
displayName = CSTRING(ModuleSettings_requireSurrenderAi_name);
|
|
|
|
description = CSTRING(ModuleSettings_requireSurrenderAi_description);
|
|
|
|
typeName = "BOOL";
|
|
|
|
defaultValue = 0;
|
|
|
|
};
|
2015-06-03 01:50:27 +00:00
|
|
|
};
|
|
|
|
class ModuleDescription: ModuleDescription {
|
2015-06-04 18:19:05 +00:00
|
|
|
description = CSTRING(ModuleSettings_Description);
|
2015-06-03 01:50:27 +00:00
|
|
|
sync[] = {};
|
|
|
|
};
|
|
|
|
};
|
2015-05-18 18:58:02 +00:00
|
|
|
};
|