//=============================================================================
// 
//=============================================================================
class FireCone extends DeusExPickup;

function Activate()
{
	if( bActivatable )
	{
		if (Level.Game.LocalLog != None)
			Level.Game.LocalLog.LogItemActivate(Self, Pawn(Owner));
		if (Level.Game.WorldLog != None)
			Level.Game.WorldLog.LogItemActivate(Self, Pawn(Owner));

		Pawn(Owner).ClientMessage("Stand Back!");	
		GoToState('Activated');
	}
}

state Activated
{

		function BeginState()
		{
		local FireConeP SpawnObject;
		local vector loc;

		if (Role == ROLE_Authority)
		{
			Super.BeginState();
			SpawnObject = Spawn(class'FireConeP',,,Owner.Location + (Owner.CollisionRadius+class'FireConeP'.Default.CollisionRadius+30) * Vector(Owner.Rotation) + vect(0,0,1) * 15 );
			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
{
     bCanHaveMultipleCopies=True
     MaxCopies=1
     bActivatable=True
     ItemName="Firework: Fountain"
     ItemArticle="a"
     PlayerViewOffset=(X=30.000000,Z=-12.000000)
     PlayerViewMesh=Mesh'fireworkcone'
     PickupViewMesh=Mesh'fireworkcone'
     ThirdPersonMesh=Mesh'fireworkcone'
     LandSound=Sound'DeusExSounds.Generic.PaperHit2'
     largeIconWidth=35
     largeIconHeight=49
     Description="Fireworks!"
     beltDescription="|p2FRWRK FTN"
     Mesh=Mesh'fireworkcone'
     Icon=Texture'ContenderStuff.Icons.BeltIconFireCone'
     LargeIcon=Texture'ContenderStuff.Icons.BeltIconFireCone'
  MultiSkins(0)=Texture'NailageEffects.firew0rx'
  MultiSkins(1)=Texture'NailageEffects.PboxInside'
     CollisionRadius=8.000000
     CollisionHeight=4.180000
     Mass=10.000000
     Buoyancy=30.000000
}
