mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-28 10:41:50 +03:00
Update damage handler and improve study body
Vanilla development commits applied:3db0fe8e7a73a63898f108e18d5b52126da2dcd3d5fa323865d37526fcc65fcca134f0c9c1fc934d
This commit is contained in:
@@ -129,7 +129,6 @@ fnc_usec_calculateBloodPerSec = {
|
||||
_bloodLossPerSec = 0;
|
||||
_bloodGainPerSec = 0;
|
||||
|
||||
|
||||
if (dayz_thirst >= SleepWater) then {
|
||||
_bloodLossPerSec = _bloodLossPerSec + 10;
|
||||
};
|
||||
@@ -138,7 +137,6 @@ fnc_usec_calculateBloodPerSec = {
|
||||
_bloodLossPerSec = _bloodLossPerSec + 10;
|
||||
};
|
||||
|
||||
|
||||
if (r_player_injured) then {
|
||||
_bloodLossPerSec = 10;
|
||||
|
||||
@@ -152,7 +150,7 @@ fnc_usec_calculateBloodPerSec = {
|
||||
};
|
||||
|
||||
//Sepsis
|
||||
if (!r_player_infected) then {
|
||||
if (!r_player_infected) then {
|
||||
if (r_player_Sepsis select 0) then {
|
||||
_time = diag_tickTime - (r_player_Sepsis select 1);
|
||||
if (_time > 900) then {
|
||||
@@ -175,9 +173,7 @@ fnc_usec_calculateBloodPerSec = {
|
||||
player setVariable ["sepsisStarted", _time];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
if (r_player_infected) then {
|
||||
} else {
|
||||
_bloodLossPerSec = _bloodLossPerSec + 3;
|
||||
};
|
||||
|
||||
@@ -227,7 +223,14 @@ _tempVal = round(100*(1 - ((dayz_temperatur - dayz_temperaturmin)/(dayz_temperat
|
||||
r_player_foodstack
|
||||
];
|
||||
*/
|
||||
|
||||
dayz_lastMedicalSource = switch (true) do {
|
||||
case (dayz_thirst >= SleepWater): {"dehyd"}; //10
|
||||
case (dayz_hunger >= SleepFood): {"starve"}; //10
|
||||
case (r_player_infected): {"sick"}; //3
|
||||
default {"none"}; //reset
|
||||
};
|
||||
if (_bloodPerSec < 0 && dayz_lastMedicalSource != "none") then {dayz_lastMedicalTime = diag_tickTime;};
|
||||
|
||||
r_player_bloodpersec = _bloodPerSec;
|
||||
_bloodPerSec
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user