ACE3/addons/sandbag/CfgVehicles.hpp

114 lines
3.7 KiB
C++
Raw Normal View History

2015-06-02 17:30:50 +00:00
class CfgVehicles {
class Man;
class CAManBase: Man {
class ACE_SelfActions {
class ACE_Sandbags {
displayName = $STR_ACE_AC_BUILD;
condition = QUOTE(call FUNC(canDeploy));
statement = QUOTE(call FUNC(deploy));
exceptions[] = {"isNotSwimming", "isNotInside"};
showDisabled = 1;
priority = 4;
icon = PATHTOF(UI\icon_sandbag_ca.paa);
};
};
};
class Item_Base_F;
class ACE_Item_Sandbag_empty: Item_Base_F {
author = "$STR_ACE_Common_ACETeam";
scope = 2;
scopeCurator = 2;
displayName = "$STR_ACE_M_SBEMPTY";
vehicleClass = "Items";
class TransportItems {
class ACE_Sandbag_empty {
name = "ACE_Sandbag_empty";
count = 1;
};
};
};
/*
class ACE_Item_Sandbag: Item_Base_F {
author = "$STR_ACE_Common_ACETeam";
scope = 2;
scopeCurator = 2;
displayName = "$STR_ACE_Sandbag";
vehicleClass = "Items";
class TransportItems {
class ACE_Sandbag {
name = "ACE_Sandbag";
count = 1;
};
};
};
*/
class thingX;
class ACE_SandbagObject: thingX {
author = "$STR_ACE_Common_ACETeam";
XEH_ENABLED;
scope = 1;
side = -1;
model = PATHTOF(data\ace_sandbag_build.p3d);
displayName = $STR_ACE_Sandbag;
typicalCargo[] = {};
armor = 12000; // Withstand 200 5.56 bullets before sandbag hull is cheese
mapSize = 0.4;
nameSound = "Bunker";
icon = PATHTOF(UI\icon_sandbag_ca.paa);
accuracy = 1000;
destrType = "DestructDefault";
class DestructionEffects {};
class Damage {
tex[] = {};
mat[] = {
"z\ace\addons\sandbag\data\bag_destruct.rvmat",
"z\ace\addons\sandbag\data\bag_destruct.rvmat",
"z\ace\addons\sandbag\data\bag_destruct.rvmat"
};
};
2015-06-02 17:30:50 +00:00
class ACE_Actions {
class ACE_MainActions {
selection = "";
distance = 5;
condition = "true";
class ACE_PickUp {
selection = "";
displayName = "$STR_ACE_AC_PICKUPSB";
distance = 4;
condition = QUOTE(!(_player getVariable [ARR_2('ace_sandbag_usingSandbag',false)]));
statement = QUOTE([ARR_2(_target,_player)] call FUNC(pickup));
showDisabled = 0;
exceptions[] = {};
priority = 5;
icon = PATHTOF(UI\icon_sandbag_ca.paa);
};
class ACE_Carry {
selection = "";
displayName = "$STR_ACE_AC_CARRYSB";
distance = 4;
condition = QUOTE(!(_player getVariable [ARR_2('ace_sandbag_usingSandbag',false)]));
statement = QUOTE([ARR_2(_target,_player)] call FUNC(carry));
showDisabled = 0;
exceptions[] = {};
priority = 5;
icon = PATHTOF(UI\icon_sandbag_ca.paa);
};
2015-06-02 17:30:50 +00:00
};
};
};
class ACE_SandbagObject_NoGeo: ACE_SandbagObject {
scope = 1;
model = PATHTOF(data\ace_sandbag_nogeo.p3d);
};
2015-06-02 17:30:50 +00:00
class Box_NATO_Support_F;
class ACE_Box_Misc: Box_NATO_Support_F {
class TransportItems {
MACRO_ADDITEM(ACE_Sandbag_empty,50);
};
};
};