5004 {
5006 {
5007 bool correct = true;
5008
5009 int count;
5014
5015
5016 if(!ctx.
Read(count))
5017 return false;
5018
5020 return false;
5021
5022 for (int i = 0; i < count; i++)
5023 {
5025 {
5026 return false;
5027 }
5028
5030 if (!item)
5031 continue;
5032
5033 Man itemOwner = item.GetHierarchyRootPlayer();
5035 continue;
5036
5037 item.GetInventory().GetCurrentInventoryLocation(realIl);
5038
5039 if(clientIl != realIl)
5040 {
5041 itemsToRepair.Insert(item);
5042 correct = false;
5043 }
5044 }
5045
5046 if (itemsToRepair.Count())
5047 {
5048 #ifdef DIAG_DEVELOPER
5049 if (PluginInventoryDebug.Cast(
GetPlugin(PluginInventoryDebug)).IsDesyncRepairEnable())
5050 {
5051 #endif
5053 #ifdef DIAG_DEVELOPER
5054 }
5055 #endif
5056 }
5057
5058 return correct;
5059 }
5060 return false;
5061 }
static const int INVENTORY_REPAIR_MAX_ITEMS
MAx distance for itme to be repair (without it it can be use for getting position from server)
DayZPlayer GetDayZPlayerOwner()
static const float INVENTORY_REPAIR_MAX_DISTANCE
PluginBase GetPlugin(typename plugin_type)
bool ReadFromContext(ParamsReadContext ctx)
proto native EntityAI GetItem()
returns item of current inventory location
proto bool Read(void value_in)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.