//=============================================================================
// UBersGuidedWarshell.
//=============================================================================
class UBersGuidedWarshell expands GuidedWarshell;

simulated function Destroyed()
{
	local UBersWarheadLauncher W;

	bDestroyed = true;
	if ( (PlayerPawn(Guider) != None) )
		PlayerPawn(Guider).ViewTarget = None;

	While ( FreeMoves != None )
	{
		FreeMoves.Destroy();
		FreeMoves = FreeMoves.NextMove;
	}

	While ( SavedMoves != None )
	{
		SavedMoves.Destroy();
		SavedMoves = SavedMoves.NextMove;
	}

	if ( (Guider != None) && (Level.NetMode != NM_Client) )
	{
		W = UBersWarheadLauncher(Guider.FindInventoryType(class'UBersWarheadLauncher'));
		if ( W != None )
		{
			W.GuidedShell = None;
			W.GotoState('Finishing');
		}
	}
	Super.Destroyed();
}
