kumarjac: This indicates a failure in replication relationships as player full inventory should be synchronized always if player exists on the remote
3228 {
3231 if (!swapValidation)
3232 {
3233 return false;
3234 }
3235
3236#ifdef ENABLE_LOGGING
3238 {
3240 }
3241#endif
3242
3244 {
3246 {
3247
3248 LocationSyncMoveEntity(swapValidation.
m_Src1, swapValidation.
m_Dst1);
3249 return true;
3250 }
3252 {
3253
3254 LocationSyncMoveEntity(swapValidation.
m_Src2, swapValidation.
m_Dst2);
3255 return true;
3256 }
3257 else
3258 {
3260 {
3261#ifdef ENABLE_LOGGING
3263 {
3264 Debug.
InventoryMoveLog(
"Remote - skipped",
"SWAP" ,
"n/a",
"ExecuteSwapCommandRemote", playerOwner.ToString() );
3265 }
3266#endif
3267 }
3268 else
3269 {
3271#ifdef ENABLE_LOGGING
3273 {
3274 Debug.
InventoryMoveLog(
"Failed - item1 or item2 not exist",
"SWAP" ,
"n/a",
"ExecuteSwapCommandRemote", playerOwner.ToString() );
3275 }
3276#endif
3277
3278 Error(
"[syncinv] ExecuteSwapCommandRemote remote input (cmd=SWAP) dropped, item not in bubble");
3279 }
3280 }
3281
3282 return false;
3283 }
3284
3287
3289 {
3291 return false;
3292 }
3293
3296
3297#ifdef ENABLE_LOGGING
3299 {
3300 Debug.
InventoryMoveLog(
"Success - item swap",
"SWAP" ,
"n/a",
"ExecuteSwapCommandRemote", playerOwner.ToString() );
3301 }
3302#endif
3303
3305 {
3306 bool isNotSkipped = LocationSwap(swapValidation.
m_Src1, swapValidation.
m_Src2, swapValidation.
m_Dst1, swapValidation.
m_Dst2);
3309 return true;
3310 }
3311
3312 return false;
3313 }
void ClearInventoryReservationEx(ActionData action_data)
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)
ref InventoryLocation m_Src2
ref InventoryLocation m_Src1
ref InventoryLocation m_Dst1
ref InventoryLocation m_Dst2
proto native bool IsValid()
verify current set inventory location
static string DumpToStringNullSafe(InventoryLocation loc)
static bool IsInventoryMoveLogEnable()
void Error(string err)
Messagebox with error message.