# ----------------------------------------------------------------------------- #
# This header is used by images.dat entries:
# ### Soldier (soldier.grp)
.headerstart
IsId          	372
Type          	12
Init          	SoldierInit
Death         	SoldierDeath
GndAttkInit   	SoldierGndAttkInit
AirAttkInit   	[NONE]
Unused1       	[NONE]
GndAttkRpt    	SoldierGndAttkInit
AirAttkRpt    	[NONE]
CastSpell     	SoldierCastSpell
GndAttkToIdle 	SoldierGndAttkToIdle
AirAttkToIdle 	[NONE]
Unused2       	[NONE]
Walking       	SoldierWalking
WalkingToIdle 	SoldierInit
SpecialState1 	[NONE]
.headerend
# ----------------------------------------------------------------------------- #

SoldierInit:
	imgul             	### 0 0 # Soldier Shadow (soldier-shad.grp)
	playfram          	0x00
	goto				SoldierLocal00
	
SoldierGndAttkToIdle:
	playfram			0x99
	wait				1
	playfram          	0x00
	goto              	SoldierLocal00

SoldierLocal00:
	wait              	1 
	waitrand          	62 74 
	randcondjmp       	43 SoldierLocal01
	goto              	SoldierLocal00

SoldierLocal01:
	randcondjmp       	128 SoldierLocal02
	playfram          	0x11
	wait              	1 
	turnccwise        	1 
	playfram          	0x22
	wait              	1 
	turnccwise        	1 
	playfram          	0x11
	wait              	1 
	turnccwise        	1 
	playfram          	0x00
	wait              	1 
	turnccwise        	1 
	goto              	SoldierGndAttkToIdle

SoldierLocal02:
	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              	SoldierGndAttkToIdle

SoldierDeath:
	playsnd           	238	# Terran\Ghost\TGhDth00.wav
	setfldirect       	0 
	playfram          	0x00
	imgol             	3 0 0	# Scourge Death (zerg\zavDeath.grp)
	wait              	2 
	lowsprul          	230 0 0	# Ghost Remnants (terran\tghDeath.grp)
	wait              	1 
	end

SoldierGndAttkInit:
	playfram          	0x99
	wait              	1 
	nobrkcodestart
	playfram          	0xaa
	attackmelee       	1 664	# Protoss\ZEALOT\pzeHit00.WAV
	wait              	1 
	playfram          	0xbb
	wait              	1 
	playfram          	0xcc
	attackmelee       	1 664	# Protoss\ZEALOT\pzeHit00.WAV
	wait              	1 
	playfram			0xbb
	wait				1
	playfram			0x99
	nobrkcodeend
	gotorepeatattk
	ignorerest
	goto              	SoldierGndAttkToIdle

SoldierWalking:
	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              	SoldierWalking