should fix knockout issue with self bloodbag

issue most likely happened if you used a typed bag not matching your
blood type when the classic system is enabled.
This commit is contained in:
icomrade
2016-05-03 16:34:28 -04:00
parent 2f67a058ba
commit 3f10228b95

View File

@@ -41,12 +41,14 @@ if (_rh) then {_rhVal = "POS";} else {_rhVal = "NEG";};
_bloodBagWholeNeeded = "wholeBloodBag" + _bloodType + _rhVal;
_haswholebag = _bloodBagWholeNeeded in magazines player;
if (_haswholebag or (dayz_classicBloodBagSystem && "ItemBloodbag" in magazines player)) then {
if (_haswholebag) then {
_wholeBag = true;
} else {
_badBag = true;
};
if (dayz_classicBloodBagSystem && ("ItemBloodbag" in (magazines player))) then {_wholeBag = true;};
call fnc_usec_medic_removeActions;
r_action = false;