mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-26 09:41:50 +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:
@@ -5,6 +5,7 @@ if (count _inventory > 0) then {
|
||||
_mags = _inventory select 1;
|
||||
|
||||
dayz_onBack = if (count _inventory > 2) then { _inventory select 2 } else { "" };
|
||||
player setVariable ["dayz_onBack",dayz_onBack,true];
|
||||
|
||||
//Add inventory
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user