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

palette		 data/chars/asp/asp.png
alternatepal	 data/chars/asp/blink.png

load		 Crew2
load		 MiniBall


anim idle
	loop	1
	delay	10
	offset  23 33
	bbox	8 13 33 21
	attack	8 13 33 21 200 0 1 1
	frame	data/chars/asp/mini.png
	@cmd	attack1 40 400 -50 25 "ANI_ATTACK1"
	@cmd	attack1 40 400 25 300 "ANI_ATTACK2"
	@cmd	attack1 -40 40 -50 300 "ANI_ATTACK3"
	frame	data/chars/asp/mini.png

anim attack1
	range	40 400
	rangea	-50 25
	delay	10
	offset  23 33
	bbox	8 13 33 21
	attack	8 13 33 21 200 0 1 1
	frame	data/chars/asp/mini.png
	delay	80
	sound	data/sounds/HydraGun.wav
	@cmd	target 1.5 1.5 30 -10 0 1
	@cmd	shoot2 "MiniBall" 33 12
	frame	data/chars/asp/mini.png

anim attack2
	range	40 400
	rangea	25 300
	delay	10
	offset  23 33
	bbox	8 13 33 21
	attack	8 13 33 21 200 0 1 1
	frame	data/chars/asp/mini2.png
	delay	80
	sound	data/sounds/HydraGun.wav
	@cmd	target 1.5 1.5 25 -25 0 1
	@cmd	shoot2 "MiniBall" 26 27
	frame	data/chars/asp/mini2.png

anim attack3
	range	-40 40
	rangea	-50 300
	delay	10
	offset  23 33
	bbox	8 13 33 21
	attack	8 13 33 21 200 0 1 1
	frame	data/chars/asp/mini3.png
	delay	80
	sound	data/sounds/HydraGun.wav
	@cmd	target 1.5 1.5 10 -30 0 1
	@cmd	shoot2 "MiniBall" 12 33
	frame	data/chars/asp/mini3.png


anim death
	delay	10
	offset  23 33
	frame	data/chars/asp/mini.png
	@cmd	spawn01 "SpaceXplos" 0 0 0
	@cmd	spawn01 "Crew2" 0 1 0
	frame	data/chars/misc/empty.gif
