//=============================================================================
// Deagle Pickup.
//=============================================================================
class DeaglePickup extends KFWeaponPickup;

/*
function ShowDeagleInfo(Canvas C)
{
  C.SetPos((C.SizeX - C.SizeY) / 2,0);
  C.DrawTile( Texture'KillingfloorHUD.ClassMenu.Deagle', C.SizeY, C.SizeY, 0.0, 0.0, 256, 256);
}
*/

function inventory SpawnCopy(pawn Other)
{
	local Inventory I;

	for ( I = Other.Inventory; I != none; I = I.Inventory )
	{
        // can't just cast to Deagle to check, because golden deagle is a deagle
        // but we don't want to take your golden deagle and give you dual
        // normal deagles
		if( I.Class == class'Deagle' )
		{
			if( Inventory != none )
				Inventory.Destroy();
			InventoryType = Class'DualDeagle';
            AmmoAmount[0] += Deagle(I).AmmoAmount(0);
            MagAmmoRemaining += Deagle(I).MagAmmoRemaining;
			I.Destroyed();
			I.Destroy();
			Return Super.SpawnCopy(Other);
		}
	}

	InventoryType = Default.InventoryType;
	Return Super.SpawnCopy(Other);
}

defaultproperties
{
	Weight=2.000000
	cost=500
	BuyClipSize=7
	PowerValue=65
	SpeedValue=35
	RangeValue=60
	AmmoCost=15
	Description="50 Cal AE handgun. A powerful personal choice for personal defense."
	ItemName="Handcannon"
	ItemShortName="Handcannon"
	AmmoItemName=".300 JHP Ammo"
	AmmoMesh=none
	InventoryType=Class'KFMod.Deagle'
	PickupMessage="You got the Handcannon"
	PickupForce="AssaultRiflePickup"
	StaticMesh=StaticMesh'KF_pickups_Trip.deagle_pickup'
	DrawScale=1.000000
	CollisionHeight=5.000000
	PickupSound=Sound'KF_HandcannonSnd.50AE_Pickup'
	EquipmentCategoryID=1
	CorrespondingPerkIndex=2

	VariantClasses[0]=class'KFMod.GoldenDeaglePickup'
}
