mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
simplify lost some/much blood macros
This commit is contained in:
parent
d0df141cf7
commit
b0b9037f24
@ -29,8 +29,8 @@ _unit setVariable [QGVAR(bloodVolume), _bloodVolume, _syncValues];
|
||||
|
||||
TRACE_3("ACE_DEBUG",_bloodVolume,_syncValues,_unit);
|
||||
// Set variables for synchronizing information across the net
|
||||
if (_bloodVolume < DEFAULT_BLOOD_VOLUME - HAS_LOST_SOME_BLOOD_THRESHOLD) then {
|
||||
if (_bloodVolume < DEFAULT_BLOOD_VOLUME - HAS_LOST_MUCH_BLOOD_THRESHOLD) then {
|
||||
if (_bloodVolume < BLOOD_VOLUME_HAS_LOST_SOME) then {
|
||||
if (_bloodVolume < BLOOD_VOLUME_HAS_LOST_MUCH) then {
|
||||
if (_unit getVariable [QGVAR(hasLostBlood), 0] != 2) then {
|
||||
_unit setVariable [QGVAR(hasLostBlood), 2, true];
|
||||
};
|
||||
|
@ -19,16 +19,14 @@
|
||||
// 0.077 l/kg * 80kg = 6.16l
|
||||
#define DEFAULT_BLOOD_VOLUME 6.0 // in liters
|
||||
|
||||
#define HAS_LOST_SOME_BLOOD_THRESHOLD 0.100 // in liters
|
||||
#define HAS_LOST_MUCH_BLOOD_THRESHOLD 0.500 // in liters
|
||||
#define BLOOD_VOLUME_HAS_LOST_SOME 5.900 // lost 100ml
|
||||
#define BLOOD_VOLUME_HAS_LOST_MUCH 5.500 // lost 500ml
|
||||
|
||||
#define BLOOD_VOLUME_UNCONSCIOUS 3.6 // in liters
|
||||
#define BLOOD_VOLUME_DEAD 1.8 // in liters
|
||||
#define BLOOD_VOLUME_CARDIAC_ARREST 1.2 // in liters
|
||||
|
||||
/*
|
||||
IV Change per second calculation:
|
||||
250ml should take 60 seconds to fill. 250/60 = 4.166.
|
||||
Basic medical is 10x (will take 6 seconds for 250ml)
|
||||
*/
|
||||
#define IV_CHANGE_PER_SECOND ([41.66, 4.166] select (GVAR(level) >= 2))
|
||||
// IV Change per second calculation:
|
||||
// 250ml should take 60 seconds to fill. 250/60 = 4.166.
|
||||
// Basic medical is 10x (will take 6 seconds for 250ml)
|
||||
#define IV_CHANGE_PER_SECOND ([41.66, 4.166] select (GVAR(level) >= 2))
|
||||
|
Loading…
Reference in New Issue
Block a user