3 protected float m_MaximalActionDistanceSq;
5 void CCTTree (
float maximal_target_distance )
7 m_MaximalActionDistanceSq = maximal_target_distance * maximal_target_distance;
15 Object targetObject = target.GetObject();
16 if ( !player || !targetObject || targetObject.IsDamageDestroyed() )
22 return (
vector.DistanceSq(target.GetCursorHitPos(), player.GetPosition()) <= m_MaximalActionDistanceSq );