mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Fix _duration time in blood transfusion
This commit is contained in:
@@ -14,6 +14,8 @@ if (time - dayz_lastTransfusion > 120) then {dayz_bloodBagHumanity = 300;}; //Re
|
|||||||
|
|
||||||
_badBag = false;
|
_badBag = false;
|
||||||
_wholeBag = false;
|
_wholeBag = false;
|
||||||
|
//Unconscious timeout for receiving unit
|
||||||
|
_duration = [2,3] select ((_unit getVariable ["USEC_BloodQty",0]) <= 4000);
|
||||||
|
|
||||||
if (!dayz_classicBloodBagSystem) then {
|
if (!dayz_classicBloodBagSystem) then {
|
||||||
_bloodType = _unit getVariable ["blood_type", ""]; //Get receiving units blood type
|
_bloodType = _unit getVariable ["blood_type", ""]; //Get receiving units blood type
|
||||||
@@ -25,8 +27,6 @@ if (!dayz_classicBloodBagSystem) then {
|
|||||||
//End if the player does not have a transfusion kit
|
//End if the player does not have a transfusion kit
|
||||||
//if (!_hasTransfusionKit) exitWith { localize "str_actions_medical_transfusion_failed_transfusionkit" call dayz_rollingMessages; };
|
//if (!_hasTransfusionKit) exitWith { localize "str_actions_medical_transfusion_failed_transfusionkit" call dayz_rollingMessages; };
|
||||||
|
|
||||||
//Unconscious timeout for receiving unit
|
|
||||||
_duration = [2,3] select (_unit getVariable ["USEC_BloodQty", 0]);
|
|
||||||
_bloodBagArrayNeeded = ["bloodBagONEG"];
|
_bloodBagArrayNeeded = ["bloodBagONEG"];
|
||||||
|
|
||||||
if (_bloodTestdone) then { // if the recipient does not know his blood type, only O- can apply
|
if (_bloodTestdone) then { // if the recipient does not know his blood type, only O- can apply
|
||||||
|
|||||||
Reference in New Issue
Block a user