name	 	Truck3
health		300
type		enemy
nomove		1 1
nodieblink	2
gfxshadow	1
facing		1
death		1
defense		normal2 0 100
defense		normal3 0 100
animationscript	data/scripts/truck.c
takedamagescript data/scripts/blink.c

palette		data/chars/helicopter/truck1.png
alternatepal	data/chars/helicopter/trblink.png

load		RoadPig
load		Pager


anim spawn
	delay	10
	offset	170 215
	jumpframe 1 0 -2 0
	frame	data/chars/helicopter/truck1.png
	frame	data/chars/helicopter/truck2.png
	@cmd	spawnGun "Pager" -130 70 2 0
	@cmd	spawnGun "RoadPig" -70 95 1 1
	frame	data/chars/helicopter/truck1.png
	frame	data/chars/helicopter/truck2.png
	frame	data/chars/helicopter/truck1.png
	frame	data/chars/helicopter/truck2.png


anim idle
	loop    1
	delay	10
	offset	170 215
	frame	data/chars/helicopter/truck1.png
	@cmd	attack1 -500 0 150 "ANI_ATTACK1"
	frame	data/chars/helicopter/truck2.png

anim attack1
	loop	1
	delay	10
	offset	170 215
	bbox	70 90 210 125 20
	attack3	20 90 260 125 40 0 1 0 20 27
	counterattack 1
	frame	data/chars/helicopter/truck1.png
	@cmd	target 2 1 0 0 0 0
	@cmd	dash 0 1
	frame	data/chars/helicopter/truck2.png
	frame	data/chars/helicopter/truck1.png
	frame	data/chars/helicopter/truck2.png
	frame	data/chars/helicopter/truck1.png
	frame	data/chars/helicopter/truck2.png
	frame	data/chars/helicopter/truck1.png
	@cmd	target 2 1 0 0 0 0
	@cmd	dash 0 1
	frame	data/chars/helicopter/truck2.png
	frame	data/chars/helicopter/truck1.png
	frame	data/chars/helicopter/truck2.png
	frame	data/chars/helicopter/truck1.png
	frame	data/chars/helicopter/truck2.png
	frame	data/chars/helicopter/truck1.png
	@cmd	target 2 1 0 0 0 0
	@cmd	dash 0 1
	frame	data/chars/helicopter/truck2.png
	frame	data/chars/helicopter/truck1.png
	frame	data/chars/helicopter/truck2.png
	frame	data/chars/helicopter/truck1.png
	frame	data/chars/helicopter/truck2.png
	frame	data/chars/helicopter/truck1.png
	@cmd	target 2 1 0 0 0 0
	@cmd	dash 0 1
	frame	data/chars/helicopter/truck2.png
	frame	data/chars/helicopter/truck1.png
	frame	data/chars/helicopter/truck2.png
	frame	data/chars/helicopter/truck1.png
	attack	0
	frame	data/chars/helicopter/truck2.png


anim death
	delay	15
	offset	170 215
	frame	data/chars/helicopter/truck2.png
	@cmd	killgun	0 1
	@cmd	spawn01 "Asap" -60 90 0
	@cmd	spawn01 "Asap" -20 130 0
	@cmd	spawn01 "Asap" -100 50 0
	frame	data/chars/helicopter/truck1.png
	@cmd	spawn01 "Asap" -70 130 0
	@cmd	spawn01 "Asap" -140 90 0
	@cmd	spawn01 "Asap" -10 50 0
	frame	data/chars/helicopter/truck2.png
	@cmd	spawn01 "Asap" -160 50 0
	@cmd	spawn01 "Asap" -35 90 0
	@cmd	spawn01 "Asap" -85 130 0
	frame	data/chars/helicopter/truck1.png
	@cmd	spawn01 "Asap" -110 90 0
	@cmd	spawn01 "Asap" -50 50 0
	@cmd	spawn01 "Asap" -125 130 0
	frame	data/chars/helicopter/truck2.png #
	@cmd	spawn01 "Asap" -60 90 0
	@cmd	spawn01 "Asap" -20 130 0
	@cmd	spawn01 "Asap" -100 50 0
	frame	data/chars/helicopter/truck1.png
	@cmd	spawn01 "Asap" -70 130 0
	@cmd	spawn01 "Asap" -140 90 0
	@cmd	spawn01 "Asap" -10 50 0
	frame	data/chars/helicopter/truck2.png
	@cmd	spawn01 "Asap" -160 50 0
	@cmd	spawn01 "Asap" -35 90 0
	@cmd	spawn01 "Asap" -85 130 0
	frame	data/chars/helicopter/truck1.png
	@cmd	spawn01 "Asap" -110 90 0
	@cmd	spawn01 "Asap" -50 50 0
	@cmd	spawn01 "Asap" -125 130 0
	frame	data/chars/helicopter/truck2.png
	@cmd	spawn01 "Asap" -60 90 0
	@cmd	spawn01 "Asap" -20 130 0
	@cmd	spawn01 "Asap" -100 50 0
	frame	data/chars/helicopter/truck1.png
	@cmd	spawn01 "Asap" -70 130 0
	@cmd	spawn01 "Asap" -140 90 0
	@cmd	spawn01 "Asap" -10 50 0
	frame	data/chars/helicopter/truck2.png
	@cmd	spawn01 "Asap" -160 50 0
	@cmd	spawn01 "Asap" -35 90 0
	@cmd	spawn01 "Asap" -85 130 0
	frame	data/chars/helicopter/truck1.png
	@cmd	spawn01 "Asap" -110 90 0
	@cmd	spawn01 "Asap" -50 50 0
	@cmd	spawn01 "Asap" -125 130 0
	frame	data/chars/helicopter/truck2.png
	@cmd	dasher 2 0 0
	frame	data/chars/helicopter/truck1.png
	frame	data/chars/helicopter/truck2.png
	frame	data/chars/helicopter/truck1.png
	frame	data/chars/helicopter/truck2.png
	frame	data/chars/helicopter/truck1.png
	@cmd	killgun	1 0
	frame	data/chars/helicopter/truck2.png
	frame	data/chars/helicopter/truck1.png
	@cmd	suicide
	frame	data/chars/misc/empty.gif
