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

◆ GetAttackTypeByDistanceToTarget()

float GetAttackTypeByDistanceToTarget ( EntityAI pTarget,
EMeleeTargetType pTargetType = EMeleeTargetType.ALIGNABLE )
protected

target in short distance - in place attack

target is far from the player - forward movement attack

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

121 {
122 if (pTargetType == EMeleeTargetType.NONALIGNABLE)
123 {
124 return 1.0;
125 }
126
129 {
130 return 1.0;
131 }
132
134 return 0.0;
135 }
bool IsShortDistance(EntityAI pTarget, float pDistanceSq)
const float CLOSE_TARGET_DISTANCE
EMeleeTargetType
Определения EMeleeTargetType.c:2
Определения EnMath.c:7
static proto float SqrFloat(float f)
Returns squared value.

Перекрестные ссылки CLOSE_TARGET_DISTANCE, IsShortDistance() и Math::SqrFloat().

Используется в HandleComboHit(), HandleInitialFirearmMelee(), HandleInitialMeleeErc(), HandleProneKick() и HandleSprintAttack().