2016-06-30 15:33:29 +00:00
|
|
|
#define COMPONENT medical_damage
|
|
|
|
#define COMPONENT_BEAUTIFIED Medical Damage
|
|
|
|
#include "\z\ace\addons\main\script_mod.hpp"
|
|
|
|
|
2016-09-27 19:21:44 +00:00
|
|
|
#define DEBUG_MODE_FULL
|
|
|
|
#define DISABLE_COMPILE_CACHE
|
|
|
|
#define CBA_DEBUG_SYNCHRONOUS
|
2016-09-27 17:22:54 +00:00
|
|
|
//#define ENABLE_PERFORMANCE_COUNTERS
|
2016-06-30 15:33:29 +00:00
|
|
|
|
|
|
|
#ifdef DEBUG_ENABLED_MEDICAL_DAMAGE
|
|
|
|
#define DEBUG_MODE_FULL
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef DEBUG_SETTINGS_MEDICAL_DAMAGE
|
|
|
|
#define DEBUG_SETTINGS DEBUG_SETTINGS_MEDICAL_DAMAGE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "\z\ace\addons\main\script_macros.hpp"
|
2016-09-27 09:05:38 +00:00
|
|
|
|
|
|
|
#define GET_NUMBER(config,default) (if (isNumber (config)) then {getNumber (config)} else {default})
|
|
|
|
#define GET_STRING(config,default) (if (isText (config)) then {getText (config)} else {default})
|
|
|
|
#define GET_ARRAY(config,default) (if (isArray (config)) then {getArray (config)} else {default})
|
2016-09-27 15:29:49 +00:00
|
|
|
|
2016-10-05 22:54:57 +00:00
|
|
|
#define ALL_BODY_PARTS ["head", "body", "leftarm", "rightarm", "leftleg", "rightleg"]
|
2016-09-27 19:21:44 +00:00
|
|
|
|
|
|
|
// scale received pain to 0-2 level to select type of scream
|
|
|
|
// below 0.25: 0, from 0.25 to 0.5: 1, more than 0.5: 2
|
|
|
|
#define PAIN_TO_SCREAM(pain) (floor (4 * pain) min 2)
|