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

◆ FindComponentDirectionOffset()

int DayZCreatureAI::FindComponentDirectionOffset ( string component)
inlineprotected

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

867 {
868 const int directionCount = 4;
869
870 int offset = 0;
871 if (component.Length() == 0)
872 {
873 offset = 0;
874 }
875 else if (component == "Zone_Head")
876 {
877 offset = directionCount;
878 }
879 else if (component == "Zone_Chest" || component == "Zone_Legs_Front" || component == "Zone_Spine_Front" || component == "Zone_Neck")
880 {
881 offset = 2 * directionCount;
882 }
883 else
884 {
885 offset = 3 * directionCount;
886 }
887
888 return offset;
889 }
class BoxCollidingParams component
ComponentInfo for BoxCollidingResult.

Перекрестные ссылки component.

Используется в ComputeDamageHitParams().