do not attack players in vehicle - hotfix
target is outside the targeting cone; skip attack
См. определение в файле ZombieBase.c строка 682
683 {
684
686
689 if ( pb && pb.GetCommand_Vehicle() )
690 {
691 return false;
692 }
693
695 return false;
696
698 if ( !CanAttackToPosition(targetPos) )
699 return false;
700
701 float targetDist = vector.Distance(targetPos, this.
GetPosition());
703
706 {
710 {
712 return false;
713 }
714
717 return true;
718 }
719
720 return false;
721 }
DayZInfectedAttackGroupType
void DayZPlayerUtils()
cannot be instantiated
const float TARGET_CONE_ANGLE_CHASE
ref array< Object > m_AllTargetObjects
DayZInfectedAttackType m_ActualAttackType
float m_AttackCooldownTime
ref array< typename > m_TargetableObjects
int GetAttackPitch(EntityAI target)
vector GetPosition()
Get the world position of the Effect.
Перекрестные ссылки DayZPlayerUtils(), vector::Distance(), GetAttackPitch(), GetPosition(), DayZInfectedInputController::GetTargetEntity(), m_ActualAttackType, m_ActualTarget, m_AllTargetObjects, m_AttackCooldownTime, m_TargetableObjects и TARGET_CONE_ANGLE_CHASE.
Используется в FightLogic().