From 207e0dff66ebc269b987c6b014170c15998c8a1c Mon Sep 17 00:00:00 2001 From: worldwidesorrow Date: Wed, 11 Dec 2019 19:15:37 -0600 Subject: [PATCH] Update medBandaged.sqf --- .../medical/publicEH/medBandaged.sqf | 25 ++++++++++++++----- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/SQF/dayz_code/medical/publicEH/medBandaged.sqf b/SQF/dayz_code/medical/publicEH/medBandaged.sqf index f75324ffd..6032da2ad 100644 --- a/SQF/dayz_code/medical/publicEH/medBandaged.sqf +++ b/SQF/dayz_code/medical/publicEH/medBandaged.sqf @@ -1,13 +1,21 @@ // animHealed.sqf -private["_array","_unit","_medic","_display","_control"]; +private["_msg","_isSepsis","_unit","_medic","_display","_control"]; disableserialization; -_array = _this; //_this select 0; -_unit = _array select 0; -_medic = _array select 1; -if ((_unit == player) or (vehicle player != player)) then { +_unit = _this select 0; +_medic = _this select 1; +_isSepsis = _this select 2; + +if (_unit == player) then { r_player_injured = false; r_player_handler = false; + + // Reset sepsis variables if sepsis bandage was used. + if (_isSepsis) then { + r_player_Sepsis = [false, 0]; + _unit setVariable ["USEC_Sepsis", false, true]; + _unit setVariable ["sepsisStarted", nil]; + }; if (r_player_blood == r_player_bloodTotal) then { player setVariable["USEC_lowBlood",false,true]; @@ -20,4 +28,9 @@ if ((_unit == player) or (vehicle player != player)) then { _display = uiNamespace getVariable 'DAYZ_GUI_display'; _control = _display displayCtrl 1303; _control ctrlShow false; -}; \ No newline at end of file + + if (_medic != player) then { + _msg = if (_isSepsis) then {"str_actions_medical_sepsisbandage_received"} else {"str_actions_medical_bandage_received"}; + format [localize _msg,(name _medic)] call dayz_rollingMessages; + }; +};