# ----------------------------------------------------------------------------- #
# This header is used by images.dat entries:
# ### Guntruck (hydra\terran\guntruck.grp)
.headerstart
IsId          	###
Type          	13
Init          	GuntruckInit
Death         	GuntruckDeath
GndAttkInit   	GuntruckGndAttkInit
AirAttkInit   	GuntruckGndAttkInit
Unused1       	[NONE]
GndAttkRpt    	GuntruckGndAttkInit
AirAttkRpt    	GuntruckGndAttkInit
CastSpell     	[NONE]
GndAttkToIdle 	GuntruckGndAttkToIdle
AirAttkToIdle 	GuntruckGndAttkToIdle
Unused2       	[NONE]
Walking       	GuntruckWalking
WalkingToIdle 	GuntruckGndAttkToIdle
SpecialState1 	[NONE]
.headerend
# ----------------------------------------------------------------------------- #

GuntruckInit:
	imgul             	### 0 7	# Guntruck Shadow (terran\guntruck.grp)
	playfram          	0x00	# Frame set 0
	goto              	GuntruckGndAttkToIdle

GuntruckGndAttkToIdle:
	setvertpos        	1 
	wait				1
	waitrand          	7 9
	setvertpos        	2 
	waitrand          	8 10 
	setvertpos        	1 
	waitrand          	8 10 
	setvertpos        	0 
	waitrand          	8 10 
	goto              	GuntruckGndAttkToIdle

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

GuntruckGndAttkInit:
	wait              	1 
	attackwith        	1 
	playsnd           	106	# Bullet\tvuFir00.wav
	gotorepeatattk
	goto              	GuntruckGndAttkToIdle

GuntruckWalking:
	playfram          	0x00	# Frame set 0
	setvertpos        	0 
	wait              	125 
	goto              	GuntruckGndAttkToIdle