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 targetObject = target.GetObject();
22 targetObject = target.GetParent();
24 if (!player || !targetObject)
28 MiscGameplayFunctions.GetHeadBonePos(player, playerHeadPos);
30 float distanceRoot =
vector.DistanceSq(target.GetCursorHitPos(), player.GetPosition());
31 float distanceHead =
vector.DistanceSq(target.GetCursorHitPos(), playerHeadPos);
33 return (distanceRoot <= m_MaximalActionDistanceSq || distanceHead <= m_MaximalActionDistanceSq);