ACE3/addons/captives/CfgVehicles.hpp

199 lines
7.6 KiB
C++
Raw Normal View History

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_ApplyHandcuffs {
displayName = CSTRING(SetCaptive);
selection = "righthand";
distance = 2;
condition = QUOTE([ARR_2(_player, _target)] call FUNC(canApplyHandcuffs));
statement = QUOTE([ARR_2(_player, _target)] call FUNC(doApplyHandcuffs));
exceptions[] = {};
icon = QUOTE(PATHTOF(UI\handcuff_ca.paa));
};
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));
exceptions[] = {};
icon = QUOTE(PATHTOF(UI\handcuff_ca.paa));
2015-02-04 05:13:44 +00:00
};
class ACE_MainActions {
class ACE_EscortCaptive {
displayName = CSTRING(EscortCaptive);
distance = 4;
condition = QUOTE([ARR_2(_player, _target)] call FUNC(canEscortCaptive));
statement = QUOTE([ARR_3(_player, _target, true)] call FUNC(doEscortCaptive));
exceptions[] = {};
showDisabled = 0;
icon = QUOTE(PATHTOF(UI\captive_ca.paa));
priority = 2.3;
hotkey = "E";
};
class ACE_StopEscorting {
displayName = CSTRING(StopEscorting);
distance = 4;
condition = QUOTE([ARR_2(_player, _target)] call FUNC(canStopEscorting));
statement = QUOTE([ARR_3(_player,_target, false)] call FUNC(doEscortCaptive));
2015-03-23 20:22:26 +00:00
exceptions[] = {"isNotEscorting"};
showDisabled = 0;
icon = QUOTE(PATHTOF(UI\captive_ca.paa));
priority = 2.3;
hotkey = "E";
};
class ACE_LoadCaptive {
displayName = CSTRING(LoadCaptive);
distance = 4;
condition = QUOTE([ARR_3(_player, _target, objNull)] call FUNC(canLoadCaptive));
statement = QUOTE([ARR_3(_player, _target, objNull)] call FUNC(doLoadCaptive));
2015-03-23 20:22:26 +00:00
exceptions[] = {"isNotEscorting"};
showDisabled = 0;
icon = QUOTE(PATHTOF(UI\captive_ca.paa));
priority = 2.2;
hotkey = "L";
};
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));
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 {
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));
2015-03-23 20:22:26 +00:00
exceptions[] = {"isNotEscorting"};
2015-02-04 05:13:44 +00:00
showDisabled = 0;
priority = 2.3;
hotkey = "C";
2015-02-07 21:20:51 +00:00
};
2015-02-06 21:54:26 +00:00
class ACE_StartSurrenderingSelf {
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));
2015-02-06 21:54:26 +00:00
exceptions[] = {};
showDisabled = 0;
priority = 0;
2015-06-03 05:55:20 +00:00
icon = QUOTE(PATHTOF(UI\Surrender_ca.paa));
2015-02-07 21:20:51 +00:00
};
2015-02-06 21:54:26 +00:00
class ACE_StopSurrenderingSelf {
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));
2015-03-23 20:22:26 +00:00
exceptions[] = {"isNotSurrendering"};
2015-02-06 21:54:26 +00:00
showDisabled = 0;
priority = 0;
2015-06-03 05:55:20 +00:00
icon = QUOTE(PATHTOF(UI\Surrender_ca.paa));
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_MainActions { \
2015-04-25 21:03:21 +00:00
class GVAR(LoadCaptive) { \
displayName = CSTRING(LoadCaptive); \
distance = 4; \
condition = QUOTE([ARR_3(_player, objNull, _target)] call FUNC(canLoadCaptive)); \
statement = QUOTE([ARR_3(_player, objNull, _target)] call FUNC(doLoadCaptive)); \
2015-03-23 20:22:26 +00:00
exceptions[] = {"isNotEscorting"}; \
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 {
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 Box_NATO_Support_F;
class ACE_Box_Misc: Box_NATO_Support_F {
class TransportItems {
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";
displayName = CSTRING(ModuleSurrender_DisplayName); //Make Unit Surrender
function = QFUNC(moduleSurrender);
2015-02-07 21:20:51 +00:00
scope = 2; //show in editor
isGlobal = 1; //run global
isTriggerActivated = 1; //Wait for triggers
2015-03-23 19:02:35 +00:00
icon = QUOTE(PATHTOF(UI\Icon_Module_Make_Unit_Surrender_ca.paa));
2015-02-07 21:20:51 +00:00
functionPriority = 0;
class Arguments {};
class ModuleDescription: ModuleDescription {
description = CSTRING(ModuleSurrender_Description); //Sync a unit to make them surrender.<br/>Source: ace_captives
2015-02-07 21:20:51 +00:00
sync[] = {"AnyAI"};
};
};
class ACE_Module: Module_F {};
class GVAR(moduleSettings): ACE_Module {
2015-06-06 02:02:24 +00:00
author = ECSTRING(common,ACETeam);
category = "ACE";
2015-06-04 18:19:05 +00:00
displayName = CSTRING(ModuleSettings_DisplayName);
function = QFUNC(moduleSettings);
scope = 2;
2015-06-03 05:55:20 +00:00
icon = QUOTE(PATHTOF(UI\Icon_Module_settings_ca.paa));
isGlobal = 1;
class Arguments {
class allowHandcuffOwnSide {
2015-06-04 18:19:05 +00:00
displayName = CSTRING(ModuleSettings_handcuffSide_name);
description = CSTRING(ModuleSettings_handcuffSide_description);
typeName = "BOOL";
defaultValue = 1;
};
class allowSurrender {
2015-06-04 18:19:05 +00:00
displayName = CSTRING(ModuleSettings_allowSurrender_name);
description = CSTRING(ModuleSettings_allowSurrender_description);
typeName = "BOOL";
defaultValue = 1;
};
};
class ModuleDescription: ModuleDescription {
2015-06-04 18:19:05 +00:00
description = CSTRING(ModuleSettings_Description);
sync[] = {};
};
};
};