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

◆ SumOfWeights()

static int DayZAIHitComponentHelpers::SumOfWeights ( array< ref DayZAIHitComponent > pHitComponents)
inlinestaticprivate

Calculates the sum of all entries in DayZAIHitComponent array.

Аргументы
[in]pHitComponentsarray that keeps registered compoenents
Возвращает
Sum of weights of all entries in array

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

69 {
70 int sum = 0;
71
72 for( int i = 0; i < pHitComponents.Count(); ++i )
73 {
74 DayZAIHitComponent hitComp = pHitComponents.Get(i);
75 sum += hitComp.m_Weight;
76 }
77
78 return sum;
79 }
int m_Weight
"Head", "Torso", etc.
Определения DayZAIHitComponents.c:5

Перекрестные ссылки DayZAIHitComponent::m_Weight.

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