name	 	 Stinger
health		 300
type		 enemy
nomove		 1 1
nopain		 1
nodrop		 2
nodieblink	 2
gfxshadow	 1
death		 1
aggression	 15

animationscript	 data/scripts/truck.c
takedamagescript data/scripts/blink.c

palette		 data/chars/stinger/idle1.gif
alternatepal	 data/chars/stinger/blink.gif

load		 Cobra_Officer2
load		 StingRocket


anim spawn
	delay	10
	offset	140 210
	jumpframe 1 0 2 0
	frame	data/chars/stinger/idle1.gif
	frame	data/chars/stinger/idle2.gif
	frame	data/chars/stinger/idle3.gif
	frame	data/chars/stinger/idle4.gif
	frame	data/chars/stinger/idle1.gif
	frame	data/chars/stinger/idle2.gif
	frame	data/chars/stinger/idle3.gif
	frame	data/chars/stinger/idle4.gif
	frame	data/chars/stinger/idle1.gif
	frame	data/chars/stinger/idle2.gif
	frame	data/chars/stinger/idle3.gif
	frame	data/chars/stinger/idle4.gif
	frame	data/chars/stinger/idle1.gif
	frame	data/chars/stinger/idle2.gif
	frame	data/chars/stinger/idle3.gif
	frame	data/chars/stinger/idle4.gif
	frame	data/chars/stinger/idle1.gif
	frame	data/chars/stinger/idle2.gif
	sound	data/sounds/brake3.wav
	frame	data/chars/stinger/idle3.gif
	frame	data/chars/stinger/idle4.gif
	delay	100
	bbox	14 100 255 110 10
	@cmd	dasher 0 0 0
	@cmd	shooter2X "Cobra_Officer2" -42 128 -1 2 2 -0.5
	@cmd	shooter2X "Cobra_Officer2" -72 102 1 2 2 0.5
	@cmd	shooter2X "Cobra_Officer2" -103 103 -1 0 2 -0.8
	@cmd	shooter2X "Cobra_Officer2" -120 81 1 0 2 0.8
	frame	data/chars/stinger/idle5.gif


anim idle
	loop    1
	delay	50
	offset	140 210
	bbox	14 100 255 110 10
	frame	data/chars/stinger/idle5.gif

anim attack1
@script
    void self = getlocalvar("self");
    int  Enemy = openborvariant("count_enemies");

    if( Enemy < 3){
      performattack(self, openborconstant("ANI_FOLLOW1"));
    }
@end_script
	range	-100 200
	rangez	-15 15
	delay	1
	offset	140 210
	bbox	14 100 255 110 10
	attack	9 122 190 88 20 1 1 0 20 10
	dropv	3 0 0
	frame	data/chars/stinger/idle5.gif
	delay	10
	@cmd	dasher -2 0 0
	frame	data/chars/stinger/idle5.gif
	frame	data/chars/stinger/idle6.gif
	frame	data/chars/stinger/idle5.gif
	frame	data/chars/stinger/idle6.gif
	frame	data/chars/stinger/idle5.gif
	frame	data/chars/stinger/idle6.gif
	frame	data/chars/stinger/idle5.gif
	frame	data/chars/stinger/idle6.gif
	frame	data/chars/stinger/idle5.gif
	frame	data/chars/stinger/idle6.gif
	frame	data/chars/stinger/idle5.gif
	delay	100
	attack	0
	sound	data/sounds/brake3.wav
	@cmd	dasher 0 0 0
	frame	data/chars/stinger/idle6.gif
	delay	8
	@cmd	dasher 2.5 0 0
	attack	90 122 190 88 20 1 1 0 20 10
	dropv	2 4 0
	frame	data/chars/stinger/idle5.gif
	frame	data/chars/stinger/idle6.gif
	frame	data/chars/stinger/idle5.gif
	frame	data/chars/stinger/idle6.gif
	frame	data/chars/stinger/idle5.gif
	frame	data/chars/stinger/idle6.gif
	frame	data/chars/stinger/idle5.gif
	frame	data/chars/stinger/idle6.gif
	frame	data/chars/stinger/idle5.gif
	frame	data/chars/stinger/idle6.gif
	frame	data/chars/stinger/idle5.gif
	frame	data/chars/stinger/idle6.gif
	frame	data/chars/stinger/idle5.gif
	frame	data/chars/stinger/idle6.gif
	frame	data/chars/stinger/idle5.gif
	frame	data/chars/stinger/idle6.gif
	delay	100
	attack	0
	sound	data/sounds/brake3.wav
	@cmd	dasher 0 0 0
	frame	data/chars/stinger/idle5.gif
	delay	10
	attack	9 122 190 88 20 1 1 0 20 10
	dropv	3 0 0
	@cmd	dasher -2 0 0
	frame	data/chars/stinger/idle5.gif
	frame	data/chars/stinger/idle6.gif
	frame	data/chars/stinger/idle5.gif
	frame	data/chars/stinger/idle6.gif
	frame	data/chars/stinger/idle5.gif
	delay	100
	@cmd	dasher 0 0 0
	frame	data/chars/stinger/idle6.gif
	delay	10
	attack	0
	frame	data/chars/stinger/idle6.gif

