name	 	Truck
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		Pintu
load		Driver


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 "Pintu" 103 51 2 0
	@cmd	spawnGun "Driver" 92 65 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
	frame	data/chars/helicopter/truck1.png
	frame	data/chars/helicopter/truck2.png
	frame	data/chars/helicopter/truck1.png


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

anim attack1
	loop	1
	delay	10
	offset	170 215
	bbox	190 90 155 125 20
	attack3	140 90 205 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
	@cmd	attack1 0 500 30 "ANI_ATTACK2"
	frame	data/chars/helicopter/truck2.png
	frame	data/chars/helicopter/truck1.png
	attack	0
	frame	data/chars/helicopter/truck2.png

anim attack2
	delay	1
	offset	170 215
	bbox	190 90 155 125 20
	attack3	140 90 205 125 50 0 1 0 20 27
	counterattack 1
	frame	data/chars/helicopter/truck1.png
	delay	10
	@cmd	dasher 0 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	dasher 3 0 0
	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
	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	dasher 0 0 0
	frame	data/chars/helicopter/truck2.png
	frame	data/chars/helicopter/truck1.png
	@cmd	dasher -5 0 0
	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
	attack	0
	@cmd	dasher 0 0 0
	@cmd	beidle
	frame	data/chars/helicopter/truck2.png


