ACE3/addons/laserpointer/script_component.hpp
commy2 97a0624375 Optimize Laserpointer (#4859)
* only process one unit every 0.1 seconds

* exitWith to keep indentation low

* use event to determine isIR and isTI

* correctly remove units with turned on lights from their arrays

* handle weaponAccessories command reporting nil
2017-02-10 12:47:08 -06:00

20 lines
462 B
C++

#define COMPONENT laserpointer
#define COMPONENT_BEAUTIFIED Laser Pointer
#include "\z\ace\addons\main\script_mod.hpp"
// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE
// #define ENABLE_PERFORMANCE_COUNTERS
#ifdef DEBUG_ENABLED_LASERPOINTER
#define DEBUG_MODE_FULL
#endif
#ifdef DEBUG_ENABLED_LASERPOINTER
#define DEBUG_SETTINGS DEBUG_ENABLED_LASERPOINTER
#endif
#include "\z\ace\addons\main\script_macros.hpp"
#define MAX_LASER_RANGE 50