ACE3/addons/captives/CfgVehicles.hpp

192 lines
7.1 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 {
2015-02-05 22:39:45 +00:00
class ACE_ApplyHandcuffs {
2015-02-04 05:13:44 +00:00
displayName = "$STR_ACE_Captives_SetCaptive";
distance = 4;
2015-02-05 22:39:45 +00:00
condition = QUOTE([ARR_2(_player, _target)] call FUNC(canApplyHandcuffs));
statement = QUOTE([ARR_2(_player, _target)] call FUNC(doApplyHandcuffs));
2015-02-06 05:11:28 +00:00
exceptions[] = {};
2015-02-04 05:13:44 +00:00
showDisabled = 0;
priority = 2.4;
icon = QUOTE(PATHTOF(UI\handcuff_ca.paa));
hotkey = "C";
};
2015-02-05 22:39:45 +00:00
class ACE_RemoveHandcuffs {
2015-02-04 05:13:44 +00:00
displayName = "$STR_ACE_Captives_ReleaseCaptive";
distance = 4;
2015-02-05 22:39:45 +00:00
condition = QUOTE([ARR_2(_player, _target)] call FUNC(canRemoveHandcuffs));
statement = QUOTE([ARR_2(_player, _target)] call FUNC(doRemoveHandcuffs));
2015-02-06 05:11:28 +00:00
exceptions[] = {};
2015-02-04 05:13:44 +00:00
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 19:16:19 +00:00
condition = QUOTE([ARR_2(_player, _target)] call FUNC(canEscortCaptive));
2015-02-06 05:11:28 +00:00
statement = QUOTE([ARR_3(_player, _target, true)] call FUNC(doEscortCaptive));
exceptions[] = {};
2015-02-04 05:13:44 +00:00
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 19:16:19 +00:00
condition = QUOTE([ARR_2(_player, _target)] call FUNC(canStopEscorting));
statement = QUOTE([ARR_3(_player,_target, false)] call FUNC(doEscortCaptive));
2015-02-06 05:11:28 +00:00
exceptions[] = {QGVAR(isNotEscorting)};
2015-02-04 05:13:44 +00:00
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));
2015-02-06 09:38:27 +00:00
statement = QUOTE([ARR_3(_player, _target, objNull)] call FUNC(doLoadCaptive));
2015-02-06 05:11:28 +00:00
exceptions[] = {QGVAR(isNotEscorting)};
2015-02-04 05:13:44 +00:00
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));
2015-02-06 09:38:27 +00:00
statement = QUOTE([ARR_2(_player, _target)] call FUNC(doFriskPerson));
2015-02-04 05:13:44 +00:00
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 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-02-06 05:11:28 +00:00
exceptions[] = {QGVAR(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 = "$STR_ACE_Captives_StartSurrendering";
condition = QUOTE([ARR_2(_player, true)] call FUNC(canSurrender));
statement = QUOTE([ARR_2(_player, true)] call FUNC(surrender));
exceptions[] = {};
showDisabled = 0;
priority = 0;
2015-02-07 21:20:51 +00:00
};
2015-02-06 21:54:26 +00:00
class ACE_StopSurrenderingSelf {
displayName = "$STR_ACE_Captives_StopSurrendering";
condition = QUOTE([ARR_2(_player, false)] call FUNC(canSurrender));
statement = QUOTE([ARR_2(_player, false)] call FUNC(surrender));
exceptions[] = {QGVAR(isNotSurrendering)};
showDisabled = 0;
priority = 0;
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)); \
2015-02-06 09:38:27 +00:00
statement = QUOTE([ARR_3(_player, objNull, _target)] call FUNC(doLoadCaptive)); \
2015-02-06 05:11:28 +00:00
exceptions[] = {QGVAR(isNotEscorting)}; \
2015-02-04 05:13:44 +00:00
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)); \
2015-02-06 09:38:27 +00:00
statement = QUOTE([ARR_2(_player, _target)] call FUNC(doUnloadCaptive)); \
2015-02-04 05:13:44 +00:00
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
};
2015-02-07 21:20:51 +00:00
class Logic;
class Module_F: Logic {
class ArgumentsBaseUnits {};
class ModuleDescription {};
};
class GVAR(ModuleSurrender): Module_F {
author = "$STR_ACE_Common_ACETeam";
category = "ACE";
displayName = "Make Unit Surrender";
function = QUOTE(DFUNC(moduleSurrender));
scope = 2; //show in editor
scopeCurator = 2; //show in zeus
curatorCost = 0; //???
isGlobal = 1; //run global
isTriggerActivated = 1; //Wait for triggers
// icon = QUOTE(PATHTOF(ui\todo.paa));
functionPriority = 0;
class Arguments {};
class ModuleDescription: ModuleDescription {
description = "Sync a unit to make them surrender.<br/>Source: ace_captives";
sync[] = {"AnyAI"};
};
};
2015-02-03 02:04:50 +00:00
};