mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-04-17 01:43:21 +03:00
Replace max blood constant of 12000 to r_player_bloodTotal
Vanilla commit:
78b608c854
This commit is contained in:
@@ -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")];
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user