3 protected float m_MaximalActionDistanceSq;
7 m_MaximalActionDistanceSq = maximal_target_distance * maximal_target_distance;
19 MiscGameplayFunctions.GetHeadBonePos(player, playerHeadPos);
21 float distanceRoot =
vector.DistanceSq(target.GetCursorHitPos(), player.GetPosition());
22 float distanceHead =
vector.DistanceSq(target.GetCursorHitPos(), playerHeadPos);
24 return ( distanceRoot <= m_MaximalActionDistanceSq || distanceHead <= m_MaximalActionDistanceSq );