anim death
	delay	15
	offset	170 215
	frame	data/chars/helicopter/truck2.png
	@cmd	spawn01 "Asap" -125 110 0
	@cmd	spawn01 "Asap" -35 85 0
	@cmd	spawn01 "Asap" 85 60 0
	@cmd	spawn01 "Asap" -85 30 0
	@cmd	spawn01 "Asap" 110 100 0
	@cmd	spawn01 "Asap" -50 80 0
	@cmd	spawn01 "Asap" -90 60 0
	@cmd	spawn01 "Asap" 140 50 0
	frame	data/chars/helicopter/truck1.png
	@cmd	spawn01 "Asap" 35 106 0
	@cmd	spawn01 "Asap" 65 80 0
	@cmd	spawn01 "Asap" -85 50 0
	@cmd	spawn01 "Asap" -125 30 0
	@cmd	spawn01 "Asap" -55 100 0
	@cmd	spawn01 "Asap" -90 90 0
	@cmd	spawn01 "Asap" 135 50 0
	@cmd	spawn01 "Asap" 0 40 0
	frame	data/chars/helicopter/truck2.png
	@cmd	spawn01 "Asap" 125 110 0
	@cmd	spawn01 "Asap" -115 70 0
	@cmd	spawn01 "Asap" -35 50 0
	@cmd	spawn01 "Asap" 35 40 0
	@cmd	spawn01 "Asap" 10 110 0
	@cmd	spawn01 "Asap" 110 80 0
	@cmd	spawn01 "Asap" 60 70 0
	@cmd	spawn01 "Asap" -50 40 0
	frame	data/chars/helicopter/truck1.png
	@cmd	spawn01 "Asap" -85 100 0
	@cmd	spawn01 "Asap" 125 70 0
	@cmd	spawn01 "Asap" 35 60 0
	@cmd	spawn01 "Asap" -25 30 0
	@cmd	spawn01 "Asap" 50 100 0
	@cmd	spawn01 "Asap" 140 75 0
	@cmd	spawn01 "Asap" 0 50 0
	@cmd	spawn01 "Asap" 65 40 0
	frame	data/chars/helicopter/truck2.png
	@cmd	spawn01 "Asap" 85 110 0
	@cmd	spawn01 "Asap" -65 70 0
	@cmd	spawn01 "Asap" -125 60 0
	@cmd	spawn01 "Asap" 110 40 0
	@cmd	spawn01 "Asap" -100 110 0
	@cmd	spawn01 "Asap" 0 80 0
	@cmd	spawn01 "Asap" 140 60 0
	@cmd	spawn01 "Asap" 50 50 0
	frame	data/chars/helicopter/truck1.png
	@cmd	spawn01 "Asap" -25 100 0
	@cmd	spawn01 "Asap" 40 90 0
	@cmd	spawn01 "Asap" -50 65 0
	@cmd	spawn01 "Asap" 110 40 0
	@cmd	spawn01 "Asap" 150 110 0
	@cmd	spawn01 "Asap" 40 80 0
	@cmd	spawn01 "Asap" 100 50 0
	@cmd	spawn01 "Asap" -110 40 0
	frame	data/chars/helicopter/truck2.png #
	@cmd	spawn01 "Asap" -125 110 0
	@cmd	spawn01 "Asap" -35 85 0
	@cmd	spawn01 "Asap" 85 60 0
	@cmd	spawn01 "Asap" -85 30 0
	@cmd	spawn01 "Asap" 110 100 0
	@cmd	spawn01 "Asap" -50 80 0
	@cmd	spawn01 "Asap" -90 60 0
	@cmd	spawn01 "Asap" 140 50 0
	frame	data/chars/helicopter/truck1.png
	@cmd	spawn01 "Asap" 35 106 0
	@cmd	spawn01 "Asap" 65 80 0
	@cmd	spawn01 "Asap" -85 50 0
	@cmd	spawn01 "Asap" -125 30 0
	@cmd	spawn01 "Asap" -55 100 0
	@cmd	spawn01 "Asap" -90 90 0
	@cmd	spawn01 "Asap" 135 50 0
	@cmd	spawn01 "Asap" 0 40 0
	frame	data/chars/helicopter/truck2.png
	@cmd	spawn01 "Asap" 125 110 0
	@cmd	spawn01 "Asap" -115 70 0
	@cmd	spawn01 "Asap" -35 50 0
	@cmd	spawn01 "Asap" 35 40 0
	@cmd	spawn01 "Asap" 10 110 0
	@cmd	spawn01 "Asap" 110 80 0
	@cmd	spawn01 "Asap" 60 70 0
	@cmd	spawn01 "Asap" -50 40 0
	frame	data/chars/helicopter/truck1.png
	@cmd	spawn01 "Asap" -85 100 0
	@cmd	spawn01 "Asap" 125 70 0
	@cmd	spawn01 "Asap" 35 60 0
	@cmd	spawn01 "Asap" -25 30 0
	@cmd	spawn01 "Asap" 50 100 0
	@cmd	spawn01 "Asap" 140 75 0
	@cmd	spawn01 "Asap" 0 50 0
	@cmd	spawn01 "Asap" 65 40 0
	frame	data/chars/helicopter/truck2.png
	@cmd	spawn01 "Asap" 85 110 0
	@cmd	spawn01 "Asap" -65 70 0
	@cmd	spawn01 "Asap" -125 60 0
	@cmd	spawn01 "Asap" 110 40 0
	@cmd	spawn01 "Asap" -100 110 0
	@cmd	spawn01 "Asap" 0 80 0
	@cmd	spawn01 "Asap" 140 60 0
	@cmd	spawn01 "Asap" 50 50 0
	frame	data/chars/helicopter/truck1.png
	@cmd	spawn01 "Asap" -25 100 0
	@cmd	spawn01 "Asap" 40 90 0
	@cmd	spawn01 "Asap" -50 65 0
	@cmd	spawn01 "Asap" 110 40 0
	@cmd	spawn01 "Asap" 150 110 0
	@cmd	spawn01 "Asap" 40 80 0
	@cmd	spawn01 "Asap" 100 50 0
	@cmd	spawn01 "Asap" -110 40 0
	frame	data/chars/helicopter/truck2.png #
	@cmd	dasher -2 0 0
	@cmd	spawn01 "Asap" -125 110 0
	@cmd	spawn01 "Asap" -35 85 0
	@cmd	spawn01 "Asap" 85 60 0
	@cmd	spawn01 "Asap" -85 30 0
	@cmd	spawn01 "Asap" 110 100 0
	@cmd	spawn01 "Asap" -50 80 0
	@cmd	spawn01 "Asap" -90 60 0
	@cmd	spawn01 "Asap" 140 50 0
	frame	data/chars/helicopter/truck1.png
	@cmd	spawn01 "Asap" 35 106 0
	@cmd	spawn01 "Asap" 65 80 0
	@cmd	spawn01 "Asap" -85 50 0
	@cmd	spawn01 "Asap" -125 30 0
	@cmd	spawn01 "Asap" -55 100 0
	@cmd	spawn01 "Asap" -90 90 0
	@cmd	spawn01 "Asap" 135 50 0
	@cmd	spawn01 "Asap" 0 40 0
	frame	data/chars/helicopter/truck2.png
	@cmd	spawn01 "Asap" 125 110 0
	@cmd	spawn01 "Asap" -115 70 0
	@cmd	spawn01 "Asap" -35 50 0
	@cmd	spawn01 "Asap" 35 40 0
	@cmd	spawn01 "Asap" 10 110 0
	@cmd	spawn01 "Asap" 110 80 0
	@cmd	spawn01 "Asap" 60 70 0
	@cmd	spawn01 "Asap" -50 40 0
	frame	data/chars/helicopter/truck1.png
	@cmd	spawn01 "Asap" -85 100 0
	@cmd	spawn01 "Asap" 125 70 0
	@cmd	spawn01 "Asap" 35 60 0
	@cmd	spawn01 "Asap" -25 30 0
	@cmd	spawn01 "Asap" 50 100 0
	@cmd	spawn01 "Asap" 140 75 0
	@cmd	spawn01 "Asap" 0 50 0
	@cmd	spawn01 "Asap" 65 40 0
	frame	data/chars/helicopter/truck2.png
	@cmd	spawn01 "Asap" 85 110 0
	@cmd	spawn01 "Asap" -65 70 0
	@cmd	spawn01 "Asap" -125 60 0
	@cmd	spawn01 "Asap" 110 40 0
	@cmd	spawn01 "Asap" -100 110 0
	@cmd	spawn01 "Asap" 0 80 0
	@cmd	spawn01 "Asap" 140 60 0
	@cmd	spawn01 "Asap" 50 50 0
	frame	data/chars/helicopter/truck1.png
	@cmd	spawn01 "Asap" -25 100 0
	@cmd	spawn01 "Asap" 40 90 0
	@cmd	spawn01 "Asap" -50 65 0
	@cmd	spawn01 "Asap" 110 40 0
	@cmd	spawn01 "Asap" 150 110 0
	@cmd	spawn01 "Asap" 40 80 0
	@cmd	spawn01 "Asap" 100 50 0
	@cmd	spawn01 "Asap" -110 40 0
	frame	data/chars/helicopter/truck2.png #
	@cmd	spawn01 "Asap" -125 110 0
	@cmd	spawn01 "Asap" -35 85 0
	@cmd	spawn01 "Asap" 85 60 0
	@cmd	spawn01 "Asap" -85 30 0
	@cmd	spawn01 "Asap" 110 100 0
	@cmd	spawn01 "Asap" -50 80 0
	@cmd	spawn01 "Asap" -90 60 0
	@cmd	spawn01 "Asap" 140 50 0
	frame	data/chars/helicopter/truck1.png
	@cmd	spawn01 "Asap" 35 106 0
	@cmd	spawn01 "Asap" 65 80 0
	@cmd	spawn01 "Asap" -85 50 0
	@cmd	spawn01 "Asap" -125 30 0
	@cmd	spawn01 "Asap" -55 100 0
	@cmd	spawn01 "Asap" -90 90 0
	@cmd	spawn01 "Asap" 135 50 0
	@cmd	spawn01 "Asap" 0 40 0
	frame	data/chars/helicopter/truck2.png
	@cmd	spawn01 "Asap" 125 105 0
	@cmd	spawn01 "Asap" -115 70 0
	@cmd	spawn01 "Asap" -35 50 0
	@cmd	spawn01 "Asap" 35 40 0
	@cmd	spawn01 "Asap" 10 110 0
	@cmd	spawn01 "Asap" 110 80 0
	@cmd	spawn01 "Asap" 60 70 0
	@cmd	spawn01 "Asap" -50 40 0
	frame	data/chars/helicopter/truck1.png
	@cmd	spawn01 "Asap" -85 100 0
	@cmd	spawn01 "Asap" 125 70 0
	@cmd	spawn01 "Asap" 35 60 0
	@cmd	spawn01 "Asap" -25 30 0
	@cmd	spawn01 "Asap" 50 100 0
	@cmd	spawn01 "Asap" 140 75 0
	@cmd	spawn01 "Asap" 0 50 0
	@cmd	spawn01 "Asap" 65 40 0
	frame	data/chars/helicopter/truck2.png
	@cmd	spawn01 "Asap" 85 110 0
	@cmd	spawn01 "Asap" -65 70 0
	@cmd	spawn01 "Asap" -125 60 0
	@cmd	spawn01 "Asap" 110 40 0
	@cmd	spawn01 "Asap" -100 110 0
	@cmd	spawn01 "Asap" 0 80 0
	@cmd	spawn01 "Asap" 140 60 0
	@cmd	spawn01 "Asap" 50 50 0
	frame	data/chars/helicopter/truck1.png
	@cmd	spawn01 "Asap" -25 100 0
	@cmd	spawn01 "Asap" 40 90 0
	@cmd	spawn01 "Asap" -50 65 0
	@cmd	spawn01 "Asap" 110 40 0
	@cmd	spawn01 "Asap" 150 110 0
	@cmd	spawn01 "Asap" 40 80 0
	@cmd	spawn01 "Asap" 100 50 0
	@cmd	spawn01 "Asap" -110 40 0
	frame	data/chars/helicopter/truck2.png #
	@cmd	killgun	0 0
	@cmd	killgun	1 0
	frame	data/chars/helicopter/truck1.png
	@cmd	suicide
	frame	data/chars/helicopter/truck1.png
