ACE3/addons/tripod/CfgVehicles.hpp

92 lines
2.9 KiB
C++
Raw Normal View History

2015-06-04 19:13:44 +00:00
class CfgVehicles {
class Man;
class CAManBase: Man {
class ACE_SelfActions {
class GVAR(place) {
displayName = CSTRING(Placedown);
condition = QUOTE([ARR_2(_player,'ACE_Tripod')] call EFUNC(common,hasItem));
statement = QUOTE([ARR_2(_player,'ACE_Tripod')] call FUNC(place));
showDisabled = 0;
priority = 2;
icon = PATHTOF(UI\w_sniper_tripod_ca.paa);
2015-06-04 19:13:44 +00:00
};
};
};
class Item_Base_F;
class ACE_Item_Tripod: Item_Base_F {
2015-08-02 06:05:28 +00:00
author[] = {"Rocko", "Scubaman3D"};
2015-06-04 19:13:44 +00:00
scope = 2;
scopeCurator = 2;
displayName = CSTRING(DisplayName);
vehicleClass = "Items";
class TransportItems {
2015-07-25 19:59:52 +00:00
MACRO_ADDITEM(ACE_Tripod,1);
2015-06-04 19:13:44 +00:00
};
};
class Box_NATO_Support_F;
class ACE_Box_Misc: Box_NATO_Support_F {
class TransportItems {
MACRO_ADDITEM(ACE_Tripod,2);
};
};
2015-07-25 19:59:52 +00:00
2016-01-03 14:21:38 +00:00
class ThingX;
class ACE_TripodObject: ThingX {
2015-06-04 19:13:44 +00:00
XEH_ENABLED;
EGVAR(dragging,canDrag) = 1;
EGVAR(dragging,dragPosition[]) = {0,1,0};
EGVAR(dragging,dragDirection) = 0;
2015-06-04 19:13:44 +00:00
scope = 2;
displayName = CSTRING(DisplayName);
model = PATHTOF(data\sniper_tripod.p3d);
2015-06-04 19:13:44 +00:00
class AnimationSources {
class slide_down_tripod {
source = "user";
animPeriod = 0.02;
initPhase = 0;
minValue = 0;
2015-07-25 19:59:52 +00:00
maxValue = 1;
2015-06-04 19:13:44 +00:00
};
class retract_leg_1: slide_down_tripod {};
class retract_leg_2: retract_leg_1 {};
class retract_leg_3: retract_leg_2 {};
};
2015-06-04 19:13:44 +00:00
class ACE_Actions {
class ACE_MainActions {
selection = "";
distance = 5;
condition = "true";
2015-06-04 19:13:44 +00:00
class ACE_Pickup {
selection = "";
displayName = CSTRING(PickUp);
distance = 5;
condition = "true";
statement = QUOTE([ARR_2(_player,_target)] call FUNC(pickup));
2015-06-04 19:13:44 +00:00
showDisabled = 0;
exceptions[] = {};
priority = 5;
icon = PATHTOF(UI\w_sniper_tripod_ca.paa);
};
2015-06-04 19:13:44 +00:00
class ACE_Adjust {
selection = "";
displayName = CSTRING(Adjust);
distance = 5;
condition = "true";
2015-08-02 06:05:28 +00:00
//wait a frame to handle "Do When releasing action menu key" option:
statement = QUOTE([ARR_2({_this call FUNC(adjust)}, [ARR_2(_player,_target)])] call EFUNC(common,execNextFrame));
2015-06-04 19:13:44 +00:00
showDisabled = 0;
exceptions[] = {};
priority = 5;
icon = PATHTOF(UI\w_sniper_tripod_ca.paa);
};
};
};
};
};