name	 	Moccasin
health		300
type		enemy
nomove		1 1
nodieblink	2
gfxshadow	1
facing		1
death		1
animationscript	data/scripts/truck.c
takedamagescript data/scripts/blink.c

palette		data/chars/helicopter/moccasin1.png
alternatepal	data/chars/helicopter/mocblink.png

load		bulletE
load		WaterBurst
load		WaterBurster


anim spawn
	delay	5
	offset	235 155
	jumpframe 1 0 2 0
	frame	data/chars/helicopter/moccasin1.png
	delay	144
	frame	data/chars/helicopter/moccasin1.png


anim idle
	loop    1
	delay	10
	offset	235 155
	frame	data/chars/helicopter/moccasin1.png
	@cmd	attack1 0 500 150 "ANI_ATTACK1"
	frame	data/chars/helicopter/moccasin2.png

anim attack1
	loop	1
	delay	10
	offset	235 155
	bbox	110 60 315 95
	attack3	240 112 300 43 40 0 1 0 20
	counterattack 1
	frame	data/chars/helicopter/moccasin1.png
	delay	50
	@cmd	target 2 1 0 0 0 0
	@cmd	dash 0 1
	frame	data/chars/helicopter/moccasin1.png
	@cmd	target 2 1 0 0 0 0
	@cmd	dash 0 1
	frame	data/chars/helicopter/moccasin1.png
	@cmd	target 2 1 0 0 0 0
	@cmd	dash 0 1
	frame	data/chars/helicopter/moccasin1.png
	@cmd	target 2 1 0 0 0 0
	@cmd	dash 0 1
	frame	data/chars/helicopter/moccasin1.png
	delay	15
	@cmd	dasher 0 0 0
	sound	data/sounds/mgun.wav
	@cmd	shoot "bulletE" 220 52 0
	frame	data/chars/helicopter/moccasin5.png
	@cmd	shoot "bulletE" 220 52 0
	frame	data/chars/helicopter/moccasin1.png
	@cmd	shoot "bulletE" 220 52 0
	frame	data/chars/helicopter/moccasin5.png
	@cmd	shoot "bulletE" 220 52 0
	frame	data/chars/helicopter/moccasin1.png
	delay	30
	frame	data/chars/helicopter/moccasin1.png
	delay	10
	@cmd	looper 1 3
	frame	data/chars/helicopter/moccasin1.png
	delay	36
	@cmd	dasher 2 0 0
	frame	data/chars/helicopter/moccasin1.png
	delay	10
	attack	0
	@cmd	dasher 0 0 0
	frame	data/chars/helicopter/moccasin1.png
	@cmd	anichange "ANI_FOLLOW1"
	frame	data/chars/helicopter/moccasin1.png

anim follow1
	delay	1
	offset	235 155
	bbox	110 60 315 95
	attack3	240 112 300 43 40 0 1 0 20
	counterattack 1
	frame	data/chars/helicopter/moccasin1.png
	delay	100
	frame	data/chars/helicopter/moccasin2.png
	delay	10
	@cmd	target 2 1 240 0 0 0
	frame	data/chars/helicopter/moccasin2.png
	@cmd	shootT "WaterBurster" 240 0 0
	frame	data/chars/helicopter/moccasin4.png
	frame	data/chars/helicopter/moccasin2.png
	frame	data/chars/helicopter/moccasin4.png
	frame	data/chars/helicopter/moccasin2.png
	frame	data/chars/helicopter/moccasin4.png
	frame	data/chars/helicopter/moccasin1.png
	frame	data/chars/helicopter/moccasin3.png
	frame	data/chars/helicopter/moccasin1.png
	frame	data/chars/helicopter/moccasin3.png
	delay	200
	frame	data/chars/helicopter/moccasin1.png
	delay	10
	@cmd	looper 1 3
	frame	data/chars/helicopter/moccasin1.png
	delay	36
	@cmd	dasher -2 0 0
	frame	data/chars/helicopter/moccasin1.png
	delay	10
	attack	0
	@cmd	dasher 0 0 0
	frame	data/chars/helicopter/moccasin1.png
	@cmd	anichange "ANI_ATTACK1"
	frame	data/chars/helicopter/moccasin1.png