anim attack3
@script
    void self = getlocalvar("self");
    int  Enemy = openborvariant("count_enemies");

    if( Enemy < 3){
      performattack(self, openborconstant("ANI_FOLLOW1"));
    }
@end_script
	range	-400 500
	rangez	-60 60
	delay	1
	offset	140 210
	bbox	14 100 255 110 10
	frame	data/chars/stinger/idle5.gif
	delay	100
	frame	data/chars/stinger/shoot1.gif
	delay	200
	sound	data/sounds/bom.wav
	@cmd	spawn01 "StingRocket" -115 137 0
	frame	data/chars/stinger/shoot2.gif
	delay	100
	frame	data/chars/stinger/shoot1.gif
	delay	200
	sound	data/sounds/bom.wav
	@cmd	spawn01 "StingRocket" -115 137 0
	frame	data/chars/stinger/shoot2.gif
	delay	100
	frame	data/chars/stinger/shoot1.gif

anim follow1
	delay	1
	offset	140 210
	bbox	14 100 255 110 10
	attack	9 122 190 88 20 1 1 0 20 10
	dropv	3 0 0
	frame	data/chars/stinger/idle5.gif
	delay	10
	@cmd	dasher -2 0 0
	frame	data/chars/stinger/idle5.gif
	frame	data/chars/stinger/idle6.gif
	frame	data/chars/stinger/idle5.gif
	frame	data/chars/stinger/idle6.gif
	frame	data/chars/stinger/idle5.gif
	frame	data/chars/stinger/idle6.gif
	frame	data/chars/stinger/idle5.gif
	frame	data/chars/stinger/idle6.gif
	frame	data/chars/stinger/idle5.gif
	frame	data/chars/stinger/idle6.gif
	frame	data/chars/stinger/idle5.gif
	bbox	0
	attack	0
	frame	data/chars/stinger/idle6.gif
	frame	data/chars/stinger/idle5.gif
	frame	data/chars/stinger/idle6.gif
	frame	data/chars/stinger/idle5.gif
	frame	data/chars/stinger/idle6.gif
	frame	data/chars/stinger/idle5.gif
	frame	data/chars/stinger/idle6.gif
	frame	data/chars/stinger/idle5.gif
	delay	100
	@cmd	dasher 0 0 0
	frame	data/chars/stinger/idle6.gif
	delay	10
	@cmd	dasher 2 0 0
	frame	data/chars/stinger/idle2.gif
	frame	data/chars/stinger/idle3.gif
	frame	data/chars/stinger/idle4.gif
	frame	data/chars/stinger/idle1.gif
	frame	data/chars/stinger/idle2.gif
	frame	data/chars/stinger/idle3.gif
	frame	data/chars/stinger/idle4.gif
	frame	data/chars/stinger/idle1.gif
	frame	data/chars/stinger/idle2.gif
	bbox	14 100 255 110 10
	attack	90 122 190 88 20 1 1 0 20 10
	dropv	2 4 0
	frame	data/chars/stinger/idle3.gif
	frame	data/chars/stinger/idle4.gif
	frame	data/chars/stinger/idle1.gif
	frame	data/chars/stinger/idle2.gif
	frame	data/chars/stinger/idle3.gif
	frame	data/chars/stinger/idle4.gif
	frame	data/chars/stinger/idle1.gif
	frame	data/chars/stinger/idle2.gif
	sound	data/sounds/brake3.wav
	frame	data/chars/stinger/idle3.gif
	frame	data/chars/stinger/idle4.gif
	delay	100
	@cmd	dasher 0 0 0
	@cmd	shooter2X "Cobra_Officer2" -42 128 -1 2 2 -0.5
	@cmd	shooter2X "Cobra_Officer2" -72 102 1 2 2 0.5
	@cmd	shooter2X "Cobra_Officer2" -103 103 -1 0 2 -0.8
	@cmd	shooter2X "Cobra_Officer2" -120 81 1 0 2 0.8
	frame	data/chars/stinger/idle5.gif
	delay	10
	attack	0
	frame	data/chars/stinger/idle5.gif


