mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-22 20:12:20 +03:00
Replace max blood constant of 12000 to r_player_bloodTotal
Vanilla commit:
78b608c854
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#include "scheduler.hpp"
|
||||
|
||||
sched_medical_slow = { // 10 seconds
|
||||
if (abs (r_player_blood - (player getVariable["USEC_BloodQty", 12000])) > 120) then {
|
||||
if (abs (r_player_blood - (player getVariable["USEC_BloodQty", r_player_bloodTotal])) > 120) then {
|
||||
//Do not global send
|
||||
player setVariable["USEC_BloodQty", r_player_blood, false];
|
||||
player setVariable["medForceUpdate", true, false];
|
||||
@@ -21,7 +21,7 @@ sched_medical = { // 1 second
|
||||
private "_unconHdlr";
|
||||
_unconHdlr = _this select 0;
|
||||
|
||||
if (r_player_blood == 12000) then {
|
||||
if (r_player_blood == r_player_bloodTotal) then {
|
||||
r_player_foodstack = 0;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user