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

◆ ComputeDamageHitParams()

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

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

864 {
865 type = 0; // not used right now
866
867 float angleDeg = ComputeHitDirectionAngleDeg(source);
868 direction = TranslateHitAngleDegToDirectionIndex(angleDeg);
869
870 direction += FindComponentDirectionOffset(dmgZone);
871
872 return true;
873 }
int FindComponentDirectionOffset(string component)
Определения DayZAnimal.c:910
float ComputeHitDirectionAngleDeg(EntityAI source)
Определения DayZAnimal.c:875
int TranslateHitAngleDegToDirectionIndex(float angleDeg)
Определения DayZAnimal.c:896

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

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