Fix survival time not counted after clothes change

Vanilla commits:

cf4fde6335

74dd04616f
This commit is contained in:
ebayShopper
2017-06-10 10:07:19 -04:00
parent 90d84648cd
commit abdb3e0e42
6 changed files with 16 additions and 10 deletions

View File

@@ -21,7 +21,7 @@ _1 = name player;
dayz_currentGlobalZombies = count entities "zZombie_Base";
//Work out survival time
_currentTime = floor (dayz_sessionTime / 60);
_currentTime = floor ((diag_tickTime - dayz_loginTime) / 60);
_totalMins = (player getVariable "SurvivalTime") + _currentTime;
_days = floor (_totalMins / 1440);
_totalMins = (_totalMins - (_days * 1440));

View File

@@ -660,7 +660,6 @@ if (!isDedicated) then {
Dayz_freefall = [ time, 0, 0.1 ];
dayz_getoutTime = 0;
dayz_hitByTime = 0;
dayz_sessionTime = 0; //Approximate time elapsed since login in seconds
skipGearSound = false;
TimeOutDisplayed = false;
voice_actions = ["voiceOverNet","PushToTalk","PushToTalkAll","PushToTalkCommand","PushToTalkDirect","PushToTalkGroup","PushToTalkSide","PushToTalkVehicle"];

View File

@@ -862,6 +862,7 @@ class FSM
"dayz_lastDrink = (_lastDrank * 60);" \n
"dayz_zombiesLocal = 0; //Used to record how many local zombies being tracked" \n
"dayz_Survived = [_days,_hours,_mins,(_survival select 3)]; //total alive dayz" \n
"dayz_loginTime = diag_tickTime;" \n
"" \n
"//load in medical details" \n
"r_player_dead = player getVariable[""USEC_isDead"",false];" \n

View File

@@ -58,8 +58,6 @@ sched_medical = { // 1 second
} else {
[] spawn fnc_usec_playerHandleBlood;
};
dayz_sessionTime = dayz_sessionTime + 1;
[_unconHdlr]
};