ACE3/addons/rangecard/CfgVehicles.hpp

67 lines
2.6 KiB
C++
Raw Normal View History

class CfgVehicles {
class Man;
class CAManBase: Man {
class ACE_Actions {
class ACE_Weapon {
class GVAR(copyRangeCard) {
2015-06-06 02:02:24 +00:00
displayName = CSTRING(CopyRangeCard);
distance = 2.0;
condition = QUOTE(_target call FUNC(canCopy));
statement = QUOTE(_target call FUNC(updateClassNames));
2016-04-08 18:34:50 +00:00
icon = QPATHTOF(UI\RangeCard_Icon.paa);
};
};
};
class ACE_SelfActions {
class ACE_Equipment {
class GVAR(open) {
2015-06-06 02:02:24 +00:00
displayName = CSTRING(OpenRangeCard);
condition = QUOTE(call FUNC(canShow) && !GVAR(RangeCardOpened));
statement = QUOTE(false call FUNC(openRangeCard));
showDisabled = 0;
priority = 0.1;
2016-04-08 18:34:50 +00:00
icon = QPATHTOF(UI\RangeCard_Icon.paa);
exceptions[] = {"notOnMap"};
class GVAR(openCopy) {
displayName = CSTRING(OpenRangeCardCopy);
condition = QUOTE(call FUNC(canShowCopy) && !GVAR(RangeCardOpened));
statement = QUOTE(true call FUNC(openRangeCard));
showDisabled = 0;
priority = 0.1;
2016-04-08 18:34:50 +00:00
icon = QPATHTOF(UI\RangeCard_Icon.paa);
exceptions[] = {"notOnMap"};
};
class GVAR(makeCopy) {
displayName = CSTRING(CopyRangeCard);
condition = QUOTE(call FUNC(canShow) && !GVAR(RangeCardOpened));
statement = QUOTE(GVAR(zeroRangeCopy)=GVAR(zeroRange); GVAR(boreHeightCopy)=GVAR(boreHeight); GVAR(ammoClassCopy)=GVAR(ammoClass); GVAR(magazineClassCopy)=GVAR(magazineClass); GVAR(weaponClassCopy)=GVAR(weaponClass););
showDisabled = 0;
priority = 0.1;
2016-04-08 18:34:50 +00:00
icon = QPATHTOF(UI\RangeCard_Icon.paa);
exceptions[] = {"notOnMap"};
};
};
};
};
};
class Item_Base_F;
class ACE_Item_RangeCard: Item_Base_F {
author = "Ruthberg";
scope = 2;
scopeCurator = 2;
displayName = "Range Card";
vehicleClass = "Items";
class TransportItems {
2015-07-25 19:59:52 +00:00
MACRO_ADDITEM(ACE_RangeCard,1);
};
};
class Box_NATO_Support_F;
class ACE_Box_Misc: Box_NATO_Support_F {
class TransportItems {
MACRO_ADDITEM(ACE_RangeCard,6);
};
};
};