do not attack players in vehicle - hotfix
target is outside the targeting cone; skip attack
См. определение в файле ZombieBase.c строка 723
724 {
725
727
730 if (pb && pb.GetCommand_Vehicle())
731 return false;
732
734 {
736 return false;
737 }
738
740 return false;
741
743 float targetDist = vector.Distance(targetPos, this.
GetPosition());
745
746 if (!CanAttackToPosition(targetPos))
747 return false;
748
751 {
755 {
757 return false;
758 }
759
762 return true;
763 }
764
765 return false;
766 }
DayZInfectedAttackGroupType
void DayZPlayerUtils()
cannot be instantiated
ref array< Object > m_AllTargetObjects
DayZInfectedAttackType m_ActualAttackType
float m_AttackCooldownTime
ref array< typename > m_TargetableObjects
int GetAttackPitch(EntityAI target)
const float TARGET_CONE_ANGLE_FIGHT
vector GetPosition()
Get the world position of the Effect.
Перекрестные ссылки GameConstants::AI_ATTACKSPEED, DayZPlayerUtils(), vector::Distance(), GetAttackPitch(), GetPosition(), DayZInfectedInputController::GetTargetEntity(), m_ActualAttackType, m_ActualTarget, m_AllTargetObjects, m_AttackCooldownTime, m_TargetableObjects и TARGET_CONE_ANGLE_FIGHT.
Используется в FightLogic().