mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 04:23:13 +03:00
Fix blood regen with classic nutrition system
Vanilla commit:
d1542874b1
This commit is contained in:
@@ -74,6 +74,12 @@ if (dayz_nutritionValuesSystem) then {
|
||||
|
||||
if (_hungerCount > 0) then { dayz_hunger = 0; dayz_lastMeal = time; };
|
||||
if (_thirstCount > 0) then { dayz_thirst = 0; dayz_lastDrink = time; };
|
||||
|
||||
r_player_blood = r_player_blood + _bloodRegen;
|
||||
|
||||
if (r_player_blood > r_player_bloodTotal) then {
|
||||
r_player_blood = r_player_bloodTotal;
|
||||
};
|
||||
};
|
||||
|
||||
//Apply or cure infection base on infectionChance
|
||||
|
||||
Reference in New Issue
Block a user