//=============================================================================
//
//=============================================================================
class JacketPurple extends ClothesMMRPG;


var texture temptex;
var texture temptex1;

state Activated
{
	function Activate()
	{
	}

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

		player = DeusExPlayer(Owner);
		if (player != None)
		{
			If(Player.Mesh == LodMesh'DeusExCharacters.GM_Trench')
			{
				Player.MultiSkins[1]=Texture'ContenderStuff.Skins.PurpleSuit';
				Player.MultiSkins[5]=Texture'ContenderStuff.Skins.PurpleSuit';
			}
			If( (Player.Mesh == LodMesh'MPCharacters.mp_jumpsuit') || (Player.Mesh == LodMesh'DeusExCharacters.GM_Jumpsuit') )
			{
				temptex=Player.MultiSkins[1];//trousers
				temptex1=Player.MultiSkins[2];//top

				If(temptex1 == Texture'DeusExCharacters.Skins.Male1Tex1')
					temptex1=Texture'ContenderStuff.Skins.WhiteShirt';

				If(temptex1 == Texture'DeusExCharacters.Skins.SoldierTex1')
					temptex1=Texture'ContenderStuff.Skins.CamoShirt';

				If(temptex1 == Texture'ContenderStuff.Skins.RedTee')
					temptex1=Texture'ContenderStuff.Skins.RedTeeSmall';

				If(temptex1 == Texture'ContenderStuff.Skins.PinkShirt')
					temptex1=Texture'ContenderStuff.Skins.PinkShirtSmall';

				If(temptex1 == Texture'ContenderStuff.Skins.BlueTee')
					temptex1=Texture'ContenderStuff.Skins.BlueTeeSmall';

				If(temptex1 == Texture'ContenderStuff.Skins.ChiliTee')
					temptex1=Texture'ContenderStuff.Skins.ChiliTeeSmall';

				If(temptex1 == Texture'ContenderStuff.Skins.vest')
					temptex1=Texture'ContenderStuff.Skins.vestSmall';

				If(temptex1 == Texture'ContenderStuff.Skins.VelvetTee')
					temptex1=Texture'ContenderStuff.Skins.VelvetTeeSmall';

				If(temptex1 == Texture'ContenderStuff.Skins.SuperTex')
					temptex1=Texture'ContenderStuff.Skins.SuperSmall';

				Player.Mesh = LodMesh'DeusExCharacters.GM_Trench';
				Player.MultiSkins[0]=Texture'DeusExCharacters.Skins.Male1Tex0';
				Player.MultiSkins[1]=Texture'ContenderStuff.Skins.PurpleSuit';
				Player.MultiSkins[2]=temptex;
				Player.MultiSkins[3]=Texture'DeusExCharacters.Skins.Male1Tex0';
				Player.MultiSkins[4]=temptex1;
				Player.MultiSkins[5]=Texture'ContenderStuff.Skins.PurpleSuit';
				Player.MultiSkins[6]=Texture'DeusExItems.Skins.PinkMaskTex';
				Player.MultiSkins[7]=Texture'DeusExItems.Skins.PinkMaskTex';

			}
		}
		GotoState('DeActivated');
//		UseOnce();
	}
Begin:
}

defaultproperties
{
     maxCopies=1
     bCanHaveMultipleCopies=True
     bActivatable=True
     ItemName="Purple Jacket"
     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=" "
     beltDescription="PURPLJCKT"
     Mesh=LodMesh'DeusExDeco.BoxSmall'
     CollisionRadius=13.000000
     CollisionHeight=5.180000
     Mass=10.000000
     Buoyancy=30.000000
}
