mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-18 09:32:02 +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:
@@ -32,6 +32,7 @@ if (_canDo && !DZE_Surrender && !(player isKindOf "PZombie_VB")) then {
|
||||
if (dayz_onBack != "") then {
|
||||
[dayz_onBack,2,1] call fn_dropItem;
|
||||
dayz_onBack = ""; // Remove from back
|
||||
player setVariable ["dayz_onBack",dayz_onBack,true];
|
||||
if (!isNull findDisplay 106) then {findDisplay 106 displayCtrl 1209 ctrlSetText "";};
|
||||
};
|
||||
call player_forceSave;
|
||||
|
||||
Reference in New Issue
Block a user