# ----------------------------------------------------------------------------- #
# This header is used by images.dat entries:
# ### Repair Mobile (repairmobile.grp)
.headerstart
IsId          	372
Type          	12
Init          	RepairMobileInit
Death         	RepairMobileDeath
GndAttkInit   	RepairMobileGndAttkInit
AirAttkInit   	[NONE]
Unused1       	[NONE]
GndAttkRpt    	RepairMobileGndAttkInit
AirAttkRpt    	[NONE]
CastSpell     	RepairMobileCastSpell
GndAttkToIdle 	RepairMobileGndAttkToIdle
AirAttkToIdle 	[NONE]
Unused2       	[NONE]
Walking       	RepairMobileWalking
WalkingToIdle 	RepairMobileInit
SpecialState1 	[NONE]
.headerend
# ----------------------------------------------------------------------------- #

RepairMobileInit:
	imgul             	### 0 0 # Repair Mobile Shadow (repairmobile-shad.grp)
	playfram          	0x00
RepairMobileGndAttkToIdle:
	playfram          	0x00
	goto              	RepairMobileLocal00

RepairMobileLocal00:
	wait              	1 
	waitrand          	62 74 
	randcondjmp       	43 RepairMobileLocal01
	goto              	RepairMobileLocal00

RepairMobileLocal01:
	randcondjmp       	128 RepairMobileLocal02
	playfram          	0x11
	wait              	1 
	turnccwise        	1 
	playfram          	0x22
	wait              	1 
	turnccwise        	1 
	playfram          	0x33
	wait              	1 
	turnccwise        	1 
	playfram          	0x22
	wait              	1 
	turnccwise        	1 
	playfram          	0x11
	wait              	1 
	turnccwise        	1 
	playfram          	0x00
	wait              	1 
	turnccwise        	1 
	goto              	RepairMobileGndAttkToIdle

RepairMobileLocal02:
	playfram          	0x11
	wait              	1 
	turnccwise        	1 
	playfram          	0x22
	wait              	1 
	turnccwise        	1 
	playfram          	0x33
	wait              	1 
	turnccwise        	1 
	playfram          	0x22
	wait              	1 
	turnccwise        	1 
	playfram          	0x11
	wait              	1 
	turnccwise        	1 
	playfram          	0x00
	wait              	1 
	turnccwise        	1 
	goto              	RepairMobileGndAttkToIdle

RepairMobileDeath:
	playsnd           	353	# Terran\VULTURE\TVuDth00.WAV
	imgol             	332 0 0	# Explosion2 (Small) (thingy\tBangS.grp)
	wait              	3 
	end

RepairMobileGndAttkInit:
	playfram          	0x00	# Frame set 0
	wait              	1 
	nobrkcodestart
	attack
	playfram          	0x99	# Frame set 1
	wait              	1 
	playfram          	0xaa	# Frame set 2
	wait              	1 
	playfram          	0x99	# Frame set 3
	wait              	1 
	nobrkcodeend
	gotorepeatattk
	ignorerest
	goto              	RepairMobileGndAttkToIdle

RepairMobileWalking:
	move              	5 
	wait              	1 
	playfram          	0x11
	move              	5 
	wait              	1 
	playfram          	0x22
	move              	5 
	wait              	1 
	playfram          	0x33
	move              	5 
	wait              	1 
	playfram          	0x44
	move              	5 
	wait              	1 
	playfram          	0x55
	move              	5 
	wait              	1 
	playfram          	0x66
	move              	5 
	wait              	1 
	playfram          	0x77
	move              	5 
	wait              	1 
	playfram          	0x88
	goto              	RepairMobileWalking