//=============================================================================
//
//=============================================================================
class ArenaUniform extends DeusExPickup;

Function Frob(Actor Frobber,Inventory Frobwith)
{
	If (Frobber.IsA('_MMRPGPlayer'))
	{
		If( !_MMRPGPlayer(Frobber).bAMaster )
		{
			_MMRPGPlayer(Frobber).ClientMessage("You are not an Arena Master!");
			return;
		}
	}
	Super.Frob(Frobber,FrobWith);
}

Function Tick(Float deltatime)
{
	If (Owner != None)
	{
		If (Owner.IsA('_MMRPGPlayer'))
		{
			If( !_MMRPGPlayer(Owner).bAMaster )
			{
				_MMRPGPlayer(Owner).ClientMessage("You are not an Arena Master!");
				Destroy();
			}
		}
	}
	Super.Tick(deltatime);
}

state Activated
{
	function Activate()
	{
	}

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

		player = DeusExPlayer(Owner);
		if (player != None)
		{
			Player.Mesh=LodMesh'DeusExCharacters.GM_Trench';
			Player.MultiSkins[0]=Texture'DeusExCharacters.Skins.Male1Tex0';
			Player.MultiSkins[1]=Texture'DeusExCharacters.Skins.GordonQuickTex2';
			Player.MultiSkins[2]=Texture'DeusExCharacters.Skins.GordonQuickTex3';
			Player.MultiSkins[3]=Texture'DeusExCharacters.Skins.Male1Tex0';
			Player.MultiSkins[4]=Texture'DeusExCharacters.Skins.PaulDentonTex1';
			Player.MultiSkins[5]=Texture'DeusExCharacters.Skins.GordonQuickTex2';
			Player.MultiSkins[6]=Texture'DeusExItems.Skins.GrayMaskTex';
			Player.MultiSkins[7]=Texture'DeusExItems.Skins.BlackMaskTex';
		}
		GotoState('DeActivated');
//		UseOnce();
	}
Begin:
}

defaultproperties
{
     maxCopies=1
     bCanHaveMultipleCopies=True
     bActivatable=True
     ItemName="Arena Master's Uniform"
     ItemArticle="an"
     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="Arena Meister"
     beltDescription="ARENAMASTER"
     Mesh=LodMesh'DeusExDeco.BoxSmall'
     CollisionRadius=13.000000
     CollisionHeight=5.180000
     Mass=10.000000
     Buoyancy=30.000000
}
