actor plumber : commanderkeen replaces commanderkeen
{
	Health 999999
	Mass 0x7FFFFFFF	
	height 60
	PainSound "plumber/pain"
	DeathSound "plumber/death"
	+DONTFALL
	+CEILINGHUGGER
	states
	{
	spawn:
		PLMR A 1
		loop
	Pain:
		TNT1 A 0
		TNT1 A 0 a_jumpifinventory ("shrunk", 1, "ded")
		TNT1 A 0 a_changeflag ("SHOOTABLE", 0)
		TNT1 A 0 a_changeflag ("THRUACTORS", 1)
		PLMR A 2 a_pain
		PLMR C 2
		PLMR B 2
		PLMR C 2
		PLMR A 2
		PLMR C 2
		PLMR B 2
		PLMR C 2
		PLMR A 2
		PLMR C 2
		PLMR B 2
		PLMR C 2
		PLMR A 2
		PLMR C 2
		PLMR B 2
		PLMR C 2
		TNT1 A 0 a_giveinventory ("shrunk", 1)
		TNT1 A 0 a_changeflag ("THRUACTORS", 0)
		TNT1 A 0 a_changeflag ("SHOOTABLE", 1)
		goto smallwait
	smallwait:
		PLMR B 1
		loop
	ded:
		PLMR B 1 a_die
		goto death
	death:
		TNT1 A 0
		PLMR C 1 a_scream
		TNT1 A 0 a_spawnitemex ("mamamia",0,0,42)
		PLMR C 10
		PLMR C 1 a_keendie
		PLMR C -1
		stop
	}
}

actor mamamia
{
    Radius 5
    Height 5
    Speed 0
	damage (0)
	+bloodlessimpact
	+noblood
	+NOCLIP
	+NOGRAVITY
	+NOINTERACTION
	-SOLID
    -SHOOTABLE
	+DONTBLAST
	states
	{
	spawn:
		PLMR D 28
		PLMR D 2 thrustthingz (0,25,0,1)
		PLMR D 4
	slowloop:
		PLMR D 1 a_changevelocity (0,0,velz*0.7,CVF_REPLACE)
		TNT1 A 0 a_jumpif(velz < 0.1, "falling")
		loop
	Falling:
		TNT1 A 0
		PLMR D 1 a_changevelocity (0,0,-8,CVF_REPLACE)
		PLMR D 66
		goto death
	death:
		TNT1 A 1
		stop
	}
}

actor shrunk : inventory
{inventory.maxamount 1}