ACE3/addons/laserpointer/script_macros_config.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

40 lines
997 B
C++

/*
Usage:
#include "\z\ace\addons\laserpointer\script_macros_config.hpp"
class CfgWeapons {
class My_AwesomePointer_base;
class My_AwesomePointer: My_AwesomePointer_base {
class ItemInfo {
POINTER_VISIBLE_GREEN;
};
};
};
*/
#define POINTER_VISIBLE_RED \
class Pointer { \
irLaserPos = "laser pos"; \
irLaserEnd = "laser dir"; \
irDistance = 5; \
isIR = 0; \
irDotSize = QUOTE(0.1/4); \
beamThickness = 0; \
beamMaxLength = 50; \
dotColor[] = {16384, 0, 0}; \
beamColor[] = {0, 0, 0}; \
}
#define POINTER_VISIBLE_GREEN \
class Pointer { \
irLaserPos = "laser pos"; \
irLaserEnd = "laser dir"; \
irDistance = 5; \
isIR = 0; \
irDotSize = QUOTE(0.1/4); \
beamThickness = 0; \
beamMaxLength = 75; \
dotColor[] = {0, 16384, 0}; \
beamColor[] = {0, 0, 0}; \
}