//=============================================================================
//
//=============================================================================
class NinjaUniform extends DeusExPickup;


Function Frob(Actor Frobber,Inventory Frobwith)
{
	If (Frobber.IsA('_MMRPGPlayer'))
	{
		If(_MMRPGPlayer(Frobber).bNinja )
		{
			Super.Frob(Frobber,FrobWith);
			return;
		}
	}
	DeusExPlayer(Frobber).ClientMessage("You are not a ninja!");

}

Function Tick(Float deltatime)
{
	If (Owner != None)
	{
		If (Owner.IsA('_MMRPGPlayer'))
		{
			If( !_MMRPGPlayer(Owner).bNinja )
			{
				_MMRPGPlayer(Owner).ClientMessage("You are not a ninja!");
				Destroy();
			}
		}
	}
	Super.Tick(deltatime);
}

state Activated
{
	function Activate()
	{
	}

	function BeginState()
	{
		local DeusExPlayer player;
		Super.BeginState();

		player = DeusExPlayer(Owner);
		if (player != None)
		{
		Player.Mesh=LodMesh'MPCharacters.mp_jumpsuit';
		Player.MultiSkins[0]=Texture'ContenderStuff.Skins.NinjaHead';
	        Player.MultiSkins[1]=Texture'DeusExItems.Skins.BlackMaskTex';
	        Player.MultiSkins[2]=Texture'DeusExItems.Skins.BlackMaskTex';
                Player.MultiSkins[3]=Texture'ContenderStuff.Skins.NinjaHead';
                Player.MultiSkins[4]=Texture'DeusExItems.Skins.PinkMaskTex';
                Player.MultiSkins[5]=Texture'DeusExItems.Skins.PinkMaskTex';
                Player.MultiSkins[6]=Texture'DeusExItems.Skins.PinkMaskTex';
                Player.MultiSkins[7]=Texture'DeusExItems.Skins.PinkMaskTex';
		}
		GotoState('DeActivated');
//		UseOnce();
	}
Begin:
}

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


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


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

defaultproperties
{
     maxCopies=1
     bCanHaveMultipleCopies=True
     bActivatable=True
     ItemName="Ninja Costume"
     ItemArticle="a"
     PlayerViewOffset=(X=30.000000,Z=-12.000000)
     PlayerViewMesh=LodMesh'DeusExDeco.BoxSmall'
     PickupViewMesh=LodMesh'DeusExDeco.BoxSmall'
     ThirdPersonMesh=LodMesh'DeusExDeco.BoxSmall'
     LandSound=Sound'DeusExSounds.Generic.PaperHit2'
     Icon=Texture'DeusExUI.Icons.ChargedIconArmorAdaptive'
     largeIcon=Texture'DeusExUI.Icons.LargeIconArmorAdaptive'
     largeIconWidth=35
     largeIconHeight=49
     Description="1337 n1nj0rz"
     beltDescription="NINJA CST"
     Mesh=LodMesh'DeusExDeco.BoxSmall'
     CollisionRadius=13.000000
     CollisionHeight=5.180000
     Mass=10.000000
     Buoyancy=30.000000
}
