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

◆ SelectAnimationOfMoveFromHands()

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

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

143{
144 if (player.IsInTransport())
145 return false;
146
147 if (src.GetItem().GetHierarchyRootPlayer() == player)
148 {
149 animType = SlotToAnimType(player, dst);
150 if (animType != -1)
151 {
152 if (LogManager.IsInventoryHFSMLogEnable()) hndDebugPrint("[hndfsm] SelectAnimationOfMoveFromHands guard - selected animType=" + animType + " for item=" + src.GetItem());
153 return true;
154 }
155 }
156 if (LogManager.IsInventoryHFSMLogEnable()) hndDebugPrint("[hndfsm] SelectAnimationOfMoveFromHands - no animation");
157 return false;
158}
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()
Определения 3_Game/DayZ/tools/Debug.c:766

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

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