2016-07-30 12:00:42 +00:00
|
|
|
#define COMPONENT medical_engine
|
2019-06-18 14:03:21 +00:00
|
|
|
#define COMPONENT_BEAUTIFIED Medical Engine
|
2016-07-30 12:00:42 +00:00
|
|
|
#include "\z\ace\addons\main\script_mod.hpp"
|
|
|
|
|
2018-07-29 22:07:30 +00:00
|
|
|
// #define DEBUG_MODE_FULL
|
|
|
|
// #define DISABLE_COMPILE_CACHE
|
2019-04-07 12:22:25 +00:00
|
|
|
// #define ENABLE_PERFORMANCE_COUNTERS
|
2016-07-30 12:00:42 +00:00
|
|
|
|
|
|
|
#ifdef DEBUG_ENABLED_MEDICAL_ENGINE
|
|
|
|
#define DEBUG_MODE_FULL
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef DEBUG_SETTINGS_MEDICAL_ENGINE
|
|
|
|
#define DEBUG_SETTINGS DEBUG_SETTINGS_MEDICAL_ENGINE
|
|
|
|
#endif
|
|
|
|
|
2018-07-18 18:13:25 +00:00
|
|
|
#include "\z\ace\addons\medical_engine\script_macros_medical.hpp"
|
2019-04-27 19:12:11 +00:00
|
|
|
#include "\z\ace\addons\main\script_macros.hpp"
|
2018-07-18 18:13:25 +00:00
|
|
|
#include "\z\ace\addons\medical_engine\script_macros_config.hpp"
|
2016-07-30 12:00:42 +00:00
|
|
|
|
2016-08-27 06:50:55 +00:00
|
|
|
#define PRELOAD_CLASS(class) \
|
2020-10-30 18:29:13 +00:00
|
|
|
TRACE_1("Starting preload",class);\
|
2016-08-27 06:50:55 +00:00
|
|
|
[{\
|
|
|
|
1 preloadObject _this;\
|
|
|
|
}, {\
|
2020-10-30 18:29:13 +00:00
|
|
|
TRACE_1("Preload done",_this);\
|
2016-08-27 06:50:55 +00:00
|
|
|
}, class] call CBA_fnc_waitUntilAndExecute
|
2016-09-26 16:30:39 +00:00
|
|
|
|
|
|
|
#define PRIORITY_HEAD 3
|
|
|
|
#define PRIORITY_BODY 4
|
|
|
|
#define PRIORITY_LEFT_ARM (1 + random 1)
|
|
|
|
#define PRIORITY_RIGHT_ARM (1 + random 1)
|
|
|
|
#define PRIORITY_LEFT_LEG (1 + random 1)
|
|
|
|
#define PRIORITY_RIGHT_LEG (1 + random 1)
|
2022-02-17 20:03:12 +00:00
|
|
|
#define PRIORITY_STRUCTURAL 1
|
2016-09-30 09:23:07 +00:00
|
|
|
|
|
|
|
// don't change, these reflect hard coded engine behaviour
|
2016-10-06 21:44:14 +00:00
|
|
|
#define DAMAGED_MIN_THRESHOLD 0.45
|
2016-09-30 09:23:07 +00:00
|
|
|
#define LIMPING_MIN_DAMAGE 0.5
|
2021-11-07 23:15:52 +00:00
|
|
|
|
|
|
|
#define UNCON_ANIM(var1) DOUBLES(GVAR(uncon_anim),var1)
|
|
|
|
#define QUNCON_ANIM(var1) QUOTE(UNCON_ANIM(var1))
|