2016-03-21 17:25:38 +00:00
|
|
|
class CBA_Extended_EventHandlers;
|
|
|
|
|
|
|
|
#define ACE_TRENCHES_ACTIONS class ACE_Actions { \
|
|
|
|
class ACE_MainActions { \
|
|
|
|
displayName = ECSTRING(interaction,MainAction); \
|
|
|
|
selection = ""; \
|
2016-03-22 07:10:37 +00:00
|
|
|
distance = 3; \
|
2016-03-21 17:25:38 +00:00
|
|
|
condition = QUOTE(true); \
|
|
|
|
class ACE_ContinueDiggingTrench { \
|
|
|
|
displayName = CSTRING(ContinueDiggingTrench); \
|
|
|
|
condition = QUOTE([ARR_2(_target,_player)] call FUNC(canContinueDiggingTrench)); \
|
|
|
|
statement = QUOTE([ARR_2(_target,_player)] call FUNC(continueDiggingTrench);); \
|
|
|
|
priority = -1; \
|
|
|
|
}; \
|
|
|
|
class ACE_RemoveTrench { \
|
|
|
|
displayName = CSTRING(RemoveEnvelope); \
|
|
|
|
condition = QUOTE([ARR_2(_target,_player)] call FUNC(canRemoveTrench)); \
|
|
|
|
statement = QUOTE([ARR_2(_target,_player)] call FUNC(removeTrench);); \
|
|
|
|
priority = -1; \
|
|
|
|
}; \
|
|
|
|
}; \
|
|
|
|
}
|
|
|
|
|
2015-06-17 17:17:57 +00:00
|
|
|
class CfgVehicles {
|
2016-01-23 23:45:59 +00:00
|
|
|
class Man;
|
|
|
|
class CAManBase: Man {
|
|
|
|
class ACE_SelfActions {
|
|
|
|
class ACE_Equipment {
|
|
|
|
class GVAR(digEnvelopeSmall) {
|
|
|
|
displayName = CSTRING(DigEnvelopeSmall);
|
2016-03-22 07:10:37 +00:00
|
|
|
condition = QUOTE(_player call FUNC(canDigTrench));
|
2016-01-23 23:45:59 +00:00
|
|
|
//wait a frame to handle "Do When releasing action menu key" option
|
2016-03-22 07:10:37 +00:00
|
|
|
statement = QUOTE([ARR_2({_this call FUNC(placeTrench)},[ARR_2(_this select 0,'ACE_envelope_small')])] call EFUNC(common,execNextFrame));
|
2016-01-23 23:45:59 +00:00
|
|
|
exceptions[] = {};
|
|
|
|
showDisabled = 0;
|
|
|
|
priority = 4;
|
|
|
|
//icon = PATHTOF(UI\icon_sandbag_ca.paa);
|
|
|
|
};
|
|
|
|
class GVAR(digEnvelopeBig) {
|
|
|
|
displayName = CSTRING(DigEnvelopeBig);
|
2016-03-22 07:10:37 +00:00
|
|
|
condition = QUOTE(_player call FUNC(canDigTrench));
|
2016-01-23 23:45:59 +00:00
|
|
|
//wait a frame to handle "Do When releasing action menu key" option
|
2016-03-22 07:10:37 +00:00
|
|
|
statement = QUOTE([ARR_2({_this call FUNC(placeTrench)},[ARR_2(_this select 0,'ACE_envelope_big')])] call EFUNC(common,execNextFrame));
|
2016-01-23 23:45:59 +00:00
|
|
|
exceptions[] = {};
|
|
|
|
showDisabled = 0;
|
|
|
|
priority = 4;
|
|
|
|
//icon = PATHTOF(UI\icon_sandbag_ca.paa);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-06-17 17:17:57 +00:00
|
|
|
class BagFence_base_F;
|
|
|
|
class ACE_envelope_small: BagFence_base_F {
|
|
|
|
author = ECSTRING(common,ACETeam);
|
|
|
|
displayName = CSTRING(EnvelopeSmallName);
|
|
|
|
descriptionShort = CSTRING(EnevlopeSmallDescription);
|
2016-01-27 20:54:10 +00:00
|
|
|
model = QUOTE(PATHTOEF(apl,ace_envelope_small4.p3d));
|
2015-06-17 17:17:57 +00:00
|
|
|
scope = 2;
|
2016-03-21 17:25:38 +00:00
|
|
|
GVAR(diggingDuration) = 20;
|
|
|
|
GVAR(removalDuration) = 12;
|
2016-03-22 07:10:37 +00:00
|
|
|
GVAR(noGeoClass) = "ACE_envelope_small_NoGeo";
|
|
|
|
GVAR(placementData)[] = {2,3,0.35};
|
2016-03-22 10:26:40 +00:00
|
|
|
GVAR(grassCuttingPoints)[] = {{0,-0.5,0}};
|
2016-03-21 17:25:38 +00:00
|
|
|
ACE_TRENCHES_ACTIONS;
|
|
|
|
class EventHandlers {
|
|
|
|
class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers {};
|
|
|
|
};
|
2015-06-17 17:17:57 +00:00
|
|
|
};
|
|
|
|
class ACE_envelope_big: BagFence_base_F {
|
|
|
|
author = ECSTRING(common,ACETeam);
|
|
|
|
displayName = CSTRING(EnvelopeBigName);
|
|
|
|
descriptionShort = CSTRING(EnevlopeBigDescription);
|
2016-01-27 20:54:10 +00:00
|
|
|
model = QUOTE(PATHTOEF(apl,ace_envelope_big4.p3d));
|
2015-06-17 17:17:57 +00:00
|
|
|
scope = 2;
|
2016-03-21 17:25:38 +00:00
|
|
|
GVAR(diggingDuration) = 25;
|
|
|
|
GVAR(removalDuration) = 15;
|
2016-03-22 07:10:37 +00:00
|
|
|
GVAR(noGeoClass) = "ACE_envelope_big_NoGeo";
|
|
|
|
GVAR(placementData)[] = {6,1.1,0.20};
|
2016-03-22 10:26:40 +00:00
|
|
|
GVAR(grassCuttingPoints)[] = {{-1.5,-1,0},{1.5,-1,0}};
|
2016-03-21 17:25:38 +00:00
|
|
|
ACE_TRENCHES_ACTIONS;
|
|
|
|
class EventHandlers {
|
|
|
|
class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers {};
|
|
|
|
};
|
2015-06-17 17:17:57 +00:00
|
|
|
};
|
2016-01-23 23:45:59 +00:00
|
|
|
|
|
|
|
class ACE_envelope_small_NoGeo: ACE_envelope_small {
|
|
|
|
scope = 1;
|
|
|
|
//@todo: replace by a no geo model
|
2016-01-27 20:54:10 +00:00
|
|
|
model = QUOTE(PATHTOEF(apl,ace_envelope_small4_nogeo.p3d));
|
2016-01-23 23:45:59 +00:00
|
|
|
};
|
|
|
|
class ACE_envelope_big_NoGeo: ACE_envelope_big {
|
|
|
|
scope = 1;
|
|
|
|
//@todo: replace by a no geo model
|
2016-01-27 20:54:10 +00:00
|
|
|
model = QUOTE(PATHTOEF(apl,ace_envelope_big4_nogeo.p3d));
|
2016-01-23 23:45:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class Box_NATO_Support_F;
|
|
|
|
class ACE_Box_Misc: Box_NATO_Support_F {
|
|
|
|
class TransportItems {
|
|
|
|
MACRO_ADDITEM(ACE_EntrenchingTool,50);
|
|
|
|
};
|
|
|
|
};
|
2015-11-07 06:16:08 +00:00
|
|
|
};
|