mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-06-30 21:51:55 +03:00
Fix remove.sqf error from e079381
Wrecks were not deleted after removal following this change @icomrade https://github.com/EpochModTeam/DayZ-Epoch/commit/e07938193161ae147523c3a4bae76eecbea787f4#diff-e057d99bdf425219ff82fc6220a85b86L154 In object_upgradeBuilding playerNear was exiting without readding removed magazines. I moved deletion back client side in packTent and upgradeStorage for now, because there is potential for duping via pulling gear out of the old tent during the deletion delay. PVS can be delayed especially when the server is under load, so it can take a few seconds for the server to delete the object after sending the request. These two scripts should be the only ones where that could be problematic. Packing and upgrading tents should eventually be moved completely server side like safes.
This commit is contained in:
@@ -53,9 +53,9 @@ if (_ownerID in [dayz_characterID,dayz_playerUID] or typeOf _obj in _campItems)
|
||||
_magazines = getMagazineCargo _obj;
|
||||
_backpacks = getBackpackCargo _obj;
|
||||
|
||||
PVDZ_obj_Destroy = [_objectID,_objectUID,player,_obj,dayz_authKey];
|
||||
PVDZ_obj_Destroy = [_objectID,_objectUID,player,_pos,dayz_authKey,false];
|
||||
publicVariableServer "PVDZ_obj_Destroy";
|
||||
//deleteVehicle _obj;
|
||||
deleteVehicle _obj;
|
||||
|
||||
//Add weapons
|
||||
_objWpnTypes = _weapons select 0;
|
||||
|
||||
Reference in New Issue
Block a user