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

◆ FindComponentDirectionOffset()

int DayZCreatureAI::FindComponentDirectionOffset ( string component)
inlineprotected

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

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

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

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