ACE3/addons/minedetector/script_component.hpp
esteldunedain e26eda3ac2 - Optimize getDetectedObject
- Cache detected mines for 0.15 s
- Call detectorLoop every 0.05 s instead of 0.01s
- Compile a dictionary of detectable classnames from config at start
- Switch to playSound3d for global effect
- Remove dummy
- Change config entries to support playSound3d
- Cache getDetectorConfig for better interaction menu performance
- Change sound to mono wss
- Close #4049
2016-07-04 19:04:58 -03:00

21 lines
487 B
C++

#define COMPONENT minedetector
#define COMPONENT_BEAUTIFIED Mine Detector
#include "\z\ace\addons\main\script_mod.hpp"
// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE
// #define CBA_DEBUG_SYNCHRONOUS
// #define ENABLE_PERFORMANCE_COUNTERS
#ifdef DEBUG_ENABLED_MINEDETECTOR
#define DEBUG_MODE_FULL
#endif
#ifdef DEBUG_SETTINGS_MINEDETECTOR
#define DEBUG_SETTINGS DEBUG_SETTINGS_MINEDETECTOR
#endif
#include "\z\ace\addons\main\script_macros.hpp"
#define __DR 1.3