Frame 1
function reset() {
paused = false;
maxlvtime = 1000;
ammoplus = 0;
shooting = false;
Cticks = 0;
gs = 0;
money = 0;
maxCticks = 6;
lvtime = 0;
level = 1;
place = random(4);
rorot = -10;
maxhp = 100;
hp = maxhp;
kills = 0;
ticks = 0;
ticks2 = 0;
ticksB = 0;
ticksC = 0;
ticksD = 0;
ticksE = 0;
rand_gun = null;
hptime = 0;
maxhptime = 100;
hpheal = 1.5;
i = 0;
q = 350;
e = 250;
ee = 450;
eee = 550;
eeee = 650;
eeeee = 750;
s = 150;
bc = 1000;
time = 0;
dupetime = 35;
dupetimeB = 80;
dupetimeC = 160;
dupetimeD = 75;
dupetimeE = 175;
ammo1 = maxammo[i];
accB = random(acc[i]) - random(acc[i]);
hpB = (_root.hp / _root.maxhp) * 100;
hud.hphold.text = _root.hpB + "%";
hud.ammohold.text = (ammo[i] + "/") + clip[i];
hud.reload_hold.text = (ticks2 + "/") + reltime[i];
stats.kill_hold.text = "Kills:" + kills;
stats.pickup.text = "";
stats.pickup2.text = "";
gun_names = new Array("Magnum", "Plasma_Pistol", "SMG", "Battle_Rifle", "Needler", "Sniper_Rifle", "Shotgun", "Rocket");
maxammo = new Array(0, 0, 0, 0, 0, 0, 0, 0);
speed = new Array(33, 34, 50, 50, 50, 40, 25, 15);
damage = new Array(20, 10, 17, 20, 15, 100, 20, 250);
acc = new Array(4, 5, 7, 3, 10, 0, 0, 0);
ammo = new Array(0, 0, 0, 0, 0, 0, 0, 0);
clip = new Array(12, 100, 40, 25, 30, 4, 8, 2);
maxtime = new Array(1, 4, 3, 4, 4, 21, 24, 24);
reltime = new Array(35, 55, 55, 40, 55, 45, 55, 45);
ammo_cost = new Array(10, 50, 50, 75, 75, 50, 150, 125);
ammo_add = new Array(10, 50, 25, 25, 25, 5, 18, 2);
gun_disp = new Array("Semi-Automatic, low damage", "Charge up to do more damege", "Fastest fire rate, low damage", "Good damage, fast fire rate", "Bounces off enemies, fast firing", "Very high damage, small clip", "A good multi-purpose weapon, spread fire", "Kills in 1 hit");
}
function buyAmmo() {
if (_root.money >= _root.ammo_cost[_root.gs]) {
_root.money = _root.money - _root.ammo_cost[_root.gs];
_root.maxammo[_root.gs] = _root.maxammo[_root.gs] + _root.ammo_add[_root.gs];
}
}
function pause() {
Mouse.show();
paused = true;
_root.attachMovie("buy", "buy", this.getNextHighestDepth());
buy._x = 0;
buy._y = 0;
}
function unpause() {
hp = maxhp;
Mouse.hide();
_root.buy.removeMovieClip();
paused = false;
}
function lose() {
_root.hud.removeMovieClip();
_root.cheif.removeMovieClip();
_root.aimer.removeMovieClip();
_root.stats.removeMovieClip();
for (i in _root) {
if (_root[i]._name.indexOf("ene") != -1) {
_root[i].removeMovieClip();
}
if (_root[i]._name.indexOf("ammoup") != -1) {
_root[i].removeMovieClip();
}
if (_root[i]._name.indexOf("sta") != -1) {
_root[i].removeMovieClip();
}
}
_root.gotoAndStop("lose");
}
function normal() {
level = 1;
maxammo = new Array(9999, 0, 0, 0, 0, 0, 0, 0);
ammo = new Array(12, 0, 0, 0, 0, 0, 0, 0);
clip = new Array(12, 100, 40, 25, 30, 4, 8, 2);
}
function action() {
level = 100;
maxammo = new Array(100, 0, 100, 0, 0, 0, 24, 4);
ammo = new Array(12, 0, 40, 0, 0, 0, 8, 2);
clip = new Array(12, 100, 40, 25, 30, 4, 8, 2);
rand_gun = random(8);
maxammo[rand_gun] = 9999;
ammo[rand_gun] = clip[rand_gun];
i = 0;
}
function plasma() {
level = 100;
i = 1;
maxammo = new Array(0, 9999, 0, 0, 0, 0, 0, 0);
ammo = new Array(0, 100, 0, 0, 0, 0, 0, 0);
clip = new Array(12, 100, 40, 25, 30, 4, 8, 2);
}
stopAllSounds();
_root._quality = "MEDIUM";
cnt = 0;
prv1 = 0;
prv2 = 0;
var mouseListener = new Object();
mouseListener.onMouseWheel = function (num) {
if (num > 1) {
i++;
ticks2 = 0;
} else if (num < 1) {
i--;
ticks2 = 0;
}
};
Mouse.addListener(mouseListener);
_root.reset();
_root.onMouseDown = function () {
if (_root.paused == false) {
if ((i != 0) && (_currentframe == 7)) {
shooting = true;
}
if (((i == 0) && (ammo[i] > 0)) && (_currentframe == 7)) {
bc++;
ammo[i]--;
duplicateMovieClip ("bullet", "laser" + bc, bc);
_root.sounds.gotoAndStop(_root.i + 2);
}
}
};
_root.onMouseUp = function () {
shooting = false;
};
_root.onEnterFrame = function () {
if (Cticks < maxCticks) {
Cticks++;
}
if (Key.isDown(80) && (Cticks == maxCticks)) {
if (_quality == "LOW") {
_quality = "MEDIUM";
Cticks = 0;
} else if (_quality == "MEDIUM") {
_quality = "HIGH";
Cticks = 0;
} else if (_quality == "HIGH") {
_quality = "LOW";
Cticks = 0;
}
}
if (i < 0) {
i = 7;
}
if (i > 7) {
i = 0;
}
if (gs < 0) {
gs = 7;
}
if (gs > 7) {
gs = 0;
}
if (_currentframe == 7) {
_root.stats.time_hold.text = (100 - ((lvtime / maxlvtime) * 100)) + "%";
_root.buy.money_hold.text = "Credits: " + money;
_root.buy.buy_hold.text = ((((((((((("Gun: " + gun_names[gs]) + newline) + "Cost: ") + ammo_cost[gs]) + newline) + "Ammo: ") + ammo_add[gs]) + newline) + "Current Ammo: ") + maxammo[gs]) + newline) + gun_disp[gs];
if (lvtime >= maxlvtime) {
level++;
_root.stats.pickup2.text = _root.stats.pickup.text;
_root.stats.pickup.text = "Level Up. Level= " + level;
_root.pause();
money = money + 125;
lvtime = 0;
}
accB = random(acc[i]) - random(acc[i]);
hpB = Math.round((_root.hp / _root.maxhp) * 100);
hud.hphold.text = _root.hpB + "%";
hud.ammohold.text = (ammo[i] + "/") + clip[i];
hud.reload_hold.text = (ticks2 + "/") + reltime[i];
stats.kill_hold.text = "Kills: " + kills;
hud.name_hold = gun_names[i];
ammo1 = maxammo[i];
if (paused == false) {
ticks++;
ticks3++;
lvtime++;
time++;
if (_root.level >= 3) {
dupetime = 60;
ticksB++;
}
if (_root.level >= 5) {
dupetime = 100;
dupetimeB = 75;
ticksC++;
}
if (_root.level >= 7) {
dupetime = 300;
dupetimeB = 125;
dupetimeC = 125;
ticksD++;
}
if (_root.level >= 9) {
dupetime = 300;
dupetimeB = 125;
dupetimeC = 175;
dupetimeD = 125;
ticksE++;
}
if (((Key.isDown(1) && (sho == false)) && (i == 0)) && (ammo[i] > 0)) {
sho = true;
_root.aimer.gotoAndStop(2);
_root.cheif.gun.gunflash._visible = true;
} else {
_root.aimer.gotoAndStop(1);
_root.cheif.gun.gunflash._visible = false;
}
((!Key.isDown(1)) ? ((sho = false)) : null);
if (Key.isDown(69) && (Cticks == maxCticks)) {
i++;
ticks2 = 0;
Cticks = 0;
}
if (Key.isDown(81) && (Cticks == maxCticks)) {
i--;
ticks2 = 0;
Cticks = 0;
}
if (Key.isDown(84) && (Cticks == maxCticks)) {
if (_root.hud._currentframe == 1) {
_root.hud.gotoAndStop(2);
} else if (_root.hud._currentframe == 2) {
_root.hud.gotoAndStop(1);
}
Cticks = 0;
}
if (hp <= 0) {
_root.lose();
}
if (hp < (maxhp / 4)) {
_root.stats.pickup.text = "Low Sheilds";
}
if (hp < maxhp) {
hptime++;
} else {
hptime = 0;
}
if (hptime >= maxhptime) {
hp = hp + hpheal;
}
if (ammo[i] < 0) {
ammo[i] = 0;
}
if (hp > maxhp) {
hp = maxhp;
}
if (time == dupetime) {
duplicateMovieClip (_root.enemy, "eneA" + e, e);
e++;
place = random(4);
time = 0;
}
if (ticksB == dupetimeB) {
duplicateMovieClip (_root.enemyB, "eneB" + ee, ee);
ee++;
place = random(4);
ticksB = 0;
}
if (ticksC == dupetimeC) {
duplicateMovieClip (_root.enemyC, "eneC" + eee, eee);
eee++;
place = random(4);
ticksC = 0;
}
if (ticksD == dupetimeD) {
duplicateMovieClip (_root.enemyD, "eneD" + eeee, eeee);
eeee++;
place = random(4);
ticksD = 0;
}
if (ticksE == dupetimeE) {
duplicateMovieClip (_root.enemyE, "eneE" + eeeee, eeeee);
eeeee++;
place = random(4);
ticksE = 0;
}
if (maxammo[i] >= clip[i]) {
rem = clip[i];
} else {
rem = maxammo[i];
}
if ((ammo[i] <= 0) && (maxammo[i] > 0)) {
ticks2++;
}
if (ticks2 == reltime[i]) {
maxammo[i] = maxammo[i] - rem;
ammo[i] = rem;
_root.stats.pickup2.text = _root.stats.pickup.text;
_root.stats.pickup.text = ((gun_names[i] + " reloaded. ") + rem) + " ammo lost.";
ticks2 = 0;
}
if (Key.isDown(49)) {
i = 0;
ticks2 = 0;
}
if (Key.isDown(50)) {
i = 1;
ticks2 = 0;
}
if (Key.isDown(51)) {
i = 2;
ticks2 = 0;
}
if (Key.isDown(52)) {
i = 3;
ticks2 = 0;
}
if (Key.isDown(53)) {
i = 4;
ticks2 = 0;
}
if (Key.isDown(54)) {
i = 5;
ticks2 = 0;
}
if (Key.isDown(55)) {
i = 6;
ticks2 = 0;
}
if (Key.isDown(56)) {
i = 7;
ticks2 = 0;
}
if (ticks > maxtime[i]) {
ticks = maxtime[i];
}
if (((ticks == maxtime[i]) && (ammo[i] > 0)) && (i == 1)) {
if (damage[i] >= 150) {
damage[i] = 150;
}
if (Key.isDown(1)) {
damage[i] = damage[i] + 10;
} else if ((!Key.isDown(1)) && (damage[i] > 10)) {
bc++;
ticks = 0;
duplicateMovieClip ("bullet", "laser" + bc, bc);
ammo[i] = ammo[i] - (damage[i] / 10);
aimer.gotoAndStop(2);
}
} else if (i == 1) {
damage[i] = 10;
aimer.gotoAndStop(1);
}
if (((((shooting == true) && (ticks == maxtime[i])) && (ammo[i] > 0)) && (i != 1)) && (i != 0)) {
if (((i != 6) && (i != 1)) && (i != 0)) {
bc++;
ticks = 0;
ammo[i]--;
duplicateMovieClip ("bullet", "laser" + bc, bc);
aimer.gotoAndStop(2);
cheif.gun.gunflash._visible = true;
} else if (i == 6) {
ticks = 0;
ammo[i]--;
bc++;
duplicateMovieClip ("bullet", "laser" + bc, bc);
bc++;
duplicateMovieClip ("bullet", "laser" + bc, bc);
bc++;
duplicateMovieClip ("bullet", "laser" + bc, bc);
bc++;
duplicateMovieClip ("bullet", "laser" + bc, bc);
bc++;
duplicateMovieClip ("bullet", "laser" + bc, bc);
bc++;
duplicateMovieClip ("bullet", "laser" + bc, bc);
aimer.gotoAndStop(2);
cheif.gun.gunflash._visible = true;
}
} else if (i != 0) {
aimer.gotoAndStop(1);
cheif.gun.gunflash._visible = false;
rorot = -15;
}
if (bc > 1100) {
bc = 1000;
}
if (eeeee > 800) {
eeeee = 750;
}
if (eeee > 700) {
eeee = 650;
}
if (eee > 600) {
eee = 550;
}
if (ee > 500) {
ee = 450;
}
if (e > 300) {
e = 250;
}
if (s > 200) {
s = 150;
}
if (q > 400) {
q = 350;
}
}
}
};
Instance of Symbol 57 MovieClip in Frame 1
onClipEvent (enterFrame) {
Mouse.hide();
_y = _root._ymouse;
_x = _root._xmouse;
}
Frame 2
stop();
Frame 3
stop();
Instance of Symbol 91 MovieClip in Frame 3
onClipEvent (load) {
this.gotoAndStop(1);
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.gotoAndStop("type");
}
Instance of Symbol 95 MovieClip in Frame 3
onClipEvent (load) {
this.gotoAndStop(1);
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.gotoAndStop("ins");
}
Instance of Symbol 98 MovieClip in Frame 3
onClipEvent (load) {
this.gotoAndStop(1);
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.gotoAndStop("credits");
}
Instance of Symbol 107 MovieClip in Frame 4
onClipEvent (load) {
this.gotoAndStop(1);
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.gotoAndStop("menu");
}
Frame 7
stop();
Instance of Symbol 184 MovieClip "cheif" in Frame 7
onClipEvent (load) {
spd = 3.5;
this.swapDepths(999991);
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
for (k in _root) {
if (k.indexOf("eshot") != -1) {
if (_root[k].hitTest(this.body)) {
_root.hp = _root.hp - 3;
_root.hptime = 0;
_root[k].removeMovieClip();
}
}
}
Xd = _root.aimer._x - _x;
Yd = _root.aimer._y - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
if (((Key.isDown(87) || (Key.isDown(83))) || (Key.isDown(68))) || (Key.isDown(65))) {
this.feet.play();
} else {
this.feet.gotoAndStop(1);
}
if (Key.isDown(87)) {
_y = (_y - spd);
}
if (Key.isDown(83)) {
_y = (_y + spd);
}
if (Key.isDown(68)) {
_x = (_x + spd);
}
if (Key.isDown(65)) {
_x = (_x - spd);
}
if (_x < 0) {
_x = 1;
}
if (_x > 550) {
_x = 549;
}
if (_y < 0) {
_y = 1;
}
if (_y > 400) {
_y = 399;
}
}
}
Instance of Symbol 205 MovieClip "bullet" in Frame 7
onClipEvent (load) {
this.cacheAsBitmap = true;
spd = _root.speed[_root.i];
dam = _root.damage[_root.i];
this.gotoAndStop(_root.i + 1);
_x = _root.cheif._x;
_y = _root.cheif._y;
if (_root.i != 6) {
_rotation = (_root.cheif._rotation - _root.accB);
}
if (_root.i == 6) {
_rotation = (_root.cheif._rotation + _root.rorot);
_root.rorot = _root.rorot + 5;
}
}
onClipEvent (enterFrame) {
if (_name == "bullet") {
_x = -1000;
} else if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
if (((((_x > 550) || (_x < 0)) || (_y < 0)) || (_y > 400)) || (this.explode._currentframe == 19)) {
this.removeMovieClip();
}
}
onClipEvent (unload) {
_root.rorot = _root.rorot - 5;
}
Instance of Symbol 212 MovieClip "stain" in Frame 7
onClipEvent (load) {
_rotation = (_rotation + (random(25) - random(25)));
this.cacheAsBitmap = true;
if (_name == "stain") {
_x = 1000;
_y = 1000;
}
if (_name != "stain") {
var time = 100;
}
}
onClipEvent (enterFrame) {
if (_root.paused == true) {
this.removeMovieClip();
}
time--;
if (time == 0) {
this.removeMovieClip();
}
}
Instance of Symbol 260 MovieClip "enemy" in Frame 7
onClipEvent (load) {
if (_root.place == 0) {
_x = random(550);
_y = 0;
}
if (_root.place == 1) {
_x = random(550);
_y = 400;
}
if (_root.place == 2) {
_x = 0;
_y = random(400);
}
if (_root.place == 3) {
_x = 550;
_y = random(400);
}
speed = random(3) + 3.3;
hp = 50;
spawn_box = random(2);
this.gotoAndStop(1);
if (_name == "enemy") {
_x = 1000;
_y = 1000;
}
}
onClipEvent (enterFrame) {
if (_root.paused == true) {
this.removeMovieClip();
}
if ((_name != "enemy") && (_root.paused == false)) {
if (this.dying._currentframe == 12) {
if (spawn_box == 1) {
_root.ammoplus = random(10) + 5;
duplicateMovieClip (_root.ammobox, "ammoup" + _root.q, 1 + _root.q);
_root["ammoup" + _root.q]._x = _x;
_root["ammoup" + _root.q]._y = _y;
_root.q++;
}
this.removeMovieClip();
}
if (hp > 0) {
if (_root.cheif.body.hitTest(this)) {
this.gotoAndStop(3);
} else {
gotoAndStop (1);
}
for (i in _root) {
if (_root[i]._name.indexOf("laser") != -1) {
if (_root[i].hitTest(this)) {
hp = hp - _root["laser" + _root.bc].dam;
duplicateMovieClip (_root.stain, "sta" + _root.s, 1 + _root.s);
_root["sta" + _root.s]._x = _x;
_root["sta" + _root.s]._y = _y;
_root["sta" + _root.s]._rotation = _rotation;
_root["sta" + _root.s].gotoAndStop(random(5) + 1);
_root.s++;
if ((_root.i != 4) && (_root.i != 7)) {
_root[i].removeMovieClip();
}
if (_root.i == 4) {
_root[i]._rotation = random(360);
}
if (_root.i == 7) {
_root[i].spd = 0;
_root[i].explode.play();
}
}
}
}
Xd = _root.cheif._x - _x;
Yd = _root.cheif._y - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
YY = speed * Math.cos((Math.PI/180) * _rotation);
XX = speed * Math.sin((Math.PI/180) * _rotation);
if (!_root.cheif.body.hitTest(this)) {
if (_rotation > 180) {
_y = (_y + YY);
_x = (_x - XX);
} else {
_y = (_y - YY);
_x = (_x + XX);
}
}
} else {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 268 MovieClip "stats" in Frame 7
onClipEvent (load) {
this.swapDepths(999997);
}
Instance of Symbol 310 MovieClip "enemyB" in Frame 7
onClipEvent (load) {
if (_root.place == 0) {
_x = random(550);
_y = 0;
}
if (_root.place == 1) {
_x = random(550);
_y = 400;
}
if (_root.place == 2) {
_x = 0;
_y = random(400);
}
if (_root.place == 3) {
_x = 550;
_y = random(400);
}
speed = random(3) + 2;
hp = 75;
spawn_box = random(2);
this.gotoAndStop(1);
if (_name == "enemyB") {
_x = 1000;
_y = 1000;
}
}
onClipEvent (enterFrame) {
if (_root.paused == true) {
this.removeMovieClip();
}
if ((_name != "enemyB") && (_root.paused == false)) {
if (this.dying._currentframe == 22) {
if (spawn_box == 1) {
_root.ammoplus = random(10) + 10;
duplicateMovieClip (_root.ammobox, "ammoup" + _root.q, 1 + _root.q);
_root["ammoup" + _root.q]._x = _x;
_root["ammoup" + _root.q]._y = _y;
_root.q++;
}
this.removeMovieClip();
}
if (hp > 0) {
if (_root.cheif.body.hitTest(this)) {
this.gotoAndStop(3);
} else {
gotoAndStop (1);
}
for (i in _root) {
if (_root[i]._name.indexOf("laser") != -1) {
if (_root[i].hitTest(this)) {
hp = hp - _root["laser" + _root.bc].dam;
duplicateMovieClip (_root.stain, "sta" + _root.s, 1 + _root.s);
_root["sta" + _root.s]._x = _x;
_root["sta" + _root.s]._y = _y;
_root["sta" + _root.s]._rotation = _rotation;
_root["sta" + _root.s].gotoAndStop(random(5) + 1);
_root.s++;
if ((_root.i != 4) && (_root.i != 7)) {
_root[i].removeMovieClip();
}
if (_root.i == 4) {
_root[i]._rotation = random(360);
}
if (_root.i == 7) {
_root[i].spd = 0;
_root[i].explode.play();
}
}
}
}
Xd = _root.cheif._x - _x;
Yd = _root.cheif._y - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
YY = speed * Math.cos((Math.PI/180) * _rotation);
XX = speed * Math.sin((Math.PI/180) * _rotation);
if (!_root.cheif.body.hitTest(this)) {
if (_rotation > 180) {
_y = (_y + YY);
_x = (_x - XX);
} else {
_y = (_y - YY);
_x = (_x + XX);
}
}
} else {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 347 MovieClip "enemyC" in Frame 7
onClipEvent (load) {
if (_root.place == 0) {
_x = random(550);
_y = 0;
}
if (_root.place == 1) {
_x = random(550);
_y = 400;
}
if (_root.place == 2) {
_x = 0;
_y = random(400);
}
if (_root.place == 3) {
_x = 550;
_y = random(400);
}
speed = random(2) + 2;
hp = 65;
stime = 20;
spawn_box = random(2);
dist = null;
tdist = 225;
this.gotoAndStop(1);
if (_name == "enemyC") {
_x = 1000;
_y = 1000;
}
}
onClipEvent (enterFrame) {
if (_root.paused == true) {
this.removeMovieClip();
}
if ((_name != "enemyC") && (_root.paused == false)) {
if (this.dying._currentframe == 12) {
if (spawn_box == 1) {
_root.ammoplus = random(15) + 10;
duplicateMovieClip (_root.ammobox, "ammoup" + _root.q, 1 + _root.q);
_root["ammoup" + _root.q]._x = _x;
_root["ammoup" + _root.q]._y = _y;
_root.q++;
}
this.removeMovieClip();
}
if (hp > 0) {
if (dist <= tdist) {
stime--;
this.gotoAndStop(3);
if (stime <= 0) {
_root.bc++;
duplicateMovieClip (_root.Ebullet, "eshot" + _root.bc, _root.bc);
_root["eshot" + _root.bc]._rotation = _rotation;
_root["eshot" + _root.bc]._x = _x;
_root["eshot" + _root.bc]._y = _y;
stime = 15;
}
} else {
this.gotoAndStop(1);
}
for (i in _root) {
if (_root[i]._name.indexOf("laser") != -1) {
if (_root[i].hitTest(this)) {
hp = hp - _root["laser" + _root.bc].dam;
duplicateMovieClip (_root.stain, "sta" + _root.s, 1 + _root.s);
_root["sta" + _root.s]._x = _x;
_root["sta" + _root.s]._y = _y;
_root["sta" + _root.s]._rotation = _rotation;
_root["sta" + _root.s].gotoAndStop(random(5) + 1);
_root.s++;
if ((_root.i != 4) && (_root.i != 7)) {
_root[i].removeMovieClip();
}
if (_root.i == 4) {
_root[i]._rotation = random(360);
}
if (_root.i == 7) {
_root[i].spd = 0;
_root[i].explode.play();
}
}
}
}
Xd = _root.cheif._x - _x;
Yd = _root.cheif._y - _y;
dist = Math.sqrt((Xd * Xd) + (Yd * Yd));
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
YY = speed * Math.cos((Math.PI/180) * _rotation);
XX = speed * Math.sin((Math.PI/180) * _rotation);
if (dist > tdist) {
if (_rotation > 180) {
_y = (_y + YY);
_x = (_x - XX);
} else {
_y = (_y - YY);
_x = (_x + XX);
}
}
} else {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 350 MovieClip "Ebullet" in Frame 7
onClipEvent (load) {
this.cacheAsBitmap = true;
spd = 17;
}
onClipEvent (enterFrame) {
if (_name == "Ebullet") {
_x = -1000;
_y = -1000;
} else if (_rotation > 180) {
_y = (_y + (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x - (spd * Math.sin((Math.PI/180) * _rotation)));
} else {
_y = (_y - (spd * Math.cos((Math.PI/180) * _rotation)));
_x = (_x + (spd * Math.sin((Math.PI/180) * _rotation)));
}
if ((((_x > 550) || (_x < 0)) || (_y < 0)) || (_y > 400)) {
this.removeMovieClip();
}
}
Instance of Symbol 378 MovieClip "hud" in Frame 7
onClipEvent (load) {
this.swapDepths(999998);
}
Instance of Symbol 409 MovieClip "enemyD" in Frame 7
onClipEvent (load) {
if (_root.place == 0) {
_x = random(550);
_y = 0;
}
if (_root.place == 1) {
_x = random(550);
_y = 400;
}
if (_root.place == 2) {
_x = 0;
_y = random(400);
}
if (_root.place == 3) {
_x = 550;
_y = random(400);
}
speed = random(4) + 2;
hp = 40;
spawn_box = random(2);
dist = null;
tdist = 150;
this.gotoAndStop(1);
if (_name == "enemyD") {
_x = 1000;
_y = 1000;
}
}
onClipEvent (enterFrame) {
if (_root.paused == true) {
this.removeMovieClip();
}
if ((_name != "enemyD") && (_root.paused == false)) {
if (this.dying._currentframe == 10) {
if (spawn_box == 1) {
_root.ammoplus = random(15) + 10;
duplicateMovieClip (_root.ammobox, "ammoup" + _root.q, 1 + _root.q);
_root["ammoup" + _root.q]._x = _x;
_root["ammoup" + _root.q]._y = _y;
_root.q++;
}
this.removeMovieClip();
}
if (hp > 0) {
if (dist <= tdist) {
this.gotoAndStop(3);
if (this.beam.hitTest(_root.cheif) && (this.beam._currentframe == 20)) {
_root.hp = _root.hp - 5;
_root.hptime = 0;
}
} else {
gotoAndStop (1);
}
for (i in _root) {
if (_root[i]._name.indexOf("laser") != -1) {
if (_root[i].hitTest(this.dro)) {
hp = hp - _root["laser" + _root.bc].dam;
if ((_root.i != 4) && (_root.i != 7)) {
_root[i].removeMovieClip();
}
if (_root.i == 4) {
_root[i]._rotation = random(360);
}
if (_root.i == 7) {
_root[i].spd = 0;
_root[i].explode.play();
}
}
}
}
Xd = _root.cheif._x - _x;
Yd = _root.cheif._y - _y;
dist = Math.sqrt((Xd * Xd) + (Yd * Yd));
radAngle = Math.atan2(Yd, Xd);
if (_currentframe != 3) {
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
}
YY = speed * Math.cos((Math.PI/180) * _rotation);
XX = speed * Math.sin((Math.PI/180) * _rotation);
if (dist > tdist) {
if (_rotation > 180) {
_y = (_y + YY);
_x = (_x - XX);
} else {
_y = (_y - YY);
_x = (_x + XX);
}
}
} else {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 471 MovieClip "enemyE" in Frame 7
onClipEvent (load) {
if (_root.place == 0) {
_x = random(550);
_y = 0;
}
if (_root.place == 1) {
_x = random(550);
_y = 400;
}
if (_root.place == 2) {
_x = 0;
_y = random(400);
}
if (_root.place == 3) {
_x = 550;
_y = random(400);
}
speed = random(2) + 1.5;
hp = 175;
spawn_box = random(2);
this.gotoAndStop(1);
if (_name == "enemyE") {
_x = 1000;
_y = 1000;
}
}
onClipEvent (enterFrame) {
if (_root.paused == true) {
this.removeMovieClip();
}
if ((_name != "enemyE") && (_root.paused == false)) {
if (this.dying._currentframe == 15) {
if (spawn_box == 1) {
_root.ammoplus = random(25) + 15;
duplicateMovieClip (_root.ammobox, "ammoup" + _root.q, 1 + _root.q);
_root["ammoup" + _root.q]._x = _x;
_root["ammoup" + _root.q]._y = _y;
_root.q++;
}
this.removeMovieClip();
}
if (hp > 0) {
if (_root.cheif.body.hitTest(this)) {
this.gotoAndStop(3);
} else {
gotoAndStop (1);
}
for (i in _root) {
if (_root[i]._name.indexOf("laser") != -1) {
if (_root[i].hitTest(this)) {
hp = hp - _root["laser" + _root.bc].dam;
duplicateMovieClip (_root.stain, "sta" + _root.s, 1 + _root.s);
_root["sta" + _root.s]._x = _x;
_root["sta" + _root.s]._y = _y;
_root["sta" + _root.s]._rotation = _rotation;
_root["sta" + _root.s].gotoAndStop(random(5) + 1);
_root.s++;
if ((_root.i != 4) && (_root.i != 7)) {
_root[i].removeMovieClip();
}
if (_root.i == 4) {
_root[i]._rotation = random(360);
}
if (_root.i == 7) {
_root[i].spd = 0;
_root[i].explode.play();
}
}
}
}
Xd = _root.cheif._x - _x;
Yd = _root.cheif._y - _y;
radAngle = Math.atan2(Yd, Xd);
_rotation = int(((radAngle * 360) / (Math.PI*2)) + 90);
YY = speed * Math.cos((Math.PI/180) * _rotation);
XX = speed * Math.sin((Math.PI/180) * _rotation);
if (!_root.cheif.body.hitTest(this)) {
if (_rotation > 180) {
_y = (_y + YY);
_x = (_x - XX);
} else {
_y = (_y - YY);
_x = (_x + XX);
}
}
} else {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 474 MovieClip "ammobox" in Frame 7
onClipEvent (load) {
if (_name == "ammobox") {
_x = 2000;
_y = 2000;
}
var madd = _root.ammoplus;
}
onClipEvent (enterFrame) {
if (_root.paused == true) {
this.removeMovieClip();
}
if (_root.paused == false) {
if (_root.cheif.body.hitTest(this)) {
_root.money = _root.money + madd;
_root.stats.pickup2.text = _root.stats.pickup.text;
_root.stats.pickup.text = (((("You picked up " + madd) + " ") + " Credits") + " Credits: ") + _root.money;
this.play();
}
if (_currentframe == 3) {
this.removeMovieClip();
}
}
}
Instance of Symbol 484 MovieClip "aimer" in Frame 7
onClipEvent (load) {
this.swapDepths(999999);
}
onClipEvent (enterFrame) {
if (_root.paused == false) {
Mouse.hide();
_y = _root._ymouse;
_x = _root._xmouse;
}
}
Frame 8
stop();
Instance of Symbol 107 MovieClip in Frame 8
onClipEvent (load) {
this.gotoAndStop(1);
}
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_root.reset();
_root.gotoAndStop("menu");
}
Instance of Symbol 57 MovieClip in Frame 8
onClipEvent (enterFrame) {
Mouse.hide();
_y = _root._ymouse;
_x = _root._xmouse;
}
Symbol 26 Button
on (release) {
_root.gs++;
}
Symbol 27 Button
on (release) {
_root.gs--;
}
Symbol 36 Button
on (release) {
_root.unpause();
}
Symbol 40 Button
on (release) {
_root.buyAmmo();
}
Instance of Symbol 22 MovieClip in Symbol 41 MovieClip [buy] Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.gs + 1);
}
Symbol 54 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
KB_out = ((int(_root.getBytesLoaded() / 1000) + "/") + int(_root.getBytesTotal() / 1000)) + "";
if (PercentLoaded != 100) {
setProperty(barmask.bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 54 MovieClip Frame 2
gotoAndPlay (1);
Symbol 54 MovieClip Frame 3
_root.play();
Symbol 70 MovieClip Frame 105
_root.introB.play();
stop();
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 32
_root.boot_logo.play();
Symbol 80 MovieClip Frame 1
stop();
Instance of Symbol 79 MovieClip in Symbol 80 MovieClip Frame 2
on (release) {
getURL ("http://bootgamer.com/", "_BLANK");
}
Symbol 80 MovieClip Frame 50
_root.play();
Instance of Symbol 84 MovieClip in Symbol 87 MovieClip Frame 1
onClipEvent (load) {
stream = true;
this.gotoAndStop(2);
}
on (release) {
if (stream == true) {
this.gotoAndStop(1);
_parent.stop();
stream = false;
} else if (stream == false) {
this.gotoAndStop(2);
_parent.play();
stream = true;
}
}
Symbol 103 Button
on (release) {
getURL ("http://bootgamer.com/", "_BLANK");
}
Symbol 142 Button
on (release) {
_root.gotoAndStop("game");
_root.normal();
}
Symbol 143 Button
on (release) {
_root.gotoAndStop("game");
_root.action();
}
Symbol 144 Button
on (release) {
_root.gotoAndStop("game");
_root.plasma();
}
Symbol 172 MovieClip Frame 1
Instance of Symbol 176 MovieClip in Symbol 183 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(_root.damage[_root.i]);
}
Instance of Symbol 183 MovieClip "gun" in Symbol 184 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.i + 1);
}
Symbol 203 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 19
stop();
Instance of Symbol 176 MovieClip in Symbol 205 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(_root.damage[_root.i]);
}
Symbol 235 MovieClip Frame 2
_root.kills++;
Symbol 245 MovieClip Frame 8
_root.hp = _root.hp - 7;
_root.hptime = 0;
Symbol 297 MovieClip Frame 13
_root.kills++;
Symbol 309 MovieClip Frame 13
_root.hp = _root.hp - 15;
_root.hptime = 0;
Symbol 344 MovieClip Frame 2
_root.kills++;
Symbol 378 MovieClip Frame 1
stop();
Instance of Symbol 356 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (enterFrame) {
this.fill._xscale = (_root.hp / _root.maxhp) * 100;
}
Instance of Symbol 362 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (enterFrame) {
this.rel._xscale = (_root.ticks2 / _root.reltime[_root.i]) * 100;
}
Instance of Symbol 363 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (enterFrame) {
this.amm._xscale = (_root.ammo[_root.i] / _root.clip[_root.i]) * 100;
}
Symbol 378 MovieClip Frame 2
stop();
Symbol 405 MovieClip Frame 1
_root.kills++;
Symbol 449 MovieClip Frame 2
_root.kills++;
Symbol 449 MovieClip Frame 13
Symbol 470 MovieClip Frame 18
_root.hp = _root.hp - 25;
_root.hptime = 0;
Symbol 474 MovieClip Frame 1
stop();
Instance of Symbol 483 MovieClip in Symbol 484 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.i + 1);
}