From f353967abb40e8f61c382640b735f482c94ab954 Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Sat, 1 Oct 2016 20:06:52 -0400 Subject: [PATCH] Remove duplicate transfusion in progress messages In addition to 11fa6a6 Vanilla commit: https://github.com/DayZMod/DayZ/commit/f4aac518c1017b689dad36c1d15b32fd94315a2e --- SQF/dayz_code/medical/publicEH/medTransfuse.sqf | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/medical/publicEH/medTransfuse.sqf b/SQF/dayz_code/medical/publicEH/medTransfuse.sqf index df51e3bb3..0c9a9379a 100644 --- a/SQF/dayz_code/medical/publicEH/medTransfuse.sqf +++ b/SQF/dayz_code/medical/publicEH/medTransfuse.sqf @@ -1,5 +1,5 @@ // animHealed.sqf -private["_array","_unit","_medic","_amount","_display","_control","_lowBlood"]; +private["_array","_unit","_medic","_amount","_display","_control","_lowBlood","_started"]; disableserialization; //[_unit,player,_bloodAmount] _array = _this; //_this select 0; @@ -8,6 +8,7 @@ _medic = _array select 1; //Player sending the blood _amount = _array select 2; //total amount of blood given _timer = diag_tickTime; +_started = false; r_doLoop = true; r_interrupt = false; @@ -27,7 +28,11 @@ while {r_doLoop} do { if (_amount > 0) then { _amount = _amount - 500; }; - localize "str_actions_medical_transfusion_start" call dayz_rollingMessages; + + if (!_started) then { + localize "str_actions_medical_transfusion_start" call dayz_rollingMessages; + _started = true; + }; //Make sure the unit is a player and update stats based on whats being sent (should mimic 500 units of blood being sent) if (_unit == player) then {