ACE3/addons/overheating/script_component.hpp

26 lines
787 B
C++
Raw Permalink Normal View History

2015-01-13 03:23:14 +00:00
#define COMPONENT overheating
#include "\z\ace\addons\main\script_mod.hpp"
2015-01-13 03:23:14 +00:00
2016-02-25 15:12:24 +00:00
// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE
// #define CBA_DEBUG_SYNCHRONOUS
// #define ENABLE_PERFORMANCE_COUNTERS
2015-12-15 07:09:26 +00:00
2015-01-13 03:23:14 +00:00
#ifdef DEBUG_ENABLED_OVERHEATING
#define DEBUG_MODE_FULL
2015-01-13 03:23:14 +00:00
#endif
#ifdef DEBUG_SETTINGS_OVERHEATING
#define DEBUG_SETTINGS DEBUG_SETTINGS_OVERHEATING
2015-01-13 03:23:14 +00:00
#endif
#include "\z\ace\addons\main\script_macros.hpp"
#define TEMP_TOLERANCE 50
#ifdef DEBUG_MODE_FULL
#define TRACE_PROJECTILE_INFO(BULLET) _vdir = vectorNormalized velocity BULLET; _dir = (_vdir select 0) atan2 (_vdir select 1); _up = asin (_vdir select 2); _mv = vectorMagnitude velocity BULLET; TRACE_3("adjusted projectile",_dir,_up,_mv);
#else
#define TRACE_PROJECTILE_INFO(BULLET) /* noDebug */
#endif