129_Fix_Item_Drop_After_Login

Мод 129_Fix_Item_Drop_After_Login для DayZ. Сейчас на 20 серверах RiseOfServers.

This small override fixes the issue where items from containers inside the player inventory are dropped onto the ground after login.

It also works for some vStorage mods like LBMaster Virtual Garage, where nested items inside containers would be dropped on the ground.
Big shoutout to Funatic from MAG for the vStorage fix.

The mod works as a server-side only mod and does not need to be loaded by the client. I have signed it so it can be easily subscribed to and used.


modded class ItemBase
{
protected bool m_Fix_HierarchyLoad;

void ItemBase()
{
m_Fix_HierarchyLoad = true;
}

override bool OnStoreLoad(ParamsReadContext ctx, int version)
{
m_Fix_HierarchyLoad = true;

if (!super.OnStoreLoad(ctx, version))
{
m_Fix_HierarchyLoad = false;
return false;
}

return true;
}

override void AfterStoreLoad()
{
super.AfterStoreLoad();
m_Fix_HierarchyLoad = false;
}

override void EEOnAfterLoad()
{
super.EEOnAfterLoad();
m_Fix_HierarchyLoad = false;
}

override void DeferredInit()
{
m_Fix_HierarchyLoad = false;
super.DeferredInit();
}

override bool AreChildrenAccessible()
{
if (m_Fix_HierarchyLoad)
{
return true;
}

return super.AreChildrenAccessible();
}
}

Источник: Steam Workshop

Серверы с этим модом