addX macro in confgis

This commit is contained in:
SzwedzikPL 2015-07-25 21:59:52 +02:00
parent ffc5615abd
commit 6258e73290
14 changed files with 63 additions and 234 deletions

View File

@ -24,10 +24,7 @@ class CfgVehicles {
displayName = "ATragMX"; displayName = "ATragMX";
vehicleClass = "Items"; vehicleClass = "Items";
class TransportItems { class TransportItems {
class ACE_ATragMX { MACRO_ADDITEM(ACE_ATragMX,1);
name = "ACE_ATragMX";
count = 1;
};
}; };
}; };

View File

@ -113,10 +113,7 @@ class CfgVehicles {
author = CSTRING(ACETeam); author = CSTRING(ACETeam);
vehicleClass = "Items"; vehicleClass = "Items";
class TransportItems { class TransportItems {
class ACE_banana { MACRO_ADDITEM(ACE_banana,1);
name = "ACE_banana";
count = 1;
};
}; };
}; };
}; };

View File

@ -33,10 +33,7 @@ class CfgVehicles {
displayName = "DAGR"; displayName = "DAGR";
vehicleClass = "Items"; vehicleClass = "Items";
class TransportItems { class TransportItems {
class ACE_DAGR { MACRO_ADDITEM(ACE_DAGR,1);
name = "ACE_DAGR";
count = 1;
};
}; };
}; };

View File

