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

◆ FindComponentDirectionOffset()

int DayZCreatureAI::FindComponentDirectionOffset ( string component)
inlineprotected

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

913 {
914 const int directionCount = 4;
915
916 int offset = 0;
917 if (component.Length() == 0)
918 {
919 offset = 0;
920 }
921 else if (component == "Zone_Head")
922 {
923 offset = directionCount;
924 }
925 else if (component == "Zone_Chest" || component == "Zone_Legs_Front" || component == "Zone_Spine_Front" || component == "Zone_Neck")
926 {
927 offset = 2 * directionCount;
928 }
929 else
930 {
931 offset = 3 * directionCount;
932 }
933
934 return offset;
935 }
class BoxCollidingParams component
ComponentInfo for BoxCollidingResult.

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

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