kumarjac: This indicates a failure in replication relationships as player full inventory should be synchronized always if player exists on the remote
2265 {
2267
2268 e.m_IsJuncture = true;
2269 e.m_IsRemote = true;
2270
2271 EntityAI itemSrc = e.GetSrcEntity();
2273
2274#ifdef ENABLE_LOGGING
2276 {
2277 Debug.
InventoryMoveLog(
"STS = " + e.m_Player.GetSimulationTimeStamp() +
" event= " + e.
DumpToString(),
"HAND_EVENT" ,
"n/a",
"ExecuteHandEventCommandRemote", e.m_Player.ToString() );
2278 }
2279#endif
2280
2281 if (!itemSrc)
2282 {
2285 {
2287 srcNew.
Copy(e.GetSrc());
2289
2290 Error(
"[syncinv] ExecuteHandEventCommandRemote remote swap event REPLACED with TAKE (cmd=HAND_EVENT, event=" + e.
DumpToString() +
"), src item is null! Continuing.");
2291 }
2292 else
2293 {
2294#ifdef ENABLE_LOGGING
2296 {
2297 Debug.
InventoryMoveLog(
"Failed - CheckRequestSrc",
"HAND_EVENT" ,
"n/a",
"ExecuteHandEventCommandRemote", e.m_Player.ToString() );
2298 }
2299#endif
2300
2301 Error(
"[syncinv] ExecuteHandEventCommandRemote remote input (cmd=HAND_EVENT, event=" + e.
DumpToString() +
") dropped, item not in bubble");
2302
2303 return true;
2304 }
2305 }
2306
2307 if (itemSrc)
2308 {
2309
2311 }
2312 if (itemDst)
2313 {
2314
2316 }
2317
2322
2323 if (!e.CheckRequestEx(validation))
2324 {
2325#ifdef ENABLE_LOGGING
2327 {
2328 Debug.
InventoryMoveLog(
"Failed - CheckRequest",
"HAND_EVENT" ,
"n/a",
"ExecuteHandEventCommandRemote", e.m_Player.ToString() );
2329 }
2330#endif
2331
2333
2336
2337#ifdef ENABLE_LOGGING
2339 {
2341 }
2342#endif
2343
2344 return true;
2345 }
2346
2347#ifdef ENABLE_LOGGING
2349 {
2350 Debug.
InventoryMoveLog(
"Success",
"HAND_EVENT" ,
"n/a",
"ExecuteHandEventCommandRemote", e.m_Player.ToString() );
2351 }
2352#endif
2353
2354 return e.m_Player.GetHumanInventory().ProcessHandEvent(e);
2355 }
void syncDebugPrint(string s)
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
void RemoveMovableOverride(EntityAI item)
DayZPlayer GetDayZPlayerOwner()
static void InventoryMoveLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
override EntityAI GetSecondSrcEntity()
override string DumpToString()
Abstracted event, not to be used, only inherited.
proto native InventoryLocation Copy(notnull InventoryLocation rhs)
copies location data to another location
static bool IsSyncLogEnable()
static bool IsInventoryMoveLogEnable()
void Error(string err)
Messagebox with error message.