// original model author unknown
// converted to MD3 and animated by Aenima

 Actor Maxwell : Stalagmite 22090
 {
	radius 10
	height 25
//$Category MAXWELL
	+NOTIMEFREEZE
	states
	{
	Spawn:
		MODL A 0
	ResyncMusic:
		MODL A 0 A_TakeInventory("DanceCount",16)
		MODL A 0 A_StopSoundEx("Voice")
		MODL A 0 A_PlaySoundEx ("maxwellcat", "Voice", 1)
		Goto Rock
	Rock:
		MODL A 0 A_JumpIfInventory("DanceCount",16,"ResyncMusic")
		MODL ABCCBABDDB 3 A_FaceConsolePlayer(8)
		MODL ABCCBABDDB 3 A_FaceConsolePlayer(8)
		MODL ABCCBABDDB 3 A_FaceConsolePlayer(8)
		MODL ABCCBABDDB 3 A_FaceConsolePlayer(8)
		MODL A 7
		Goto Roll
	Roll:
		MODL AEFG 29
		MODL A 0 A_GiveInventory("DanceCount",1)
		MODL A 8
		Goto Rock
		
	}
 }
 
 ACTOR DanceCount : Inventory
{
    Inventory.Amount 1
    Inventory.MaxAmount 16
}