mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Fix blood over maximum
Gives more blood, false positive on anti-hack and bad practice.
This commit is contained in:
@@ -7,8 +7,7 @@ _TransfusionInfection = (_rndInfection < 1);
|
||||
if (_unit == player) then {
|
||||
if (((count _this) > 1) && {(typeName (_this select 1)) == "ARRAY"}) then { //DO NOT TOUCH THE CODE BRACKETS!
|
||||
_selfTransValues = _this select 1;
|
||||
r_player_blood = r_player_blood + (_selfTransValues select 0);
|
||||
if (r_player_blood > 12000) then {r_player_blood = 12000;};
|
||||
r_player_blood = (r_player_blood + (_selfTransValues select 0)) max 12000;
|
||||
if ((_selfTransValues select 1) < 0) then {
|
||||
_TransfusionInfection = false;
|
||||
} else {
|
||||
@@ -33,4 +32,4 @@ if (_unit == player) then {
|
||||
_control ctrlShow true;
|
||||
|
||||
player setVariable["USEC_BloodQty",r_player_blood,true];
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user