2015-05-28 17:17:29 +00:00
|
|
|
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);
|
2015-05-28 17:17:29 +00:00
|
|
|
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);
|
2015-05-28 17:17:29 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
class ACE_SelfActions {
|
|
|
|
class ACE_Equipment {
|
|
|
|
class GVAR(open) {
|
2015-06-06 02:02:24 +00:00
|
|
|
displayName = CSTRING(OpenRangeCard);
|
2015-05-28 17:17:29 +00:00
|
|
|
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);
|
2015-05-28 17:17:29 +00:00
|
|
|
exceptions[] = {"notOnMap"};
|
2015-06-10 20:56:35 +00:00
|
|
|
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);
|
2015-06-10 20:56:35 +00:00
|
|
|
exceptions[] = {"notOnMap"};
|
|
|
|
};
|
|
|
|
class GVAR(makeCopy) {
|
|
|
|
displayName = CSTRING(CopyRangeCard);
|
|
|
|
condition = QUOTE(call FUNC(canShow) && !GVAR(RangeCardOpened));
|
2016-12-01 20:20:51 +00:00
|
|
|
statement = QUOTE(GVAR(zeroRangeCopy)=GVAR(zeroRange); GVAR(boreHeightCopy)=GVAR(boreHeight); GVAR(ammoClassCopy)=GVAR(ammoClass); GVAR(magazineClassCopy)=GVAR(magazineClass); GVAR(weaponClassCopy)=GVAR(weaponClass););
|
2015-06-10 20:56:35 +00:00
|
|
|
showDisabled = 0;
|
|
|
|
priority = 0.1;
|
2016-04-08 18:34:50 +00:00
|
|
|
icon = QPATHTOF(UI\RangeCard_Icon.paa);
|
2015-06-10 20:56:35 +00:00
|
|
|
exceptions[] = {"notOnMap"};
|
|
|
|
};
|
2015-05-28 17:17:29 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
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);
|
2015-05-28 17:17:29 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class Box_NATO_Support_F;
|
|
|
|
class ACE_Box_Misc: Box_NATO_Support_F {
|
|
|
|
class TransportItems {
|
|
|
|
MACRO_ADDITEM(ACE_RangeCard,6);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|