class ModFamasScope extends FoodMMRPG;

state Activated
{
	function Activate()
	{
	}

	function BeginState()
	{
		local _MMRPGPlayer player;
		local WeaponFamasF1 Weap;
		Super(DeusExPickup).BeginState();

		player = _MMRPGPlayer(Owner);
		foreach AllActors(class'WeaponFamasF1', Weap)
		{
			if (Weap.Owner != None)
			{
				if (Weap.Owner == Player)
				{
					if(Weap != None)
					{
						Weap.Destroy();
						Player.SpawnItemz(Class'WeaponFamas');
						UseOnce();
						return;
					}
				}
			}
		}
		Player.ClientMessage("You do not have a F.A.M.A.S.!");
		GotoState('DeActivated');

	}
Begin:
}


defaultproperties
{
     M_Activated=""
     bActivatable=True
     ItemName="F.A.M.A.S. Modification [Scope]"
     Icon=Texture'DeusExUI.Icons.BeltIconWeaponModScope'
     largeIcon=Texture'DeusExUI.Icons.LargeIconWeaponModScope'
     Description="<C>MainMan"
     beltDescription="FAMAS SCP"
     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'
}
