mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
use common header file for medical components
This commit is contained in:
parent
853c7db1dc
commit
e9586ebccc
@ -15,9 +15,4 @@
|
||||
#endif
|
||||
|
||||
#include "\z\ace\addons\main\script_macros.hpp"
|
||||
|
||||
#define ALL_BODY_PARTS ["head", "body", "leftarm", "rightarm", "leftleg", "rightleg"]
|
||||
|
||||
// scale received pain to 0-2 level to select type of scream
|
||||
// below 0.33: 0, from 0.34 to 0.66: 1, more than 0.67: 2
|
||||
#define PAIN_TO_MOAN(pain) (floor (3 * pain) min 2)
|
||||
#include "\z\ace\addons\medical\script_macros_medical.hpp"
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
Usage:
|
||||
|
||||
#include "\z\ace\addons\medical_engine\script_macros_medical.hpp"
|
||||
#include "\z\ace\addons\medical\script_macros_config.hpp"
|
||||
|
||||
class CfgVehicles {
|
||||
class My_AwesomeUnit_base;
|
16
addons/medical/script_macros_medical.hpp
Normal file
16
addons/medical/script_macros_medical.hpp
Normal file
@ -0,0 +1,16 @@
|
||||
|
||||
#define ALL_BODY_PARTS ["head", "body", "leftarm", "rightarm", "leftleg", "rightleg"]
|
||||
|
||||
#define CUR_LEVEL (["Basic", "Advanced"] select (EGVAR(medical,level) >= 2))
|
||||
|
||||
// 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)
|
||||
|
||||
// scale received pain to 0-2 level to select type of scream
|
||||
// below 0.33: 0, from 0.34 to 0.66: 1, more than 0.67: 2
|
||||
#define PAIN_TO_MOAN(pain) (floor (3 * pain) min 2)
|
||||
|
||||
#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})
|
@ -15,5 +15,4 @@
|
||||
#endif
|
||||
|
||||
#include "\z\ace\addons\main\script_macros.hpp"
|
||||
|
||||
#define ALL_BODY_PARTS ["head", "body", "leftarm", "rightarm", "leftleg", "rightleg"]
|
||||
#include "\z\ace\addons\medical\script_macros_medical.hpp"
|
||||
|
@ -15,6 +15,7 @@
|
||||
#endif
|
||||
|
||||
#include "\z\ace\addons\main\script_macros.hpp"
|
||||
#include "\z\ace\addons\medical\script_macros_medical.hpp"
|
||||
|
||||
#define MAX_BLOOD_OBJECTS 500
|
||||
#define BLOOD_OBJECT_LIFETIME 900
|
||||
|
@ -16,13 +16,4 @@
|
||||
#endif
|
||||
|
||||
#include "\z\ace\addons\main\script_macros.hpp"
|
||||
|
||||
#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})
|
||||
|
||||
#define ALL_BODY_PARTS ["head", "body", "leftarm", "rightarm", "leftleg", "rightleg"]
|
||||
|
||||
// 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)
|
||||
#include "\z\ace\addons\medical\script_macros_medical.hpp"
|
||||
|
@ -16,8 +16,8 @@
|
||||
#endif
|
||||
|
||||
#include "\z\ace\addons\main\script_macros.hpp"
|
||||
|
||||
#include "script_macros_medical.hpp"
|
||||
#include "\z\ace\addons\medical\script_macros_medical.hpp"
|
||||
#include "\z\ace\addons\medical\script_macros_config.hpp"
|
||||
|
||||
#define EMPTY_SOUND {"A3\Sounds_F\dummysound.wss",1,1}
|
||||
#define NAMESPACE_NULL locationNull
|
||||
|
@ -15,5 +15,4 @@
|
||||
#endif
|
||||
|
||||
#include "\z\ace\addons\main\script_macros.hpp"
|
||||
|
||||
#define ALL_BODY_PARTS ["head", "body", "leftarm", "rightarm", "leftleg", "rightleg"]
|
||||
#include "\z\ace\addons\medical\script_macros_medical.hpp"
|
||||
|
@ -15,7 +15,4 @@
|
||||
#endif
|
||||
|
||||
#include "\z\ace\addons\main\script_macros.hpp"
|
||||
|
||||
#define ALL_BODY_PARTS ["head", "body", "leftarm", "rightarm", "leftleg", "rightleg"]
|
||||
|
||||
#define CUR_LEVEL (["Basic", "Advanced"] select (EGVAR(medical,level) >= 2))
|
||||
#include "\z\ace\addons\medical\script_macros_medical.hpp"
|
||||
|
@ -16,3 +16,4 @@
|
||||
#endif
|
||||
|
||||
#include "\z\ace\addons\main\script_macros.hpp"
|
||||
#include "\z\ace\addons\medical\script_macros_medical.hpp"
|
||||
|
Loading…
Reference in New Issue
Block a user