mirror of
https://github.com/acemod/ACE3.git
synced 2025-07-26 05:12:54 +00:00
* Common - Unquote math * fix others, wrap frag number --------- Co-authored-by: PabstMirror <pabstmirror@gmail.com>
40 lines
983 B
C++
40 lines
983 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 = 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 = 0.1/4; \
|
|
beamThickness = 0; \
|
|
beamMaxLength = 75; \
|
|
dotColor[] = {0, 16384, 0}; \
|
|
beamColor[] = {0, 0, 0}; \
|
|
}
|