Fix blood regen with classic nutrition system

Vanilla commit:

d1542874b1
This commit is contained in:
ebaydayz
2016-10-15 14:04:56 -04:00
parent 5ec92bcd65
commit 2ee3d44b87
24 changed files with 29 additions and 23 deletions

View File

@@ -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