mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-17 09:10:27 +03:00
Update PVDZ_plr_Save to prevent dayz_onBack dupe
Thx to mmrsz from discord. PVDZ_plr_Save sends the current weapons from the player too now. This is needed to prevent the dayz_onBack dupe if the server has low fps.
This commit is contained in:
@@ -7,10 +7,10 @@ Opens player inventory to save
|
||||
_magazineArray = [] call player_countMagazines;
|
||||
|
||||
if ((count _magazineArray) > 0) then {
|
||||
PVDZ_plr_Save = [player, if (player isKindOf "PZombie_VB") then {nil} else {_magazineArray},dayz_onBack];
|
||||
PVDZ_plr_Save = [player, if (player isKindOf "PZombie_VB") then {nil} else {_magazineArray},dayz_onBack,weapons player];
|
||||
publicVariableServer "PVDZ_plr_Save";
|
||||
};
|
||||
|
||||
//diag_log format["Player_forceSave with magazines: %1",_magazineArray];
|
||||
|
||||
|
||||
dayz_lastSave = diag_tickTime;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
Email: N/A
|
||||
Creation date: 2020-12-30 17:20:00
|
||||
Last modified time: 2020-12-30 17:34:00
|
||||
Last modified time: 2021-03-08 14:04:00
|
||||
Description:
|
||||
Requests a simple save for the player object.
|
||||
Example:
|
||||
@@ -13,5 +13,5 @@
|
||||
Nothing
|
||||
*/
|
||||
|
||||
PVDZ_plr_Save = [player,nil,dayz_onBack];
|
||||
PVDZ_plr_Save = [player,nil,dayz_onBack,weapons player];
|
||||
publicVariableServer "PVDZ_plr_Save";
|
||||
Reference in New Issue
Block a user