Frame 1
function EinheitMach(N, O, X) {
if ((_root.Anzahl < _root.FeindLimit) && (_root.Kills < _root.ToKill)) {
_root.Anzahl++;
_root.Feinde++;
_root.attachMovie(N, "A" + _root.Feinde, 2000 + O);
_root["A" + _root.Feinde]._x = X + random(66);
_root["A" + _root.Feinde].quality = 1;
_root["A" + _root.Feinde].NR = _root.Feinde;
_root["A" + _root.Feinde].NU = 999;
}
}
function ObjektMach() {
_root.Objects++;
_root.attachMovie("BackObject", "O" + _root.Objects, 1000 + _root.Objects);
_root["O" + _root.Objects]._x = random(1122) - 200;
_root["O" + _root.Objects]._y = _root.Ground2._y - random(5);
_root["O" + _root.Objects].gotoAndStop(random(8) + 1);
_root["O" + _root.Objects]._xscale = 40;
_root["O" + _root.Objects]._yscale = 40;
}
function Name() {
N = "Grunt";
i = random(111);
j = random(111);
k = random(111);
l = random(111);
m = random(111);
i = random(4);
j = random(5);
k = random(8);
l = random(13);
m = random(16);
if ((_root.Level > 0) && (i == 3)) {
N = "LBird";
}
if (((Kills > 6) && (j == 2)) && (_root.Level > 0)) {
N = "Humvee";
}
if ((_root.Level > 1) && (k == 2)) {
N = "Grunt_Stinger";
}
if ((_root.Level > 1) && (m == 3)) {
N = "Bradley";
}
if ((_root.Level > 2) && (k == 3)) {
N = "Apache";
}
if ((_root.Level > 3) && (l == 4)) {
N = "Abrahams";
}
if ((_root.Level > 3) && (m == 3)) {
N = "MLRS";
}
if (random(6) == 1) {
N = "Grunt";
}
if (N == _root.Last) {
N = "Grunt";
}
if (N == _root.Last2) {
N = "Grunt";
}
_root.Last2 = _root.Last;
_root.Last = N;
_root.Nam = N;
}
function Horizont() {
while (_root.Objects < _root.ObjektLimit) {
_root.ObjektMach();
}
}
function NewGame() {
_root.Level = 1;
_root.Stats.BHP._alpha = 0;
_root.Stats.Menue.Smt.gotoAndStop(2);
_root.HPMax = 200;
_root.ToKill = 25;
i = 1;
while ((i <= _root.Feinde) || (i <= _root.FRak)) {
_root["A" + i].removeMovieClip();
_root["Ro" + i].removeMovieClip();
i++;
}
_root.attachMovie("RH", "RH", 2500);
_root.Kills = 0;
_root.Feinde = 0;
_root.FRak = 0;
_root.Objects = 0;
_root.ObjektLimit = 8;
_root.FeindLimit = 7;
_root.ZielZeit = -20;
_root.ZielFind = -20;
_root.RH.HP = _root.Hitpoints;
_root.RH._rotation = 0;
_root.RH._x = -50;
_root.RH._y = 150;
_root.RH.BP = 3;
_root.RH.R1.play();
_root.RH.R2.play();
_root.RH.R3.play();
_root.RH.BTot._alpha = 0;
_root.RH.BTot.Gun.gotoAndStop(1);
_root.RH.BTot.Bombs.gotoAndStop(1);
_root.RH.BTot.Rockets.gotoAndStop(1);
_root.RH.Load = 0;
_root.Stats.Menue._alpha = 0;
_root.Fire = false;
_root.RFire = false;
_root.BFire = false;
_root.Raketen = 16;
_root.Bomben = 5;
_root.UVB = 0;
_root.KisteWart = random(50);
_root.GegnerWart = random(200) + 1;
_root.Stats.Lvl.NR.text = _root.Level;
_root.Anzahl = 0;
_root.Limit = 5;
_root.Score = 0;
_root.Stats.G_P.text = "";
J = 0;
while (J <= _root.FeindLimit) {
_root.Name();
J++;
_root.EinheitMach(_root.Nam, _root.Feinde, random(240) + 600);
T = _root.FeindLimit - _root.Anzahl;
T = T * 110;
}
}
var Kills = 0;
var HPMax = 200;
var Schwer = 1;
var Feinde = 0;
var FRak = 0;
var Objects = 0;
var ObjektLimit = 8;
var FeindLimit = 0;
var Wind = random(3);
var Last = "Grunt";
var Last2 = "Grunt";
var ZielZeit = -20;
var ZielFind = -20;
var QKey = 1;
var Score = 0;
var Level = 1;
var ToKill = ((10 * _root.Level) + 15);
var Paus = false;
var PD = false;
var Boden = 324;
var Oben = 70;
var Fire = false;
var RFire = false;
var BFire = false;
_root.RH._y = 777;
var Raketen = 12;
var Bomben = 5;
var UVB = 0;
var KisteWart = random(50);
var GegnerWart = random(201);
var Nam;
var Anzahl = 0;
var Limit = 5;
var Spiel = false;
Mouse.hide();
_root._quality = "MEDIUM";
_root.Horizont();
_root.attachMovie("Weg", "W1", 10000);
_root.W1.swapDepths(_root.Stats);
_root.attachMovie("Weg", "W3", 11000);
_root.W3.swapDepths(_root.Visier);
_root.attachMovie("Weg", "W4", 10009);
_root.W4.swapDepths(_root.ZR);
Symbol 11 MovieClip [RH_Kugel] Frame 1
if (_root.Paus == false) {
this._x = this._x - _root.RH.BP;
Winkel = (Math.PI * this._rotation) / 180;
X = Math.cos(Winkel);
Y = Math.sin(Winkel);
X = X * this.BP;
Y = Y * this.BP;
this._x = this._x - X;
this._y = this._y - Y;
j = 1;
while (j <= _root.Feinde) {
if ((this.hitTest(_root["A" + j].Body) == true) && (_root["A" + j].HP > 0)) {
_root["A" + j].HP = _root["A" + j].HP - this.Dam;
if (_root["A" + j].HP <= 0) {
_root.Score = _root.Score + _root["A" + j].Wert;
_root.Kills++;
_root["A" + j].NU = random(11) + 1;
_root.Anzahl--;
}
if ((_root["A" + j].Name != "Grunt") && (_root["A" + j].Name != "Grunt_Stinger")) {
this.gotoAndPlay(4);
} else {
this.gotoAndPlay(11);
}
}
j++;
}
if (this._x > 532) {
this.removeMovieClip();
}
if (this._x < -70) {
this.removeMovieClip();
}
if (this._y < -70) {
this.removeMovieClip();
}
if (this._y > _root.Boden) {
this.gotoAndPlay(4);
}
}
Symbol 11 MovieClip [RH_Kugel] Frame 2
gotoAndPlay (1);
Symbol 11 MovieClip [RH_Kugel] Frame 10
this.removeMovieClip();
Symbol 11 MovieClip [RH_Kugel] Frame 18
this.removeMovieClip();
Symbol 21 MovieClip [Kugel] Frame 1
if (_root.Paus == false) {
this._x = this._x - _root.RH.BP;
Winkel = (Math.PI * this._rotation) / 180;
X = Math.cos(Winkel);
Y = Math.sin(Winkel);
X = X * this.BP;
Y = Y * this.BP;
this._x = this._x - X;
this._y = this._y - Y;
if (this.hitTest(_root.RH.Ziel) == true) {
if (_root.UVB <= 0) {
_root.RH.HP = _root.RH.HP - this.Dam;
}
this.gotoAndPlay(4);
}
if (this._x < -40) {
this.removeMovieClip();
}
if (this._y < -40) {
this.removeMovieClip();
}
}
Symbol 21 MovieClip [Kugel] Frame 2
gotoAndPlay (1);
Symbol 21 MovieClip [Kugel] Frame 10
this.removeMovieClip();
Symbol 21 MovieClip [Kugel] Frame 18
this.removeMovieClip();
Symbol 31 MovieClip Frame 10
gotoAndPlay (1);
Symbol 31 MovieClip Frame 13
_parent._xscale = _parent._xscale - 10;
Symbol 31 MovieClip Frame 15
j = 1;
while (j <= _root.Feinde) {
if (((Ziel.hitTest(_root["A" + j].Body) == true) && (_root["A" + j].HP > 0)) && (_parent.Z != j)) {
_root["A" + j].HP = _root["A" + j].HP - (_parent.Dam * 0.4);
if (_root["A" + j].HP <= 0) {
_root.Kills++;
_root["A" + j].NU = random(11) + 1;
_root.Anzahl--;
_root.Score = _root.Score + _root["A" + j].Wert;
}
}
j++;
}
Symbol 31 MovieClip Frame 19
_parent.removeMovieClip();
Symbol 32 MovieClip [Red_Bombe] Frame 1
if (_root.Paus == false) {
B.play();
this._x = this._x - _root.RH.BP;
if (B._currentframe < 11) {
Winkel = (Math.PI * this._rotation) / 180;
X = Math.cos(Winkel);
Y = Math.sin(Winkel);
X = X * 3;
Y = Y * 3;
if (this._rotation < 90) {
this._rotation = this._rotation + 5;
}
this._x = this._x + X;
this._y = this._y + (Y + this.BP);
Z = 0;
j = 1;
while (j <= _root.Feinde) {
if ((this.hitTest(_root["A" + j].Body) == true) && (_root["A" + j].HP > 0)) {
_root["A" + j].HP = _root["A" + j].HP - this.Dam;
Z = j;
if (_root["A" + j].HP <= 0) {
_root.Kills++;
_root["A" + j].NU = random(11) + 1;
_root.Score = _root.Score + _root["A" + j].Wert;
_root.Anzahl--;
}
B.gotoAndPlay(11);
}
j++;
}
if (this._x > 548) {
this.removeMovieClip();
}
if (this._x < -70) {
this.removeMovieClip();
}
if (this._y < -70) {
this.removeMovieClip();
}
if (this._y > _root.Boden) {
B.gotoAndPlay(11);
Z = 111;
}
}
} else {
B.stop();
}
Symbol 32 MovieClip [Red_Bombe] Frame 2
gotoAndPlay (1);
Symbol 41 MovieClip Frame 10
gotoAndPlay (1);
Symbol 41 MovieClip Frame 11
_parent._xscale = _parent._xscale + 10;
_parent._yscale = _parent._yscale + 10;
Symbol 41 MovieClip Frame 16
j = 1;
while (j <= _root.Feinde) {
if (((this.hitTest(_root["A" + j].Body) == true) && (_root["A" + j].HP > 0)) && (_parent.Z != j)) {
_root["A" + j].HP = _root["A" + j].HP - (_parent.Dam * 0.5);
if (_root["A" + j].HP <= 0) {
_root.Kills++;
_root["A" + j].NU = random(11) + 1;
_root.Anzahl--;
_root.Score = _root.Score + _root["A" + j].Wert;
}
}
j++;
}
Symbol 41 MovieClip Frame 19
_parent.removeMovieClip();
Symbol 42 MovieClip [Red_Rakete] Frame 1
if (_root.Paus == false) {
Rocket.play();
this._x = this._x - _root.RH.BP;
if (Rocket._currentframe < 11) {
Winkel = (Math.PI * this._rotation) / 180;
X = Math.cos(Winkel);
Y = Math.sin(Winkel);
X = X * this.BP;
Y = Y * this.BP;
this._x = this._x + X;
this._y = this._y + Y;
Z = 0;
j = 1;
while (j <= _root.Feinde) {
if ((this.hitTest(_root["A" + j].Body) == true) && (_root["A" + j].HP > 0)) {
_root["A" + j].HP = _root["A" + j].HP - this.Dam;
Z = j;
if (_root["A" + j].HP <= 0) {
_root.Kills++;
_root["A" + j].NU = random(11) + 1;
_root.Score = _root.Score + _root["A" + j].Wert;
_root.Anzahl--;
}
Rocket.gotoAndPlay(11);
}
j++;
}
if (this._x > 598) {
this.removeMovieClip();
}
if (this._x < -70) {
this.removeMovieClip();
}
if (this._y < -70) {
this.removeMovieClip();
}
if (this._y > _root.Boden) {
Rocket.gotoAndPlay(11);
Z = 111;
}
}
} else {
Rocket.stop();
}
Symbol 42 MovieClip [Red_Rakete] Frame 2
gotoAndPlay (1);
Symbol 47 MovieClip Frame 10
gotoAndPlay (1);
Symbol 47 MovieClip Frame 11
_parent._xscale = _parent._xscale + 10;
_parent._yscale = _parent._yscale + 10;
Symbol 47 MovieClip Frame 16
Symbol 47 MovieClip Frame 19
_parent.removeMovieClip();
Symbol 48 MovieClip [Feind_Rakete] Frame 1
if (_root.Paus == false) {
Rocket.play();
this._x = this._x - _root.RH.BP;
if (Rocket._currentframe < 11) {
Winkel = (Math.PI * this._rotation) / 180;
X = Math.cos(Winkel);
Y = Math.sin(Winkel);
X = X * this.BP;
Y = Y * this.BP;
this._x = this._x - X;
this._y = this._y - Y;
if (this.Lenk > 0) {
this.Lenk--;
X = _root.RH._x - this._x;
Y = _root.RH._y - this._y;
no = false;
this._xscale = Math.abs(this._xscale);
Winkel = Math.atan2(Y, X);
Winkel = Winkel * 180;
Winkel = Winkel / Math.PI;
Winkel = Winkel + 170;
this._rotation = Winkel;
}
if (this.hitTest(_root.RH.Ziel) == true) {
if (_root.UVB <= 0) {
_root.RH.HP = _root.RH.HP - this.Dam;
}
Rocket.gotoAndPlay(11);
}
if (this._x < -40) {
this.removeMovieClip();
}
if (this._y < -40) {
this.removeMovieClip();
}
if (this._x > 600) {
this.removeMovieClip();
}
if (this._y > _root.Boden) {
Rocket.gotoAndPlay(11);
Z = 111;
}
}
} else {
Rocket.stop();
}
Symbol 48 MovieClip [Feind_Rakete] Frame 2
gotoAndPlay (1);
Symbol 59 MovieClip Frame 19
if (((_parent.HP <= 0) || (_root.Fire == false)) || (_root.Level == 6)) {
gotoAndPlay (1);
}
Symbol 59 MovieClip Frame 25
_root.FRak++;
_root.attachMovie("RH_Kugel", "Ro" + _root.FRak, 3000 + _root.FRak);
Winkel = -7.61;
Winkel = Winkel + (_root.RH._rotation / 46.8);
X1 = Math.cos(Winkel);
Y1 = Math.sin(Winkel);
X1 = X1 * 46.8;
Y1 = Y1 * 46.8;
Winkel = (Math.PI * this._rotation) / 180;
X = Math.cos(Winkel);
Y = Math.sin(Winkel);
X = X * 8;
Y = Y * 8;
_root["Ro" + _root.FRak].quality = 1;
_root["Ro" + _root.FRak]._x = (_parent._x - Y1) + X;
_root["Ro" + _root.FRak]._y = (_parent._y + X1) + Y;
_root["Ro" + _root.FRak].BP = 26;
_root["Ro" + _root.FRak].Dam = 1;
_root["Ro" + _root.FRak]._xscale = 62;
_root["Ro" + _root.FRak]._yscale = 62;
_root["Ro" + _root.FRak]._rotation = this._rotation + 180;
Symbol 59 MovieClip Frame 26
if (_root.Fire == true) {
gotoAndPlay (24);
}
Symbol 61 MovieClip Frame 1
if (_root.Bomben <= 0) {
gotoAndPlay (20);
}
Symbol 61 MovieClip Frame 8
if (_root.RFire == false) {
gotoAndPlay (1);
}
Symbol 61 MovieClip Frame 11
if (_root.Bomben > 0) {
_root.Bomben--;
Winkel = (Math.PI * this._rotation) / 180;
X = Math.cos(Winkel);
Y = Math.sin(Winkel);
X = X * 9;
Y = Y * 9;
_root.FRak++;
_root.attachMovie("Red_Bombe", "Ro" + _root.FRak, 3000 + _root.FRak);
_root["Ro" + _root.FRak].quality = 1;
_root["Ro" + _root.FRak]._x = _parent._x + X;
_root["Ro" + _root.FRak]._y = _parent._y - Y;
_root["Ro" + _root.FRak].BP = 9.4;
_root["Ro" + _root.FRak].Dam = 40;
_root["Ro" + _root.FRak].Lenk = 0;
_root["Ro" + _root.FRak]._xscale = 81;
_root["Ro" + _root.FRak]._yscale = 81;
_root["Ro" + _root.FRak]._rotation = 0;
_root["Ro" + _root.FRak]._rotation = _root["Ro" + _root.FRak]._rotation + (random(20) - 10);
}
if (_root.Bomben == 0) {
gotoAndPlay (22);
}
Symbol 61 MovieClip Frame 22
if (_root.RFire == true) {
gotoAndPlay (11);
}
if (_root.RFire == false) {
if (_root.Bomben > 0) {
gotoAndPlay (1);
} else {
gotoAndPlay (28);
}
}
Symbol 61 MovieClip Frame 29
gotoAndPlay (22);
Symbol 64 MovieClip Frame 1
if (_root.Raketen <= 0) {
gotoAndPlay (20);
}
Symbol 64 MovieClip Frame 8
if (_root.RFire == false) {
gotoAndPlay (1);
}
Symbol 64 MovieClip Frame 11
if (_root.Raketen > 0) {
_root.Raketen--;
Winkel = (Math.PI * this._rotation) / 180;
X = Math.cos(Winkel);
Y = Math.sin(Winkel);
X = X * 9;
Y = Y * 9;
_root.FRak++;
_root.attachMovie("Red_Rakete", "Ro" + _root.FRak, 3000 + _root.FRak);
_root["Ro" + _root.FRak].quality = 1;
_root["Ro" + _root.FRak]._x = _parent._x;
_root["Ro" + _root.FRak]._y = _parent._y;
_root["Ro" + _root.FRak].BP = 15;
_root["Ro" + _root.FRak].Dam = 16;
_root["Ro" + _root.FRak]._xscale = 77;
_root["Ro" + _root.FRak]._yscale = 77;
_root["Ro" + _root.FRak]._rotation = _parent.RR;
_root["Ro" + _root.FRak]._rotation = _root["Ro" + _root.FRak]._rotation + (random(7) - 3);
}
if (_root.Raketen == 0) {
gotoAndPlay (17);
}
Symbol 64 MovieClip Frame 16
if (_root.RFire == true) {
gotoAndPlay (11);
}
if (_root.RFire == false) {
if (_root.Raketen > 0) {
gotoAndPlay (1);
} else {
gotoAndPlay (20);
}
}
Symbol 64 MovieClip Frame 23
gotoAndPlay (16);
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 2
_alpha = 80;
Symbol 91 MovieClip Frame 19
Symbol 91 MovieClip Frame 26
stop();
Symbol 92 MovieClip Frame 1
if ((_root.Paus == false) && (_parent._x < 700)) {
if (_parent.HP <= 0) {
_parent.Ton._rotation = -_parent._rotation;
if (_parent.Ton._currentframe == 1) {
_parent.Ton.gotoAndPlay(2);
}
_parent.BP = 0;
if (_root.Spiel == true) {
_root.Stats.HPs.HP._width = 0;
}
_root.Spiel = false;
if (_parent.BTot._alpha < 100) {
_parent.BTot._alpha = _parent.BTot._alpha + 20;
}
if (_root.RH._y < _root.Boden) {
_root.RH._y = _root.RH._y + (11 + random(5));
_root.RH._x = _root.RH._x + random(4);
_root.RH._rotation = _root.RH._rotation + 2;
if (_root.Stats.G_P.text != "Game Over") {
_root.RH.R1.stop();
_root.RH.R2.stop();
_root.RH.R3.stop();
_root.RH.BTot.R1.gotoAndStop(_root.RH.R1._currentframe);
_root.RH.BTot.R2.gotoAndStop(_root.RH.R2._currentframe);
_root.RH.BTot.R3.gotoAndStop(_root.RH.R3._currentframe);
_root.Stats.G_P.text = "Game Over";
}
} else if (_root.Stats.Menue._alpha < 100) {
_root.Stats.Menue.Smt.gotoAndStop(1);
_root.Stats.Menue.Smt.EN.text = "<enter name>";
_root.Stats.Menue._alpha = 100;
}
}
if (_parent.HP > 0) {
if (T == -1) {
_parent.R1.play();
_parent.R2.play();
_parent.R3.play();
T = 0;
}
if (_root.UVB > 0) {
_root.UVB = _root.UVB - 0.8;
}
if (_root.UVB <= 0) {
_root.RH.Korpus._alpha = 100;
}
_parent._x = _parent._x + (random(2) - random(2));
_parent._y = _parent._y + (random(2) - random(2));
X = _root._xmouse - _root.RH._x;
Y = _root._ymouse - _root.RH._y;
Winkel = Math.atan2(Y, X);
Winkel = Winkel * 180;
Winkel = Winkel / Math.PI;
_parent.Gun._rotation = Winkel;
if ((X > 0) && (X > Math.abs(Y))) {
_parent.RR = Winkel;
} else {
if (Y > 0) {
_parent.RR = 45;
}
if (Y < 0) {
_parent.RR = -45;
}
}
}
} else {
_parent.R1.stop();
_parent.R2.stop();
_parent.R3.stop();
T = -1;
}
Symbol 92 MovieClip Frame 2
gotoAndPlay (1);
Symbol 93 MovieClip Frame 1
if ((_parent.HP > 0) && (_root.Paus == false)) {
an = false;
if (Key.isDown(87) && (_parent._y > (30 + _root.Oben))) {
_parent._y = _parent._y - 6;
}
if (Key.isDown(83) && (_parent._y < (_root.Boden - 40))) {
_parent._y = _parent._y + 6;
}
if ((Key.isDown(65) && (_parent._x > 110)) && (_root.Level != 6)) {
_parent._x = _parent._x - 8;
an = true;
if (_parent._rotation > -10) {
_parent._rotation = _parent._rotation - 3;
}
}
if (((Key.isDown(68) && (_parent._x < 450)) || (_parent._x < 100)) || (_root.Level == 6)) {
_parent._x = _parent._x + 8;
an = true;
if (_parent._rotation < 10) {
_parent._rotation = _parent._rotation + 3;
}
}
if (an == false) {
if (_parent._rotation > 0) {
_parent._rotation--;
}
if (_parent._rotation < 0) {
_parent._rotation++;
}
}
if (_root.Level != 6) {
if (Key.isDown(32)) {
_root.RFire == true;
if (_root.RH.Rockets._currentframe < 10) {
_root.RH.Rockets.gotoAndPlay(10);
}
} else {
_root.RFire == false;
}
if (Key.isDown(69)) {
_root.BFire == true;
if (_root.RH.Bombs._currentframe < 10) {
_root.RH.Bombs.gotoAndPlay(10);
}
} else {
_root.BFire == false;
}
if (_root.Fire == true) {
if (_parent.Gun._currentframe < 20) {
_parent.Gun.gotoAndPlay(23);
}
}
}
}
Symbol 93 MovieClip Frame 2
gotoAndPlay (1);
Symbol 94 MovieClip [RH] Frame 1
function onMouseDown() {
_root.Click = true;
_root.Fire = true;
}
function onMouseUp() {
_root.Click = false;
_root.Fire = false;
}
var BP = 3;
var HP = _root.HPMax;
var Load = 0;
var RR = 0;
BTot._alpha = 0;
BTot.Gun.gotoAndStop(1);
BTot.Bombs.gotoAndStop(1);
BTot.Rockets.gotoAndStop(1);
Ton.gotoAndStop(1);
Symbol 103 MovieClip Frame 19
if (((((random(6) == 2) || (_parent.HP <= 0)) || (_root.RH.HP <= 0)) || (_parent._x > 580)) || (_parent._x < 0)) {
gotoAndPlay (1);
}
Symbol 103 MovieClip Frame 22
var Shots = (random(14) + 5);
Symbol 103 MovieClip Frame 25
Shots--;
_root.FRak++;
_root.attachMovie("Kugel", "Ro" + _root.FRak, 3000 + _root.FRak);
Winkel = (Math.PI * this._rotation) / 180;
X = Math.cos(Winkel);
Y = Math.sin(Winkel);
X = X * 20;
Y = Y * 20;
_root["Ro" + _root.FRak].quality = 1;
_root["Ro" + _root.FRak]._x = (_parent._x + this._x) - X;
_root["Ro" + _root.FRak]._y = (_parent._y + this._y) - Y;
_root["Ro" + _root.FRak].BP = 16;
_root["Ro" + _root.FRak].Dam = 1.6;
_root["Ro" + _root.FRak]._xscale = 62;
_root["Ro" + _root.FRak]._yscale = 62;
_root["Ro" + _root.FRak]._rotation = this._rotation;
Symbol 103 MovieClip Frame 26
if ((Shots > 0) && (_parent.HP > 0)) {
gotoAndPlay (24);
}
Symbol 105 MovieClip Frame 1
if (_root.Paus == false) {
_parent._x = _parent._x - _root.RH.BP;
if (_parent.HP > 0) {
fertig = false;
if (T == -1) {
_parent.RW.play();
_parent.Gun.play();
_parent.Gun2.play();
_parent.Body.play();
_parent.Body.Leg1.play();
_parent.Body.Leg2.play();
_parent.R1.play();
_parent.R2.play();
_parent.R3.play();
_parent.R4.play();
_parent.R5.play();
}
T = 0;
if (_parent.RZiel == true) {
_root.ZR._x = _parent._x + _parent.Body._x;
_root.ZR._y = _parent._y + _parent.Body._y;
}
if ((((_parent.Body.hitTest(_root.RH.Ziel) == true) && (_root.RH._y < _root.Boden)) && (_root.UVB <= 0)) && (_root.RH.HP > 0)) {
_root.RH.HP = _root.RH.HP - _parent.Stoss;
_parent.HP = _parent.HP - 20;
if (_parent.HP <= 0) {
_root.Kills++;
_parent.NU = random(11) + 1;
_root.Score = _root.Score + _parent.Wert;
_root.Anzahl--;
}
}
X = _root.RH._x - _parent._x;
Y = _root.RH._y - _parent._y;
no = false;
_parent._xscale = Math.abs(_parent._xscale);
Winkel = Math.atan2(Y, X);
Winkel = Winkel * 180;
Winkel = Winkel / Math.PI;
Winkel = Winkel + 180;
_parent.RW._rotation = Winkel;
if ((X > 0) && (_parent.Name != "Apache")) {
no = true;
}
if ((Y < 0) && (_parent.Name == "Apache")) {
no = true;
}
if (_root.RH.HP <= 0) {
Winkel = 0;
no = false;
}
if ((X < 0) && (Math.abs(X) > Math.abs(Y))) {
_parent.RR = Winkel;
} else {
if (Y > 0) {
_parent.RR = 45;
}
if (Y < 0) {
_parent.RR = -45;
}
}
if (no == false) {
_parent.Head._rotation = Winkel;
_parent.Gun._rotation = Winkel;
_parent.Gun2._rotation = Winkel;
_parent.Arm1._rotation = Winkel;
}
if (_parent.Fly == false) {
if (_parent.Weg > 0) {
_parent._x = _parent._x - _parent.BP;
_parent.Weg--;
if (_parent.Body.Leg1._currentframe > 25) {
_parent.Body.Leg1.gotoAndStop(_parent.Body.Leg1._currentframe - 25);
_parent.Body.Leg2.gotoAndStop(_parent.Body.Leg2._currentframe - 25);
}
if (_parent.Body.Leg1._currentframe == 1) {
_parent.Body.Leg2.gotoAndPlay(14);
}
_parent.Body.Leg1.play();
_parent.Body.Leg2.play();
_parent.R1.play();
_parent.R2.play();
_parent.R3.play();
_parent.R4.play();
_parent.R5.play();
}
if (_parent.Weg < 0) {
_parent.Weg++;
if ((_parent.Name == "Grunt") || (_parent.Name == "Grunt_Stinger")) {
if (_parent.Body.Leg1._currentframe < 25) {
_parent.Body.Leg1.gotoAndStop(_parent.Body.Leg1._currentframe + 25);
_parent.Body.Leg2.gotoAndStop(_parent.Body.Leg2._currentframe + 25);
}
} else {
_parent.R1.stop();
_parent.R2.stop();
_parent.R3.stop();
_parent.R4.stop();
_parent.R5.stop();
}
}
if (_parent.Weg == 0) {
_parent.Weg = random(30) - 11;
if (_parent.Weg > 0) {
}
}
} else {
if (_parent._rotation > -10) {
_parent._rotation = _parent._rotation - random(2);
}
if ((_parent._rotation < 10) && (_parent._y > (40 + _root.Oben))) {
_parent._rotation = _parent._rotation + random(2);
}
Winkel = (Math.PI * _parent._rotation) / 180;
X = Math.cos(Winkel);
Y = Math.sin(Winkel);
X = X * _parent.BP;
Y = Y * _parent.BP;
_parent._x = _parent._x - X;
_parent._y = _parent._y - Y;
}
if (_parent._x < -140) {
if (_parent.HP > 0) {
_root.Anzahl--;
}
_parent.HP = 0;
if (_parent.RZiel == true) {
_parent.RZiel = false;
_root.ZielFind = -20;
}
_root.Name();
_root.EinheitMach(_root.Nam, _root.Feinde, random(240) + 600);
_parent.removeMovieClip();
}
} else {
if (_parent.NU > 0) {
_parent.NU = _parent.NU - random(2);
} else {
_root.EinheitMach(_root.Nam, _root.Feinde, random(240) + 600);
_parent.NU = 666;
}
T = 1;
_parent.BTot.R1.gotoAndStop(_parent.R1._currentframe);
_parent.BTot.R2.gotoAndStop(_parent.R2._currentframe);
_parent.R1.stop();
_parent.R2.stop();
_parent.R3.stop();
_parent.R4.stop();
_parent.R5.stop();
_parent.RW.stop();
_parent.BTot.Gun._rotation = _parent.Gun._rotation;
_parent.BTot.Gun2._rotation = _parent.Gun2._rotation;
_parent.BTot.RW._rotation = _parent.RW._rotation;
_parent.Gun.gotoAndStop(1);
_parent.Body.Leg1.gotoAndStop(_parent.Body.Leg1._currentframe + 25);
_parent.Body.Leg2.gotoAndStop(_parent.Body.Leg2._currentframe + 25);
if (_parent.Ton._currentframe == 1) {
_parent.Ton.gotoAndPlay(2);
}
if (_parent.BTot._alpha < 100) {
_parent.BTot._alpha = _parent.BTot._alpha + 20;
}
if (_parent.Fly == false) {
if ((_parent.Name == "Grunt") || (_parent.Name == "Grunt_Stinger")) {
if (_parent._currentframe == 3) {
if (_parent._y < _root.Boden) {
_parent._y = _parent._y + 6;
u = 10 + random(5);
_parent._rotation = _parent._rotation + u;
_parent.Para._rotation = _parent.Para._rotation - u;
_parent.Head._rotation = -30;
_parent.Para._alpha = _parent.Para._alpha - 10;
} else {
fertig = true;
}
} else if ((_parent._rotation * -1) >= 90) {
fertig = true;
} else {
_parent.Gun._rotation = -50;
_parent.Arm1._rotation = -50;
_parent._rotation = _parent._rotation - 17;
}
} else {
_parent.Head._rotation = -40;
if (_parent.HP > -1000) {
_parent.HP = _parent.HP - 100;
} else {
fertig = true;
}
}
} else if ((_parent._y + 5) < _root.Boden) {
_parent._y = _parent._y + (9 + random(5));
_parent._x = _parent._x - random(4);
_parent._rotation = _parent._rotation - 2;
_parent.Ton._rotation = _parent.Ton._rotation + 2;
} else {
fertig = true;
}
if (fertig == true) {
_parent._alpha = _parent._alpha - 5;
if (_parent._alpha <= 0) {
_root.Name();
_parent.removeMovieClip();
}
}
}
} else {
T = -1;
_parent.R1.stop();
_parent.R2.stop();
_parent.R3.stop();
_parent.R4.stop();
_parent.R5.stop();
_parent.RW.stop();
_parent.Gun.stop();
_parent.Gun2.stop();
_parent.Body.stop();
_parent.Body.Leg1.stop();
_parent.Body.Leg2.stop();
_parent.BTot.R1.gotoAndStop(_parent.R1._currentframe);
_parent.BTot.R2.gotoAndStop(_parent.R2._currentframe);
}
Symbol 105 MovieClip Frame 2
gotoAndPlay (1);
Symbol 106 MovieClip [LBird] Frame 1
var Name = "LBird";
var HP = 9;
var Load = 0;
var BP = 4;
var Fly = true;
var Weg = 330;
var Stoss = 33;
var T = 0;
this._y = (random(_root.Boden - 200) + 40) + _root.Oben;
var Links = true;
BTot._alpha = 0;
BTot.Gun.gotoAndStop(1);
BTot.R1.gotoAndStop(1);
BTot.R2.gotoAndStop(1);
var RZiel = false;
var Wert = 15;
Symbol 112 MovieClip Frame 8
_parent.Load--;
if ((((((_parent.Load > 0) || (random(6) == 2)) || (_parent.HP <= 0)) || (_root.RH.HP <= 0)) || (_parent._x > 580)) || (_parent._x < 0)) {
gotoAndPlay (1);
} else if (random(3) == 1) {
gotoAndPlay (9);
} else {
_parent.Load = 25;
R = random(3) + 2;
gotoAndPlay (11);
}
Symbol 112 MovieClip Frame 9
_parent.Load = 10;
_root.FRak++;
_root.attachMovie("Feind_Rakete", "Ro" + _root.FRak, 3000 + _root.FRak);
_root["Ro" + _root.FRak]._x = _parent._x + this._x;
_root["Ro" + _root.FRak]._y = _parent._y + this._y;
_root["Ro" + _root.FRak].BP = 8;
_root["Ro" + _root.FRak].Dam = 15;
_root["Ro" + _root.FRak].Lenk = 40;
_root["Ro" + _root.FRak]._xscale = 87;
_root["Ro" + _root.FRak]._yscale = 87;
_root["Ro" + _root.FRak]._rotation = _parent._rotation + _parent.RR;
Symbol 112 MovieClip Frame 10
gotoAndPlay (2);
Symbol 112 MovieClip Frame 11
R--;
_root.FRak++;
_root.attachMovie("Feind_Rakete", "Ro" + _root.FRak, 3000 + _root.FRak);
_root["Ro" + _root.FRak]._x = _parent._x + this._x;
_root["Ro" + _root.FRak]._y = _parent._y + this._y;
_root["Ro" + _root.FRak].BP = 8;
_root["Ro" + _root.FRak].Dam = 8;
_root["Ro" + _root.FRak].Lenk = 0;
_root["Ro" + _root.FRak]._xscale = 77;
_root["Ro" + _root.FRak]._yscale = 77;
_root["Ro" + _root.FRak]._rotation = _parent._rotation + _parent.RR;
_root["Ro" + _root.FRak]._rotation = _root["Ro" + _root.FRak]._rotation + (random(20) - 10);
_root["Ro" + _root.FRak].quality = 1;
Symbol 112 MovieClip Frame 16
if (R > 0) {
gotoAndPlay (11);
}
Symbol 115 MovieClip [Apache] Frame 1
var Name = "Apache";
var HP = 25;
var Load = 0;
var BP = 3;
var Fly = true;
var Weg = 330;
var Stoss = 35;
var T = 0;
this._y = (random(_root.Boden - 200) + 40) + _root.Oben;
var Links = true;
BTot._alpha = 0;
BTot.Gun.gotoAndStop(1);
BTot.R1.gotoAndStop(1);
BTot.R2.gotoAndStop(1);
var RZiel = false;
var Wert = 40;
Symbol 130 MovieClip [Humvee] Frame 1
R1.gotoAndPlay(random(9) + 1);
R2.gotoAndPlay(random(9) + 1);
R3.gotoAndPlay(random(9) + 1);
R4.gotoAndPlay(random(9) + 1);
var T = 0;
var HP = 12;
var BP = 3.8;
var Weg = 0;
var Name = "Humvee";
var Fly = false;
var Stoss = 29;
BTot._alpha = 0;
this._y = _root.Boden;
BTot.R1.gotoAndStop(1);
BTot.R2.gotoAndStop(1);
BTot.R3.gotoAndStop(1);
BTot.R4.gotoAndStop(1);
BTot.Gun.gotoAndStop(1);
var Wert = 15;
Symbol 135 MovieClip Frame 25
if (_parent.Weg > 0) {
gotoAndPlay (1);
}
Symbol 145 MovieClip Frame 26
if (((((random(6) == 2) || (_root.RH.HP <= 0)) || (_parent.HP <= 0)) || (_parent._x > 580)) || (_parent._x < 0)) {
gotoAndPlay (1);
}
Symbol 145 MovieClip Frame 33
_root.FRak++;
_root.attachMovie("Feind_Rakete", "Ro" + _root.FRak, 3000 + _root.FRak);
Winkel = (Math.PI * this._rotation) / 180;
X = Math.cos(Winkel);
Y = Math.sin(Winkel);
X = X * 20;
Y = Y * 20;
_root["Ro" + _root.FRak].quality = 1;
_root["Ro" + _root.FRak]._x = (_parent._x + this._x) - X;
_root["Ro" + _root.FRak]._y = ((_parent._y + this._y) + 2) - Y;
_root["Ro" + _root.FRak].BP = 9;
_root["Ro" + _root.FRak].Dam = 14;
_root["Ro" + _root.FRak].Lenk = 31;
_root["Ro" + _root.FRak]._xscale = 72;
_root["Ro" + _root.FRak]._yscale = 52;
_root["Ro" + _root.FRak]._rotation = this._rotation;
Symbol 148 MovieClip [Grunt_Stinger] Frame 1
Body.Leg1.gotoAndPlay(13);
var HP = 3;
var BP = 1.8;
var Links = true;
var Weg = 0;
var Name = "Grunt_Stinger";
var Fly = false;
var Stoss = 5;
this._y = _root.Boden;
var RZiel = false;
var T = 0;
var Wert = 10;
stop();
Symbol 148 MovieClip [Grunt_Stinger] Frame 13
stop();
Symbol 159 MovieClip Frame 19
if ((((((random(6) == 2) || (_root.RH.HP <= 0)) || (_parent.HP <= 0)) || (_parent._x > 580)) || (_parent._x < 0)) || (_parent._y < 50)) {
gotoAndPlay (1);
}
Symbol 159 MovieClip Frame 22
var Shots = random(6);
if (Shots == 0) {
gotoAndPlay (1);
}
Symbol 159 MovieClip Frame 26
Shots--;
_root.FRak++;
_root.attachMovie("Kugel", "Ro" + _root.FRak, 3000 + _root.FRak);
Winkel = (Math.PI * this._rotation) / 180;
X = Math.cos(Winkel);
Y = Math.sin(Winkel);
X = X * 10;
Y = Y * 10;
_root["Ro" + _root.FRak]._x = (_parent._x + this._x) - X;
_root["Ro" + _root.FRak]._y = ((_parent._y + this._y) + 2) - Y;
_root["Ro" + _root.FRak].BP = 16;
_root["Ro" + _root.FRak].Dam = 1.3;
_root["Ro" + _root.FRak]._xscale = 52;
_root["Ro" + _root.FRak]._yscale = 52;
_root["Ro" + _root.FRak]._rotation = this._rotation;
Symbol 159 MovieClip Frame 27
if ((Shots > 0) && (_parent.HP > 0)) {
gotoAndPlay (24);
}
Symbol 162 MovieClip Frame 1
if (_root.Paus == false) {
if ((_parent._y + 15) > _root.Boden) {
_parent.Para._alpha = _parent.Para._alpha - 7;
_parent.Para._xscale = _parent.Para._xscale - 11;
_parent.Para._yscale = _parent.Para._yscale - 11;
if ((_parent.Para._xscale < 11) && (_parent.HP > 0)) {
l = 13;
_parent.Arm1._y = _parent.Arm1._y - l;
_parent.Gun._y = _parent.Gun._y - l;
_parent.Head._y = _parent.Head._y - l;
_parent.gotoAndStop(2);
}
} else {
_parent._x = _parent._x + (random(2) - random(2));
_parent._y = _parent._y + ((random(2) - random(2)) + 4);
_parent.Para._xscale = _parent.Para._xscale - (random(2) - random(2));
_parent.Para._yscale = _parent.Para._yscale - (random(2) - random(2));
}
}
Symbol 162 MovieClip Frame 2
gotoAndPlay (1);
Symbol 163 MovieClip [Grunt] Frame 1
var HP = 2;
var Links = true;
var Weg = 0;
var Name = "Grunt";
var Fly = false;
var Stoss = 5;
var RZiel = false;
var T = 0;
var Wert = 5;
if (random(3) == 1) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
Symbol 163 MovieClip [Grunt] Frame 2
Body.Leg1.gotoAndPlay(13);
Body.Leg2.gotoAndPlay(1);
var BP = 2;
this._y = _root.Boden;
Gun.gotoAndPlay(random(7) + 1);
Symbol 163 MovieClip [Grunt] Frame 3
Body.Leg1.gotoAndPlay(7);
Body.Leg2.gotoAndPlay(7);
Gun.gotoAndPlay(random(7) + 1);
var BP = (0.3 + (random(10) / 10));
var HP = 4;
_y = (10 - random(50));
_x = (random(300) + 400);
stop();
Symbol 163 MovieClip [Grunt] Frame 13
stop();
Symbol 171 MovieClip Frame 18
if (_parent.Load > 0) {
_parent.Load--;
}
Symbol 171 MovieClip Frame 19
if (((((random(4) == 2) || (_parent.HP <= 0)) || (_root.RH.HP <= 0)) || (_parent._x > 580)) || (_parent._x < 0)) {
gotoAndPlay (1);
}
Symbol 171 MovieClip Frame 24
Shots--;
_parent.Load = 1;
_root.FRak++;
_root.attachMovie("Feind_Rakete", "Ro" + _root.FRak, 3000 + _root.FRak);
Winkel = (Math.PI * this._rotation) / 180;
X = Math.cos(Winkel);
Y = Math.sin(Winkel);
X = X * 64;
Y = Y * 64;
_root["Ro" + _root.FRak]._x = (_parent._x + this._x) - X;
_root["Ro" + _root.FRak]._y = (_parent._y + this._y) - Y;
_root["Ro" + _root.FRak].BP = 16;
_root["Ro" + _root.FRak].Dam = 31;
_root["Ro" + _root.FRak]._xscale = 55;
_root["Ro" + _root.FRak]._yscale = 72;
_root["Ro" + _root.FRak].Lenk = false;
_root["Ro" + _root.FRak]._rotation = this._rotation;
Symbol 182 MovieClip [Abrahams] Frame 1
R1.gotoAndPlay(random(9) + 1);
R2.gotoAndPlay(random(9) + 1);
R3.gotoAndPlay(random(9) + 1);
R4.gotoAndPlay(random(9) + 1);
R5.gotoAndPlay(random(9) + 1);
var T = 0;
var HP = 50;
var BP = 1.6;
var Weg = 0;
var Load = random(3);
var Name = "Abrahams";
var Fly = false;
var Stoss = 50;
var Wert = 50;
var RZiel = false;
this._y = _root.Boden;
var Links = true;
BTot._alpha = 0;
BTot.Gun.gotoAndStop(1);
BTot.Gun2.gotoAndStop(1);
Symbol 186 MovieClip Frame 29
if ((((((_root.RH.HP <= 0) || (random(6) == 2)) || (_parent.HP <= 0)) || (this._rotation < 20)) || (_parent._x > 580)) || (_parent._x < 0)) {
gotoAndPlay (1);
} else {
R = random(5) + 3;
}
Symbol 186 MovieClip Frame 33
R--;
_root.FRak++;
_root.attachMovie("Feind_Rakete", "Ro" + _root.FRak, 3000 + _root.FRak);
Winkel = (Math.PI * this._rotation) / 180;
X = Math.cos(Winkel);
Y = Math.sin(Winkel);
X = X * 90;
Y = Y * 90;
_root["Ro" + _root.FRak]._x = ((_parent._x + this._x) - X) + 4;
_root["Ro" + _root.FRak]._y = ((_parent._y + this._y) - 4) - Y;
_root["Ro" + _root.FRak].BP = 11;
_root["Ro" + _root.FRak].Dam = 14;
_root["Ro" + _root.FRak].Lenk = 0;
_root["Ro" + _root.FRak]._xscale = 82;
_root["Ro" + _root.FRak]._yscale = 82;
_root["Ro" + _root.FRak]._rotation = this._rotation;
Symbol 186 MovieClip Frame 40
if ((R > 0) && (this._rotation > 15)) {
gotoAndPlay (31);
}
Symbol 188 MovieClip [MLRS] Frame 1
R1.gotoAndPlay(random(9) + 1);
R2.gotoAndPlay(random(9) + 1);
R3.gotoAndPlay(random(9) + 1);
R4.gotoAndPlay(random(9) + 1);
R5.gotoAndPlay(random(9) + 1);
var RZiel = false;
var T = 0;
var HP = 42;
var BP = 1.2;
var Weg = 0;
var Wert = 65;
var Name = "MLRS";
var Fly = false;
var Stoss = 48;
var Links = true;
this._y = _root.Boden;
BTot._alpha = 0;
BTot.Gun.gotoAndStop(1);
Symbol 195 MovieClip Frame 19
if (((((random(4) == 2) || (_parent.HP <= 0)) || (_root.RH.HP <= 0)) || (_parent._x > 580)) || (_parent._x < 0)) {
gotoAndPlay (1);
}
Symbol 195 MovieClip Frame 22
var Shots = ((random(3) + random(3)) + 1);
Symbol 195 MovieClip Frame 25
Shots--;
_root.FRak++;
_root.attachMovie("Kugel", "Ro" + _root.FRak, 3000 + _root.FRak);
Winkel = (Math.PI * this._rotation) / 180;
X = Math.cos(Winkel);
Y = Math.sin(Winkel);
X = X * 40;
Y = Y * 40;
_root["Ro" + _root.FRak]._x = ((_parent._x + this._x) - 2) - X;
_root["Ro" + _root.FRak]._y = ((_parent._y + this._y) + 2) - Y;
_root["Ro" + _root.FRak].BP = 16;
_root["Ro" + _root.FRak].Dam = 11;
_root["Ro" + _root.FRak]._xscale = 112;
_root["Ro" + _root.FRak]._yscale = 112;
_root["Ro" + _root.FRak]._rotation = this._rotation;
Symbol 195 MovieClip Frame 30
if ((Shots > 0) && (_parent.HP > 0)) {
gotoAndPlay (24);
}
Symbol 199 MovieClip Frame 20
if (((((_root.RH.HP <= 0) || (random(6) == 2)) || (_parent.HP <= 0)) || (_parent._x > 580)) || (_parent._x < 0)) {
gotoAndPlay (1);
} else {
R = 2;
}
Symbol 199 MovieClip Frame 32
R--;
_root.FRak++;
_root.attachMovie("Feind_Rakete", "Ro" + _root.FRak, 3000 + _root.FRak);
Winkel = (Math.PI * this._rotation) / 180;
X = Math.cos(Winkel);
Y = Math.sin(Winkel);
X = X * 20;
Y = Y * 20;
_root["Ro" + _root.FRak]._x = (_parent._x + this._x) - X;
_root["Ro" + _root.FRak]._y = ((_parent._y + this._y) + 2) - Y;
_root["Ro" + _root.FRak].BP = 8;
_root["Ro" + _root.FRak].Dam = 11;
_root["Ro" + _root.FRak].Lenk = 0;
_root["Ro" + _root.FRak]._xscale = 62;
_root["Ro" + _root.FRak]._yscale = 62;
_root["Ro" + _root.FRak]._rotation = this._rotation;
Symbol 199 MovieClip Frame 33
if (R > 0) {
gotoAndPlay (21);
}
Symbol 201 MovieClip [Bradley] Frame 1
R1.gotoAndPlay(random(9) + 1);
R2.gotoAndPlay(random(9) + 1);
R3.gotoAndPlay(random(9) + 1);
R4.gotoAndPlay(random(9) + 1);
R5.gotoAndPlay(random(9) + 1);
var HP = 27;
var BP = 3;
var Weg = 0;
var Load = random(10);
var Name = "Bradley";
var Fly = false;
var Stoss = 38;
var T = 0;
this._y = _root.Boden;
var Links = true;
var RZiel = false;
BTot._alpha = 0;
BTot.RW.gotoAndStop(1);
BTot.Gun.gotoAndStop(1);
var Wert = 25;
Symbol 203 MovieClip Frame 1
_parent.got = false;
_parent.BP = 2;
_parent.HP = 5;
_parent.XR = 0;
if (parent._x > 100) {
_parent.XR = _parent.XR - random(3);
}
if (parent._x < 500) {
_parent.XR = _parent.XR + random(3);
}
_parent._x = _parent._x + 300;
_parent._y = -100;
i = random(4) + 1;
if (random(5) == 1) {
i = 1;
}
_parent.gotoAndStop(i);
_parent._xscale = 70;
_parent._yscale = 70;
Symbol 208 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 7
gotoAndStop (1);
Symbol 209 MovieClip Frame 1
if (_root.Paus == false) {
_parent._x = _parent._x - _root.RH.BP;
if (_parent._y < _root.Boden) {
if (_parent.got == false) {
_parent._y = _parent._y + _parent.BP;
_parent._x = _parent._x + _parent.XR;
_parent.Para._xscale = _parent.Para._xscale + (random(3) - random(3));
if ((_parent.Kiste.hitTest(_root.RH.Ziel) == true) && (_root.RH.HP > 0)) {
_parent.got = true;
_parent.Ton.gotoAndPlay(2);
if (_parent._currentframe == 1) {
if (_root.RH.HP >= _root.HPMax) {
_parent.got = false;
_parent.Ton.gotoAndStop(1);
} else {
_root.RH.HP = _root.RH.HP + 100;
if (_root.RH.HP > _root.HPMax) {
_root.RH.HP = _root.HPMax;
}
}
}
if (_parent._currentframe == 2) {
_root.Raketen = _root.Raketen + 16;
}
if (_parent._currentframe == 3) {
_root.UVB = 100;
_root.RH.Korpus._alpha = 0;
}
if (_parent._currentframe == 4) {
_root.Bomben = _root.Bomben + 5;
}
}
} else {
_parent._y = _parent._y + _parent.BP;
_parent._x = _parent._x + _parent.XR;
_parent.Para._xscale = _parent.Para._xscale - 15;
_parent.Para._yscale = _parent.Para._yscale - 15;
if (_parent.Para._yscale < 5) {
_parent.Para._alpha = 0;
}
_parent._alpha = _parent._alpha - 5;
if (_parent._alpha < 5) {
_parent.removeMovieClip();
}
}
} else {
_parent.Para._xscale = _parent.Para._xscale - 15;
_parent.Para._yscale = _parent.Para._yscale - 15;
if (_parent.Para._yscale < 5) {
_parent.Para._alpha = 0;
}
_parent._alpha = _parent._alpha - 5;
if (_parent._alpha < 5) {
_parent.removeMovieClip();
}
}
}
Symbol 209 MovieClip Frame 2
gotoAndPlay (1);
Symbol 215 MovieClip Frame 1
if (_root.Paus == false) {
_parent._x = _parent._x - (_root.RH.BP / 2);
if (_parent._x <= -300) {
_parent._x = random(200) + 700;
_parent.gotoAndStop(random(8) + 1);
}
}
Symbol 215 MovieClip Frame 2
gotoAndPlay (1);
Symbol 223 MovieClip [Weg] Frame 8
this.removeMovieClip();
Symbol 225 MovieClip Frame 20
if (((((_root.RH.HP <= 0) || (random(6) == 2)) || (_parent.HP <= 0)) || (_parent._x > 580)) || (_parent._x < 0)) {
gotoAndPlay (1);
} else {
R = 4 + random(3);
}
Symbol 225 MovieClip Frame 32
R--;
_root.FRak++;
_root.attachMovie("Feind_Rakete", "Ro" + _root.FRak, 3000 + _root.FRak);
Winkel = (Math.PI * this._rotation) / 180;
X = Math.cos(Winkel);
Y = Math.sin(Winkel);
X = X * 20;
Y = Y * 20;
_root["Ro" + _root.FRak]._x = (_parent._x + this._x) - X;
_root["Ro" + _root.FRak]._y = ((_parent._y + this._y) + 2) - Y;
_root["Ro" + _root.FRak].BP = 11;
_root["Ro" + _root.FRak].Dam = 11;
_root["Ro" + _root.FRak].Lenk = 22;
_root["Ro" + _root.FRak]._xscale = 82;
_root["Ro" + _root.FRak]._yscale = 82;
_root["Ro" + _root.FRak]._rotation = this._rotation;
Symbol 225 MovieClip Frame 33
if (R > 0) {
gotoAndPlay (21);
}
Symbol 227 MovieClip Frame 1
if (_root.Paus == false) {
if (_parent.HP > 0) {
if (_parent._x < 300) {
_parent.FP = _parent.FP + (random(3) / 3);
}
if (_parent._x > 500) {
_parent.FP = _parent.FP - (random(3) / 3);
}
_parent.FP = _parent.FP + ((random(2) - random(2)) / 5);
if (_parent.FP > 1) {
_parent.FP = 1;
}
if (_parent.FP < -3) {
_parent.FP = -1;
}
_parent._x = _parent._x + _parent.FP;
if (_parent.YP > 0) {
_parent._y = _parent._y + 1;
_parent.YP--;
}
if (_parent.YP < 0) {
_parent._y = _parent._y - 1;
_parent.YP++;
}
if (_parent.YP == 0) {
_parent.YP = random(30) - random(30);
}
if (_parent._y < 100) {
_parent.YP = _parent.YP + 6;
}
if (_parent._y > 300) {
_parent.YP = _parent.YP - 6;
}
_root.Stats.BHP.HPs._xscale = (_parent.HP / _parent.HPTotal) * 100;
} else {
_root.Boss = -1;
if (_parent._y < _root.Boden) {
_parent._y--;
(_parent._rotation = _parent._rotation + 3);
_parent.Ton._rotation = _parent.Ton._rotation - 3;
}
}
}
Symbol 227 MovieClip Frame 2
gotoAndPlay (1);
Symbol 228 MovieClip [Chinook] Frame 1
var Name = "Chinook";
var HP = 525;
var HPTotal = HP;
var Load = 0;
var BP = -3;
var FP = -4;
var YP = 0;
var Fly = true;
var Weg = 330;
var Stoss = 235;
var T = 0;
this._y = (random(_root.Boden - 200) + 40) + _root.Oben;
var Links = true;
BTot._alpha = 0;
BTot.RW.gotoAndStop(1);
BTot.R1.gotoAndStop(1);
BTot.R2.gotoAndStop(1);
var RZiel = false;
var Wert = 40;
Symbol 251 MovieClip Frame 90
stop();
Symbol 252 MovieClip Frame 1
if (_root.RH._x > 700) {
if (_parent._alpha < 100) {
_parent._alpha = _parent._alpha + 50;
_root.Spiel = false;
} else if (_parent.Blase._currentframe == 1) {
_parent.Blase.gotoAndPlay(2);
}
}
Symbol 252 MovieClip Frame 2
gotoAndPlay (1);
Symbol 253 MovieClip [Chick] Frame 1
Blase.stop();
_x = 370;
_y = 250;
_alpha = 0;
Instance of Symbol 247 MovieClip "Girl" in Symbol 253 MovieClip [Chick] Frame 1
on (release) {
if (_parent.Blase._currentframe == 90) {
_parent.Blase.gotoAndPlay(2);
}
}
Symbol 258 MovieClip Frame 1
_parent._x = _parent._x + ((((_root.Wind + random(2)) - random(2)) + 4) / 19);
_parent._y = _parent._y + ((random(2) - random(2)) / 10);
if (_parent._y > 400) {
_parent._y = random(_root.Ground2._y - 30) + 25;
_parent._x = random(1111) - 100;
_parent.gotoAndStop(random(6) + 1);
_parent._alpha = 110 + random(21);
_parent._xscale = 80 + random(40);
_parent._yscale = 80 + random(40);
}
if ((_parent._x + _parent._width) < -100) {
_parent._x = 900 + random(300);
_parent.gotoAndStop(random(6) + 1);
_parent._alpha = 80 + random(21);
_parent._y = random(_root.Ground2._y - 30) + 25;
_parent._xscale = 80 + random(40);
_parent._yscale = 80 + random(40);
}
if (_parent._x > 900) {
_parent._x = (-random(300)) - 300;
_parent.gotoAndStop(random(6) + 1);
_parent._alpha = 80 + random(21);
_parent._y = random(_root.Ground2._y - 30) + 25;
_parent._xscale = 80 + random(40);
_parent._yscale = 80 + random(40);
}
Symbol 258 MovieClip Frame 2
gotoAndPlay (1);
Symbol 266 MovieClip Frame 1
if (_root.Paus == false) {
_parent._x = _parent._x - (_root.RH.BP / 6);
if (_parent._y > 300) {
_parent._y = _root.Ground2._y + random(5);
_parent.gotoAndStop(random(4) + 1);
_parent._x = random(1111) - 200;
_parent._xscale = 40 + random(20);
_parent._yscale = 30 + random(20);
}
if ((_parent._x + _parent._width) < -100) {
_parent._y = _root.Ground2._y + random(5);
_parent.gotoAndStop(random(4) + 1);
_parent._x = 900 + random(200);
_parent._xscale = 40 + random(20);
_parent._yscale = 30 + random(20);
}
}
Symbol 266 MovieClip Frame 2
gotoAndPlay (1);
Symbol 274 MovieClip Frame 1
if (Key.isDown(80)) {
if ((_root.PD == false) && (_root.RH.HP > 0)) {
_root.PD = true;
if (_root.Paus == true) {
_root.Paus = false;
_root.Stats.G_P.text = "";
} else {
_root.Paus = true;
_root.Stats.G_P.text = "Paused";
}
}
} else {
_root.PD = false;
}
if (Key.isDown(81)) {
if (_root.QKey == 0) {
if (_root._quality == "LOW") {
_root._quality = "MEDIUM";
} else {
_root._quality = "LOW";
}
_root.QKey = 1;
}
} else {
_root.QKey = 0;
}
_root.Visier._x = _root._xmouse;
_root.Visier._y = _root._ymouse;
if (_root.Paus == false) {
_root.Wind = _root.Wind + (random(2) - random(2));
if (_root.ZielFind == _root.ZielZeit) {
_root.ZR._alpha = 0;
}
if (_root.Wind > 5) {
_root.Wind--;
}
if (_root.Wind < 1) {
_root.Wind++;
}
if (_root.FRak > 100) {
_root.FRak = 1;
}
if ((_root.Feinde > 40) && (_root.Level < 5)) {
var i = (_root.Feinde - 40);
while (i <= _root.Feinde) {
k = i + 20;
_root["A" + k].NR = i;
_root["A" + k]._name = "A" + i;
i++;
}
_root.Feinde = _root.Feinde - 20;
}
_root.Stats.UB._alpha = _root.UVB;
if (_root.RH.HP > 0) {
_root.Stats.HPs.HP._xscale = (_root.RH.HP / _root.HPMax) * 100;
_root.Stats.Killed.Ks.text = ": " + _root.Score;
_root.Stats.Rocks.NR.text = ": " + _root.Raketen;
_root.Stats.Boms.NR.text = ": " + _root.Bomben;
_root.Stats.Gekillt.Ks.text = ((": " + _root.Kills) + "/") + _root.ToKill;
if (_root.Stats.SC._alpha > 0) {
_root.Stats.SC._alpha = _root.Stats.SC._alpha - 1;
}
if (_root.Level == 5) {
if (_root.Boss != -1) {
_root.ToKill = _root.Kills + 1;
_root.Stats.Gekillt.Ks.text = "BOSS!";
} else {
_root.Stats.BHP.HPs._xscale = 0;
_root.Stats.BHP._alpha = 0;
}
}
if (_root.Kills >= _root.ToKill) {
i = 1;
AD = true;
while (i <= _root.Feinde) {
if (_root["A" + i].HP > 0) {
_root["A" + i].HP = 0;
}
i++;
}
if (AD == true) {
_root.Kills = _root.Kills - _root.ToKill;
_root.Score = _root.Score + (_root.Kills * 15);
_root.Kills = 0;
_root.HPMax = (_root.Level * 50) + 200;
_root.RH.HP = _root.HPMax;
_root.Raketen = _root.Raketen + 4;
_root.Bomben = _root.Bomben + 2;
_root.Stats.SC._alpha = 100;
_root.Score = _root.Score + (_root.Level * 5);
_root.Level++;
_root.ToKill = (_root.Level * 10) + 15;
_root.Stats.Lvl.NR.text = _root.Level;
_root.Anzahl = 0;
if (_root.Level == 5) {
_root.EinheitMach("Chinook", -1, 700);
_root.Boss = 1;
_root.Stats.BHP._alpha = 100;
}
if (_root.Level == 6) {
_root.FeindLimit = 0;
_root.RH.BP = 0;
if (_root.Stats.Menue._alpha < 100) {
_root.Stats.Menue.Smt.gotoAndStop(1);
_root.Stats.Menue.Smt.EN.text = "<enter name>";
_root.Stats.Menue._alpha = 100;
}
_root.attachMovie("Chick", "Chick", 8999);
}
}
}
if (_root.KisteWart > 0) {
_root.KisteWart--;
} else if (_root.Level != 6) {
_root.EinheitMach("Kiste", _root.Feinde + 2000, random(200) + 200);
_root.KisteWart = random(350 - (_root.Level * 50));
_root.Anzahl--;
}
_root.Ground._x = _root.Ground._x - _root.RH.BP;
_root.Ground1a._x = _root.Ground1a._x - _root.RH.BP;
_root.Ground2._x = _root.Ground2._x - (_root.RH.BP / 2);
_root.Ground2a._x = _root.Ground2a._x - (_root.RH.BP / 2);
if ((_root.Ground._x + _root.Ground._width) < -200) {
_root.Ground._x = _root.Ground._width - 400;
}
if ((_root.Ground1a._x + _root.Ground1a._width) < -200) {
_root.Ground1a._x = _root.Ground1a._width - 400;
}
if ((_root.Ground2._x + _root.Ground2._width) < -200) {
_root.Ground2._x = _root.Ground2._width - 400;
}
if ((_root.Ground2a._x + _root.Ground2a._width) < -200) {
_root.Ground2a._x = _root.Ground2._width - 400;
}
} else if (_root.Spiel == true) {
_root.Stats.HPs.HP._xscale = 0;
}
if ((_root.Anzahl < _root.FeindLimit) && (_root.Level != 6)) {
_root.GegnerWart--;
if (_root.GegnerWart <= 0) {
_root.Name();
i = _root.Anzahl;
_root.EinheitMach(_root.Nam, _root.Feinde, random(240) + 600);
_root.GegnerWart = random(15) + 32;
}
} else {
_root.Gegnerwart = random(15) + 32;
}
}
Symbol 274 MovieClip Frame 2
gotoAndPlay (1);
Symbol 296 Button
on (release) {
if (((EN.text != "") && (EN.text != "enter name")) && (EN.text != "<enter name>")) {
Name = EN.text;
Punkte = _root.Score;
gotoAndStop (2);
}
}
Symbol 297 MovieClip Frame 1
gotoAndStop (2);
Symbol 303 Button
on (release) {
if (_root.Spiel == false) {
_root.Chick.removeMovieClip();
_root.Spiel = true;
_root.NewGame();
}
}
Symbol 319 MovieClip Frame 1
Smt.gotoAndStop(2);
Symbol 329 MovieClip Frame 1
this._alpha = 0;
Symbol 332 MovieClip Frame 1
var Target = false;
_root.ZR._alpha = 0;
_root.ZR._xscale = 66;
_root.ZR._yscale = 66;
Symbol 335 MovieClip Frame 1
stop();