name		 Adder
type		 enemy
health		 20
gfxshadow	 1
nolife		 1
nomove		 1
nopain		 1
nodrop		 2
death		 1
offscreenkill	 10000
defense		 normal 0
animationscript	 data/chars/cobras/jetsc.c
takedamagescript data/scripts/blink.c

palette		 data/chars/asp/adder1.png
alternatepal	 data/chars/asp/adblink.png

load		 Crew2
load		 AdderMiss1
load		 AdderMiss2
load		 AdderMiss3


anim idle
	loop	1
	delay	8
	offset  20 28
	bbox	7 18 37 11
	attack	7 18 37 11 200 0 1 1
	frame	data/chars/asp/adder1.png
	@cmd	attack1 0 400 -50 75 "ANI_ATTACK1"
	@cmd	attack2 -20 220 "ANI_ATTACK2" 0
	@cmd	attack1 -40 40 -10 400 "ANI_ATTACK3"
	frame	data/chars/asp/adder1.png

anim attack1
	range	40 400
	rangea	-50 25
	delay	8
	offset  20 28
	bbox	7 18 37 11
	attack	7 18 37 11 200 0 1 1
	frame	data/chars/asp/adder1.png
	delay	100
	sound	data/sounds/HydraGun.wav
	@cmd	target 1.5 1.5 -20 -10 0 1
	@cmd	shoot2 "AdderMiss1" -18 10
	frame	data/chars/asp/adder2.png

anim attack2
	range	40 400
	rangea	25 300
	delay	8
	offset  20 28
	bbox	7 18 37 11
	attack	7 18 37 11 200 0 1 1
	frame	data/chars/asp/adder3.png
	delay	100
	sound	data/sounds/HydraGun.wav
	@cmd	target 1.5 1.5 -20 -10 0 1
	@cmd	shoot2 "adderMiss2" -18 7
	frame	data/chars/asp/adder4.png
	delay	8
	frame	data/chars/asp/adder2.png

anim attack3
	range	-40 40
	rangea	25 300
	delay	8
	offset  20 28
	bbox	7 18 37 11
	attack	7 18 37 11 200 0 1 1
	frame	data/chars/asp/adder3.png
	frame	data/chars/asp/adder5.png
	delay	100
	sound	data/sounds/HydraGun.wav
	@cmd	target 1.5 1.5 -20 0 0 1
	@cmd	shoot2 "adderMiss3" -18 0
	frame	data/chars/asp/adder6.png
	delay	8
	frame	data/chars/asp/adder4.png
	frame	data/chars/asp/adder2.png


anim death
	delay	10
	offset  20 28
	frame	data/chars/asp/adder2.png
	@cmd	spawn01 "SpaceXplos" 0 0 0
	@cmd	spawn01 "Crew2" 0 1 0
	frame	data/chars/misc/empty.gif
