# ----------------------------------------------------------------------------- #
# This header is used by images.dat entries:
# 228 Ghost (terran\ghost.grp)
.headerstart
IsId           	70
Type           	13
Init           	GhostInit
Death          	GhostDeath
GndAttkInit    	GhostGndAttkInit
AirAttkInit    	GhostGndAttkInit
Unused1        	[NONE]
GndAttkRpt     	GhostGndAttkRpt
AirAttkRpt     	GhostGndAttkRpt
CastSpell      	GhostCastSpell
GndAttkToIdle  	GhostGndAttkToIdle
AirAttkToIdle  	GhostGndAttkToIdle
Unused2        	[NONE]
Walking        	GhostWalking
WalkingToIdle  	GhostWalkingToIdle
SpecialState1  	GhostSpecialState1
.headerend
# ----------------------------------------------------------------------------- #

GhostInit:
	imgul          	229 0 5	# GhostShad (terran\tghShad.grp)
GhostWalkingToIdle:
	playfram       	0x00	# frame set 0
	goto           	GhostLocal00

GhostLocal00:
	wait           	125
	goto           	GhostLocal00

GhostDeath:
	playsnd        	369	# Terran\SCV\TSCDth00.WAV
	imgol          	332 0 0	# TerranBuildingExplosionsmall (thingy\tBangS.grp)
	wait           	3
	lowsprul       	230 0 0	# GhostDeath (terran\tghDeath.grp)
	wait           	1
	end            	

GhostGndAttkInit:
	playfram       	0x00	# frame set 0
	wait           	1
	playfram       	0x11	# frame set 1
	wait           	1
	playfram       	0x22	# frame set 2
	wait           	1
	playfram       	0x33	# frame set 3
	wait           	1
	playfram       	0x44	# frame set 4
	wait           	1
	playfram       	0x55	# frame set 5
	wait           	1
	playfram       	0x66	# frame set 6
	wait           	1
	playfram       	0x77	# frame set 7
	wait           	1
	playfram       	0x88	# frame set 8
	wait           	1
	playfram       	0x99	# frame set 9
	wait           	1
GhostGndAttkRpt:
	wait           	1
	nobrkcodestart 	
	attackwith     	1
	playfram       	0xaa	# frame set 10
	playsnd        	98	# Bullet\TGhFir00.wav
	wait           	1
	playfram       	0xbb	# frame set 11
	wait           	1
	playfram       	0xcc	# frame set 12
	wait           	1
	playfram       	0xdd	# frame set 13
	wait           	1
	nobrkcodeend   	
	gotorepeatattk 	
	ignorerest     	
GhostGndAttkToIdle:
	playfram       	0x99	# frame set 9
	wait           	1
	playfram       	0x88	# frame set 8
	wait           	1
	playfram       	0x77	# frame set 7
	wait           	1
	playfram       	0x66	# frame set 6
	wait           	1
	playfram       	0x55	# frame set 5
	wait           	1
	playfram       	0x44	# frame set 4
	wait           	1
	playfram       	0x33	# frame set 3
	wait           	1
	playfram       	0x22	# frame set 2
	wait           	1
	playfram       	0x11	# frame set 1
	wait           	1
	goto           	GhostWalkingToIdle

GhostCastSpell:
	wait           	1
	nobrkcodestart 	
	playfram       	0x11	# frame set 1
	wait           	1
	playfram       	0x22	# frame set 2
	wait           	1
	playfram       	0x33	# frame set 3
	wait           	1
	playfram       	0x44	# frame set 4
	wait           	1
	playfram       	0x55	# frame set 5
	wait           	1
	playfram       	0x66	# frame set 6
	wait           	1
	playfram       	0x77	# frame set 7
	wait           	1
	playfram       	0x88	# frame set 8
	wait           	1
	playfram       	0x99	# frame set 9
	wait           	1
	castspell      	
	playfram       	0xaa	# frame set 10
	playsnd        	98	# Bullet\TGhFir00.wav
	wait           	1
	playfram       	0xbb	# frame set 11
	wait           	1
	playfram       	0xcc	# frame set 12
	wait           	1
	playfram       	0xdd	# frame set 13
	wait           	1
	nobrkcodeend   	
	gotorepeatattk 	
	sigorder       	2
	goto           	GhostGndAttkToIdle

GhostWalking:
	nobrkcodeend   	
	playfram       	0xee	# frame set 14
	move           	0
	wait           	1
	playfram       	0x110	# frame set 16
	move           	0
	wait           	1
	goto           	GhostLocal01

GhostLocal01:
	playfram       	0x121	# frame set 17
	move           	4
	wait           	1
	playfram       	0x132	# frame set 18
	move           	4
	wait           	1
	playfram       	0x143	# frame set 19
	move           	4
	wait           	1
	playfram       	0x154	# frame set 20
	move           	4
	wait           	1
	playfram       	0x165	# frame set 21
	move           	4
	wait           	1
	playfram       	0x176	# frame set 22
	move           	4
	wait           	1
	playfram       	0x187	# frame set 23
	move           	4
	wait           	1
	playfram       	0x198	# frame set 24
	move           	6
	wait           	1
	playfram       	0x1a9	# frame set 25
	move           	4
	wait           	1
	playfram       	0x1ba	# frame set 26
	move           	4
	wait           	1
	playfram       	0x1cb	# frame set 27
	move           	4
	wait           	1
	playfram       	0x1dc	# frame set 28
	move           	4
	wait           	1
	playfram       	0xff	# frame set 15
	move           	5
	wait           	1
	goto           	GhostLocal01

GhostSpecialState1:
	playfram       	0x11	# frame set 1
	wait           	1
	playfram       	0x22	# frame set 2
	wait           	1
	playfram       	0x33	# frame set 3
	wait           	1
	playfram       	0x44	# frame set 4
	wait           	1
	playfram       	0x55	# frame set 5
	wait           	1
	playfram       	0x66	# frame set 6
	wait           	1
	playfram       	0x77	# frame set 7
	wait           	1
	playfram       	0x88	# frame set 8
	wait           	1
	playfram       	0x99	# frame set 9
	wait           	15
	goto           	GhostGndAttkToIdle


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