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

◆ SelectAnimationOfMoveFromHands()

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

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

138{
139 if (player.IsInTransport())
140 return false;
141
142 if (src.GetItem().GetHierarchyRootPlayer() == player)
143 {
144 animType = SlotToAnimType(player, dst);
145 if (animType != -1)
146 {
147 if (LogManager.IsInventoryHFSMLogEnable()) hndDebugPrint("[hndfsm] SelectAnimationOfMoveFromHands guard - selected animType=" + animType + " for item=" + src.GetItem());
148 return true;
149 }
150 }
151 if (LogManager.IsInventoryHFSMLogEnable()) hndDebugPrint("[hndfsm] SelectAnimationOfMoveFromHands - no animation");
152 return false;
153}
int SlotToAnimType(notnull Man player, notnull InventoryLocation src, InventoryLocation dst=null)
Определения HandAnimated_Guards.c:1
void hndDebugPrint(string s)
Определения HandFSM.c:1
static bool IsInventoryHFSMLogEnable()
Определения Debug.c:668
Определения Debug.c:594

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

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