ACE3/addons/sitting/CfgVehicles.hpp

124 lines
3.9 KiB
C++
Raw Normal View History

class CBA_Extended_EventHandlers;
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);
2016-05-15 17:38:37 +00:00
scope = 1;
2015-06-08 21:25:15 +00:00
isGlobal = 1;
isSingular = 1;
2016-04-08 18:34:50 +00:00
icon = QPATHTOF(UI\Icon_Module_Sitting_ca.paa);
2015-06-08 21:25:15 +00:00
class Arguments {
class enable {
displayName = CSTRING(Enable);
2016-02-24 18:34:03 +00:00
description = CSTRING(Enable);
2015-06-08 21:25:15 +00:00
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;
2016-04-08 18:34:50 +00:00
icon = QPATHTOF(UI\stand_ca.paa);
2015-06-07 20:00:43 +00:00
};
};
};
// Folding Chair
class ThingX;
2015-06-07 20:00:43 +00:00
class Land_CampingChair_V1_F: ThingX {
class EventHandlers {
class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers {};
};
2015-06-07 20:00:43 +00:00
GVAR(canSit) = 1;
GVAR(sitDirection) = 180;
GVAR(sitPosition)[] = {0, -0.1, -0.45};
2015-09-27 00:05:38 +00:00
EGVAR(dragging,canCarry) = 1;
EGVAR(dragging,carryPosition)[] = {0, 0.75, 0.5};
2015-09-27 00:05:38 +00:00
EGVAR(dragging,carryDirection) = 180;
2015-06-07 20:00:43 +00:00
};
// Camping Chair
2015-07-14 22:42:41 +00:00
class Land_CampingChair_V2_F: ThingX {
class EventHandlers {
class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers {};
};
2015-06-07 20:00:43 +00:00
GVAR(canSit) = 1;
GVAR(sitDirection) = 180;
GVAR(sitPosition)[] = {0, -0.1, -0.45};
2015-09-27 00:05:38 +00:00
EGVAR(dragging,canCarry) = 1;
EGVAR(dragging,carryPosition)[] = {0, 0.75, 0.5};
2015-09-27 00:05:38 +00:00
EGVAR(dragging,carryDirection) = 180;
2015-06-07 20:00:43 +00:00
};
2015-07-14 22:42:41 +00:00
2015-06-07 20:00:43 +00:00
// Chair (Plastic)
class Furniture_base_F: ThingX {};
2015-07-14 22:42:41 +00:00
class Land_ChairPlastic_F: Furniture_base_F {
class EventHandlers {
class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers {};
};
2015-06-07 20:00:43 +00:00
GVAR(canSit) = 1;
GVAR(sitDirection) = 90;
GVAR(sitPosition)[] = {0, 0, -0.5};
2015-09-27 00:05:38 +00:00
EGVAR(dragging,canCarry) = 1;
EGVAR(dragging,carryPosition)[] = {0, 0.75, 0.5};
2015-09-27 00:05:38 +00:00
EGVAR(dragging,carryDirection) = 270;
2015-06-07 20:00:43 +00:00
};
// Chair (Wooden)
2015-07-14 22:42:41 +00:00
class Land_ChairWood_F: Furniture_base_F {
class EventHandlers {
class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers {};
};
2015-06-07 20:00:43 +00:00
GVAR(canSit) = 1;
GVAR(sitDirection) = 180;
GVAR(sitPosition)[] = {0, -0.05, 0};
2015-09-27 00:05:38 +00:00
EGVAR(dragging,canCarry) = 1;
EGVAR(dragging,carryPosition)[] = {0, 0.75, 0.5};
2015-09-27 00:05:38 +00:00
EGVAR(dragging,carryDirection) = 180;
2015-06-07 20:00:43 +00:00
};
// Office Chair
2015-07-14 22:42:41 +00:00
class Land_OfficeChair_01_F: Furniture_base_F {
class EventHandlers {
class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers {};
};
2015-06-07 20:00:43 +00:00
GVAR(canSit) = 1;
GVAR(sitDirection) = 180;
GVAR(sitPosition)[] = {0, 0, -0.6};
2015-09-27 00:05:38 +00:00
EGVAR(dragging,canCarry) = 1;
EGVAR(dragging,carryPosition)[] = {0, 0.75, 0.5};
2015-09-27 00:05:38 +00:00
EGVAR(dragging,carryDirection) = 180;
2015-06-07 20:00:43 +00:00
};
// Rattan Chair
2015-07-14 22:42:41 +00:00
class Land_RattanChair_01_F: Furniture_base_F {
class EventHandlers {
class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers {};
};
2015-06-07 20:00:43 +00:00
GVAR(canSit) = 1;
GVAR(sitDirection) = 180;
GVAR(sitPosition)[] = {0, -0.1, -1}; // Z must be -1 due to chair's geometry (magic floating seat point)
2015-09-27 00:05:38 +00:00
EGVAR(dragging,canCarry) = 1;
EGVAR(dragging,carryPosition)[] = {0, 0.75, 0.5};
2015-09-27 00:05:38 +00:00
EGVAR(dragging,carryDirection) = 180;
2015-06-07 20:00:43 +00:00
};
};