@ -16,7 +16,7 @@ class CfgVehicles {
}; };
}; };
}; };
class Parachute_02_base_F; class Parachute_02_base_F;
class ACE_HuntIR: Parachute_02_base_F { class ACE_HuntIR: Parachute_02_base_F {
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
@ -67,13 +67,10 @@ class CfgVehicles {
displayName = CSTRING(monitor_displayName); displayName = CSTRING(monitor_displayName);
vehicleClass = "Items"; vehicleClass = "Items";
class TransportItems { class TransportItems {
class ACE_HuntIR_monitor { MACRO_ADDITEM(ACE_HuntIR_monitor,1);
name = "ACE_HuntIR_monitor";
count = 1;
};
}; };
}; };
class ReammoBox_F; class ReammoBox_F;
class ACE_HuntIR_Box: ReammoBox_F { class ACE_HuntIR_Box: ReammoBox_F {
model = PATHTOF(data\ace_huntirbox.p3d); model = PATHTOF(data\ace_huntirbox.p3d);

View File

@ -42,10 +42,7 @@ class CfgVehicles {
displayName = "Kestrel 4500"; displayName = "Kestrel 4500";
vehicleClass = "Items"; vehicleClass = "Items";
class TransportItems { class TransportItems {
class ACE_Kestrel4500 { MACRO_ADDITEM(ACE_Kestrel4500,1);
name = "ACE_Kestrel4500";
count = 1;
};
}; };
}; };

View File

@ -30,10 +30,7 @@ class CfgVehicles {
class Box_NATO_Support_F; class Box_NATO_Support_F;
class ACE_Box_Misc: Box_NATO_Support_F { class ACE_Box_Misc: Box_NATO_Support_F {
class TransportItems { class TransportItems {
class _xx_ACE_UAVBattery { MACRO_ADDITEM(ACE_UAVBattery,6);
count = 6;
name = "ACE_UAVBattery";
};
}; };
}; };
}; };

View File

@ -752,10 +752,7 @@ class CfgVehicles {
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
vehicleClass = "Items"; vehicleClass = "Items";
class TransportItems { class TransportItems {
class ACE_fieldDressing { MACRO_ADDITEM(ACE_fieldDressing,1);
name = "ACE_fieldDressing";
count = 1;
};
}; };
}; };
class ACE_packingBandageItem: Item_Base_F { class ACE_packingBandageItem: Item_Base_F {
@ -765,10 +762,7 @@ class CfgVehicles {
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
vehicleClass = "Items"; vehicleClass = "Items";
class TransportItems { class TransportItems {
class ACE_packingBandage { MACRO_ADDITEM(ACE_packingBandage,1);
name = "ACE_packingBandage";
count = 1;
};
}; };
}; };
class ACE_elasticBandageItem: Item_Base_F { class ACE_elasticBandageItem: Item_Base_F {
@ -778,10 +772,7 @@ class CfgVehicles {
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
vehicleClass = "Items"; vehicleClass = "Items";
class TransportItems { class TransportItems {
class ACE_elasticBandage { MACRO_ADDITEM(ACE_elasticBandage,1);
name = "ACE_elasticBandage";
count = 1;
};
}; };
}; };
class ACE_tourniquetItem: Item_Base_F { class ACE_tourniquetItem: Item_Base_F {
@ -791,10 +782,7 @@ class CfgVehicles {
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
vehicleClass = "Items"; vehicleClass = "Items";
class TransportItems { class TransportItems {
class ACE_tourniquet { MACRO_ADDITEM(ACE_tourniquet,1);
name = "ACE_tourniquet";
count = 1;
};
}; };
}; };
class ACE_morphineItem: Item_Base_F { class ACE_morphineItem: Item_Base_F {
@ -804,10 +792,7 @@ class CfgVehicles {
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
vehicleClass = "Items"; vehicleClass = "Items";
class TransportItems { class TransportItems {
class ACE_morphine { MACRO_ADDITEM(ACE_morphine,1);
name = "ACE_morphine";
count = 1;
};
}; };
}; };
class ACE_atropineItem: Item_Base_F { class ACE_atropineItem: Item_Base_F {
@ -817,10 +802,7 @@ class CfgVehicles {
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
vehicleClass = "Items"; vehicleClass = "Items";
class TransportItems { class TransportItems {
class ACE_atropine { MACRO_ADDITEM(ACE_atropine,1);
name = "ACE_atropine";
count = 1;
};
}; };
}; };
class ACE_epinephrineItem: Item_Base_F { class ACE_epinephrineItem: Item_Base_F {
@ -830,10 +812,7 @@ class CfgVehicles {
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
vehicleClass = "Items"; vehicleClass = "Items";
class TransportItems { class TransportItems {
class ACE_epinephrine { MACRO_ADDITEM(ACE_epinephrine,1);
name = "ACE_epinephrine";
count = 1;
};
}; };
}; };
class ACE_plasmaIVItem: Item_Base_F { class ACE_plasmaIVItem: Item_Base_F {
@ -843,10 +822,7 @@ class CfgVehicles {
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
vehicleClass = "Items"; vehicleClass = "Items";
class TransportItems { class TransportItems {
class ACE_plasmaIV { MACRO_ADDITEM(ACE_plasmaIV,1);
name = "ACE_plasmaIV";
count = 1;
};
}; };
}; };
@ -857,10 +833,7 @@ class CfgVehicles {
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
vehicleClass = "Items"; vehicleClass = "Items";
class TransportItems { class TransportItems {
class ACE_bloodIV { MACRO_ADDITEM(ACE_bloodIV,1);
name = "ACE_bloodIV";
count = 1;
};
}; };
}; };
class ACE_salineIVItem: Item_Base_F { class ACE_salineIVItem: Item_Base_F {
@ -870,10 +843,7 @@ class CfgVehicles {
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
vehicleClass = "Items"; vehicleClass = "Items";
class TransportItems { class TransportItems {
class ACE_salineIV { MACRO_ADDITEM(ACE_salineIV,1);
name = "ACE_salineIV";
count = 1;
};
}; };
}; };
class ACE_quikClotItem: Item_Base_F { class ACE_quikClotItem: Item_Base_F {
@ -883,10 +853,7 @@ class CfgVehicles {
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
vehicleClass = "Items"; vehicleClass = "Items";
class TransportItems { class TransportItems {
class ACE_quikClot { MACRO_ADDITEM(ACE_quikclot,1);
name = "ACE_quikclot";
count = 1;
};
}; };
}; };
class ACE_personalAidKitItem: Item_Base_F { class ACE_personalAidKitItem: Item_Base_F {
@ -896,10 +863,7 @@ class CfgVehicles {
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
vehicleClass = "Items"; vehicleClass = "Items";
class TransportItems { class TransportItems {
class ACE_personalAidKit { MACRO_ADDITEM(ACE_personalAidKit,1);
name = "ACE_personalAidKit";
count = 1;
};
}; };
}; };
class ACE_surgicalKitItem: Item_Base_F { class ACE_surgicalKitItem: Item_Base_F {
@ -909,10 +873,7 @@ class CfgVehicles {
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
vehicleClass = "Items"; vehicleClass = "Items";
class TransportItems { class TransportItems {
class ACE_surgicalKit { MACRO_ADDITEM(ACE_surgicalKit,1);
name = "ACE_surgicalKit";
count = 1;
};
}; };
}; };
class ACE_bodyBagItem: Item_Base_F { class ACE_bodyBagItem: Item_Base_F {
@ -922,10 +883,7 @@ class CfgVehicles {
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
vehicleClass = "Items"; vehicleClass = "Items";
class TransportItems { class TransportItems {
class ACE_bodyBag { MACRO_ADDITEM(ACE_bodyBag,1);
name = "ACE_bodyBag";
count = 1;
};
}; };
}; };
@ -937,119 +895,38 @@ class CfgVehicles {
model = PATHTOF(data\ace_medcrate.p3d); model = PATHTOF(data\ace_medcrate.p3d);
author = ECSTRING(common,ACETeam); author = ECSTRING(common,ACETeam);
class TransportItems { class TransportItems {
class ACE_fieldDressing { MACRO_ADDITEM(ACE_fieldDressing,50);
name = "ACE_fieldDressing"; MACRO_ADDITEM(ACE_morphine,25);
count = 50; MACRO_ADDITEM(ACE_epinephrine,25);
}; MACRO_ADDITEM(ACE_bloodIV,15);
class ACE_morphine { MACRO_ADDITEM(ACE_bloodIV_500,15);
name = "ACE_morphine"; MACRO_ADDITEM(ACE_bloodIV_250,15);
count = 25; MACRO_ADDITEM(ACE_bodyBag,10);
};
class ACE_epinephrine {
name = "ACE_epinephrine";
count = 25;
};
class ACE_bloodIV {
name = "ACE_bloodIV";
count = 15;
};
class ACE_bloodIV_500 {
name = "ACE_bloodIV_500";
count = 15;
};
class ACE_bloodIV_250 {
name = "ACE_bloodIV_250";
count = 15;
};
class ACE_bodyBag {
name = "ACE_bodyBag";
count = 10;
};
}; };
}; };
class ACE_medicalSupplyCrate_advanced: ACE_medicalSupplyCrate { class ACE_medicalSupplyCrate_advanced: ACE_medicalSupplyCrate {
displayName = CSTRING(medicalSupplyCrate_advanced); displayName = CSTRING(medicalSupplyCrate_advanced);
class TransportItems { class TransportItems {
class ACE_fieldDressing { MACRO_ADDITEM(ACE_fieldDressing,25);
name = "ACE_fieldDressing"; MACRO_ADDITEM(ACE_packingBandage,25);
count = 25; MACRO_ADDITEM(ACE_elasticBandage,25);
}; MACRO_ADDITEM(ACE_tourniquet,15);
class ACE_packingBandage { MACRO_ADDITEM(ACE_morphine,15);
name = "ACE_packingBandage"; MACRO_ADDITEM(ACE_atropine,15);
count = 25; MACRO_ADDITEM(ACE_epinephrine,15);
}; MACRO_ADDITEM(ACE_plasmaIV,7);
class ACE_elasticBandage { MACRO_ADDITEM(ACE_plasmaIV_500,7);
name = "ACE_elasticBandage"; MACRO_ADDITEM(ACE_plasmaIV_250,7);
count = 25; MACRO_ADDITEM(ACE_salineIV,7);
}; MACRO_ADDITEM(ACE_salineIV_500,7);
class ACE_tourniquet { MACRO_ADDITEM(ACE_salineIV_250,7);
name = "ACE_tourniquet"; MACRO_ADDITEM(ACE_bloodIV,7);
count = 15; MACRO_ADDITEM(ACE_bloodIV_500,7);
}; MACRO_ADDITEM(ACE_bloodIV_250,7);
class ACE_morphine { MACRO_ADDITEM(ACE_quikClot,20);
name = "ACE_morphine"; MACRO_ADDITEM(ACE_personalAidKit,3);
count = 15; MACRO_ADDITEM(ACE_surgicalKit,2);
}; MACRO_ADDITEM(ACE_bodyBag,5);
class ACE_atropine {
name = "ACE_atropine";
count = 15;
};
class ACE_epinephrine {
name = "ACE_epinephrine";
count = 15;
};
class ACE_plasmaIV {
name = "ACE_plasmaIV";
count = 7;
};
class ACE_plasmaIV_500 {
name = "ACE_plasmaIV_500";
count = 7;
};
class ACE_plasmaIV_250 {
name = "ACE_plasmaIV_250";
count = 7;
};
class ACE_salineIV {
name = "ACE_salineIV";
count = 7;
};
class ACE_salineIV_500 {
name = "ACE_salineIV_500";
count = 7;
};
class ACE_salineIV_250 {
name = "ACE_salineIV_250";
count = 7;
};
class ACE_bloodIV {
name = "ACE_bloodIV";
count = 7;
};
class ACE_bloodIV_500 {
name = "ACE_bloodIV_500";
count = 7;
};
class ACE_bloodIV_250 {
name = "ACE_bloodIV_250";
count = 7;
};
class ACE_quikClot {
name = "ACE_quikclot";
count = 20;
};
class ACE_personalAidKit {
name = "ACE_personalAidKit";
count = 3;
};
class ACE_surgicalKit {
name = "ACE_surgicalKit";
count = 2;
};
class ACE_bodyBag {
name = "ACE_bodyBag";
count = 5;
};
}; };
}; };
}; };

View File

@ -2,20 +2,11 @@ class CfgVehicles {
class Box_NATO_Support_F; class Box_NATO_Support_F;
class ACE_Box_Misc: Box_NATO_Support_F { class ACE_Box_Misc: Box_NATO_Support_F {
class TransportItems { class TransportItems {
class _xx_ACE_Altimeter { MACRO_ADDITEM(ACE_Altimeter,6);
name = "ACE_Altimeter";
count = 6;
};
}; };
class TransportBackpacks { class TransportBackpacks {
class _xx_ACE_NonSteerableParachute { MACRO_ADDBACKPACK(ACE_NonSteerableParachute,4);
backpack = "ACE_NonSteerableParachute"; MACRO_ADDBACKPACK(ACE_ReserveParachute,4);
count = 4;
};
class _xx_ACE_ReserveParachute {
backpack = "ACE_ReserveParachute";
count = 4;
};
}; };
}; };

View File

@ -53,10 +53,7 @@ class CfgVehicles {
displayName = "Range Card"; displayName = "Range Card";
vehicleClass = "Items"; vehicleClass = "Items";
class TransportItems { class TransportItems {
class ACE_RangeCard { MACRO_ADDITEM(ACE_RangeCard,1);
name = "ACE_RangeCard";
count = 1;
};
}; };
}; };

View File

@ -22,10 +22,7 @@ class CfgVehicles {
displayName = CSTRING(sandbagEmpty_displayName); displayName = CSTRING(sandbagEmpty_displayName);
vehicleClass = "Items"; vehicleClass = "Items";
class TransportItems { class TransportItems {
class ACE_Sandbag_empty { MACRO_ADDITEM(ACE_Sandbag_empty,1);
name = "ACE_Sandbag_empty";
count = 1;
};
}; };
}; };
/* /*
@ -103,7 +100,7 @@ class CfgVehicles {
scope = 1; scope = 1;
model = PATHTOF(data\ace_sandbag_nogeo.p3d); model = PATHTOF(data\ace_sandbag_nogeo.p3d);
}; };
class Box_NATO_Support_F; class Box_NATO_Support_F;
class ACE_Box_Misc: Box_NATO_Support_F { class ACE_Box_Misc: Box_NATO_Support_F {
class TransportItems { class TransportItems {

View File

@ -24,10 +24,7 @@ class CfgVehicles {
displayName = CSTRING(DisplayName); displayName = CSTRING(DisplayName);
vehicleClass = "Items"; vehicleClass = "Items";
class TransportItems { class TransportItems {
class ACE_SpottingScope { MACRO_ADDITEM(ACE_SpottingScope,1);
name = "ACE_SpottingScope";
count = 1;
};
}; };
}; };

View File

@ -13,14 +13,14 @@ class CfgVehicles {
}; };
}; };
}; };
class Bag_Base; class Bag_Base;
class ACE_TacticalLadder_Pack: Bag_Base { class ACE_TacticalLadder_Pack: Bag_Base {
scope = 2; scope = 2;
displayName = CSTRING(DisplayName); displayName = CSTRING(DisplayName);
descriptionShort = ""; descriptionShort = "";
model = PATHTOF(data\ace_tacticalladder_pack.p3d); model = PATHTOF(data\ace_tacticalladder_pack.p3d);
picture = PATHTOF(UI\ace_tactical_ladder_pack_ca.paa); picture = PATHTOF(UI\ace_tactical_ladder_pack_ca.paa);
maximumLoad = 0; maximumLoad = 0;
mass = 50; mass = 50;
}; };
@ -28,13 +28,10 @@ class CfgVehicles {
class Box_NATO_Support_F; class Box_NATO_Support_F;
class ACE_Box_Misc: Box_NATO_Support_F { class ACE_Box_Misc: Box_NATO_Support_F {
class TransportBackpacks { class TransportBackpacks {
class _xx_ACE_TacticalLadder_Pack { MACRO_ADDBACKPACK(ACE_TacticalLadder_Pack,3);
backpack = "ACE_TacticalLadder_Pack";
count = 3;
};
}; };
}; };
class House; class House;
class ACE_Tactical_Ladder: House { class ACE_Tactical_Ladder: House {
XEH_ENABLED; XEH_ENABLED;

View File

@ -23,10 +23,7 @@ class CfgVehicles {
displayName = CSTRING(DisplayName); displayName = CSTRING(DisplayName);
vehicleClass = "Items"; vehicleClass = "Items";
class TransportItems { class TransportItems {
class ACE_Tripod { MACRO_ADDITEM(ACE_Tripod,1);
name = "ACE_Tripod";
count = 1;
};
}; };
}; };
@ -36,7 +33,7 @@ class CfgVehicles {
MACRO_ADDITEM(ACE_Tripod,2); MACRO_ADDITEM(ACE_Tripod,2);
}; };
}; };
class thingX; class thingX;
class ACE_TripodObject: thingX { class ACE_TripodObject: thingX {
XEH_ENABLED; XEH_ENABLED;
@ -49,7 +46,7 @@ class CfgVehicles {
animPeriod = 0.02; animPeriod = 0.02;
initPhase = 0; initPhase = 0;
minValue = 0; minValue = 0;
maxValue = 1; maxValue = 1;
}; };
class retract_leg_1: slide_down_tripod {}; class retract_leg_1: slide_down_tripod {};
class retract_leg_2: retract_leg_1 {}; class retract_leg_2: retract_leg_1 {};

View File

@ -1,9 +1,3 @@
#define MACRO_ADDWEAPON(WEAPON,COUNT) class _xx_##WEAPON { \
weapon = #WEAPON; \
count = COUNT; \
}
class CfgVehicles { class CfgVehicles {
class Item_Base_F; class Item_Base_F;
class ACE_Item_Vector: Item_Base_F { class ACE_Item_Vector: Item_Base_F {