Actor ATcrates
{
	Game Doom
	Radius 16
	Height 32	
	health 1
	Scale 0.6
	DamageFactor "Trample", 0.0
	damagefactor "MarineTarget", 0.0
	damagefactor "AlienTarget", 0.0
	damagefactor "DroidTarget", 0.0
	damagefactor "PredatorTarget", 0.0
	+SOLID
	+SHOOTABLE
	+PUSHABLE
	+ACTIVATEMCROSS
	+DONTGIB
	+NOICEDEATH
	+OLDRADIUSDMG
	+NOBLOODDECALS
	BloodType "HitMetal"
	States
	{
	Spawn:
                ACCR B -1
		stop
	Pain:
	Death:
		TNT1 A 0 A_Jump(128,1)
		TNT1 A 1 A_SpawnItemEx("SeismicCharges",0,0,16, 0, 0, 0, 0, 0, 60, 0)
		TNT1 A 1 A_SpawnItemEx("PulseRifleClip",0,0,16, 0, 0, 0, 0, 0, 40, 0)
		TNT1 A 1 A_SpawnItemEx("DermPatch",0,0,16, 0, 0, 0, 0, 0, 40, 0)
        TNT1 A 1 A_SpawnItemEx("PistolClip",0,0,16, 0, 0, 0, 0, 0, 40, 0)
        TNT1 A 1 A_SpawnItemEx("ShotgunAmmo",0,0,16, 0, 0, 0, 0, 0, 35, 0)
		TNT1 A 0 A_PlaySound("EXPLO1", 1)
	   TNT1 A 0 A_PlaySound("world/barrelx", 2)
	   EXPL AAAAAAAAAAAAAAA 0 A_CustomMissile ("BigSpark", 1, 0, random (0, 360), 2, random (0, 360))
	   EXPL AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_CustomMissile ("FastSpark", 1, 0, random (0, 360), 2, random (0, 90))
	    EXPL AAAAAA 0 A_CustomMissile ("ExplosionFire", 1, 0, random (0, 360), 2, random (0, 360))
		TNT1 A 0 A_Scream
		TNT1 A 0 A_NoBlocking
		TNT1 A 10 BRIGHT
        stop
	}
}

actor Cratespawner : RandomSpawner
{
	DropItem "ATcrates", 128, 5
	DropItem "FuelBarrel", 128, 5
}