Replace max blood constant of 12000 to r_player_bloodTotal

Vanilla commit:

78b608c854
This commit is contained in:
ebayShopper
2017-03-05 09:59:11 -05:00
parent cfe7b97c73
commit 9190f303f9
7 changed files with 16 additions and 16 deletions

View File

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