void CAI_FollowGoal::DisableGoal( CAI_BaseNPC *pAI  )
{ 
	CAI_FollowBehavior *pBehavior;
	if ( !pAI->GetBehavior( &pBehavior ) )
		return;
	
	pBehavior->SetFollowTarget( NULL );
}
void CAI_FollowGoal::EnableGoal( CAI_BaseNPC *pAI )
{
	CAI_FollowBehavior *pBehavior;
	if ( !pAI->GetBehavior( &pBehavior ) )
		return;
	
	CBaseEntity *pGoalEntity = GetGoalEntity();
	if ( !pGoalEntity )
	{
		if ( pAI->IRelationType(UTIL_PlayerByIndex( 1 )) == D_LI )
			pBehavior->SetFollowTarget( UTIL_PlayerByIndex( 1 ) );
	}
	else
	{
		pBehavior->SetFollowTarget( pGoalEntity );
	}
}