Fix abortable blood transfusions

Interrupting a blood transfusion makes the player who gets the blood transfusion unconscious again now.

Thanks @DeandlDernai for reporting
This commit is contained in:
A Man
2022-06-19 09:22:05 +02:00
parent 5b61cfba0c
commit 92746e3773
3 changed files with 55 additions and 88 deletions

View File

@@ -52,6 +52,11 @@ while {r_doLoop} do {
_msg = "str_actions_medical_transfusion_successful";
r_doLoop = false;
};
if !((_medic distance _unit) < ((sizeOf typeOf _unit) / 2)) then {
[_unit,3] call fnc_usec_damageUnconscious;
r_interrupt = true;
};
if (r_interrupt) then {
_msg = "str_actions_medical_transfusion_interrupted";