DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ OnEntry() [4/4]

override void HandStartAction::OnEntry ( HandEventBase e)
inlineprivate

См. определение в файле HandAnimatedTakingFromAtt.c строка 15

16 {
17 super.OnEntry(e);
18
19 if (m_Src)
20 {
21 if (m_Src.IsValid())
22 {
23 #ifdef ENABLE_LOGGING
24 if ( LogManager.IsInventoryHFSMLogEnable() )
25 {
26 Debug.InventoryHFSMLog("Action - STS = " + e.m_Player.GetSimulationTimeStamp(), e.ToString() , "n/a", "OnEntry", e.m_Player.ToString() );
27 }
28 #endif
29
30 if (g_Game.IsDedicatedServer())
31 {
32 g_Game.ClearJunctureEx(e.m_Player, m_Dst.GetItem());
33 }
34 else
35 {
36 m_Player.GetHumanInventory().ClearInventoryReservationEx(m_Dst.GetItem(), m_Dst);
37 }
38
39 #ifdef DIAG_DEVELOPER
40 if (g_Game.IsMultiplayer() && InventoryDebug.IsHandAckEnable())
41 {
42 if (!g_Game.IsDedicatedServer())
43 {
44 m_Player.GetHumanInventory().PostDeferredEventTakeToDst(InventoryMode.JUNCTURE, m_Src, m_Dst);
45 }
46 }
47 else
48 {
49 #endif
50 if (GameInventory.LocationSyncMoveEntity(m_Src, m_Dst))
51 {
52 m_Player.OnItemInHandsChanged();
53 }
54 #ifdef DIAG_DEVELOPER
55 }
56 #endif
57 }
58 else
59 {
60 Error("[hndfsm] " + Object.GetDebugName(e.m_Player) + " STS = " + e.m_Player.GetSimulationTimeStamp() + " HandTakingAnimated_Show m_Src=invalid, item not in bubble?");
61 }
62 }
63 else
64 Error("[hndfsm] HandTakingAnimated_Show, error - m_Src not configured");
65 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
map m_Player
string Debug()
Определения CachedEquipmentStorageBase.c:29
DayZGame g_Game
Определения DayZGame.c:3942
ref InventoryLocation m_Src
Определения HandAnimatedTakingFromAtt.c:6
ref InventoryLocation m_Dst
Определения HandAnimatedMovingToAtt.c:28
class LOD Object
void Error(string err)
Messagebox with error message.
Определения EnDebug.c:90

Перекрестные ссылки Error(), g_Game, Debug::InventoryHFSMLog(), LogManager::IsInventoryHFSMLogEnable(), GameInventory::LocationSyncMoveEntity(), m_Dst и m_Src.