Merge pull request #2 from EpochModTeam/master

update fork
This commit is contained in:
W0LF
2021-01-03 15:16:30 +03:00
committed by GitHub
6 changed files with 23 additions and 9 deletions

View File

@@ -52,9 +52,8 @@ if (_classname isKindOf "Bag_Base_EP1") exitWith {
waitUntil { !isNull (unitBackpack player) }; waitUntil { !isNull (unitBackpack player) };
uiSleep 0.03; uiSleep 0.03;
PVDZ_plr_Save = [player,nil,dayz_onBack]; call player_regularSave;
publicVariableServer "PVDZ_plr_Save";
}; };
_config = (configFile >> _type >> _classname); _config = (configFile >> _type >> _classname);

View File

@@ -115,6 +115,5 @@ player setVariable ["sleeping",false];
dayz_actionInProgress = false; dayz_actionInProgress = false;
//Removed due to player sync returning [] //Removed due to player sync returning []
//PVDZ_plr_Save = [player,nil,true,dayz_playerAchievements]; //call player_regularSave;
//publicVariableServer "PVDZ_plr_Save";
R3F_TIRED_Accumulator = 0; R3F_TIRED_Accumulator = 0;

View File

@@ -63,8 +63,7 @@ if !(alive _item) then {
dayz_lastMeal = time; dayz_lastMeal = time;
dayz_hunger = 0; dayz_hunger = 0;
PVDZ_plr_Save = [player,nil,dayz_onBack]; call player_regularSave;
publicVariableServer "PVDZ_plr_Save";
[player,"eat",0,false] call dayz_zombieSpeak; [player,"eat",0,false] call dayz_zombieSpeak;

View File

@@ -0,0 +1,17 @@
/*
File: player_regularSave.sqf
Organisation Author: DayZMod Team
Email: N/A
Creation date: 2020-12-30 17:20:00
Last modified time: 2020-12-30 17:34:00
Description:
Requests a simple save for the player object.
Example:
call player_regularSave;
Return:
Nothing
*/
PVDZ_plr_Save = [player,nil,dayz_onBack];
publicVariableServer "PVDZ_plr_Save";

View File

@@ -48,6 +48,7 @@ if (!isDedicated) then {
player_fireMonitor = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\fire_monitor.sqf"; player_fireMonitor = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\fire_monitor.sqf";
player_countMagazines = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_countMagazines.sqf"; player_countMagazines = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_countMagazines.sqf";
player_countMagazinesWBackpack = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_countMagazinesWBackpack.sqf"; player_countMagazinesWBackpack = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_countMagazinesWBackpack.sqf";
player_regularSave = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_regularSave.sqf";
player_forceSave = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_forceSave.sqf"; player_forceSave = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_forceSave.sqf";
vehicle_getOut = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\vehicle_getOut.sqf"; vehicle_getOut = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\vehicle_getOut.sqf";

View File

@@ -260,8 +260,7 @@ while {1 == 1} do {
if (dayz_unsaved || {(diag_ticktime - dayz_lastSave) > 300}) then { if (dayz_unsaved || {(diag_ticktime - dayz_lastSave) > 300}) then {
if ((diag_ticktime - dayz_lastSave) > _saveTime) then { if ((diag_ticktime - dayz_lastSave) > _saveTime) then {
PVDZ_plr_Save = [player,nil,dayz_onBack]; call player_regularSave;
publicVariableServer "PVDZ_plr_Save";
dayz_unsaved = false; dayz_unsaved = false;
dayz_lastSave = diag_ticktime; dayz_lastSave = diag_ticktime;
}; };