2016-05-30 16:37:03 +00:00
|
|
|
#define COMPONENT missileguidance
|
2016-06-20 09:41:17 +00:00
|
|
|
#define COMPONENT_BEAUTIFIED Missile Guidance
|
2016-05-30 16:37:03 +00:00
|
|
|
#include "\z\ace\addons\main\script_mod.hpp"
|
|
|
|
|
2021-05-18 06:32:55 +00:00
|
|
|
// #define DRAW_GUIDANCE_INFO
|
2021-04-14 08:29:27 +00:00
|
|
|
// #define ENABLE_PROJECTILE_CAMERA
|
2021-04-16 21:43:31 +00:00
|
|
|
// #define DEBUG_MODE_FULL
|
2021-10-16 03:35:25 +00:00
|
|
|
#define DISABLE_COMPILE_CACHE
|
2016-05-30 16:37:03 +00:00
|
|
|
// #define ENABLE_PERFORMANCE_COUNTERS
|
|
|
|
|
|
|
|
#ifdef DEBUG_ENABLED_MISSILEGUIDANCE
|
|
|
|
#define DEBUG_MODE_FULL
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef DEBUG_SETTINGS_MISSILEGUIDANCE
|
|
|
|
#define DEBUG_SETTINGS DEBUG_SETTINGS_MISSILEGUIDANCE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "\z\ace\addons\main\script_macros.hpp"
|
2019-12-17 02:01:30 +00:00
|
|
|
|
|
|
|
#define RANDOM_VECTOR_3D (call {\
|
|
|
|
private _z = random 2 - 1;\
|
|
|
|
private _r = sqrt (1 - _z^2);\
|
|
|
|
private _theta = random 360;\
|
|
|
|
[_r * cos _theta, _r * sin _theta, _z]\
|
|
|
|
})
|
|
|
|
|
|
|
|
#define DEFAULT_CORRECTION_DISTANCE 2
|
|
|
|
#define DEFAULT_LEAD_DISTANCE 5
|
2019-12-30 18:29:08 +00:00
|
|
|
#define ACTIVE_RADAR_POLL_FREQUENCY (1 / 7)
|
|
|
|
#define ACTIVE_RADAR_MINIMUM_SCAN_AREA 30
|