##### Known caveats:
### Will sometimes "jump" at the end of its working animation
### Will frequently "jump" when disabled while in the middle of its working animation
.headerstart
IsId          	180
Type          	27
Init          	HeavyWeaponsFactoryInit
Death         	HeavyWeaponsFactoryDeath
GndAttkInit   	[NONE]
AirAttkInit   	[NONE]
Unused1       	[NONE]
GndAttkRpt    	[NONE]
AirAttkRpt    	[NONE]
CastSpell     	[NONE]
GndAttkToIdle 	[NONE]
AirAttkToIdle 	[NONE]
Unused2       	[NONE]
Walking       	[NONE]
WalkingToIdle 	[NONE]
SpecialState1 	[NONE]
SpecialState2 	[NONE]
AlmostBuilt   	[NONE]
Built         	HeavyWeaponsFactoryBuilt
Landing       	[NONE]
LiftOff       	[NONE]
IsWorking     	HeavyWeaponsFactoryIsWorking
WorkingToIdle 	HeavyWeaponsFactoryWorkingToIdle
WarpIn        	[NONE]
Unused3       	[NONE]
StarEditInit  	[NONE]
Disable       	HeavyWeaponsFactoryDisable
Burrow        	[NONE]
UnBurrow      	[NONE]
Enable        	HeavyWeaponsFactoryEnable
.headerend
# ----------------------------------------------------------------------------- #

HeavyWeaponsFactoryInit:
	imgul             	REPLACEME 0 0 # PUT YOUR SHADOW HERE
	playfram          	0x00
	wait 2
	playfram 1
	wait 2
	playfram 3
	wait 2
	playfram 4
	wait 2
	playfram 5
	waitrand 2 3
	playfram 6
	wait 2
	playfram 7
	wait 2
	playfram 8
	wait 2
	playfram 9
	wait 2
	goto              	HeavyWeaponsFactoryBuilt

HeavyWeaponsFactoryBuilt:
	wait              	125 
	goto              	HeavyWeaponsFactoryBuilt

HeavyWeaponsFactoryDeath:
	playsnd           	7	# Misc\ExploLrg.wav
	imgol             	215 0 0	# Explosion (Large) (thingy\tBangX.grp)
	wait              	3 
	lowsprul          	223 0 0	# Protoss Building Rubble (Small) (thingy\PRubbleS.grp)
	wait              	1 
	end
	
HeavyWeaponsFactoryIsWorking:
	wait 1
	waitrand 1 2
	playfram 8
	waitrand 2 3
	playfram 7
	waitrand 2 3
	playfram 6
	waitrand 2 3
	playfram 5
	waitrand 4 5
	playfram 6
	waitrand 2 3
	playfram 7
	waitrand 2 3
	playfram 8
	waitrand 2 3
	playfram 9
	waitrand 4 5
	goto HeavyWeaponsFactoryIsWorking
	
HeavyWeaponsFactoryWorkingToIdle:
	playfram 7
	wait 2
	playfram 8
	wait 2
	playfram 9
	goto HeavyWeaponsFactoryBuilt
	
HeavyWeaponsFactoryDisable:
	playfram 8
	wait 2
	playfram 7
	wait 2
	playfram 6
	wait 2
	playfram 5
	wait 2
	goto HeavyWeaponsFactoryBuilt
	
HeavyWeaponsFactoryEnable:
	playfram 6
	wait 2
	playfram 7
	wait 2
	playfram 8
	wait 2
	playfram 9
	wait 2
	goto HeavyWeaponsFactoryBuilt
