2048 {
2050
2051 e.m_IsJuncture = true;
2052 e.m_IsRemote = false;
2053
2054 EntityAI itemSrc = e.GetSrcEntity();
2056
2057#ifdef ENABLE_LOGGING
2059 {
2060 Debug.
InventoryMoveLog(
"STS = " + e.m_Player.GetSimulationTimeStamp() +
" event= " + e.
DumpToString(),
"HAND_EVENT" ,
"n/a",
"ExecuteHandEventCommandServer", e.m_Player.ToString() );
2061 }
2062#endif
2063
2064
2065 if (itemSrc)
2066 {
2067
2069 }
2070 if (itemDst)
2071 {
2072
2074 }
2075
2080
2081 if (!e.CheckRequestEx(validation))
2082 {
2083#ifdef ENABLE_LOGGING
2085 {
2086 Debug.
InventoryMoveLog(
"Failed - CheckRequest",
"HAND_EVENT" ,
"n/a",
"ExecuteHandEventCommandServer", e.m_Player.ToString() );
2087 }
2088#endif
2089
2091
2094
2095#ifdef ENABLE_LOGGING
2097 {
2099 }
2100#endif
2101
2102 return true;
2103 }
2104
2107 {
2108#ifdef ENABLE_LOGGING
2110 {
2111 Debug.
InventoryMoveLog(
"Failed - CanPerformEvent",
"HAND_EVENT" ,
"n/a",
"ExecuteHandEventCommandServer", e.m_Player.ToString() );
2112 }
2113#endif
2114
2116
2119
2120#ifdef ENABLE_LOGGING
2122 {
2124 }
2125#endif
2126
2127 return true;
2128 }
2129
2130 bool hasJuncture = false;
2131
2132 if (itemSrc != null && itemDst != null)
2133 {
2135 }
2136 else if (itemSrc != null)
2137 {
2139 }
2140 else if (itemDst != null)
2141 {
2143 }
2144
2145 if (!hasJuncture)
2146 {
2147#ifdef ENABLE_LOGGING
2149 {
2151 }
2152#endif
2153 return false;
2154 }
2155
2156
2158
2159
2160#ifdef ENABLE_LOGGING
2162 {
2163 Debug.
InventoryMoveLog(
"Success",
"HAND_EVENT" ,
"n/a",
"ExecuteHandEventCommandServer", e.m_Player.ToString() );
2164 }
2165#endif
2166
2167 return e.m_Player.GetHumanInventory().ProcessHandEvent(e);
2168 }
void syncDebugPrint(string s)
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
void CheckForRope(InventoryLocation src, InventoryLocation dst)
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 InventoryLocation GetDst()
override EntityAI GetSecondSrcEntity()
override string DumpToString()
override bool CanPerformEventEx(InventoryValidation validation)
Abstracted event, not to be used, only inherited.
static bool IsSyncLogEnable()
static bool IsInventoryMoveLogEnable()