DEPRECATED - New function in MeleeTargeting.
669 {
670
672 int hitComponentIndex;
673 float hitFraction;
674 vector start, end, hitNormal, hitPosObstructed;
677
678 if (object)
679 {
680 MiscGameplayFunctions.GetHeadBonePos(player, start);
681 end = start + MiscGameplayFunctions.GetHeadingVector(player) *
vector.
Distance(player.GetPosition(),
object.GetPosition());
682
683 if ( end == start )
684 return true;
685
686 return DayZPhysics.
RayCastBullet( start, end, collisionLayerMask, null, hitObject, hitPosObstructed, hitNormal, hitFraction);
687 }
688
689 return false;
690 }
DayZPlayerImplement m_DZPlayer
Parent.
static proto bool RayCastBullet(vector begPos, vector endPos, PhxInteractionLayers layerMask, Object ignoreObj, out Object hitObject, out vector hitPosition, out vector hitNormal, out float hitFraction)
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.