ACE3/addons/kestrel/CfgVehicles.hpp
2015-01-19 21:13:56 +01:00

54 lines
1.5 KiB
C++

#define MACRO_ADDITEM(ITEM,COUNT) class _xx_##ITEM { \
name = #ITEM; \
count = COUNT; \
}
class CfgVehicles {
class Man;
class CAManBase: Man {
class ACE_SelfActions {
class ACE_OpenKestrel {
displayName = "$STR_ACE_Wind_OpenKestrel";
condition = QUOTE('ACE_Kestrel' in items _player && {!GVAR(isKestrel)});
statement = QUOTE(call FUNC(openKestrel));
showDisabled = 0;
priority = 2;
icon = PATHTOF(data\4500NV1.paa);
hotkey = "K";
};
class ACE_CloseKestrel {
displayName = "$STR_ACE_Wind_CloseKestrel";
condition = QUOTE(GVAR(isKestrel));
statement = QUOTE(call FUNC(closeKestrel));
showDisabled = 0;
priority = 2;
icon = PATHTOF(data\4500NV1.paa);
hotkey = "K";
};
};
};
class Item_Base_F;
class ACE_Item_Kestrel: Item_Base_F {
author = "$STR_ACE_Common_ACETeam";
scope = 2;
scopeCurator = 2;
displayName = "$STR_ACE_Kestrel_Name";
vehicleClass = "Items";
class TransportItems {
class ACE_Kestrel {
name = "ACE_Kestrel";
count = 1;
};
};
};
class Box_NATO_Support_F;
class ACE_Box_Misc: Box_NATO_Support_F {
class TransportItems {
MACRO_ADDITEM(ACE_Kestrel,6);
};
};
};