ACE3/addons/overheating/script_component.hpp
Drofseh 6ea0312770
Overheating - Increase cooling for open bolt guns and spare barrels (#9827)
* open bolt and spare barrel cooling boost

* change magic number to macro
2024-03-06 09:45:41 -08:00

29 lines
905 B
C++

#define COMPONENT overheating
#define COMPONENT_BEAUTIFIED Overheating
#include "\z\ace\addons\main\script_mod.hpp"
// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE
// #define ENABLE_PERFORMANCE_COUNTERS
#ifdef DEBUG_ENABLED_OVERHEATING
#define DEBUG_MODE_FULL
#endif
#ifdef DEBUG_SETTINGS_OVERHEATING
#define DEBUG_SETTINGS DEBUG_SETTINGS_OVERHEATING
#endif
#include "\z\ace\addons\main\script_macros.hpp"
#define TEMP_TOLERANCE 50
#define METAL_MASS_RATIO 0.55
#define GUNPOWDER_IGNITION_TEMP 180
#define OPEN_BOLT_ADDITIONAL_CONVECTION 1.1
#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