class ModPistolScope extends FoodMMRPG;


state Activated
{
	function Activate()
	{
	}

	function BeginState()
	{
		local _MMRPGPlayer player;
		local Inventory Weap;
		local WeaponPistolScope weap2;
		Super(DeusExPickup).BeginState();

		player = _MMRPGPlayer(Owner);

		foreach AllActors(class'Inventory', Weap)
		{
			if (Weap.Owner != None)
			{
				if (Weap.Owner == Player)
				{

					if(Weap.Class == Class'Contender.NewPistol')
					{
						Weap.Destroy();
						Player.SpawnItemz(Class'WeaponPistolScope');
						UseOnce();
						return;
					}
	
					if(Weap.Class == Class'Contender.WeaponPistolSilenced')
					{
						Weap.Destroy();
						Player.SpawnItemz(Class'WeaponPistolSS');
						UseOnce();
						return;
					}
				}
			}
		}
		Player.ClientMessage("You do not have a Colt M1911A1 .45 Pistol!");
		GotoState('DeActivated');

	}
Begin:
}



defaultproperties
{
     M_Activated=""
     bActivatable=True
     ItemName="Colt M1911A1 .45 Pistol Modification [Scope]"
     Icon=Texture'DeusExUI.Icons.BeltIconWeaponModScope'
     largeIcon=Texture'DeusExUI.Icons.LargeIconWeaponModScope'
     Description="<C>MainMan"
     beltDescription="COLT SCOPE"
     PlayerViewOffset=(X=30.000000,Z=-12.000000)
     PlayerViewMesh=LodMesh'DeusExItems.WeaponMod'
     PickupViewMesh=LodMesh'DeusExItems.WeaponMod'
     ThirdPersonMesh=LodMesh'DeusExItems.WeaponMod'
     LandSound=Sound'DeusExSounds.Generic.PlasticHit1'
     largeIconWidth=34
     largeIconHeight=49
     Mesh=LodMesh'DeusExItems.WeaponMod'
     CollisionRadius=3.500000
     CollisionHeight=4.420000
     Mass=1.000000
     Skin=Texture'DeusExItems.Skins.WeaponModTex8'
}
