mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
fixes #901
This commit is contained in:
parent
dbf748ba93
commit
f606c24854
@ -26,8 +26,12 @@ if (alive _target) then {
|
||||
} else {
|
||||
_genericMessages pushback "STR_ACE_MEDICAL_diagnoseDead";
|
||||
};
|
||||
if (_target getvariable[QGVAR(hasLostBlood), false]) then {
|
||||
_genericMessages pushback "STR_ACE_MEDICAL_lostBlood";
|
||||
if (_target getvariable[QGVAR(hasLostBlood), 0] > 0) then {
|
||||
if (_target getvariable[QGVAR(hasLostBlood), 0] > 1) then {
|
||||
_genericMessages pushback "STR_ACE_MEDICAL_lostBloodALot";
|
||||
} else {
|
||||
_genericMessages pushback "STR_ACE_MEDICAL_lostBlood";
|
||||
};
|
||||
} else {
|
||||
_genericMessages pushback "STR_ACE_MEDICAL_noBloodloss";
|
||||
};
|
||||
|
@ -57,7 +57,7 @@ if (_show) then {
|
||||
if (_target getvariable[QGVAR(isBleeding), false]) then {
|
||||
_genericMessages pushback [localize "STR_ACE_MEDICAL_STATUS_BLEEDING", [1, 0.1, 0.1, 1]];
|
||||
};
|
||||
if (_target getvariable[QGVAR(hasLostBlood), false]) then {
|
||||
if (_target getvariable[QGVAR(hasLostBlood), 0] > 1) then {
|
||||
_genericMessages pushback [localize "STR_ACE_MEDICAL_STATUS_LOST_BLOOD", [1, 0.1, 0.1, 1]];
|
||||
};
|
||||
|
||||
|
@ -33,13 +33,19 @@ _bloodVolume = _bloodVolume max 0;
|
||||
_unit setvariable [QGVAR(bloodVolume), _bloodVolume, _syncValues];
|
||||
|
||||
// Set variables for synchronizing information across the net
|
||||
if (_bloodVolume < 90) then {
|
||||
if !(_unit getvariable [QGVAR(hasLostBlood), false]) then {
|
||||
_unit setvariable [QGVAR(hasLostBlood), true, true];
|
||||
};
|
||||
if (_bloodVolume < 100) then {
|
||||
if ((_bloodVolume < 90 && (GVAR(level) == 2)) || _bloodVolume <= 30) then {
|
||||
if (_unit getvariable [QGVAR(hasLostBlood), 0] != 2) then {
|
||||
_unit setvariable [QGVAR(hasLostBlood), 2, true];
|
||||
};
|
||||
} else {
|
||||
if (_unit getvariable [QGVAR(hasLostBlood), 0] != 1) then {
|
||||
_unit setvariable [QGVAR(hasLostBlood), 1, true];
|
||||
};
|
||||
}
|
||||
} else {
|
||||
if (_unit getvariable [QGVAR(hasLostBlood),false]) then {
|
||||
_unit setvariable [QGVAR(hasLostBlood), false, true];
|
||||
if (_unit getvariable [QGVAR(hasLostBlood), 0] != 0) then {
|
||||
_unit setvariable [QGVAR(hasLostBlood), 0, true];
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -60,7 +60,7 @@ _unit setvariable [QGVAR(airwayCollapsed), false];
|
||||
_unit setvariable [QGVAR(addedToUnitLoop), false, true];
|
||||
_unit setvariable [QGVAR(inCardiacArrest), false, true];
|
||||
_unit setVariable ["ACE_isUnconscious", false, true];
|
||||
_unit setvariable [QGVAR(hasLostBlood), false, true];
|
||||
_unit setvariable [QGVAR(hasLostBlood), 0, true];
|
||||
_unit setvariable [QGVAR(isBleeding), false, true];
|
||||
_unit setvariable [QGVAR(hasPain), false, true];
|
||||
_unit setvariable [QGVAR(amountOfReviveLives), GVAR(amountOfReviveLives), true];
|
||||
|
@ -55,7 +55,7 @@ if (alive _target) exitwith {
|
||||
_target setvariable [QGVAR(inCardiacArrest), false, true];
|
||||
_target setvariable [QGVAR(inReviveState), false, true];
|
||||
_target setVariable ["ACE_isUnconscious", false, true];
|
||||
_target setvariable [QGVAR(hasLostBlood), false, true];
|
||||
_target setvariable [QGVAR(hasLostBlood), 0, true];
|
||||
_target setvariable [QGVAR(isBleeding), false, true];
|
||||
_target setvariable [QGVAR(hasPain), false, true];
|
||||
|
||||
|
@ -1497,6 +1497,9 @@
|
||||
<French>Il à perdu du sang</French>
|
||||
<Polish>Stracił trochę krwi</Polish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_MEDICAL_lostBloodALot">
|
||||
<English>He's lost a lot of blood</English>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_MEDICAL_noBloodloss">
|
||||
<English>He hasn't lost blood</English>
|
||||
<Russian>Нет кровопотери</Russian>
|
||||
|
Loading…
Reference in New Issue
Block a user