//=============================================================================
// 
//=============================================================================
class MMRPGCardSpawn extends ElectronicDevices;

var() class<DeusExPickup> SpawnClass;
var bool bSpewing;

function Trigger(Actor Other, Pawn EventInstigator)
{
	local Vector loc;
	local DeusExPickup product;

	Super.Trigger(Other, EventInstigator);

	if (bSpewing)
	{
			loc = Vector(Rotation) * CollisionRadius * 0.8;
			loc.Z -= CollisionHeight * 0.7; 
			loc += Location;

				Product = Spawn(SpawnClass);

			if (product != None)
			{
				product.Velocity = Vector(Rotation) * 100;
				product.bFixedRotationDir = True;
				product.RotationRate.Pitch = (32768 - Rand(65536)) * 4.0;
				product.RotationRate.Yaw = (32768 - Rand(65536)) * 4.0;
				Product.RespawnTime = 0.0;
			}
	}
}

defaultproperties
{
     bSpewing=True
     ItemName="Nailage Weapon Dispenser"
     bHidden=True
     Physics=PHYS_None
     DrawType=DT_Sprite
     Texture=Texture'Engine.S_Inventory'
     DrawScale=1.000000
     CollisionRadius=1.500000
     CollisionHeight=13.000000
     Mass=1.000000
     Buoyancy=1.000000
}
