Replace max blood constant of 12000 to r_player_bloodTotal

Vanilla commit:

78b608c854
This commit is contained in:
ebayShopper
2017-03-05 09:59:11 -05:00
parent cfe7b97c73
commit 9190f303f9
7 changed files with 16 additions and 16 deletions

View File

@@ -61,7 +61,7 @@ while {r_doLoop} do {
};
};
//If the players blood is equals too or aboue 12000 stop or if the blood mimic amount reaches 0 end the loop.
//If the players blood is equals too or above r_player_bloodTotal stop or if the blood mimic amount reaches 0 end the loop.
_blood = _unit getVariable ["USEC_BloodQty", 0];
//diag_log format["Player Blood %1 - %2, - %3, - %4",_blood,_unit,_medic,(_unit getVariable "USEC_BloodQty")];

View File

@@ -252,7 +252,7 @@ fnc_usec_playerHandleBlood = {
call fnc_usec_resetWoundPoints;
};
_bloodDiff = r_player_blood - (player getVariable["USEC_BloodQty", 12000]);
_bloodDiff = r_player_blood - (player getVariable["USEC_BloodQty", r_player_bloodTotal]);
if ((_bloodDiff >= 500) or (_bloodDiff <= -500)) then {
player setVariable["USEC_BloodQty",r_player_blood,true];
@@ -269,7 +269,7 @@ fnc_usec_playerHandleBlood = {
r_player_blood = r_player_blood + _bloodPerSec;
};
_bloodDiff = r_player_blood - (player getVariable["USEC_BloodQty", 12000]);
_bloodDiff = r_player_blood - (player getVariable["USEC_BloodQty", r_player_bloodTotal]);
if ((_bloodDiff >= 500) or (_bloodDiff <= -500)) then {

View File

@@ -103,7 +103,7 @@ _i = 0;
_r = 0;
_humanityAwarded = 0;
_bloodAmount = if (!_wholeBag) then { 12000/*Full bloodbag*/ } else { 4000 /*Whole blood only gives 4k*/ };
_bloodAmount = if (!_wholeBag) then { r_player_bloodTotal/*Full bloodbag*/ } else { 4000 /*Whole blood only gives 4k*/ };
while {r_doLoop} do {
_animState = animationState player;