actor GalaxySpike 11709
{
//$Category MM8BDM-Interactive Props
+DONTBLAST
+NOGRAVITY
+THRUGHOST
Height 16
radius 16
scale 2.5
states
{
Spawn:
TNT1 A 0 
TNT1 A 1 A_SpawnItemEx("SpikeDamager") // From Spiney
goto Graphic
Graphic:
GALS A -1
stop
}
}

actor BunbiCatcher 11710
{
//$Category MM8BDM-Props
-SOLID
+NOGRAVITY
+CLIENTSIDEONLY
height 29
radius 19
scale 2.5
+RANDOMIZE
States
{
Spawn:
BUNB ABABABCDCDCDABAB 4
loop
}
}

/*
Argument 1 is the TID of the destination
Argument 2 is the speed of the vertical thrust coming out of a portal
*/

actor GalaxyPortal 11711
{
	//$Category MM8BDM-Interactive Props
	-SOLID
	+DONTBLAST
	+NOGRAVITY
	+LOOKALLAROUND
	+QUICKTORETALIATE
	+BRIGHT
	renderstyle none
	Radius 32
	Height 32
	scale 2.5
	states
	{
		Spawn:
		WRMH A 0
		WRMH A 0 A_JumpIfInventory("Once", 1, "Spawn2")
		WRMH A 0 A_SpawnItemEx("GalaxyPortalFX")
		WRMH A 0 A_GiveInventory("GalaxyPortalFlag", Args[1])
		WRMH A 0 A_GiveInventory("Once", 1)
		Goto Spawn2
		Spawn2:
		WRMH A 1 A_LookEx(LOF_NOSOUNDCHECK,0,32,0,360,"See")
		loop
		See:
		WRMH A 0 A_JumpIfCloser(32, "Blip")
		WRMH A 1 A_ClearTarget
		goto Spawn2
		Blip:
		WRMH A 0 ACS_ExecuteAlways(2,0,Args[0], Args[1])
		Goto End
		End:
		WRMH A 0 A_GiveInventory("CutterFlag", 1)
		WRMH A 0
		WRMH A 4
		WRMH A 0 A_ClearTarget
		WRMH A 10
		WRMH A 0 A_TakeInventory("CutterFlag", 10)
		Goto Spawn2
	}
}

actor GalaxyPortalFX
{
	+NOINTERACTION
	+DONTBLAST
	+THRUACTORS
	+NOGRAVITY
	+MISSILE
	+BRIGHT
	Scale 2.5
	States
	{
		Spawn:
		WRMH AABBCCBB 2 A_JumpIfInTargetInventory("CutterFlag", 1, "Blip")
		loop
		Blip:
		WRHM A 0 A_PlaySoundEx("misc/galaxyteleport", "Weapon")
		WRMH A 0 A_TakeFromTarget("CutterFlag", 1)
		WRMH ICICIFED 1
		Goto Spawn
	}
}

actor GalaxyPortalFlag : Inventory
{
Inventory.Amount 1
Inventory.MaxAmount 500
}

actor U.F.O.
{
PROJECTILE
Damage 0
+RIPPER
+DONTBLAST
+FLOATBOB
+BLOODLESSIMPACT
+DONTREFLECT
+CLIENTSIDEONLY
scale 2.5
speed 12
-SOLID
+NOGRAVITY
States
{
Spawn:
UFOB ABCD 4
loop
}
}
