mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Fix weapon dupe with server_playerSync
This reverts all the last changes to server_playerSync and creates a new global variable for dayz_onBack. This should be the best way to save the gear correct and still get dayz_onBack if the player leaves the server. This change removes the constant sending of the whole player inventory over the network from force or regluar_save. It should no longer be needed since the server does the counting now.
This commit is contained in:
@@ -15,5 +15,5 @@
|
||||
|
||||
local _magazineArray = (magazines player) - ["CSGAS","Hatchet_Swing","Crowbar_Swing","Machete_Swing","Bat_Swing","BatBarbed_Swing","BatNails_Swing","Fishing_Swing","Sledge_Swing"];
|
||||
|
||||
PVDZ_plr_Save = [player,_magazineArray,dayz_onBack,weapons player];
|
||||
PVDZ_plr_Save = [player,_magazineArray];
|
||||
publicVariableServer "PVDZ_plr_Save";
|
||||
Reference in New Issue
Block a user