2016-03-01 16:05:00 +00:00
|
|
|
|
|
|
|
class CBA_Extended_EventHandlers;
|
|
|
|
|
2015-06-04 19:13:44 +00:00
|
|
|
class CfgVehicles {
|
|
|
|
class Man;
|
|
|
|
class CAManBase: Man {
|
|
|
|
class ACE_SelfActions {
|
2016-06-02 08:35:33 +00:00
|
|
|
class ACE_Equipment {
|
|
|
|
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;
|
|
|
|
icon = QPATHTOF(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 {
|
2016-03-01 16:05:00 +00:00
|
|
|
class EventHandlers {
|
|
|
|
class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers {};
|
|
|
|
};
|
|
|
|
|
2015-09-26 01:16:55 +00:00
|
|
|
EGVAR(dragging,canDrag) = 1;
|
2016-02-28 14:18:15 +00:00
|
|
|
EGVAR(dragging,dragPosition)[] = {0,1,0};
|
2015-09-26 01:16:55 +00:00
|
|
|
EGVAR(dragging,dragDirection) = 0;
|
2015-06-04 19:13:44 +00:00
|
|
|
scope = 2;
|
|
|
|
displayName = CSTRING(DisplayName);
|
2016-04-08 18:34:50 +00:00
|
|
|
model = QPATHTOF(data\sniper_tripod.p3d);
|
2018-01-02 14:56:15 +00:00
|
|
|
icon = "\A3\Static_F_Gamma\data\UI\map_StaticTurret_AT_CA.paa";
|
2015-09-26 01:16:55 +00:00
|
|
|
|
2015-06-04 19:13:44 +00:00
|
|
|
class AnimationSources {
|
|
|
|
class slide_down_tripod {
|
|
|
|
source = "user";
|
|
|
|
animPeriod = 0.02;
|
2017-12-14 14:51:14 +00:00
|
|
|
initPhase = 0.5;
|
2015-06-04 19:13:44 +00:00
|
|
|
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-09-26 01:16:55 +00:00
|
|
|
|
2015-06-04 19:13:44 +00:00
|
|
|
class ACE_Actions {
|
|
|
|
class ACE_MainActions {
|
2017-12-14 14:51:14 +00:00
|
|
|
selection = "interaction_point";
|
2015-06-04 19:13:44 +00:00
|
|
|
distance = 5;
|
2017-12-14 14:51:14 +00:00
|
|
|
condition = "(true)";
|
2015-09-26 01:16:55 +00:00
|
|
|
|
2015-06-04 19:13:44 +00:00
|
|
|
class ACE_Pickup {
|
|
|
|
selection = "";
|
|
|
|
displayName = CSTRING(PickUp);
|
|
|
|
distance = 5;
|
2017-12-14 14:51:14 +00:00
|
|
|
condition = "(true)";
|
2015-09-26 01:16:55 +00:00
|
|
|
statement = QUOTE([ARR_2(_player,_target)] call FUNC(pickup));
|
2015-06-04 19:13:44 +00:00
|
|
|
showDisabled = 0;
|
|
|
|
exceptions[] = {};
|
2016-04-08 18:34:50 +00:00
|
|
|
icon = QPATHTOF(UI\w_sniper_tripod_ca.paa);
|
2015-06-04 19:13:44 +00:00
|
|
|
};
|
2015-09-26 01:16:55 +00:00
|
|
|
|
2015-06-04 19:13:44 +00:00
|
|
|
class ACE_Adjust {
|
|
|
|
selection = "";
|
|
|
|
displayName = CSTRING(Adjust);
|
|
|
|
distance = 5;
|
2017-12-14 14:51:14 +00:00
|
|
|
condition = "(true)";
|
2015-08-02 06:05:28 +00:00
|
|
|
//wait a frame to handle "Do When releasing action menu key" option:
|
2023-11-05 18:36:00 +00:00
|
|
|
statement = QUOTE([ARR_2({_this call FUNC(adjust)},[ARR_2(_player,_target)])] call CBA_fnc_execNextFrame);
|
2015-06-04 19:13:44 +00:00
|
|
|
showDisabled = 0;
|
|
|
|
exceptions[] = {};
|
2016-04-08 18:34:50 +00:00
|
|
|
icon = QPATHTOF(UI\w_sniper_tripod_ca.paa);
|
2015-06-04 19:13:44 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2017-12-10 14:12:14 +00:00
|
|
|
|
2018-01-02 14:56:15 +00:00
|
|
|
editorCategory = "EdCat_Supplies";
|
|
|
|
editorSubcategory = QEGVAR(main,subcategory);
|
2017-12-10 14:12:14 +00:00
|
|
|
editorPreview = QPATHTOF(data\preview_tripod.jpg);
|
2015-06-04 19:13:44 +00:00
|
|
|
};
|
|
|
|
};
|