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

◆ ComputeDamageHitParams()

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

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

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

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

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