mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
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.
17 lines
400 B
Plaintext
17 lines
400 B
Plaintext
/*
|
|
|
|
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,weapons player];
|
|
publicVariableServer "PVDZ_plr_Save";
|
|
};
|
|
|
|
//diag_log format["Player_forceSave with magazines: %1",_magazineArray];
|
|
|
|
dayz_lastSave = diag_tickTime;
|