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

◆ ComputeDamageHitParams()

bool DayZCreatureAI::ComputeDamageHitParams ( EntityAI source,
string dmgZone,
string ammo,
out int type,
out int direction )
inlineprotected

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

820 {
821 type = 0; // not used right now
822
823 float angleDeg = ComputeHitDirectionAngleDeg(source);
824 direction = TranslateHitAngleDegToDirectionIndex(angleDeg);
825
826 direction += FindComponentDirectionOffset(dmgZone);
827
828 return true;
829 }
int FindComponentDirectionOffset(string component)
Определения DayZAnimal.c:866
float ComputeHitDirectionAngleDeg(EntityAI source)
Определения DayZAnimal.c:831
int TranslateHitAngleDegToDirectionIndex(float angleDeg)
Определения DayZAnimal.c:852

Перекрестные ссылки ComputeHitDirectionAngleDeg(), FindComponentDirectionOffset() и TranslateHitAngleDegToDirectionIndex().

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