anim death
	delay	15
	offset	235 155
	frame	data/chars/helicopter/moccasin2.png
	@cmd	spawn01 "Asap" 240 20 1
	@cmd	spawn01 "Asap" 120 40 1
	@cmd	spawn01 "Asap" 40 60 1
	@cmd	spawn01 "Asap" 0 80 1
	@cmd	spawn01 "Asap" 160 20 1
	frame	data/chars/helicopter/moccasin2.png
	@cmd	spawn01 "Asap" 80 20 1
	@cmd	spawn01 "Asap" 120 60 1
	@cmd	spawn01 "Asap" 40 40 1
	@cmd	spawn01 "Asap" 200 20 1
	@cmd	spawn01 "Asap" 0 20 1
	frame	data/chars/helicopter/moccasin2.png
	@cmd	spawn01 "Asap" 280 20 1
	@cmd	spawn01 "Asap" 240 40 1
	@cmd	spawn01 "Asap" 80 60 1
	@cmd	spawn01 "Asap" 0 40 1
	@cmd	spawn01 "Asap" 160 40 1
	frame	data/chars/helicopter/moccasin2.png
	@cmd	spawn01 "Asap" 200 40 1
	@cmd	spawn01 "Asap" 40 20 1
	@cmd	spawn01 "Asap" 0 60 1
	@cmd	spawn01 "Asap" 80 40 1
	@cmd	spawn01 "Asap" 120 20 1
	frame	data/chars/helicopter/moccasin2.png #
	@cmd	spawn01 "Asap" 240 20 1
	@cmd	spawn01 "Asap" 120 40 1
	@cmd	spawn01 "Asap" 40 60 1
	@cmd	spawn01 "Asap" 0 80 1
	@cmd	spawn01 "Asap" 160 20 1
	frame	data/chars/helicopter/moccasin2.png
	@cmd	spawn01 "Asap" 80 20 1
	@cmd	spawn01 "Asap" 120 60 1
	@cmd	spawn01 "Asap" 40 40 1
	@cmd	spawn01 "Asap" 200 20 1
	@cmd	spawn01 "Asap" 0 20 1
	frame	data/chars/helicopter/moccasin2.png
	@cmd	spawn01 "Asap" 280 20 1
	@cmd	spawn01 "Asap" 240 40 1
	@cmd	spawn01 "Asap" 80 60 1
	@cmd	spawn01 "Asap" 0 40 1
	@cmd	spawn01 "Asap" 160 40 1
	frame	data/chars/helicopter/moccasin2.png
	@cmd	spawn01 "Asap" 200 40 1
	@cmd	spawn01 "Asap" 40 20 1
	@cmd	spawn01 "Asap" 0 60 1
	@cmd	spawn01 "Asap" 80 40 1
	@cmd	spawn01 "Asap" 120 20 1
	frame	data/chars/helicopter/moccasin2.png #
	@cmd	spawn01 "Asap" 240 20 1
	@cmd	spawn01 "Asap" 120 40 1
	@cmd	spawn01 "Asap" 40 60 1
	@cmd	spawn01 "Asap" 0 80 1
	@cmd	spawn01 "Asap" 160 20 1
	frame	data/chars/helicopter/moccasin2.png
	@cmd	spawn01 "Asap" 80 20 1
	@cmd	spawn01 "Asap" 120 60 1
	@cmd	spawn01 "Asap" 40 40 1
	@cmd	spawn01 "Asap" 200 20 1
	@cmd	spawn01 "Asap" 0 20 1
	frame	data/chars/helicopter/moccasin2.png
	@cmd	spawn01 "Asap" 280 20 1
	@cmd	spawn01 "Asap" 240 40 1
	@cmd	spawn01 "Asap" 80 60 1
	@cmd	spawn01 "Asap" 0 40 1
	@cmd	spawn01 "Asap" 160 40 1
	frame	data/chars/helicopter/moccasin2.png
	@cmd	spawn01 "Asap" 200 40 1
	@cmd	spawn01 "Asap" 40 20 1
	@cmd	spawn01 "Asap" 0 60 1
	@cmd	spawn01 "Asap" 80 40 1
	@cmd	spawn01 "Asap" 120 20 1
	frame	data/chars/helicopter/moccasin2.png #
	@cmd	dasher -2 0 0
	@cmd	spawn01 "Asap" 240 20 1
	@cmd	spawn01 "Asap" 120 40 1
	@cmd	spawn01 "Asap" 40 60 1
	@cmd	spawn01 "Asap" 0 80 1
	@cmd	spawn01 "Asap" 160 20 1
	frame	data/chars/helicopter/moccasin2.png
	@cmd	spawn01 "Asap" 80 20 1
	@cmd	spawn01 "Asap" 120 60 1
	@cmd	spawn01 "Asap" 40 40 1
	@cmd	spawn01 "Asap" 200 20 1
	@cmd	spawn01 "Asap" 0 20 1
	frame	data/chars/helicopter/moccasin2.png
	@cmd	spawn01 "Asap" 280 20 1
	@cmd	spawn01 "Asap" 240 40 1
	@cmd	spawn01 "Asap" 80 60 1
	@cmd	spawn01 "Asap" 0 40 1
	@cmd	spawn01 "Asap" 160 40 1
	frame	data/chars/helicopter/moccasin2.png
	@cmd	spawn01 "Asap" 200 40 1
	@cmd	spawn01 "Asap" 40 20 1
	@cmd	spawn01 "Asap" 0 60 1
	@cmd	spawn01 "Asap" 80 40 1
	@cmd	spawn01 "Asap" 120 20 1
	frame	data/chars/helicopter/moccasin2.png #
	@cmd	spawn01 "Asap" 240 20 1
	@cmd	spawn01 "Asap" 120 40 1
	@cmd	spawn01 "Asap" 40 60 1
	@cmd	spawn01 "Asap" 0 80 1
	@cmd	spawn01 "Asap" 160 20 1
	frame	data/chars/helicopter/moccasin2.png
	@cmd	spawn01 "Asap" 80 20 1
	@cmd	spawn01 "Asap" 120 60 1
	@cmd	spawn01 "Asap" 40 40 1
	@cmd	spawn01 "Asap" 200 20 1
	@cmd	spawn01 "Asap" 0 20 1
	frame	data/chars/helicopter/moccasin2.png
	@cmd	spawn01 "Asap" 280 20 1
	@cmd	spawn01 "Asap" 240 40 1
	@cmd	spawn01 "Asap" 80 60 1
	@cmd	spawn01 "Asap" 0 40 1
	@cmd	spawn01 "Asap" 160 40 1
	frame	data/chars/helicopter/moccasin2.png
	@cmd	spawn01 "Asap" 200 40 1
	@cmd	spawn01 "Asap" 40 20 1
	@cmd	spawn01 "Asap" 0 60 1
	@cmd	spawn01 "Asap" 80 40 1
	@cmd	spawn01 "Asap" 120 20 1
	frame	data/chars/helicopter/moccasin2.png #
	@cmd	spawn01 "Asap" 240 20 1
	@cmd	spawn01 "Asap" 120 40 1
	@cmd	spawn01 "Asap" 40 60 1
	@cmd	spawn01 "Asap" 0 80 1
	@cmd	spawn01 "Asap" 160 20 1
	frame	data/chars/helicopter/moccasin2.png
	@cmd	spawn01 "Asap" 80 20 1
	@cmd	spawn01 "Asap" 120 60 1
	@cmd	spawn01 "Asap" 40 40 1
	@cmd	spawn01 "Asap" 200 20 1
	@cmd	spawn01 "Asap" 0 20 1
	frame	data/chars/helicopter/moccasin2.png
	@cmd	spawn01 "Asap" 280 20 1
	@cmd	spawn01 "Asap" 240 40 1
	@cmd	spawn01 "Asap" 80 60 1
	@cmd	spawn01 "Asap" 0 40 1
	@cmd	spawn01 "Asap" 160 40 1
	frame	data/chars/helicopter/moccasin2.png
	@cmd	spawn01 "Asap" 200 40 1
	@cmd	spawn01 "Asap" 40 20 1
	@cmd	spawn01 "Asap" 0 60 1
	@cmd	spawn01 "Asap" 80 40 1
	@cmd	spawn01 "Asap" 120 20 1
	frame	data/chars/helicopter/moccasin2.png #
	@cmd	suicide
	frame	data/chars/helicopter/moccasin2.png
