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

◆ SelectAnimationOfTakeToHands()

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

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

123{
124 if (player.IsInTransport())
125 return false;
126 if (src.GetType() == InventoryLocationType.GROUND)
127 return false;
128
129 if (src.GetItem().GetHierarchyRootPlayer() == player)
130 {
131 animType = SlotToAnimType(player, src);
132 if (animType != -1)
133 {
134 if (LogManager.IsInventoryHFSMLogEnable()) hndDebugPrint("[hndfsm] SelectAnimationOfTakeToHands - selected animType=" + animType + " for item=" + src.GetItem());
135 return true;
136 }
137 }
138 if (LogManager.IsInventoryHFSMLogEnable()) hndDebugPrint("[hndfsm] SelectAnimationOfTakeToHands - no animation");
139 return false;
140}
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()
Определения 3_Game/DayZ/tools/Debug.c:766

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

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