mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-24 09:29:21 +03:00
Fix inconsistent USEC_infected and USEC_BloodQty variable
This commit is contained in:
@@ -50,10 +50,7 @@ while {r_doLoop} do {
|
||||
_cureChance = if (_isOwner) then {0.10 + _cureAttempt} else {0.05 + _cureAttempt};
|
||||
if ([_cureChance] call fn_chance) then {
|
||||
r_player_infected = false;
|
||||
player setVariable["USEC_infected",false,false];
|
||||
|
||||
PVDZ_serverStoreVar = [player,"USEC_infected",false];
|
||||
publicVariableServer "PVDZ_serverStoreVar";
|
||||
player setVariable["USEC_infected",false,true];
|
||||
} else {
|
||||
_infectedStatus = if (r_player_infected) then { "Infected" } else { "Cured" };
|
||||
_cureAttempt = _cureAttempt + 0.01;
|
||||
|
||||
Reference in New Issue
Block a user