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

◆ CheckRequestSrc() [4/4]

override bool HandEventBase::CheckRequestSrc ( )
inlineprivate

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

580 {
581 //return false;
582
583 if (false == GameInventory.CheckRequestSrc(m_Player, GetSrc(), GameInventory.c_MaxItemDistanceRadius))
584 {
585 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[cheat] HandleInputData man=" + Object.GetDebugName(m_Player) + " failed src1 check with cmd=" + typename.EnumToString(HandEventID, GetEventID()) + " src1=" + InventoryLocation.DumpToStringNullSafe(GetSrc()));
586 return false; // stale packet
587 }
588 if (false == GameInventory.CheckRequestSrc(m_Player, m_Src2, GameInventory.c_MaxItemDistanceRadius))
589 {
590 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[cheat] HandleInputData man=" + Object.GetDebugName(m_Player) + " failed src2 check with cmd=" + typename.EnumToString(HandEventID, GetEventID()) + " src2=" + InventoryLocation.DumpToStringNullSafe(m_Src2));
591 return false; // stale packet
592 }
593 return true;
594 }
void syncDebugPrint(string s)
Определения Debug.c:1
DayZPlayer m_Player
Определения Hand_Events.c:42
InventoryLocation GetSrc()
Определения Hand_Events.c:80
HandEventID GetEventID()
Определения Hand_Events.c:53
HandEventID
events
Определения Hand_Events.c:7
ref InventoryLocation m_Src2
destination for new item (i.e. hands)
Определения Hand_Events.c:533
class LOD Object

Перекрестные ссылки GameInventory::c_MaxItemDistanceRadius, GameInventory::CheckRequestSrc(), InventoryLocation::DumpToStringNullSafe(), GetEventID(), GetSrc(), LogManager::IsSyncLogEnable(), m_Player, m_Src2 и syncDebugPrint().