anim death
	delay	10
	offset	140 210
	frame	data/chars/stinger/idle5.gif
	@cmd	spawn01 "Asap" -125 40 0
	@cmd	spawn01 "Asap" -50 120 0
	@cmd	spawn01 "Asap" 25 80 0
	frame	data/chars/stinger/idle5.gif
	@cmd	spawn01 "Asap" 25 40 0
	@cmd	spawn01 "Asap" -75 80 0
	@cmd	spawn01 "Asap" 125 40 0
	frame	data/chars/stinger/idle5.gif
	@cmd	spawn01 "Asap" -125 80 0
	@cmd	spawn01 "Asap" 75 40 0
	@cmd	spawn01 "Asap" -25 80 0
	frame	data/chars/stinger/idle5.gif
	@cmd	spawn01 "Asap" -25 40 0
	@cmd	spawn01 "Asap" 25 120 0
	@cmd	spawn01 "Asap" 125 80 0
	frame	data/chars/stinger/idle5.gif
	@cmd	spawn01 "Asap" -75 40 0
	@cmd	spawn01 "Asap" -10 120 0
	@cmd	spawn01 "Asap" 75 80 0
	frame	data/chars/stinger/idle5.gif #
	@cmd	spawn01 "Asap" -125 40 0
	@cmd	spawn01 "Asap" -50 120 0
	@cmd	spawn01 "Asap" 25 80 0
	frame	data/chars/stinger/idle5.gif
	@cmd	spawn01 "Asap" 25 40 0
	@cmd	spawn01 "Asap" -75 80 0
	@cmd	spawn01 "Asap" 125 40 0
	frame	data/chars/stinger/idle5.gif
	@cmd	spawn01 "Asap" -125 80 0
	@cmd	spawn01 "Asap" 75 40 0
	@cmd	spawn01 "Asap" -25 80 0
	frame	data/chars/stinger/idle5.gif
	@cmd	spawn01 "Asap" -25 40 0
	@cmd	spawn01 "Asap" 25 120 0
	@cmd	spawn01 "Asap" 125 80 0
	frame	data/chars/stinger/idle5.gif
	@cmd	spawn01 "Asap" -75 40 0
	@cmd	spawn01 "Asap" -10 120 0
	@cmd	spawn01 "Asap" 75 80 0
	frame	data/chars/stinger/idle5.gif #
	offset	108 172
	blast	54 45 97 130 20 1
	@cmd	spawn01 "BXPlos2" 0 0 0
	frame	data/chars/misc/empty.gif
