# ----------------------------------------------------------------------------- #
# This header is used by images.dat entries:
# 944 Medic (terran\medic.grp)
.headerstart
IsId           	360
Type           	13
Init           	MedicInit
Death          	MedicDeath
GndAttkInit    	MedicGndAttkInit
AirAttkInit    	[NONE]
Unused1        	[NONE]
GndAttkRpt     	MedicGndAttkRpt
AirAttkRpt     	[NONE]
CastSpell      	MedicCastSpell
GndAttkToIdle  	MedicGndAttkToIdle
AirAttkToIdle  	[NONE]
Unused2        	[NONE]
Walking        	MedicWalking
WalkingToIdle  	MedicWalkingToIdle
SpecialState1  	MedicSpecialState1
.headerend
# ----------------------------------------------------------------------------- #

MedicInit:
	imgul          	945 0 42	# MedicShad (terran\tmeShad.grp)
	playfram       	0x00	# frame set 0
	goto           	MedicGndAttkToIdle

MedicGndAttkToIdle:
	playfram       	0x00	# frame set 0
	setvertpos     	1
	waitrand       	8 10
	setvertpos     	2
	waitrand       	8 10
	setvertpos     	1
	waitrand       	8 10
	setvertpos     	0
	waitrand       	8 10
	goto           	MedicGndAttkToIdle

MedicDeath:
	playsnd        	369	# Terran\SCV\TSCDth00.WAV
	imgol          	332 0 0	# TerranBuildingExplosionsmall (thingy\tBangS.grp)
	wait           	3
	end            	

MedicGndAttkInit:
	playfram       	0x00	# frame set 0
MedicGndAttkRpt:
	wait           	1
	nobrkcodestart 	
	attackwith     	1
	playfram       	0x00	# frame set 0
	wait           	1
	nobrkcodeend   	
	gotorepeatattk 	
	ignorerest     	
MedicCastSpell:
	orderdone      	1
	nobrkcodestart 	
	playfram       	0x00	# frame set 0
	wait           	2
	playfram       	0x11	# frame set 1
	wait           	2
	playfram       	0x22	# frame set 2
	wait           	2
	playfram       	0x33	# frame set 3
	wait           	2
	playfram       	0x44	# frame set 4
	wait           	2
	playfram       	0x55	# frame set 5
	wait           	1
	playfram       	0x66	# frame set 6
	wait           	1
	castspell      	
	sigorder       	2
	playfram       	0x55	# frame set 5
	wait           	1
	playfram       	0x66	# frame set 6
	wait           	1
	playfram       	0x55	# frame set 5
	wait           	2
	playfram       	0x44	# frame set 4
	wait           	2
	playfram       	0x33	# frame set 3
	wait           	2
	playfram       	0x22	# frame set 2
	wait           	2
	playfram       	0x11	# frame set 1
	wait           	2
	nobrkcodeend   	
	gotorepeatattk 	
	playfram       	0x00	# frame set 0
	goto           	MedicGndAttkToIdle

MedicWalking:
	orderdone      	1
	setvertpos     	0
	move           	4
	wait           	1
	playfram       	0x00	# frame set 0
	move           	4
	wait           	1
	playfram       	0x00	# frame set 0
	move           	4
	wait           	1
	playfram       	0x00	# frame set 0
	move           	4
	wait           	1
	playfram       	0x00	# frame set 0
	move           	4
	wait           	1
	playfram       	0x00	# frame set 0
	move           	4
	wait           	1
	playfram       	0x00	# frame set 0
	move           	4
	wait           	1
	playfram       	0x00	# frame set 0
	move           	4
	wait           	1
	playfram       	0x00	# frame set 0
	move           	4
	wait           	1
	playfram       	0x00	# frame set 0
	goto           	MedicWalking

MedicWalkingToIdle:
	orderdone      	1
	goto           	MedicGndAttkToIdle

MedicSpecialState1:
	playfram       	0x00	# frame set 0
	wait           	1
MedicLocal00:
	sigorder       	1
	playfram       	0x00	# frame set 0
	wait           	1
	playfram       	0x00	# frame set 0
	wait           	1
	playfram       	0x00	# frame set 0
	wait           	1
	playfram       	0x00	# frame set 0
	wait           	1
	playfram       	0x00	# frame set 0
	wait           	1
	playfram       	0x00	# frame set 0
	wait           	1
	playfram       	0x00	# frame set 0
	wait           	1
	playfram       	0x00	# frame set 0
	wait           	1
	playsnd        	1018	# Terran\Medic\TMedHeal.wav
	goto           	MedicLocal00


# ----------------------------------------------------------------------------- #