mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-25 19:26:08 +03:00
Update medical functions
This updates the medical functions for the new player_humanityChange call and updates the code where it was needed.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
private ["_msg","_unit","_bagUsed","_duration","_rhVal","_badBag","_bloodType","_bloodBagWholeNeeded","_wholeBag","_transfusionInfection","_finished","_bloodAmount"];
|
||||
|
||||
// Check to see if enough time has passed since the last self-transfusion.
|
||||
if (time - dayz_lastSelfTransfusion <= DZE_selfTransfuse_Values select 2) exitWith {localize "str_actions_medical_18" call dayz_rollingMessages;};
|
||||
|
||||
private ["_msg","_unit","_bagUsed","_duration","_rhVal","_badBag","_bloodType","_bloodBagWholeNeeded","_wholeBag","_transfusionInfection","_finished","_bloodAmount"];
|
||||
|
||||
_unit = _this select 0;
|
||||
_bagUsed = _this select 1;
|
||||
|
||||
@@ -26,7 +26,7 @@ if (!dayz_classicBloodBagSystem) then {
|
||||
if (!_wholeBag) then {_badBag = true;};
|
||||
};
|
||||
|
||||
_bloodAmount = if (!_wholeBag) then {(DZE_selfTransfuse_Values select 0)} else {4000};
|
||||
_bloodAmount = [4000,(DZE_selfTransfuse_Values select 0)] select (!_wholeBag);
|
||||
|
||||
localize "str_actions_medical_transfusion_start" call dayz_rollingMessages;
|
||||
_unit removeMagazine _bagUsed;
|
||||
@@ -58,4 +58,4 @@ if (!_finished) then {
|
||||
};
|
||||
};
|
||||
|
||||
localize _msg call dayz_rollingMessages;
|
||||
localize _msg call dayz_rollingMessages;
|
||||
|
||||
Reference in New Issue
Block a user