3 protected float m_MaximalActionDistanceSq;
6 const float HEIGHT_ERECT = 1.6;
7 const float HEIGHT_CROUCH = 1.05;
8 const float HEIGHT_PRONE = 0.66;
12 m_MaximalActionDistanceSq = maximal_target_distance * maximal_target_distance;
20 Object parentObject = target.GetParent();
21 if ( !player || !parentObject || parentObject.IsDamageDestroyed() )
25 MiscGameplayFunctions.GetHeadBonePos(player, playerHeadPos);
27 float distanceRoot =
vector.DistanceSq(target.GetCursorHitPos(), player.GetPosition());
28 float distanceHead =
vector.DistanceSq(target.GetCursorHitPos(), playerHeadPos);
30 return ( distanceRoot <= m_MaximalActionDistanceSq || distanceHead <= m_MaximalActionDistanceSq );