mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-26 03:36:02 +03:00
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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user