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

◆ CheckRequest() [4/4]

override bool HandEventBase::CheckRequest ( )
inlineprivate

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

633 {
634 if (m_Src && m_Dst && m_Src.GetItem() != m_Dst.GetItem())
635 return false;
636
637 if (m_Src2 && m_Dst2 && m_Src2.GetItem() != m_Dst2.GetItem())
638 return false;
639
640 if (!GameInventory.CheckSwapItemsRequest(m_Player, m_Src, m_Src2, m_Dst, m_Dst2, GameInventory.c_MaxItemDistanceRadius))
641 {
642 #ifdef ENABLE_LOGGING
643 if ( LogManager.IsInventoryHFSMLogEnable() )
644 {
645 Debug.InventoryHFSMLog("CheckSwapItemsRequest - failed", typename.EnumToString(HandEventID, GetEventID()) , "n/a", "CheckRequest", m_Player.ToString() );
646 }
647 #endif
648 }
649 else if (!m_Player.GetHumanInventory().CanAddSwappedEntity(m_Src, m_Src2, m_Dst, m_Dst2))
650 {
651 #ifdef ENABLE_LOGGING
652 if ( LogManager.IsInventoryHFSMLogEnable() )
653 {
654 Debug.InventoryHFSMLog("CanAddSwappedEntity - failed", typename.EnumToString(HandEventID, GetEventID()) , "n/a", "CheckRequest", m_Player.ToString() );
655 }
656 #endif
657 }
658 else
659 return true;
660
661 return false;
662 }
string Debug()
Определения CachedEquipmentStorageBase.c:26
DayZPlayer m_Player
Определения Hand_Events.c:42
ref InventoryLocation m_Src
Определения Hand_Events.c:43
HandEventID GetEventID()
Определения Hand_Events.c:53
HandEventID
events
Определения Hand_Events.c:7
ref InventoryLocation m_Dst2
src of old item in hands
Определения Hand_Events.c:560
ref InventoryLocation m_Src2
destination for new item (i.e. hands)
Определения Hand_Events.c:559
ref InventoryLocation m_Dst
Определения Hand_Events.c:270
proto native EntityAI GetItem()
returns item of current inventory location

Перекрестные ссылки GameInventory::c_MaxItemDistanceRadius, GameInventory::CheckSwapItemsRequest(), GetEventID(), Debug::InventoryHFSMLog(), LogManager::IsInventoryHFSMLogEnable(), m_Dst, m_Dst2, m_Player, m_Src и m_Src2.