mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Remove duplicate transfusion in progress messages
In addition to11fa6a6Vanilla commit:f4aac518c1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
// animHealed.sqf
|
// animHealed.sqf
|
||||||
private["_array","_unit","_medic","_amount","_display","_control","_lowBlood"];
|
private["_array","_unit","_medic","_amount","_display","_control","_lowBlood","_started"];
|
||||||
disableserialization;
|
disableserialization;
|
||||||
//[_unit,player,_bloodAmount]
|
//[_unit,player,_bloodAmount]
|
||||||
_array = _this; //_this select 0;
|
_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
|
_amount = _array select 2; //total amount of blood given
|
||||||
|
|
||||||
_timer = diag_tickTime;
|
_timer = diag_tickTime;
|
||||||
|
_started = false;
|
||||||
r_doLoop = true;
|
r_doLoop = true;
|
||||||
r_interrupt = false;
|
r_interrupt = false;
|
||||||
|
|
||||||
@@ -27,7 +28,11 @@ while {r_doLoop} do {
|
|||||||
if (_amount > 0) then {
|
if (_amount > 0) then {
|
||||||
_amount = _amount - 500;
|
_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)
|
//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 {
|
if (_unit == player) then {
|
||||||
|
|||||||
Reference in New Issue
Block a user