Files
DayZ-Epoch/SQF/dayz_code/compile/player_regularSave.sqf
A Man 9852778ba9 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.
2021-08-19 16:46:06 +02:00

19 lines
661 B
Plaintext

/*
File: player_regularSave.sqf
Organisation Author: DayZMod Team
Email: N/A
Creation date: 2020-12-30 17:20:00
Last modified time: 2021-04-16 09:20:00
Description:
Requests a simple save for the player object. Does not save the ammo count but it does not interrupt actions like shooting.
Example:
call player_regularSave;
Return:
Nothing
*/
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];
publicVariableServer "PVDZ_plr_Save";