name	 	RattlerS
health		100
type		enemy
nomove		1 1
nodrop		2
nopain		1
nodieblink	2
facing		2
death		1
offscreenkill	150
antigravity	100
animationscript	data/chars/cobras/jetsc.c
takedamagescript data/scripts/blink.c

load		JetBullet
load		RatMissile

palette		data/chars/cobras/rattler.png
alternatepal	data/chars/cobras/ratblink.png


anim spawn
	delay	1
	offset	125 50
	frame	data/chars/cobras/rattler.png
	delay	100
data sounds/Rattler.wav
	@cmd	shooter2 "RatMissile" 0 0 2 0
	frame	data/chars/cobras/rattler.png
	@cmd	shooter2 "RatMissile" 0 0 2 0
	frame	data/chars/cobras/rattler.png
	delay	200
	@cmd	shooter2 "RatMissile" 0 0 2 0
	frame	data/chars/cobras/rattler.png
	delay	30
	@cmd	teletarget 0 10
	@cmd	dasher -4.5 0 0 0
	bbox	16 29 204 22
	attack	16 29 204 22 50 0 0 0 10
	frame	data/chars/cobras/rattler.png
	delay	10
sound data/sounds/RatGun.wav
	@cmd	shooter2 "JetBullet" 112 2 3 0
	frame	data/chars/cobras/rattler.png
sound data/sounds/RatGun.wav
	@cmd	shooter2 "JetBullet" 112 2 3 0
	frame	data/chars/cobras/rattler.png
	delay	650
sound data/sounds/RatGun.wav
	@cmd	shooter2 "JetBullet" 112 2 3 0
	frame	data/chars/cobras/rattler.png


anim death
	delay	1
	offset	125 50
	frame	data/chars/cobras/rattler.png
	delay	10
	@cmd	dasher -2 -1 0 0
	@cmd	spawn01 "Asap" 30 9 1
	@cmd	spawn01 "Asap" 90 9 1
	@cmd	spawn01 "Asap" -30 9 1
	frame	data/chars/cobras/rattler.png
	@cmd	spawn01 "Asap" -60 9 1
	@cmd	spawn01 "Asap" 0 9 1
	@cmd	spawn01 "Asap" -120 9 1
	frame	data/chars/cobras/rattler.png
	@cmd	spawn01 "Asap" 60 9 1
	@cmd	spawn01 "Asap" -90 9 1
	frame	data/chars/cobras/rattler.png #
	@cmd	spawn01 "Asap" 30 9 1
	@cmd	spawn01 "Asap" 90 9 1
	@cmd	spawn01 "Asap" -30 9 1
	frame	data/chars/cobras/rattler.png
	@cmd	spawn01 "Asap" -60 9 1
	@cmd	spawn01 "Asap" 0 9 1
	@cmd	spawn01 "Asap" -120 9 1
	frame	data/chars/cobras/rattler.png
	@cmd	spawn01 "Asap" 60 9 1
	@cmd	spawn01 "Asap" -90 9 1
	frame	data/chars/cobras/rattler.png #
	@cmd	spawn01 "Asap" 30 9 1
	@cmd	spawn01 "Asap" 90 9 1
	@cmd	spawn01 "Asap" -30 9 1
	frame	data/chars/cobras/rattler.png
	@cmd	spawn01 "Asap" -60 9 1
	@cmd	spawn01 "Asap" 0 9 1
	@cmd	spawn01 "Asap" -120 9 1
	frame	data/chars/cobras/rattler.png
	@cmd	spawn01 "Asap" 60 9 1
	@cmd	spawn01 "Asap" -90 9 1
	frame	data/chars/cobras/rattler.png #
	@cmd	spawn01 "Asap" 30 9 1
	@cmd	spawn01 "Asap" 90 9 1
	@cmd	spawn01 "Asap" -30 9 1
	frame	data/chars/cobras/rattler.png
	@cmd	spawn01 "Asap" -60 9 1
	@cmd	spawn01 "Asap" 0 9 1
	@cmd	spawn01 "Asap" -120 9 1
	frame	data/chars/cobras/rattler.png
	@cmd	spawn01 "Asap" 60 9 1
	@cmd	spawn01 "Asap" -90 9 1
	frame	data/chars/cobras/rattler.png #
	@cmd	spawn01 "Asap" 30 9 1
	@cmd	spawn01 "Asap" 90 9 1
	@cmd	spawn01 "Asap" -30 9 1
	frame	data/chars/cobras/rattler.png
	@cmd	spawn01 "Asap" -60 9 1
	@cmd	spawn01 "Asap" 0 9 1
	@cmd	spawn01 "Asap" -120 9 1
	frame	data/chars/cobras/rattler.png
	@cmd	spawn01 "Asap" 60 9 1
	@cmd	spawn01 "Asap" -90 9 1
	frame	data/chars/cobras/rattler.png #
	@cmd	spawn01 "Asap" 30 9 1
	@cmd	spawn01 "Asap" 90 9 1
	@cmd	spawn01 "Asap" -30 9 1
	frame	data/chars/cobras/rattler.png
	@cmd	spawn01 "Asap" -60 9 1
	@cmd	spawn01 "Asap" 0 9 1
	@cmd	spawn01 "Asap" -120 9 1
	frame	data/chars/cobras/rattler.png
	@cmd	spawn01 "Asap" 60 9 1
	@cmd	spawn01 "Asap" -90 9 1
	frame	data/chars/cobras/rattler.png #
	@cmd	suicide
	frame	data/chars/cobras/rattler.png
