//=============================================================================
// Sodacan.
//=============================================================================
class boardpickup extends Sodacan;

var class<board> BoardClass;

state Activated
{
	function Activate()
	{
		// can't turn it off
	}

	function BeginState()
	{
		local _MMRPGPlayer player;
		local board sboard;

		player = _MMRPGPlayer(Owner);
		if (player != None)
		{
			if (player.bSkate)
				return;

			sboard=spawn(BoardClass);
			sboard.Skater=player;
			player.bSkate=True;
			player.AssignedBoard = sboard;
			player.JumpSound=Sound'Contender.Weapons.Ollie';
			player.bBehindView = True;
			GotoState('DeActivated');
		}

//		UseOnce();
	}
Begin:
}

simulated function bool TestMPBeltSpot(int BeltSpot)
{
   return ( (BeltSpot >= 1) && (BeltSpot <=9) );
}

function DropFrom(vector StartLocation)
{
	LifeSpan = 5.0;
	Super.DropFrom(StartLocation);
}


function BecomeItem()
{
	LifeSpan = 0.0;
	Super.BecomeItem();
}


defaultproperties
{
     MaxCopies=1
     bCanHaveMultipleCopies=True
     BoardClass=Class'Contender.board'
     bActivatable=True
     ItemName="Skateboard"
     ItemArticle="a"
     PlayerViewOffset=(X=30.000000)
     PlayerViewMesh=Mesh'ContenderStuff.board'
     PickupViewMesh=Mesh'ContenderStuff.board'
     ThirdPersonMesh=Mesh'ContenderStuff.board'
     LandSound=Sound'DeusExSounds.Generic.PaperHit2'
     Icon=Texture'ContenderStuff.Icons.BeltIconBoard'
     largeIcon=Texture'ContenderStuff.Icons.BeltIconBoard'
     largeIconWidth=35
     largeIconHeight=49
     Description="put down hate and let's skate."
     beltDescription="BOARD"
     MultiSkins(0)=Texture'CoreTexWood.Wood.ClenWhitPine_A'
     MultiSkins(1)=Texture'CoreTexMetal.Metal.Heli_LiftMetl_A'
     MultiSkins(2)=Texture'DeusExDeco.Skins.AlarmLightTex9'
     MultiSkins(3)=Texture'CoreTexMetal.Metal.ShipGrayMetal_A'
     Mesh=Mesh'board'
     CollisionRadius=11.500000
     CollisionHeight=13.810000
     Mass=20.000000
     Buoyancy=20.100000
}

