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

◆ SelectAnimationOfTakeToHands()

bool SelectAnimationOfTakeToHands ( notnull Man player,
notnull InventoryLocation src,
notnull InventoryLocation dst,
out int animType )

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

118{
119 if (player.IsInTransport())
120 return false;
121 if (src.GetType() == InventoryLocationType.GROUND)
122 return false;
123
124 if (src.GetItem().GetHierarchyRootPlayer() == player)
125 {
126 animType = SlotToAnimType(player, src);
127 if (animType != -1)
128 {
129 if (LogManager.IsInventoryHFSMLogEnable()) hndDebugPrint("[hndfsm] SelectAnimationOfTakeToHands - selected animType=" + animType + " for item=" + src.GetItem());
130 return true;
131 }
132 }
133 if (LogManager.IsInventoryHFSMLogEnable()) hndDebugPrint("[hndfsm] SelectAnimationOfTakeToHands - no animation");
134 return false;
135}
int SlotToAnimType(notnull Man player, notnull InventoryLocation src, InventoryLocation dst=null)
Определения HandAnimated_Guards.c:1
void hndDebugPrint(string s)
Определения HandFSM.c:1
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
static bool IsInventoryHFSMLogEnable()
Определения Debug.c:668
Определения Debug.c:594

Перекрестные ссылки hndDebugPrint(), LogManager::IsInventoryHFSMLogEnable() и SlotToAnimType().

Используется в HandGuardBase::GuardCondition().