mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Don't allow giving bloodbag to player with full blood
Reverted be214d3 because this is a more complete solution
This commit is contained in:
@@ -78,9 +78,4 @@ while {r_doLoop} do {
|
||||
|
||||
//Rerun the loop
|
||||
sleep 1;
|
||||
};
|
||||
|
||||
if (((r_player_blood / r_player_bloodTotal) >= 0.35) and (player getVariable["USEC_lowBlood",false])) then {
|
||||
r_player_lowblood = false;
|
||||
player setVariable["USEC_lowBlood",false,true];
|
||||
};
|
||||
};
|
||||
@@ -269,8 +269,15 @@ while {1 == 1} do {
|
||||
|
||||
//Record low bloow
|
||||
_lowBlood = player getVariable ["USEC_lowBlood", false];
|
||||
if ((r_player_blood < r_player_bloodTotal) and !_lowBlood) then {
|
||||
player setVariable["USEC_lowBlood",true,true];
|
||||
if (r_player_blood < r_player_bloodTotal) then {
|
||||
if (!_lowBlood) then {
|
||||
player setVariable ["USEC_lowBlood",true,true];
|
||||
};
|
||||
} else {
|
||||
if (_lowBlood && !r_player_injured) then {
|
||||
player setVariable ["USEC_lowBlood",false,true];
|
||||
r_player_lowblood = false;
|
||||
};
|
||||
};
|
||||
|
||||
//Broadcast Hunger/Thirst
|
||||
|
||||
Reference in New Issue
Block a user