Consolidate transfusion scripts

Consolidated transfusion and transfusion_noBloodTypes to one script.

Selfbloodbag.sqf will never run if DZE_selftransfuse = false; because
the right click action is hidden.

Total blood quantity is now added in 1/4 increments during self bloodbag
as intended instead of all at once.
This commit is contained in:
ebaydayz
2016-09-13 15:02:16 -04:00
parent a8e5aba517
commit e85f6ad1b5
6 changed files with 17 additions and 77 deletions

View File

@@ -201,9 +201,8 @@ if (isPlayer cursorTarget) then {
};
//Allow player to transfuse blood
if(_lowBlood && _hasBloodBag) then {
_transfuse = if (dayz_classicBloodBagSystem) then {"\z\addons\dayz_code\medical\transfusion_NoBloodTypes.sqf"} else {"\z\addons\dayz_code\medical\transfusion.sqf"};
r_action = true;
_action = _unit addAction [localize "str_actions_medical_08",_transfuse,[_unit], 0, true, true];
_action = _unit addAction [localize "str_actions_medical_08", "\z\addons\dayz_code\medical\transfusion.sqf",[_unit], 0, true, true];
r_player_actions set [count r_player_actions,_action];
};
//Allow player to give antibiotics
@@ -239,4 +238,4 @@ if ((!_isClose or !_hasPatient) && r_action) then {
};
//Monitor
player setVariable ["damageActions", diag_ticktime, false];
player setVariable ["damageActions", diag_ticktime, false];