//=============================================================================
//
//=============================================================================
class DoctorUniform extends DeusExPickup;

Function Tick(Float deltatime)
{
	If (Owner != None)
	{
		If (Owner.IsA('_MMRPGPlayer'))
		{
			If( !_MMRPGPlayer(Owner).bDoctor )
			{
				_MMRPGPlayer(Owner).ClientMessage("You are not a doctor!");
				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.ScientistMaleTex0';
	        Player.MultiSkins[1]=Texture'DeusExCharacters.Skins.LabCoatTex1';
	        Player.MultiSkins[2]=Texture'DeusExCharacters.Skins.PantsTex1';
                Player.MultiSkins[3]=Texture'DeusExCharacters.Skins.ScientistMaleTex0';
                Player.MultiSkins[4]=Texture'DeusExCharacters.Skins.TrenchShirtTex3';
                Player.MultiSkins[5]=Texture'DeusExCharacters.Skins.LabCoatTex1';
                Player.MultiSkins[6]=Texture'DeusExCharacters.Skins.FramesTex4';
                Player.MultiSkins[7]=Texture'DeusExCharacters.Skins.LensesTex5';
		}
		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 <=6) );
}

defaultproperties
{
     maxCopies=1
     bCanHaveMultipleCopies=True
     bActivatable=True
     ItemName="Doctor's Uniform"
     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="Doxt0r Uni"
     beltDescription="DOCTOR UNI"
     Mesh=LodMesh'DeusExDeco.BoxSmall'
     CollisionRadius=13.000000
     CollisionHeight=5.180000
     Mass=10.000000
     Buoyancy=30.000000
}
