2015-06-08 21:25:15 +00:00
|
|
|
class CfgVehicles {
|
|
|
|
class ACE_Module;
|
|
|
|
class ACE_ModuleSitting: ACE_Module {
|
|
|
|
author = ECSTRING(common,ACETeam);
|
|
|
|
category = "ACE";
|
|
|
|
displayName = CSTRING(ModuleDisplayName);
|
|
|
|
function = QFUNC(moduleInit);
|
|
|
|
scope = 2;
|
|
|
|
isGlobal = 1;
|
2015-06-09 16:27:58 +00:00
|
|
|
icon = QUOTE(PATHTOF(UI\Icon_Module_Sitting_ca.paa));
|
2015-06-08 21:25:15 +00:00
|
|
|
class Arguments {
|
|
|
|
class enable {
|
|
|
|
displayName = CSTRING(Enable);
|
|
|
|
typeName = "BOOL";
|
|
|
|
defaultValue = 1;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
class ModuleDescription {
|
|
|
|
description = CSTRING(ModuleDescription);
|
|
|
|
};
|
2015-06-07 20:00:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class Man;
|
|
|
|
class CAManBase: Man {
|
|
|
|
class ACE_SelfActions {
|
|
|
|
class GVAR(Stand) {
|
|
|
|
displayName = CSTRING(Stand);
|
|
|
|
condition = QUOTE(_player call FUNC(canStand));
|
2015-06-09 14:04:37 +00:00
|
|
|
exceptions[] = {"isNotSitting"};
|
2015-06-07 20:00:43 +00:00
|
|
|
statement = QUOTE(_player call FUNC(stand));
|
|
|
|
priority = 0;
|
2015-06-07 20:36:22 +00:00
|
|
|
icon = PATHTOF(UI\stand_ca.paa);
|
2015-06-07 20:00:43 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-06-08 21:25:15 +00:00
|
|
|
#define MACRO_SEAT_ACTION \
|
|
|
|
class ACE_Actions { \
|
|
|
|
class ACE_MainActions { \
|
|
|
|
displayName = ECSTRING(interaction,MainAction); \
|
|
|
|
selection = ""; \
|
|
|
|
distance = 1.25; \
|
|
|
|
condition = "true"; \
|
|
|
|
class GVAR(Sit) { \
|
|
|
|
displayName = CSTRING(Sit); \
|
|
|
|
condition = QUOTE(_this call FUNC(canSit)); \
|
|
|
|
statement = QUOTE(_this call FUNC(sit)); \
|
|
|
|
showDisabled = 0; \
|
|
|
|
priority = 0; \
|
|
|
|
icon = PATHTOF(UI\sit_ca.paa); \
|
|
|
|
}; \
|
|
|
|
}; \
|
|
|
|
};
|
|
|
|
|
2015-06-07 20:00:43 +00:00
|
|
|
class ThingX;
|
|
|
|
// Folding Chair
|
|
|
|
class Land_CampingChair_V1_F: ThingX {
|
|
|
|
XEH_ENABLED;
|
|
|
|
MACRO_SEAT_ACTION
|
|
|
|
GVAR(canSit) = 1;
|
|
|
|
GVAR(sitDirection) = 180;
|
|
|
|
GVAR(sitPosition[]) = {0, -0.1, -0.45};
|
2015-06-11 17:46:16 +00:00
|
|
|
GVAR(sitRotation) = 10;
|
2015-06-07 20:00:43 +00:00
|
|
|
};
|
|
|
|
// Camping Chair
|
|
|
|
class Land_CampingChair_V2_F: ThingX {
|
|
|
|
XEH_ENABLED;
|
|
|
|
MACRO_SEAT_ACTION
|
|
|
|
GVAR(canSit) = 1;
|
|
|
|
GVAR(sitDirection) = 180;
|
|
|
|
GVAR(sitPosition[]) = {0, -0.1, -0.45};
|
2015-06-11 17:46:16 +00:00
|
|
|
GVAR(sitRotation) = 45;
|
2015-06-07 20:00:43 +00:00
|
|
|
};
|
|
|
|
// Chair (Plastic)
|
|
|
|
class Land_ChairPlastic_F: ThingX {
|
|
|
|
XEH_ENABLED;
|
|
|
|
MACRO_SEAT_ACTION
|
|
|
|
GVAR(canSit) = 1;
|
|
|
|
GVAR(sitDirection) = 90;
|
2015-06-09 14:55:06 +00:00
|
|
|
GVAR(sitPosition[]) = {0, 0, -0.5};
|
2015-06-11 17:46:16 +00:00
|
|
|
GVAR(sitRotation) = 5;
|
2015-06-07 20:00:43 +00:00
|
|
|
};
|
|
|
|
// Chair (Wooden)
|
|
|
|
class Land_ChairWood_F: ThingX {
|
|
|
|
XEH_ENABLED;
|
|
|
|
MACRO_SEAT_ACTION
|
|
|
|
GVAR(canSit) = 1;
|
|
|
|
GVAR(sitDirection) = 180;
|
2015-06-11 17:46:16 +00:00
|
|
|
GVAR(sitPosition[]) = {0, -0.05, 0};
|
|
|
|
GVAR(sitRotation) = 75;
|
2015-06-07 20:00:43 +00:00
|
|
|
};
|
|
|
|
// Office Chair
|
|
|
|
class Land_OfficeChair_01_F: ThingX {
|
|
|
|
XEH_ENABLED;
|
|
|
|
MACRO_SEAT_ACTION
|
|
|
|
GVAR(canSit) = 1;
|
|
|
|
GVAR(sitDirection) = 180;
|
|
|
|
GVAR(sitPosition[]) = {0, 0, -0.6};
|
2015-06-11 17:46:16 +00:00
|
|
|
GVAR(sitRotation) = 15;
|
2015-06-07 20:00:43 +00:00
|
|
|
};
|
|
|
|
// Rattan Chair
|
|
|
|
class Land_RattanChair_01_F: ThingX {
|
|
|
|
XEH_ENABLED;
|
|
|
|
MACRO_SEAT_ACTION
|
|
|
|
GVAR(canSit) = 1;
|
|
|
|
GVAR(sitDirection) = 180;
|
2015-06-09 14:48:58 +00:00
|
|
|
GVAR(sitPosition[]) = {0, -0.1, -1}; // Z must be -1 due to chair's geometry (magic floating seat point)
|
2015-06-11 17:46:16 +00:00
|
|
|
GVAR(sitRotation) = 2;
|
2015-06-07 20:00:43 +00:00
|
|
|
};
|
|
|
|
// Field Toilet
|
|
|
|
class Land_FieldToilet_F: ThingX {
|
|
|
|
XEH_ENABLED;
|
|
|
|
MACRO_SEAT_ACTION
|
|
|
|
GVAR(canSit) = 1;
|
|
|
|
GVAR(sitDirection) = 180;
|
|
|
|
GVAR(sitPosition[]) = {0, 0.75, -1.1};
|
2015-06-11 17:46:16 +00:00
|
|
|
GVAR(sitRotation) = 10;
|
2015-06-07 20:00:43 +00:00
|
|
|
};
|
|
|
|
// Toiletbox
|
|
|
|
class Land_ToiletBox_F: ThingX {
|
|
|
|
XEH_ENABLED;
|
|
|
|
MACRO_SEAT_ACTION
|
|
|
|
GVAR(canSit) = 1;
|
|
|
|
GVAR(sitDirection) = 180;
|
|
|
|
GVAR(sitPosition[]) = {0, 0.75, -1.1};
|
2015-06-11 17:46:16 +00:00
|
|
|
GVAR(sitRotation) = 10;
|
2015-06-07 20:00:43 +00:00
|
|
|
};
|
|
|
|
};
|