ACE3/addons/laserpointer/CfgWeapons.hpp
Grim bd4d1a7a50
IR Lights - Fix visible pointers for DBAL (#9414)
* fix dbal visible pointer

* fix dbal visible pointer

* remove unused macro

* tweak numbers, move define to single file

* change max range
2023-09-19 22:55:15 +02:00

59 lines
1.7 KiB
C++

class CfgWeapons {
class ItemCore;
class InventoryFlashLightItem_Base_F;
class acc_pointer_IR: ItemCore {
MRT_SwitchItemNextClass = "ACE_acc_pointer_red";
MRT_SwitchItemPrevClass = "ACE_acc_pointer_red";
MRT_switchItemHintText = CSTRING(IRLaser);
displayName = CSTRING(red);
descriptionUse = CSTRING(useLaser);
class ItemInfo: InventoryFlashLightItem_Base_F {
class Pointer;
};
};
class ACE_acc_pointer_green_IR: acc_pointer_IR {
MRT_SwitchItemNextClass = "ACE_acc_pointer_green";
MRT_SwitchItemPrevClass = "ACE_acc_pointer_green";
author = ECSTRING(common,ACETeam);
_generalMacro = "ACE_acc_pointer_green";
scope = 1;
displayName = CSTRING(green);
baseWeapon = "ACE_acc_pointer_green";
};
class ACE_acc_pointer_red: acc_pointer_IR {
MRT_SwitchItemNextClass = "acc_pointer_IR";
MRT_SwitchItemPrevClass = "acc_pointer_IR";
MRT_switchItemHintText = CSTRING(Laser);
author = ECSTRING(common,ACETeam);
_generalMacro = "ACE_acc_pointer_red";
scope = 1;
descriptionShort = CSTRING(Description);
baseWeapon = "acc_pointer_IR";
class ItemInfo: ItemInfo {
POINTER_VISIBLE_RED;
};
};
class ACE_acc_pointer_green: ACE_acc_pointer_red {
MRT_SwitchItemNextClass = "ACE_acc_pointer_green_IR";
MRT_SwitchItemPrevClass = "ACE_acc_pointer_green_IR";
_generalMacro = "ACE_acc_pointer_green";
scope = 2;
displayName = CSTRING(green);
baseWeapon = "ACE_acc_pointer_green";
class ItemInfo: ItemInfo {
POINTER_VISIBLE_GREEN;
};
};
};