ACE3/addons/advanced_ballistics/script_component.hpp

37 lines
1.0 KiB
C++
Raw Normal View History

2015-04-05 19:08:55 +00:00
#define COMPONENT advanced_ballistics
2016-06-20 09:41:17 +00:00
#define COMPONENT_BEAUTIFIED Advanced Ballistics
2015-04-05 19:08:55 +00:00
#include "\z\ace\addons\main\script_mod.hpp"
// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE
// #define ENABLE_PERFORMANCE_COUNTERS
#define DEBUG_INIT_SPEEDS
2015-04-05 19:08:55 +00:00
#ifdef DEBUG_ENABLED_ADVANCEDBALLISTICS
2015-04-07 19:27:04 +00:00
#define DEBUG_MODE_FULL
2015-04-05 19:08:55 +00:00
#endif
#ifdef DEBUG_SETTINGS_ADVANCEDBALLISTICS
2015-04-07 19:27:04 +00:00
#define DEBUG_SETTINGS DEBUG_SETTINGS_ADVANCEDBALLISTICS
2015-04-05 19:08:55 +00:00
#endif
#include "\z\ace\addons\main\script_macros.hpp"
#define ABSOLUTE_ZERO_IN_CELSIUS -273.15
#define KELVIN(t) (t - ABSOLUTE_ZERO_IN_CELSIUS)
#define CELSIUS(t) (t + ABSOLUTE_ZERO_IN_CELSIUS)
#define UNIVERSAL_GAS_CONSTANT 8.314
#define WATER_VAPOR_MOLAR_MASS 0.018016
#define DRY_AIR_MOLAR_MASS 0.028964
#define SPECIFIC_GAS_CONSTANT_DRY_AIR 287.058
#define STD_AIR_DENSITY_ICAO 1.22498
#define STD_AIR_DENSITY_ASM 1.20885
// Standard deviation of the default muzzle velocity variation (0.3%)
#define DEFAULT_MUZZLE_VELOCITY_VARIATION_SD 0.003
#define BULLET_TRACE_MIN_VELOCITY 500
#define EXTENSION_REQUIRED_VERSION "1.0"