Frame 1
stop();
Stage.showMenu = false;
_focusrect = false;
Instance of Symbol 503 MovieClip in Frame 1
onClipEvent (enterFrame) {
_root.percent = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
_root.percentName = _root.percent + "% Loaded";
_x = Math.round((_root.percent * 7.5) + 50);
}
Instance of Symbol 520 MovieClip in Frame 1
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Instance of Symbol 524 MovieClip in Frame 1
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Frame 2
stop();
Frame 3
stop();
Instance of Symbol 558 MovieClip in Frame 3
on (release) {
getURL ("http://www.rustygames.com", "_blank");
}
Frame 4
stop();
Instance of Symbol 573 MovieClip in Frame 4
on (release) {
getURL ("http://www.corkysurprise.com", "_blank");
}
Frame 69
_root.createEmptyMovieClip("IntroSoundMC", _root.getNextHighestDepth());
globalIntro = new Sound(_root.IntroSoundMC);
globalIntro.setVolume(35);
sipCoffee = new Sound();
sipCoffee.attachSound("HeisserKaffee");
sipCoffee.start();
Frame 111
staticS = new Sound();
staticS.attachSound("static");
staticS.start();
Frame 114
newsAnnouncement = new Sound();
newsAnnouncement.attachSound("newsAnnouncement");
newsAnnouncement.start();
Frame 159
_root.createEmptyMovieClip("lolza", _root.getNextHighestDepth());
NewsReporter = new Sound(_root.lolza);
NewsReporter.attachSound("NewsReporter");
NewsReporter.setVolume(50);
NewsReporter.start();
Frame 180
sipCoffee = new Sound();
sipCoffee.attachSound("HeisserKaffee");
sipCoffee.start();
Frame 230
PS = new Sound(_root.IntroSoundMC);
PS.attachSound("police");
PS.start();
helicopter = new Sound(_root.IntroSoundMC);
helicopter.attachSound("heliNoise");
helicopter.start(0, 2);
NewsReporter.setVolume(130);
vulcan = new Sound(_root.IntroSoundMC);
vulcan.attachSound("vulcan_fire");
vulcan.start(0, 15);
Frame 250
ric1 = new Sound(_root.IntroSoundMC);
ric1.attachSound("ric1");
ric1.start();
Frame 271
ric2 = new Sound(_root.IntroSoundMC);
ric2.attachSound("ric2");
ric2.start();
Frame 273
helicopter2 = new Sound(_root.IntroSoundMC);
helicopter2.attachSound("helicopter2b");
helicopter2.start();
Frame 285
ric3 = new Sound(_root.IntroSoundMC);
ric3.attachSound("ric3");
ric3.start();
Frame 292
ric4 = new Sound(_root.IntroSoundMC);
ric4.attachSound("ric4");
ric4.start();
Frame 303
pistol2Ani = new Sound(_root.IntroSoundMC);
pistol2Ani.attachSound("pistol2");
pistol2Ani.start();
Frame 310
pistol2Ani = new Sound(_root.IntroSoundMC);
pistol2Ani.attachSound("pistol2");
pistol2Ani.start();
Frame 315
ric1 = new Sound(_root.IntroSoundMC);
ric1.attachSound("ric1");
ric1.start();
Frame 338
ric1 = new Sound(_root.IntroSoundMC);
ric1.attachSound("ric1");
ric1.start();
Frame 349
ric3 = new Sound(_root.IntroSoundMC);
ric3.attachSound("ric3");
ric3.start();
Frame 353
ric3 = new Sound(_root.IntroSoundMC);
ric3.attachSound("ric3");
ric3.start();
Frame 358
ric4 = new Sound(_root.IntroSoundMC);
ric4.attachSound("ric4");
ric4.start();
Frame 365
ric2 = new Sound(_root.IntroSoundMC);
ric2.attachSound("ric2");
ric2.start();
Frame 368
ric4 = new Sound(_root.IntroSoundMC);
ric4.attachSound("ric4");
ric4.start();
Frame 371
ric2 = new Sound(_root.IntroSoundMC);
ric2.attachSound("ric2");
ric2.start();
Frame 383
ric2 = new Sound(_root.IntroSoundMC);
ric2.attachSound("ric2");
ric2.start();
Frame 393
pistol2Ani = new Sound(_root.IntroSoundMC);
pistol2Ani.attachSound("pistol2");
pistol2Ani.start();
Frame 408
ric3 = new Sound(_root.IntroSoundMC);
ric3.attachSound("ric3");
ric3.start();
Frame 461
gasp = new Sound();
gasp.attachSound("gasp");
gasp.start();
Frame 485
staticS = new Sound();
staticS.attachSound("static");
staticS.start(0, 3);
Frame 516
car_animationexplosion = new Sound();
car_animationexplosion.attachSound("car_animationexplosion");
car_animationexplosion.start();
Frame 594
_root.play();
Frame 595
function loadVoices() {
l1m1 = new Sound();
l1m1.attachSound("l1m1");
l1m1.setVolume(_root.voiceVolume);
l1m2 = new Sound();
l1m2.attachSound("l1m2");
l1m2.setVolume(_root.voiceVolume);
l1m3 = new Sound();
l1m3.attachSound("l1m3");
l1m3.setVolume(_root.voiceVolume);
l2m1 = new Sound();
l2m1.attachSound("l2m1");
l2m1.setVolume(_root.voiceVolume);
l2m2 = new Sound();
l2m2.attachSound("l2m2");
l2m2.setVolume(_root.voiceVolume);
l2m3 = new Sound();
l2m3.attachSound("l2m3");
l2m3.setVolume(_root.voiceVolume);
l3m1 = new Sound();
l3m1.attachSound("l3m1");
l3m1.setVolume(_root.voiceVolume);
l3m2 = new Sound();
l3m2.attachSound("l3m2");
l3m2.setVolume(_root.voiceVolume);
l3m3 = new Sound();
l3m3.attachSound("l3m3");
l3m3.setVolume(_root.voiceVolume);
l4m1 = new Sound();
l4m1.attachSound("l4m1");
l4m1.setVolume(_root.voiceVolume);
l4m2 = new Sound();
l4m2.attachSound("l4m2");
l4m2.setVolume(_root.voiceVolume);
l4m3 = new Sound();
l4m3.attachSound("l4m3");
l4m3.setVolume(_root.voiceVolume);
l5m1 = new Sound();
l5m1.attachSound("l5m1");
l5m1.setVolume(_root.voiceVolume);
l5m2 = new Sound();
l5m2.attachSound("l5m2");
l5m2.setVolume(_root.voiceVolume);
l5m3 = new Sound();
l5m3.attachSound("l5m3");
l5m3.setVolume(_root.voiceVolume);
l6m1 = new Sound();
l6m1.attachSound("l6m1");
l6m1.setVolume(_root.voiceVolume);
l6m2 = new Sound();
l6m2.attachSound("l6m2");
l6m2.setVolume(_root.voiceVolume);
l6m3 = new Sound();
l6m3.attachSound("l6m3");
l6m3.setVolume(_root.voiceVolume);
l7m1 = new Sound();
l7m1.attachSound("l7m1");
l7m1.setVolume(_root.voiceVolume);
l7m2 = new Sound();
l7m2.attachSound("l7m2");
l7m2.setVolume(_root.voiceVolume);
l7m3 = new Sound();
l7m3.attachSound("l7m3");
l7m3.setVolume(_root.voiceVolume);
l7m4 = new Sound();
l7m4.attachSound("l7m4");
l7m4.setVolume(_root.voiceVolume);
l8m1 = new Sound();
l8m1.attachSound("l8m1");
l8m1.setVolume(_root.voiceVolume);
l8m2 = new Sound();
l8m2.attachSound("l8m2");
l8m2.setVolume(_root.voiceVolume);
l8m3 = new Sound();
l8m3.attachSound("l8m3");
l8m3.setVolume(_root.voiceVolume);
l9m1 = new Sound();
l9m1.attachSound("l9m1");
l9m1.setVolume(_root.voiceVolume);
l9m2 = new Sound();
l9m2.attachSound("l9m2");
l9m2.setVolume(_root.voiceVolume);
l9m3 = new Sound();
l9m3.attachSound("l9m3");
l9m3.setVolume(_root.voiceVolume);
l10m1 = new Sound();
l10m1.attachSound("l10m1");
l10m1.setVolume(_root.voiceVolume);
l10m2 = new Sound();
l10m2.attachSound("l10m2");
l10m2.setVolume(_root.voiceVolume);
l10m3 = new Sound();
l10m3.attachSound("l10m3");
l10m3.setVolume(_root.voiceVolume);
l10m4 = new Sound();
l10m4.attachSound("l10m4");
l10m4.setVolume(_root.voiceVolume);
}
function __com_mochibot__(swfid, mc, lv) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = ((((((((((("http://" + mbc) + "/my/core.swf?mv=5&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
stop();
if (_root.cash == undefined) {
_root.SpecialEffects = "HIGH";
_root.InGameQuality = "MEDIUM";
_root.MenuQuality = "HIGH";
_root.levelUnlocked = 1;
_root.soundVolume = 60;
_root.musicVolume = 100;
_root.voiceVolume = 130;
_root.surroundSound = true;
_root.cash = 0;
_root.attachMovie("blur", "blur", 1);
_root.blur._x = 754;
_root.blur._y = 300;
pistol = new Sound();
pistol.setVolume(_root.soundVolume);
pistol.attachSound("pistol");
pistol2 = new Sound();
pistol2.setVolume(_root.soundVolume);
pistol2.attachSound("pistol2");
boss_explode = new Sound();
boss_explode.setVolume(_root.soundVolume);
boss_explode.attachSound("boss_explode");
_root.createEmptyMovieClip("menuMusicMC", _root.getNextHighestDepth());
menu_music = new Sound(menuMusicMC);
menu_music.setVolume(_root.musicVolume);
menu_music.attachSound("menu_music");
menu_music.start(0, 9999);
cashregister = new Sound();
cashregister.setVolume(_root.soundVolume);
cashregister.attachSound("cashregister");
crash = new Sound();
crash.setVolume(_root.soundVolume);
crash.attachSound("crash");
loadVoices();
}
if (_root.score == undefined) {
_root.score = 0;
}
if (_root.gQ == undefined) {
_root.gQ = 0;
}
if (_root.pbQ == undefined) {
_root.pbQ = 0;
}
if (level == undefined) {
level = 1;
}
if (_root.otherStrengthPoints == undefined) {
_root.otherStrengthPoints = 0;
}
if (_root.unlockedWeapons == undefined) {
_root.unlockedWeapons = new Array();
}
if (_root.unlockedWheels == undefined) {
_root.unlockedWheels = new Array();
}
if (_root.unlockedAid == undefined) {
_root.unlockedAid = new Array();
}
if (_root.unlockedEngines == undefined) {
_root.unlockedEngines = new Array();
}
if (_root.unlockedArmor == undefined) {
_root.unlockedArmor = new Array();
}
if (_root.unlockedExtras == undefined) {
_root.unlockedExtras = new Array();
}
if (_root.carEngineStrength == undefined) {
_root.carEngineStrength = 0;
}
if (_root.carTyreStrength == undefined) {
_root.carTyreStrength = 0;
}
if (_root.carWeaponWeight == undefined) {
_root.carWeaponWeight = 0;
}
if (_root.carTeamWeight == undefined) {
_root.carTeamWeight = 0;
}
if (_root.carArmorWeight == undefined) {
_root.carArmorWeight = 0;
}
if (_root.otherStrengthPoints == undefined) {
_root.otherStrengthPoints = 0;
}
__com_mochibot__("1f8e4135", this, 10301);
_quality = _root.MenuQuality;
Instance of Symbol 722 MovieClip in Frame 595
onClipEvent (enterFrame) {
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 596
stop();
_root.mode = "levelChoose";
_quality = _root.MenuQuality;
Instance of Symbol 729 MovieClip in Frame 596
on (press) {
_root.blur.play();
_root.frameDirection = "l1";
_root.menu_music.stop();
}
Instance of Symbol 731 MovieClip in Frame 596
on (press) {
_root.blur.play();
_root.frameDirection = "l2";
_root.menu_music.stop();
}
Instance of Symbol 733 MovieClip in Frame 596
on (press) {
_root.blur.play();
_root.frameDirection = "l3";
_root.menu_music.stop();
}
Instance of Symbol 735 MovieClip in Frame 596
on (press) {
_root.blur.play();
_root.frameDirection = "l4";
_root.menu_music.stop();
}
Instance of Symbol 737 MovieClip in Frame 596
on (press) {
_root.blur.play();
_root.frameDirection = "l5";
_root.menu_music.stop();
}
Instance of Symbol 739 MovieClip in Frame 596
on (press) {
_root.blur.play();
_root.frameDirection = "l6";
_root.menu_music.stop();
}
Instance of Symbol 741 MovieClip in Frame 596
on (press) {
_root.blur.play();
_root.frameDirection = "l7";
_root.menu_music.stop();
}
Instance of Symbol 743 MovieClip in Frame 596
on (press) {
_root.blur.play();
_root.frameDirection = "l8";
_root.menu_music.stop();
}
Instance of Symbol 745 MovieClip in Frame 596
on (press) {
_root.blur.play();
_root.frameDirection = "l9";
_root.menu_music.stop();
}
Instance of Symbol 747 MovieClip in Frame 596
on (press) {
_root.blur.play();
_root.frameDirection = "l10";
_root.menu_music.stop();
}
Instance of Symbol 749 MovieClip in Frame 596
on (press) {
_root.blur.play();
_root.frameDirection = "upgrades";
}
Instance of Symbol 751 MovieClip in Frame 596
on (press) {
_root.blur.play();
_root.frameDirection = "Menu";
}
Instance of Symbol 753 MovieClip in Frame 596
onClipEvent (load) {
if (_root.levelUnlocked >= 2) {
_visible = false;
}
}
on (press) {
}
Instance of Symbol 753 MovieClip in Frame 596
onClipEvent (load) {
if (_root.levelUnlocked >= 3) {
_visible = false;
}
}
on (press) {
}
Instance of Symbol 753 MovieClip in Frame 596
onClipEvent (load) {
if (_root.levelUnlocked >= 4) {
_visible = false;
}
}
on (press) {
}
Instance of Symbol 753 MovieClip in Frame 596
onClipEvent (load) {
if (_root.levelUnlocked >= 5) {
_visible = false;
}
}
on (press) {
}
Instance of Symbol 753 MovieClip in Frame 596
onClipEvent (load) {
if (_root.levelUnlocked >= 6) {
_visible = false;
}
}
on (press) {
}
Instance of Symbol 753 MovieClip in Frame 596
onClipEvent (load) {
if (_root.levelUnlocked >= 7) {
_visible = false;
}
}
on (press) {
}
Instance of Symbol 753 MovieClip in Frame 596
onClipEvent (load) {
if (_root.levelUnlocked >= 8) {
_visible = false;
}
}
on (press) {
}
Instance of Symbol 753 MovieClip in Frame 596
onClipEvent (load) {
if (_root.levelUnlocked >= 9) {
_visible = false;
}
}
on (press) {
}
Instance of Symbol 753 MovieClip in Frame 596
onClipEvent (load) {
if (_root.levelUnlocked >= 10) {
_visible = false;
}
}
on (press) {
}
Instance of Symbol 775 MovieClip in Frame 597
on (press) {
_root.soundVolume = _root.soundVolume + 10;
if (_root.soundVolume >= 100) {
_root.soundVolume = 100;
}
}
Instance of Symbol 777 MovieClip in Frame 597
on (press) {
_root.soundVolume = _root.soundVolume - 10;
if (_root.soundVolume <= 0) {
_root.soundVolume = 0;
}
}
Instance of Symbol 777 MovieClip in Frame 597
on (press) {
_root.musicVolume = _root.musicVolume - 10;
if (_root.musicVolume <= 0) {
_root.musicVolume = 0;
}
_root.menu_music.setVolume(_root.musicVolume);
}
Instance of Symbol 775 MovieClip in Frame 597
on (press) {
_root.musicVolume = _root.musicVolume + 10;
if (_root.musicVolume >= 100) {
_root.musicVolume = 100;
}
_root.menu_music.setVolume(_root.musicVolume);
}
Instance of Symbol 777 MovieClip in Frame 597
on (press) {
_root.voiceVolume = _root.voiceVolume - 10;
if (_root.voiceVolume <= 0) {
_root.voiceVolume = 0;
}
}
Instance of Symbol 775 MovieClip in Frame 597
on (press) {
_root.voiceVolume = _root.voiceVolume + 10;
if (_root.voiceVolume >= 150) {
_root.voiceVolume = 150;
}
}
Frame 599
narration = new Sound();
narration.attachSound("Narrator_level1");
narration.setVolume(_root.voiceVolume);
narration.start();
_root.createEmptyMovieClip("missionMusicMC", _root.getNextHighestDepth());
mission_music = new Sound(missionMusicMC);
mission_music.setVolume(_root.musicVolume);
mission_music.attachSound("War Room");
mission_music.start(0, 9999);
_quality = _root.MenuQuality;
Instance of Symbol 751 MovieClip in Frame 599
on (press) {
_root.narration.stop();
_root.blur.play();
_root.frameDirection = "LS";
with (_root) {
mission_music.stop();
menu_music.start(0, 9999);
}
}
Instance of Symbol 722 MovieClip in Frame 599
onClipEvent (enterFrame) {
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 600
narration = new Sound();
narration.attachSound("Narrator_level2");
narration.setVolume(_root.voiceVolume);
narration.start();
_root.createEmptyMovieClip("missionMusicMC", _root.getNextHighestDepth());
mission_music = new Sound(missionMusicMC);
mission_music.setVolume(_root.musicVolume);
mission_music.attachSound("War Room");
mission_music.start(0, 9999);
_quality = _root.MenuQuality;
Frame 601
narration = new Sound();
narration.attachSound("Narrator_level3");
narration.setVolume(_root.voiceVolume);
narration.start();
_root.createEmptyMovieClip("missionMusicMC", _root.getNextHighestDepth());
mission_music = new Sound(missionMusicMC);
mission_music.setVolume(_root.musicVolume);
mission_music.attachSound("War Room");
mission_music.start(0, 9999);
_quality = _root.MenuQuality;
Frame 602
narration = new Sound();
narration.attachSound("Narrator_level4");
narration.setVolume(_root.voiceVolume);
narration.start();
_root.createEmptyMovieClip("missionMusicMC", _root.getNextHighestDepth());
mission_music = new Sound(missionMusicMC);
mission_music.setVolume(_root.musicVolume);
mission_music.attachSound("War Room");
mission_music.start(0, 9999);
_quality = _root.MenuQuality;
Frame 603
narration = new Sound();
narration.attachSound("Narrator_level5");
narration.setVolume(_root.voiceVolume);
narration.start();
_root.createEmptyMovieClip("missionMusicMC", _root.getNextHighestDepth());
mission_music = new Sound(missionMusicMC);
mission_music.setVolume(_root.musicVolume);
mission_music.attachSound("War Room");
mission_music.start(0, 9999);
_quality = _root.MenuQuality;
Frame 604
narration = new Sound();
narration.attachSound("Narrator_level6");
narration.setVolume(_root.voiceVolume);
narration.start();
_root.createEmptyMovieClip("missionMusicMC", _root.getNextHighestDepth());
mission_music = new Sound(missionMusicMC);
mission_music.setVolume(_root.musicVolume);
mission_music.attachSound("War Room");
mission_music.start(0, 9999);
_quality = _root.MenuQuality;
Frame 605
narration = new Sound();
narration.attachSound("Narrator_level7");
narration.setVolume(_root.voiceVolume);
narration.start();
_root.createEmptyMovieClip("missionMusicMC", _root.getNextHighestDepth());
mission_music = new Sound(missionMusicMC);
mission_music.setVolume(_root.musicVolume);
mission_music.attachSound("War Room");
mission_music.start(0, 9999);
_quality = _root.MenuQuality;
Frame 606
narration = new Sound();
narration.attachSound("Narrator_level8");
narration.setVolume(_root.voiceVolume);
narration.start();
_root.createEmptyMovieClip("missionMusicMC", _root.getNextHighestDepth());
mission_music = new Sound(missionMusicMC);
mission_music.setVolume(_root.musicVolume);
mission_music.attachSound("War Room");
mission_music.start(0, 9999);
_quality = _root.MenuQuality;
Frame 607
narration = new Sound();
narration.attachSound("Narrator_level9");
narration.setVolume(_root.voiceVolume);
narration.start();
_root.createEmptyMovieClip("missionMusicMC", _root.getNextHighestDepth());
mission_music = new Sound(missionMusicMC);
mission_music.setVolume(_root.musicVolume);
mission_music.attachSound("War Room");
mission_music.start(0, 9999);
_quality = _root.MenuQuality;
Frame 608
narration = new Sound();
narration.attachSound("Narrator_level10");
narration.setVolume(_root.voiceVolume);
narration.start();
_root.createEmptyMovieClip("missionMusicMC", _root.getNextHighestDepth());
mission_music = new Sound(missionMusicMC);
mission_music.setVolume(_root.musicVolume);
mission_music.attachSound("War Room");
mission_music.start(0, 9999);
_quality = _root.MenuQuality;
Frame 609
function makeEnemy1() {
if (_root.enemysUsed >= maxEnemys) {
return(undefined);
}
if ((level == 2) and (_root.mapP > 70)) {
return(undefined);
}
_root.depthHolder++;
minY = 300;
maxY = 400;
enemyY = Math.round(Math.random() * (maxY - minY)) + minY;
if (_root["level" + level].enemy1 == "Helicopter") {
enemyY = 0;
}
if (_root.level == 1) {
enemyChance = random(10);
}
if (_root.level == 2) {
enemyChance = Math.round(Math.random() * 1) + 1;
}
if (_root.level == 3) {
enemyChance = Math.round(Math.random() * 3) + 6;
}
if (_root.level == 4) {
enemyChance = random(10);
}
if (_root.level == 6) {
enemyChance = Math.round(Math.random() * 2) + 1;
}
if (_root.level == 7) {
enemyChance = Math.round(Math.random() * 8) + 1;
}
if (_root.level == 8) {
enemyChance = Math.round(Math.random() * 8) + 1;
}
if (_root.level == 9) {
if (_root["level" + level].enemy1 == "Helicopter") {
enemyY = 0;
enemyChance = Math.round(Math.random() * 1) + 2;
}
if (_root["level" + level].enemy1 == "BHCar") {
enemyChance = Math.round(Math.random() * 4) + 5;
}
}
enemyWord = _root["level" + level].enemy1 + enemyChance;
var _local2 = enemyWord + _root.depthHolder;
_root.attachMovie(enemyWord, _local2, _root.depthHolder);
car.enemies.push(_root[_local2]);
_root[_local2]._x = 900;
if (((((level == 3) or (level == 4)) or (level == 6)) or (level == 7)) or (level == 8)) {
_root[_local2]._x = -200;
}
if ((level == 9) and (enemyChance >= 7)) {
_root[_local2]._x = -200;
}
if (_root.level == 9) {
if ((_root["level" + level].enemy1 == "MotorBike") or (_root["level" + level].enemy1 == "Mafia")) {
_root[_local2]._x = -200;
}
}
_root[_local2]._y = enemyY;
_root[_local2].swapDepths(enemyY);
_root.depthHolder++;
}
function makeEnemy2() {
if (_root.enemysUsed >= maxEnemys) {
return(undefined);
}
if ((level == 2) and (_root.mapP < 30)) {
return(undefined);
}
if ((level == 3) and (_root.mapP < 40)) {
return(undefined);
}
_root.depthHolder++;
minY = 300;
maxY = 400;
enemyY = Math.round(Math.random() * (maxY - minY)) + minY;
if (_root["level" + level].enemy1 == "Helicopter") {
enemyY = 0;
}
if (level == 1) {
enemyChance = Math.round(_root.mapP / 20);
}
if (level == 2) {
enemyChance = 2;
}
if (level == 1) {
maxEC = 6;
}
if (level == 2) {
maxEC = 3;
}
if (_root.level == 3) {
enemyChance = Math.round(Math.random() * 2) + 1;
}
if (_root.level == 4) {
enemyChance = random(10);
}
if (_root.level == 6) {
enemyChance = Math.round(Math.random() * 2) + 1;
}
if (_root.level == 7) {
enemyChance = 3;
}
if (_root.level == 8) {
enemyChance = Math.round(Math.random() * 8) + 1;
}
if (_root.level == 9) {
if (_root["level" + level].enemy1 == "Helicopter") {
enemyY = 0;
enemyChance = Math.round(Math.random() * 1) + 2;
}
if (_root["level" + level].enemy1 == "BHCar") {
enemyChance = Math.round(Math.random() * 4) + 5;
}
}
if (enemyChance > maxEC) {
enemyChance = maxEC;
}
if (enemyChance <= 0) {
enemyChance = 1;
}
enemyWord = _root["level" + level].enemy2 + enemyChance;
var _local2 = enemyWord + _root.depthHolder;
_root.attachMovie(enemyWord, _local2, _root.depthHolder);
car.enemies.push(_root[_local2]);
_root[_local2]._x = 900;
if (((((level == 3) or (level == 4)) or (level == 6)) or (level == 7)) or (level == 8)) {
_root[_local2]._x = -200;
}
if (_root.level == 9) {
if ((_root["level" + level].enemy2 == "MotorBike") or (_root["level" + level].enemy2 == "Mafia")) {
_root[_local2]._x = -200;
}
}
_root[_local2]._y = enemyY;
_root[_local2].swapDepths(enemyY);
_root.depthHolder++;
}
function makeEnemy3() {
if (_root.enemysUsed >= maxEnemys) {
return(undefined);
}
if (_root.mapP < 70) {
if ((_root.level == 1) or (_root.level == 2)) {
return(undefined);
}
}
_root.depthHolder++;
minY = 300;
maxY = 400;
enemyY = Math.round(Math.random() * (maxY - minY)) + minY;
if (_root["level" + level].enemy1 == "Helicopter") {
enemyY = 0;
}
if (level == 1) {
enemyChance = random(10);
}
if (level == 2) {
enemyChance = 3;
}
if (_root.level == 3) {
enemyChance = Math.round(Math.random() * 3) + 3;
}
if (_root.level == 4) {
enemyChance = random(10);
}
if (_root.level == 6) {
enemyChance = Math.round(Math.random() * 2) + 1;
}
if (_root.level == 7) {
enemyChance = Math.round(Math.random() * 8) + 1;
}
if (_root.level == 8) {
enemyChance = random(10);
}
if (_root.level == 9) {
if (_root["level" + level].enemy3 == "Helicopter") {
enemyY = 0;
enemyChance = Math.round(Math.random() * 1) + 2;
}
if (_root["level" + level].enemy3 == "BHCar") {
enemyChance = Math.round(Math.random() * 4) + 5;
}
}
if (_root.level == 9) {
if ((_root["level" + level].enemy3 == "MotorBike") or (_root["level" + level].enemy3 == "Mafia")) {
_root[enemyM]._x = -200;
}
}
enemyWord = _root["level" + level].enemy3 + enemyChance;
var enemyM = (enemyWord + _root.depthHolder);
_root.attachMovie(enemyWord, enemyM, _root.depthHolder);
car.enemies.push(_root[enemyM]);
_root[enemyM]._x = 900;
if (((((level == 3) or (level == 4)) or (level == 6)) or (level == 7)) or (level == 8)) {
_root[enemyM]._x = -200;
}
_root[enemyM]._y = enemyY;
_root[enemyM].swapDepths(enemyY);
_root.depthHolder++;
}
_quality = _root.InGameQuality;
narration.stop();
menu_music.stop();
_root.createEmptyMovieClip("gamemusicHolder", 59239929);
gamemusic = new Sound(gamemusicHolder);
if ((((level == 1) or (level == 3)) or (level == 6)) or (level == 8)) {
gamemusic.attachSound("Shadows_of_the_Sky");
}
if ((((level == 2) or (level == 4)) or (level == 7)) or (level == 9)) {
gamemusic.attachSound("Haunted_Woods");
trace("Haunted");
}
gamemusic.setVolume(_root.musicVolume);
gamemusic.start(0, 9999);
if (_root.level == 6) {
goLeft = false;
}
if (_root.cash == undefined) {
_root.cash = 0;
}
if (_root.score == undefined) {
_root.score = 0;
}
if (_root.gQ == undefined) {
_root.gQ = 0;
}
if (_root.pbQ == undefined) {
_root.pbQ = 0;
}
if (level == undefined) {
level = 1;
}
if (_root.otherStrengthPoints == undefined) {
_root.otherStrengthPoints = 0;
}
if (_root.unlockedWeapons == undefined) {
_root.unlockedWeapons = new Array();
}
if (_root.unlockedWheels == undefined) {
_root.unlockedWheels = new Array();
}
if (_root.unlockedAid == undefined) {
_root.unlockedAid = new Array();
}
if (_root.unlockedEngines == undefined) {
_root.unlockedEngines = new Array();
}
if (_root.unlockedArmor == undefined) {
_root.unlockedArmor = new Array();
}
if (_root.unlockedExtras == undefined) {
_root.unlockedExtras = new Array();
}
if (level == 5) {
_root.gotoAndStop("boss");
}
stop();
_root.mode = "game";
_root.killAll = false;
_root.killAll = false;
e1 = (levelMode = "gang");
_root.depthHolder = 1000;
_root.levelDone = false;
BHCC = 2;
_root.caughtPacket = 0;
delay = 4000;
delayB = 8000;
delayC = random(2000);
if (level == 1) {
maxEnemys = 3;
}
if (level == 2) {
maxEnemys = 2;
}
if (level == 3) {
maxEnemys = 3;
}
if (level == 4) {
maxEnemys = 3;
}
if (level == 6) {
maxEnemys = 4;
}
if (level == 7) {
maxEnemys = 3;
}
if (level == 8) {
maxEnemys = 4;
}
if (level == 9) {
maxEnemys = 3;
}
_root.enemysUsed = 0;
resetTime = getTimer() + delay;
resetTimeB = getTimer() + delayB;
resetTimeC = getTimer() + delayC;
carDepth = new Array();
level1 = new Object();
level1.enemy1 = "civCar";
level1.enemy2 = "BHCar";
level1.enemy3 = "PoliceCar";
level2 = new Object();
level2.enemy1 = "Helicopter";
level2.enemy2 = "Helicopter";
level2.enemy3 = "Helicopter";
level3 = new Object();
level3.enemy1 = "BHCar";
level3.enemy2 = "Mafia";
level3.enemy3 = "Mafia";
level4 = new Object();
level4.enemy1 = "BHCar";
level4.enemy2 = "BHCar";
level4.enemy3 = "BHCar";
level6 = new Object();
level6.enemy1 = "Mafia";
level6.enemy2 = "Mafia";
level6.enemy3 = "Mafia";
level7 = new Object();
level7.enemy1 = "MotorBike";
level7.enemy2 = "MotorBike";
level7.enemy3 = "MotorBike";
level8 = new Object();
level8.enemy1 = "MotorBike";
level8.enemy2 = "MotorBike";
level8.enemy3 = "civCar";
level9 = new Object();
level9.enemy1 = "BHCar";
level9.enemy2 = "PoliceCar";
level9.enemy3 = "Helicopter";
_root.onEnterFrame = function () {
if (!(_root.mode === "game")) {
delete onEnterFrame;
return(undefined);
}
if (_root.mode == "game") {
if (getTimer() > resetTime) {
if (!_root.levelDone) {
makeEnemy1();
delay = random(3000) + 4000;
if (_root.mapP > 50) {
level9.enemy1 = "MotorBike";
}
resetTime = getTimer() + delay;
}
}
if (getTimer() > resetTimeB) {
if (!_root.levelDone) {
makeEnemy2();
delayB = random(4000) + 3000;
if (_root.mapP > 30) {
level9.enemy1 = "Mafia";
}
resetTimeB = getTimer() + delayB;
}
}
if (getTimer() > resetTimeC) {
if (!_root.levelDone) {
makeEnemy3();
delayC = random(9000);
if (_root.level == 9) {
delayC = random(2000) + 5000;
}
if (_root.mapP > 50) {
level9.enemy1 = "MotorBike";
}
resetTimeC = getTimer() + delayC;
}
}
}
};
if (level == 3) {
var aTruck = ("aTruck" + _root.depthHolder);
_root.attachMovie("aTruck", aTruck, _root.depthHolder);
_root[aTruck]._x = 400;
_root[aTruck]._y = 360;
_root.aTT = _root[aTruck];
_root[aTruck].swapDepths(360);
_root.depthHolder++;
}
if (level == 7) {
var plane = ("plane" + _root.depthHolder);
_root.attachMovie("plane", plane, _root.depthHolder);
_root[plane]._x = 400;
_root[plane]._y = 100;
_root.planeName = _root[plane];
_root[plane].swapDepths(100);
_root.depthHolder++;
}
if (level == 8) {
var plane = ("planeFake" + _root.depthHolder);
_root.attachMovie("planeFake", plane, _root.depthHolder);
_root[plane]._x = 50;
_root[plane]._y = 100;
_root.planeName = _root[plane];
_root[plane].swapDepths(100);
_root.depthHolder++;
}
if (level == 8) {
var plane = ("planeKiller" + _root.depthHolder);
_root.attachMovie("planeKiller", planeKiller, _root.depthHolder);
_root[planeKiller]._x = 900;
_root[planeKiller]._y = -130;
_root.planeKillerName = _root[planeKiller];
_root[planeKiller].swapDepths(350);
_root.depthHolder++;
}
Instance of Symbol 904 MovieClip "BG" in Frame 609
onClipEvent (load) {
function reset() {
_x = startX;
}
if (_root.level == 4) {
_root.goLeft = true;
} else {
_root.goLeft = false;
}
this.gotoAndStop(_root.level);
scrollSpeed = 8;
startX = _x;
xMin = _x - _width;
xMax = _x + _width;
_root.depthHolder++;
if (this._name == "BG") {
this.duplicateMovieClip("levelBG", this.getDepth() + 1);
this.swapDepths(_root.levelBG);
if (!_root.goLeft) {
_root.levelBG._x = (_x + _width) - 1;
}
if (_root.goLeft) {
_root.levelBG._x = _x - _width;
}
_root.depthHolder++;
}
}
onClipEvent (enterFrame) {
if (_root.killAll) {
this.swapDepths(0);
this.removeMovieClip();
}
if (!_root.goLeft) {
_x = (_x - scrollSpeed);
}
if (_root.goLeft) {
_x = (_x + scrollSpeed);
}
if (!_root.goLeft) {
if (_x < xMin) {
reset();
}
}
if (_root.goLeft) {
if (_x > xMax) {
reset();
}
}
}
Instance of Symbol 908 MovieClip in Frame 609
onClipEvent (load) {
if (_root.level == 4) {
if (!(_root.SpecialEffects === "LOW")) {
_visible = true;
}
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_root.SpecialEffects == "LOW") {
_visible = false;
}
if (!(_root.SpecialEffects === "LOW")) {
if (_root.level == 4) {
_visible = true;
}
}
}
Instance of Symbol 1005 MovieClip "car" in Frame 609
onClipEvent (load) {
function needForSpeed() {
keyword = "jaguar";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
speed = speed * 1.8;
locked = 521;
}
z++;
}
}
function addExplosion() {
if (_root.levelDone) {
return(undefined);
}
info.health = info.health - 1;
if (info.health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4].parent = this;
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", _local3, _root.depthHolder);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function bounce() {
if (_root.levelDone) {
return(undefined);
}
if (bouncing) {
return(undefined);
}
var _local4 = new flash.filters.BlurFilter(4, 1, 1);
var _local3 = this.filters;
_local3.push(_local4);
this.filters = _local3;
info.health = info.health - 1;
bouncing = true;
_root.crash.start();
}
function resetBinfo() {
friction = 0.5;
xForce = 15;
bouncing = false;
}
function explode() {
if (_root.levelDone) {
return(undefined);
}
alive = false;
if (doneBoom) {
return(undefined);
}
var _local3 = "Humanexplosion" + _root.depthHolder;
_root.attachMovie("Humanexplosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = _x;
_root[_local3]._y = _y;
_root.depthHolder++;
doneBoom = true;
}
function vampire() {
info.health = info.health + 1;
if (info.health > info.armor) {
info.health = info.armor;
}
}
xvel = 0;
maxXvel = 8;
yvel = 0;
maxYvel = 6;
moneyWorth = 0;
scoreValue = 0;
myX = _xscale;
if (_root.level == 4) {
_root.goLeft = true;
}
if (_root.goLeft) {
_x = 550;
_xscale = (-myX);
}
scoreValue = 0;
enemies = new Array();
weaponOut = "pistol";
xmin = 80;
xmax = 400;
ymin = 410;
ymax = 256.9;
if (_root.goLeft) {
xmin = 380;
xmax = 650;
}
speed = 5;
needForSpeed();
alive = true;
info = new Object();
info.WeaponWeight = 0;
info.TeamWeight = 0;
info.TyreWeight = 0;
_root.healthDisplay = Math.round((info.health / info.armor) * 100);
info.EngineStrength = 0;
info.TyreStrength = 0;
info.other = _root.otherStrengthPoints;
info.weight = (info.WeaponWeight + info.TeamWeight) + info.ArmorWeight;
info.strength = (info.EngineStrength + info.TyreStrength) + info.other;
info.damage = 0;
info.money = 10;
tireDepth = 35;
_root.cashDisplay = "$" + _root.cash;
lowHealth = 8;
doneSmoke = false;
bulletsTaken = 0;
maxBullets = 5;
bouncing = false;
resetBinfo();
endLevelMiddle = 357;
doneBoom = false;
definedStats = false;
}
onClipEvent (enterFrame) {
if (info.health == undefined) {
info.health = info.armor;
}
_root.cashDisplay = "$" + _root.cash;
_root.carDepth = _y + tireDepth;
this.swapDepths(_y + tireDepth);
info.weight = (info.WeaponWeight + info.TeamWeight) + info.ArmorWeight;
info.strength = (info.EngineStrength + info.TyreStrength) + info.other;
_root.healthDisplay = Math.round((info.health / info.armor) * 100);
_root.carS = info.strength;
_root.carW = info.weight;
if (_root.killAll) {
this.removeMovieClip();
}
if (!alive) {
return(undefined);
}
if (_root.levelDone) {
if (_y > endLevelMiddle) {
_y = (_y - (speed - 1));
}
if (_y < endLevelMiddle) {
_y = (_y + (speed - 1));
}
if (!_root.goLeft) {
_x = (_x + (speed + 2));
}
if (_root.goLeft) {
_x = (_x - (speed + 2));
}
this.filters = undefined;
return(undefined);
}
if (_x >= xmax) {
_x = xmax;
}
if (_x <= xmin) {
_x = xmin;
}
if (_y <= ymax) {
_y = ymax;
}
if (_y >= ymin) {
_y = ymin;
}
if (bouncing) {
if ((!(_root.level === 3)) and (!(_root.level === 4))) {
_x = (_x - xForce);
}
if ((_root.level == 3) or (_root.level == 4)) {
_x = (_x + xForce);
}
xForce = xForce - friction;
if (xForce <= 0) {
this.filters = undefined;
resetBinfo();
}
}
if (Key.isDown(39)) {
if (xvel < maxXvel) {
xvel++;
}
} else if (Key.isDown(37)) {
if (xvel > (-maxXvel)) {
xvel--;
}
} else {
xvel = xvel * 0.9;
}
_x = (_x + xvel);
if (Key.isDown(38)) {
if (yvel < maxYvel) {
yvel++;
}
} else if (Key.isDown(40)) {
if (yvel > (-maxYvel)) {
yvel--;
}
} else {
yvel = yvel * 0.9;
}
_y = (_y - yvel);
}
Instance of Symbol 1084 MovieClip in Frame 609
onClipEvent (load) {
this.swapDepths(99999);
}
onClipEvent (enterFrame) {
if (_root.killAll) {
this.removeMovieClip();
}
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 1085 MovieClip in Frame 609
onClipEvent (keyDown) {
if (Key.getCode() == 81) {
if (_quality == "HIGH") {
nQ = "MEDIUM";
}
if (_quality == "MEDIUM") {
nQ = "LOW";
}
if (_quality == "LOW") {
nQ = "HIGH";
}
_root.InGameQuality = nQ;
_quality = nQ;
}
}
Instance of Symbol 1087 MovieClip "fadeInFX" in Frame 609
onClipEvent (load) {
this.swapDepths(10000);
time = 0;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.levelDone) {
time++;
if (time > 70) {
this.play();
}
}
if (_root.killAll) {
this.removeMovieClip();
}
}
Instance of Symbol 1089 MovieClip "deadFade" in Frame 609
onClipEvent (load) {
this.swapDepths(100000);
this.stop();
}
onClipEvent (enterFrame) {
if (_root.killAll) {
this.removeMovieClip();
}
}
Frame 610
_root.mode = "GameOver";
stop();
stopAllSounds();
Instance of Symbol 1097 MovieClip in Frame 610
onClipEvent (load) {
if (_root.level == 7) {
if (_root.healthDisplay > 0) {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 722 MovieClip in Frame 610
onClipEvent (enterFrame) {
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 611
stop();
_quality = _root.InGameQuality;
_root.mode = "boss";
_root.killAll = false;
_root.depthHolder = 1000;
_root.levelDone = false;
_root.goLeft = true;
gamemusic = new Sound(gamemusicHolder);
gamemusic.attachSound("Shadows_of_the_Sky");
gamemusic.setVolume(_root.musicVolume);
gamemusic.start(0, 9999);
Instance of Symbol 1102 MovieClip "bGround" in Frame 611
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 1005 MovieClip "car" in Frame 611
onClipEvent (load) {
function needForSpeed() {
keyword = "jaguar";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
speed = speed * 1.8;
locked = 521;
}
z++;
}
}
function addExplosion() {
if (_root.levelDone) {
return(undefined);
}
info.health = info.health - 1;
if (info.health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4].parent = this;
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", _local3, _root.depthHolder);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function bounce() {
if (_root.levelDone) {
return(undefined);
}
if (bouncing) {
return(undefined);
}
var _local4 = new flash.filters.BlurFilter(4, 1, 1);
var _local3 = this.filters;
_local3.push(_local4);
this.filters = _local3;
info.health = info.health - 0.5;
bouncing = true;
}
function resetBinfo() {
friction = 0.5;
xForce = 13;
bouncing = false;
}
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
var _local3 = "Humanexplosion" + _root.depthHolder;
_root.attachMovie("Humanexplosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = _x;
_root[_local3]._y = _y;
_root.depthHolder++;
doneBoom = true;
}
function vampire() {
info.health = info.health + 2;
}
moveMode = "noScroll";
myX = _xscale;
_x = 550;
_xscale = (-myX);
scoreValue = 0;
enemies = new Array();
weaponOut = "pistol";
xmin = 80;
xmax = 400;
ymin = 410;
ymax = 256.9;
speed = 6;
needForSpeed();
alive = true;
info = new Object();
info.WeaponWeight = 0;
info.TeamWeight = 0;
info.TyreWeight = 0;
_root.healthDisplay = Math.round((info.health / info.armor) * 100);
info.EngineStrength = 0;
info.TyreStrength = 0;
info.weight = (info.WeaponWeight + info.TeamWeight) + info.ArmorWeight;
info.strength = info.EngineStrength + info.TyreStrength;
info.damage = 0;
info.money = 10;
tireDepth = 35;
_root.cashDisplay = "$" + _root.cash;
lowHealth = 8;
doneSmoke = false;
bulletsTaken = 0;
maxBullets = 5;
bouncing = false;
resetBinfo();
endLevelMiddle = 357;
doneBoom = false;
}
onClipEvent (enterFrame) {
if (_root.mode == "boss") {
if (((Key.isDown(37) or Key.isDown(39)) or Key.isDown(38)) or Key.isDown(40)) {
this.play();
} else {
this.stop();
}
}
}
onClipEvent (enterFrame) {
if (info.health == undefined) {
info.health = info.armor;
}
_root.cashDisplay = "$" + _root.cash;
_root.carDepth = _y + tireDepth;
this.swapDepths(_y + tireDepth);
info.weight = (info.WeaponWeight + info.TeamWeight) + info.ArmorWeight;
info.strength = info.EngineStrength + info.TyreStrength;
_root.healthDisplay = Math.round((info.health / info.armor) * 100);
_root.carS = info.strength;
_root.carW = info.weight;
if (_root.killAll) {
this.removeMovieClip();
}
if (!alive) {
return(undefined);
}
if (bouncing) {
if ((!(_root.level === 3)) and (!(_root.level === 4))) {
_x = (_x - xForce);
}
if ((_root.level == 3) or (_root.level == 4)) {
_x = (_x + xForce);
}
xForce = xForce - friction;
if (xForce <= 0) {
this.filters = undefined;
resetBinfo();
}
}
if (moveMode == "noScroll") {
if (Key.isDown(39)) {
if (_x < 650) {
_x = (_x + speed);
}
if (_x > 500) {
if (_root.bg._x > -54.5) {
moveMode = "scroll";
}
}
}
if (Key.isDown(37)) {
if (_x > 168) {
_x = (_x - speed);
}
if (_x < 300) {
if (_root.bg._x < 880) {
moveMode = "scroll";
}
}
}
}
if (moveMode == "scroll") {
if (Key.isDown(37)) {
_root.boss._x = _root.boss._x + speed;
_root.bg._x = _root.bg._x + speed;
if (_root.bg._x > 880) {
moveMode = "noScroll";
}
}
if (Key.isDown(39)) {
_root.bg._x = _root.bg._x - speed;
_root.boss._x = _root.boss._x - speed;
if (_root.bg._x < -50) {
moveMode = "noScroll";
}
}
}
if (_y > ymax) {
if (Key.isDown(38)) {
_y = (_y - speed);
}
}
if (_y < ymin) {
if (Key.isDown(40)) {
_y = (_y + speed);
}
}
}
Instance of Symbol 1084 MovieClip in Frame 611
onClipEvent (load) {
this.swapDepths(99999);
}
onClipEvent (enterFrame) {
if (_root.killAll) {
this.removeMovieClip();
}
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 1087 MovieClip "fadeInFX" in Frame 611
onClipEvent (load) {
this.swapDepths(10000);
time = 0;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.levelDone) {
time++;
if (time > 70) {
this.play();
}
}
if (_root.killAll) {
this.removeMovieClip();
}
}
Instance of Symbol 1089 MovieClip "deadFade" in Frame 611
onClipEvent (load) {
this.swapDepths(100000);
this.stop();
}
onClipEvent (enterFrame) {
if (_root.killAll) {
this.removeMovieClip();
}
}
Frame 612
_quality = _root.InGameQuality;
menu_music.stop();
narration.stop();
_root.levelDone = false;
_root.level = 10;
_root.depthHolder = 0;
_root.goLeft = true;
_root.mode = "final";
_root.killAll = false;
_root.bossExplode = false;
gamemusic = new Sound(gamemusicHolder);
gamemusic.attachSound("Shadows_of_the_Sky");
gamemusic.setVolume(_root.musicVolume);
gamemusic.start(0, 9999);
Instance of Symbol 904 MovieClip "BG" in Frame 612
onClipEvent (load) {
function reset() {
_x = startX;
}
this.gotoAndStop(_root.level);
scrollSpeed = 8;
startX = _x;
xMin = _x - _width;
xMax = _x + _width;
_root.depthHolder++;
if (this._name == "BG") {
this.duplicateMovieClip("levelBG", this.getDepth() + 1);
this.swapDepths(_root.levelBG);
if (!_root.goLeft) {
_root.levelBG._x = (_x + _width) - 1;
}
if (_root.goLeft) {
_root.levelBG._x = _x - _width;
}
_root.depthHolder++;
}
}
onClipEvent (enterFrame) {
if (_root.killAll) {
this.swapDepths(0);
this.removeMovieClip();
}
if (!_root.goLeft) {
_x = (_x - scrollSpeed);
}
if (_root.goLeft) {
_x = (_x + scrollSpeed);
}
if (!_root.goLeft) {
if (_x < xMin) {
reset();
}
}
if (_root.goLeft) {
if (_x > xMax) {
reset();
}
}
}
Instance of Symbol 908 MovieClip in Frame 612
onClipEvent (load) {
if (_root.level == 4) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 1084 MovieClip in Frame 612
onClipEvent (load) {
this.swapDepths(99999);
}
onClipEvent (enterFrame) {
if (_root.killAll) {
this.removeMovieClip();
}
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 1162 MovieClip "finalhelicopter" in Frame 612
onClipEvent (load) {
function addExplosion() {
if (_root.levelDone) {
return(undefined);
}
health = health - 1;
if (info.health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", _local3, _root.depthHolder);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function explode() {
if (_root.levelDone) {
return(undefined);
}
this.swapDepths(600);
alive = false;
if (doneBoom) {
return(undefined);
}
var _local3 = "Humanexplosion" + _root.depthHolder;
_root.attachMovie("Humanexplosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = _x;
_root[_local3]._y = _y;
_root.depthHolder++;
doneBoom = true;
}
xvel = 0;
maxXvel = 10;
yvel = 0;
maxYvel = 10;
minX = 100;
maxX = 700;
minY = 50;
maxY = 250;
maxHealth = 20;
health = 20;
lowHealth = 8;
alive = true;
doneSmoke = false;
bulletsTaken = 0;
maxBullets = 5;
doneBoom = false;
}
onClipEvent (enterFrame) {
if (_root.levelDone) {
return(undefined);
}
_root.healthDisplay = (health / maxHealth) * 100;
if (_x < minX) {
_x = minX;
}
if (_x > maxX) {
_x = maxX;
}
if (_y < minY) {
_y = minY;
}
if (_y > maxY) {
_y = maxY;
}
if (Key.isDown(39)) {
if (_rotation < 15) {
_rotation = (_rotation+1);
}
if (xvel < maxXvel) {
xvel++;
}
} else if (Key.isDown(37)) {
if (_rotation > -15) {
_rotation = (_rotation-1);
}
if (xvel > (-maxXvel)) {
xvel--;
}
} else {
xvel = xvel * 0.9;
}
_x = (_x + xvel);
if (Key.isDown(38)) {
if (yvel < maxYvel) {
yvel++;
}
} else if (Key.isDown(40)) {
if (_rotation > -15) {
_rotation = (_rotation-1);
}
if (yvel > (-maxYvel)) {
yvel--;
}
} else {
yvel = yvel * 0.9;
}
_y = (_y - yvel);
}
Instance of Symbol 1189 MovieClip "car" in Frame 612
onClipEvent (load) {
function addExplosion() {
n = random(7);
word = "ric" + n;
ric = new Sound(this);
ric.attachSound(word);
ric.setVolume(_root.soundVolume);
dis = Math.round(_x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
if (_root.surroundSound) {
ric.setPan(dis);
}
ric.start();
if (_root.levelDone) {
return(undefined);
}
health = health - 0.4;
if (health < 0) {
health = 0;
}
if (info.health <= lowHealth) {
makeSmoke();
}
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", _local3, _root.depthHolder);
this[_local3]._x = _x;
this[_local3]._y = _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function changeSpeed() {
minSpeed = -5;
maxSpeed = 5;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
}
scoreValue = 0;
enemies = new Array();
xmin = 80;
xmax = 400;
ymin = 410;
ymax = 256.9;
speed = 5;
alive = true;
health = 100;
lowHealth = 33;
doneSmoke = false;
bulletsTaken = 0;
maxBullets = 5;
delay = random(2000);
resetTime = getTimer() + delay;
delayB = 7000;
resetTimeB = getTimer() + delayB;
xmin = 100;
changeSpeed();
xmax = 700;
}
onClipEvent (enterFrame) {
if (_root.bossExplode) {
if (_currentframe == 1) {
this.gotoAndPlay(2);
}
}
if (getTimer() > resetTime) {
changeSpeed();
delay = random(1000);
resetTime = getTimer() + delay;
}
if (getTimer() > resetTimeB) {
makeB();
resetTimeB = getTimer() + delayB;
}
_x = (_x + speed);
if (_x > xmax) {
speed = -5;
_x = xmax;
}
if (_x < xmin) {
speed = 5;
_x = xmin;
}
}
Instance of Symbol 1201 MovieClip in Frame 612
onClipEvent (enterFrame) {
this.gotoAndStop(Math.round(100 - _root.car.health));
_root.bossHealth = 100 - _currentframe;
}
Instance of Symbol 1085 MovieClip in Frame 612
onClipEvent (keyDown) {
if (Key.getCode() == 81) {
if (_quality == "HIGH") {
nQ = "MEDIUM";
}
if (_quality == "MEDIUM") {
nQ = "LOW";
}
if (_quality == "LOW") {
nQ = "HIGH";
}
_root.InGameQuality = nQ;
_quality = nQ;
}
}
Instance of Symbol 1203 MovieClip "fadeInFX" in Frame 612
onClipEvent (load) {
time = 0;
this.stop();
}
onClipEvent (enterFrame) {
if (_root.levelDone) {
time++;
if (time > 200) {
this.play();
}
}
if (_root.killAll) {
this.removeMovieClip();
}
}
Instance of Symbol 1089 MovieClip "deadFade" in Frame 612
onClipEvent (load) {
this.swapDepths(350000);
this.stop();
}
Frame 613
Mouse.show();
_quality = "HIGH";
Frame 1058
stop();
Frame 1059
stopAllSounds();
stop();
Mouse.show();
_root.menu_music.start(0, 999999);
Frame 1060
function upgradeError(error) {
if (error == "cash") {
noCash.play();
}
if (error == "weight") {
noStrength.play();
}
}
stop();
Instance of Symbol 1342 MovieClip in Frame 1060
onClipEvent (load) {
function checkGotIt() {
keyword = "SMG";
done = false;
z = 0;
while (z < _root.unlockedWeapons.length) {
lockTester = _root.unlockedWeapons[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
lockIt();
}
z++;
}
}
function lockIt() {
this.gotoAndStop(2);
}
function check() {
if (_currentframe == 2) {
return(undefined);
}
price = 400;
if (_root.cash >= price) {
if (_root.carS >= (_root.carW + weight)) {
buy();
return(undefined);
}
}
if (_root.cash < price) {
_root.upgradeError("cash");
}
if (_root.carS < (_root.carW + weight)) {
_root.upgradeError("weight");
}
}
function buy() {
_root.unlockedWeapons.push("SMG");
_root.car.info.WeaponWeight = _root.car.info.WeaponWeight + weight;
_root.cash = _root.cash - price;
_root.cashregister.start();
checkGotIt();
}
checkGotIt();
_alpha = 0;
weight = 1;
}
on (press) {
check();
}
onClipEvent (enterFrame) {
_root.cashDisplay = "$" + _root.cash;
}
Instance of Symbol 1342 MovieClip in Frame 1060
onClipEvent (load) {
function checkGotIt() {
keyword = "volcan";
done = false;
z = 0;
while (z < _root.unlockedWeapons.length) {
lockTester = _root.unlockedWeapons[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
lockIt();
}
z++;
}
}
function lockIt() {
this.gotoAndStop(2);
}
function check() {
if (_currentframe == 2) {
return(undefined);
}
price = 1200;
if (_root.cash >= price) {
if (_root.carS >= (_root.carW + weight)) {
buy();
return(undefined);
}
}
if (_root.cash < price) {
_root.upgradeError("cash");
}
if (_root.carS < (_root.carW + weight)) {
_root.upgradeError("weight");
}
}
function buy() {
_root.unlockedWeapons.push("volcan");
_root.cash = _root.cash - price;
_root.car.info.WeaponWeight = _root.car.info.WeaponWeight + weight;
_root.cashregister.start();
checkGotIt();
}
_alpha = 0;
weight = 10;
checkGotIt();
}
on (press) {
check();
}
Instance of Symbol 1342 MovieClip in Frame 1060
onClipEvent (load) {
function checkGotIt() {
keyword = "bazooka";
done = false;
z = 0;
while (z < _root.unlockedWeapons.length) {
lockTester = _root.unlockedWeapons[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
lockIt();
}
z++;
}
}
function lockIt() {
this.gotoAndStop(2);
}
function check() {
if (_currentframe == 2) {
return(undefined);
}
price = 4000;
if (_root.cash >= price) {
if (_root.carS >= (_root.carW + weight)) {
buy();
return(undefined);
}
}
if (_root.cash < price) {
_root.upgradeError("cash");
}
if (_root.carS < (_root.carW + weight)) {
_root.upgradeError("weight");
}
}
function buy() {
_root.unlockedWeapons.push("bazooka");
_root.cash = _root.cash - price;
_root.car.info.WeaponWeight = _root.car.info.WeaponWeight + weight;
_root.cashregister.start();
checkGotIt();
}
_alpha = 0;
weight = 20;
checkGotIt();
}
on (press) {
check();
}
Instance of Symbol 1342 MovieClip in Frame 1060
onClipEvent (load) {
function checkGotIt() {
keyword = "rocketLauncher";
done = false;
z = 0;
while (z < _root.unlockedWeapons.length) {
lockTester = _root.unlockedWeapons[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
lockIt();
}
z++;
}
}
function lockIt() {
this.gotoAndStop(2);
}
function check() {
if (_currentframe == 2) {
return(undefined);
}
price = 10000;
if (_root.cash >= price) {
if (_root.carS >= (_root.carW + weight)) {
buy();
return(undefined);
}
}
if (_root.cash < price) {
_root.upgradeError("cash");
}
if (_root.carS < (_root.carW + weight)) {
_root.upgradeError("weight");
}
}
function buy() {
_root.unlockedWeapons.push("rocketLauncher");
_root.cash = _root.cash - price;
_root.car.info.WeaponWeight = _root.car.info.WeaponWeight + weight;
_root.cashregister.start();
checkGotIt();
}
_alpha = 0;
weight = 30;
checkGotIt();
}
on (press) {
check();
}
Instance of Symbol 1342 MovieClip "ga1" in Frame 1060
onClipEvent (load) {
function checkGotIt() {
keyword = "1BG";
done = false;
z = 0;
while (z < _root.unlockedAid.length) {
lockTester = _root.unlockedAid[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
lockIt();
}
z++;
}
}
function lockIt() {
this.gotoAndStop(2);
}
function check() {
if (_currentframe == 2) {
return(undefined);
}
price = 300;
if (_root.cash >= price) {
if (_root.carS >= (_root.carW + weight)) {
buy();
return(undefined);
}
}
if (_root.cash < price) {
_root.upgradeError("cash");
}
if (_root.carS < (_root.carW + weight)) {
_root.upgradeError("weight");
}
}
function buy() {
_root.unlockedAid.push("1BG");
_root.cash = _root.cash - price;
_root.car.info.TeamWeight = _root.car.info.TeamWeight + weight;
_root.cashregister.start();
checkGotIt();
}
_alpha = 0;
weight = 2;
checkGotIt();
}
on (press) {
check();
}
Instance of Symbol 1342 MovieClip "ga2" in Frame 1060
onClipEvent (load) {
function checkGotIt() {
keyword = "2BG";
done = false;
z = 0;
while (z < _root.unlockedAid.length) {
lockTester = _root.unlockedAid[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
lockIt();
}
z++;
}
}
function lockIt() {
this.gotoAndStop(2);
_parent.ga1.lockIt();
}
function check() {
if (_currentframe == 2) {
return(undefined);
}
price = 650;
if (_root.cash >= price) {
if (_root.carS >= (_root.carW + weight)) {
buy();
return(undefined);
}
}
if (_root.cash < price) {
_root.upgradeError("cash");
}
if (_root.carS < (_root.carW + weight)) {
_root.upgradeError("weight");
}
}
function buy() {
_root.unlockedAid.push("2BG");
_root.cash = _root.cash - price;
_root.car.info.TeamWeight = _root.car.info.TeamWeight + weight;
_root.cashregister.start();
checkGotIt();
}
_alpha = 0;
weight = 4;
checkGotIt();
}
on (press) {
check();
}
Instance of Symbol 1342 MovieClip in Frame 1060
onClipEvent (load) {
function checkGotIt() {
keyword = "3BG";
done = false;
z = 0;
while (z < _root.unlockedAid.length) {
lockTester = _root.unlockedAid[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
lockIt();
_parent.ga1.lockIt();
_parent.ga2.lockIt();
}
z++;
}
}
function lockIt() {
this.gotoAndStop(2);
}
function check() {
if (_currentframe == 2) {
return(undefined);
}
price = 1000;
if (_root.cash >= price) {
if (_root.carS >= (_root.carW + weight)) {
buy();
return(undefined);
}
}
if (_root.cash < price) {
_root.upgradeError("cash");
}
if (_root.carS < (_root.carW + weight)) {
_root.upgradeError("weight");
}
}
function buy() {
_root.unlockedAid.push("3BG");
_root.cash = _root.cash - price;
_root.car.info.TeamWeight = _root.car.info.TeamWeight + weight;
_root.cashregister.start();
checkGotIt();
}
_alpha = 0;
weight = 6;
checkGotIt();
}
on (press) {
check();
}
Instance of Symbol 1352 MovieClip in Frame 1060
on (press) {
_root.car.updateInfo();
_root.blur.play();
_root.frameDirection = "LS";
}
Instance of Symbol 1354 MovieClip in Frame 1060
on (press) {
_root.blur.play();
_root.frameDirection = _root._currentframe + 1;
}
Instance of Symbol 1365 MovieClip "car" in Frame 1060
onClipEvent (load) {
function updateInfo() {
_root.carWeaponWeight = info.WeaponWeight;
_root.carTeamWeight = info.TeamWeight;
_root.carArmorWeight = info.ArmorWeight;
_root.carEngineStrength = info.EngineStrength;
_root.carTyreStrength = info.TyreStrength;
}
info = new Object();
info.WeaponWeight = _root.carWeaponWeight;
info.TeamWeight = _root.carTeamWeight;
info.ArmorWeight = _root.carArmorWeight;
info.EngineStrength = _root.carEngineStrength;
info.TyreStrength = _root.carTyreStrength;
info.weight = (info.WeaponWeight + info.TeamWeight) + info.ArmorWeight;
info.other = _root.otherStrengthPoints;
info.strength = (info.EngineStrength + info.TyreStrength) + info.other;
info.damage = 0;
_root.cashDisplay = "$" + _root.cash;
}
onClipEvent (enterFrame) {
info.other = _root.otherStrengthPoints;
info.weight = (info.WeaponWeight + info.TeamWeight) + info.ArmorWeight;
info.strength = (info.EngineStrength + info.TyreStrength) + info.other;
_root.carS = info.strength;
_root.carW = info.weight;
_root.carSt = info.strength - info.weight;
}
Instance of Symbol 722 MovieClip in Frame 1060
onClipEvent (enterFrame) {
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 1061
stop();
Instance of Symbol 1342 MovieClip in Frame 1061
onClipEvent (load) {
function checkGotIt() {
keyword = "Steel";
done = false;
z = 0;
while (z < _root.unlockedArmor.length) {
lockTester = _root.unlockedArmor[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
lockIt();
}
z++;
}
}
function lockIt() {
this.gotoAndStop(2);
}
function check() {
if (_currentframe == 2) {
return(undefined);
}
price = 400;
if (_root.cash >= price) {
if (_root.carS >= (_root.carW + weight)) {
buy();
return(undefined);
}
}
if (_root.cash < price) {
_root.upgradeError("cash");
}
if (_root.carS < (_root.carW + weight)) {
_root.upgradeError("weight");
}
}
function buy() {
_root.unlockedArmor.push("Steel");
_root.cash = _root.cash - price;
_root.car.info.ArmorWeight = _root.car.info.ArmorWeight + weight;
_root.cashregister.start();
checkGotIt();
}
checkGotIt();
_alpha = 0;
weight = 10;
}
on (press) {
check();
}
onClipEvent (enterFrame) {
_root.cashDisplay = "$" + _root.cash;
}
Instance of Symbol 1342 MovieClip in Frame 1061
onClipEvent (load) {
function checkGotIt() {
keyword = "Reinforced";
done = false;
z = 0;
while (z < _root.unlockedArmor.length) {
lockTester = _root.unlockedArmor[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
lockIt();
}
z++;
}
}
function lockIt() {
this.gotoAndStop(2);
}
function check() {
if (_currentframe == 2) {
return(undefined);
}
price = 750;
if (_root.cash >= price) {
if (_root.carS >= (_root.carW + weight)) {
buy();
return(undefined);
}
}
if (_root.cash < price) {
_root.upgradeError("cash");
}
if (_root.carS < (_root.carW + weight)) {
_root.upgradeError("weight");
}
}
function buy() {
_root.unlockedArmor.push("Reinforced");
_root.cash = _root.cash - price;
_root.car.info.ArmorWeight = _root.car.info.ArmorWeight + weight;
_root.cashregister.start();
checkGotIt();
}
_alpha = 0;
weight = 20;
checkGotIt();
}
on (press) {
check();
}
onClipEvent (enterFrame) {
_root.cashDisplay = "$" + _root.cash;
}
Instance of Symbol 1342 MovieClip in Frame 1061
onClipEvent (load) {
function checkGotIt() {
keyword = "Multilayer";
done = false;
z = 0;
while (z < _root.unlockedArmor.length) {
lockTester = _root.unlockedArmor[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
lockIt();
}
z++;
}
}
function lockIt() {
this.gotoAndStop(2);
}
function check() {
if (_currentframe == 2) {
return(undefined);
}
price = 1500;
if (_root.cash >= price) {
if (_root.carS >= (_root.carW + weight)) {
buy();
return(undefined);
}
}
if (_root.cash < price) {
_root.upgradeError("cash");
}
if (_root.carS < (_root.carW + weight)) {
_root.upgradeError("weight");
}
}
function buy() {
_root.unlockedArmor.push("Multilayer");
_root.cash = _root.cash - price;
_root.car.info.ArmorWeight = _root.car.info.ArmorWeight + weight;
_root.cashregister.start();
checkGotIt();
}
_alpha = 0;
weight = 28;
checkGotIt();
}
on (press) {
check();
}
onClipEvent (enterFrame) {
_root.cashDisplay = "$" + _root.cash;
}
Instance of Symbol 1342 MovieClip in Frame 1061
onClipEvent (load) {
function check() {
price = 100;
if (_root.cash >= price) {
buy();
} else {
_root.upgradeError("cash");
}
}
function buy() {
_root.gQ++;
_root.cash = _root.cash - price;
_root.cashregister.start();
}
_alpha = 0;
}
on (press) {
check();
}
Instance of Symbol 1342 MovieClip in Frame 1061
onClipEvent (load) {
function check() {
price = 200;
if (_root.cash >= price) {
buy();
} else {
_root.upgradeError("cash");
}
}
function buy() {
_root.gQ = _root.gQ + 3;
_root.cash = _root.cash - price;
_root.cashregister.start();
}
_alpha = 0;
}
on (press) {
check();
}
Instance of Symbol 1342 MovieClip in Frame 1061
onClipEvent (load) {
function check() {
price = 300;
if (_root.cash >= price) {
buy();
} else {
_root.upgradeError("cash");
}
}
function buy() {
_root.gQ = _root.gQ + 4;
_root.cash = _root.cash - price;
_root.cashregister.start();
}
_alpha = 0;
}
on (press) {
check();
}
Instance of Symbol 1352 MovieClip in Frame 1061
on (press) {
_root.blur.play();
_root.frameDirection = _root._currentframe - 1;
}
Frame 1062
stop();
Instance of Symbol 1342 MovieClip in Frame 1062
onClipEvent (load) {
function checkGotIt() {
keyword = "Superior";
done = false;
z = 0;
while (z < _root.unlockedWheels.length) {
lockTester = _root.unlockedWheels[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
lockIt();
}
z++;
}
}
function lockIt() {
this.gotoAndStop(2);
}
function check() {
if (_currentframe == 2) {
return(undefined);
}
price = 750;
if (_root.cash >= price) {
buy();
} else {
_root.upgradeError("cash");
}
}
function buy() {
_root.unlockedWheels.push("Superior");
_root.cash = _root.cash - price;
_root.car.info.TyreStrength = _root.car.info.TyreStrength + 7;
_root.cashregister.start();
checkGotIt();
}
_alpha = 0;
checkGotIt();
}
on (press) {
check();
}
onClipEvent (enterFrame) {
_root.cashDisplay = "$" + _root.cash;
}
Instance of Symbol 1342 MovieClip in Frame 1062
onClipEvent (load) {
function checkGotIt() {
keyword = "Heavy_Duty";
done = false;
z = 0;
while (z < _root.unlockedWheels.length) {
lockTester = _root.unlockedWheels[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
lockIt();
}
z++;
}
}
function lockIt() {
this.gotoAndStop(2);
}
function check() {
if (_currentframe == 2) {
return(undefined);
}
price = 1300;
if (_root.cash >= price) {
buy();
} else {
_root.upgradeError("cash");
}
}
function buy() {
_root.unlockedWheels.push("Heavy_Duty");
_root.cash = _root.cash - price;
_root.car.info.TyreStrength = _root.car.info.TyreStrength + 12;
_root.cashregister.start();
checkGotIt();
}
_alpha = 0;
checkGotIt();
}
on (press) {
check();
}
Instance of Symbol 1342 MovieClip in Frame 1062
onClipEvent (load) {
function checkGotIt() {
keyword = "Monster";
done = false;
z = 0;
while (z < _root.unlockedWheels.length) {
lockTester = _root.unlockedWheels[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
lockIt();
}
z++;
}
}
function lockIt() {
this.gotoAndStop(2);
}
function check() {
if (_currentframe == 2) {
return(undefined);
}
price = 4500;
if (_root.cash >= price) {
buy();
} else {
_root.upgradeError("cash");
}
}
function buy() {
_root.unlockedWheels.push("Monster");
_root.cash = _root.cash - price;
_root.car.info.TyreStrength = _root.car.info.TyreStrength + 15;
_root.cashregister.start();
checkGotIt();
}
_alpha = 0;
checkGotIt();
}
on (press) {
check();
}
onClipEvent (enterFrame) {
_root.cashDisplay = "$" + _root.cash;
}
Instance of Symbol 1342 MovieClip in Frame 1062
onClipEvent (load) {
function checkGotIt() {
keyword = "V8";
done = false;
z = 0;
while (z < _root.unlockedEngines.length) {
lockTester = _root.unlockedEngines[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
lockIt();
}
z++;
}
}
function lockIt() {
this.gotoAndStop(2);
}
function check() {
if (_currentframe == 2) {
return(undefined);
}
price = 1000;
if (_root.cash >= price) {
buy();
} else {
_root.upgradeError("cash");
}
}
function buy() {
_root.car.info.EngineStrength = _root.car.info.EngineStrength + 10;
_root.unlockedEngines.push("V8");
_root.cash = _root.cash - price;
_root.cashregister.start();
checkGotIt();
}
_alpha = 0;
checkGotIt();
}
on (press) {
check();
}
Instance of Symbol 1342 MovieClip in Frame 1062
onClipEvent (load) {
function checkGotIt() {
keyword = "V12";
done = false;
z = 0;
while (z < _root.unlockedEngines.length) {
lockTester = _root.unlockedEngines[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
lockIt();
}
z++;
}
}
function lockIt() {
this.gotoAndStop(2);
}
function check() {
if (_currentframe == 2) {
return(undefined);
}
price = 2000;
if (_root.cash >= price) {
buy();
} else {
_root.upgradeError("cash");
}
}
function buy() {
_root.car.info.EngineStrength = _root.car.info.EngineStrength + 20;
_root.unlockedEngines.push("V12");
_root.cash = _root.cash - price;
_root.cashregister.start();
checkGotIt();
}
_alpha = 0;
checkGotIt();
}
on (press) {
check();
}
Instance of Symbol 1342 MovieClip in Frame 1062
onClipEvent (load) {
function checkGotIt() {
keyword = "Superior";
done = false;
z = 0;
while (z < _root.unlockedEngines.length) {
lockTester = _root.unlockedEngines[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
lockIt();
}
z++;
}
}
function lockIt() {
this.gotoAndStop(2);
}
function check() {
if (_currentframe == 2) {
return(undefined);
}
price = 3000;
if (_root.cash >= price) {
buy();
} else {
_root.upgradeError("cash");
}
}
function buy() {
_root.car.info.EngineStrength = _root.car.info.EngineStrength + 30;
_root.unlockedEngines.push("Superior");
_root.cash = _root.cash - price;
_root.cashregister.start();
checkGotIt();
}
_alpha = 0;
checkGotIt();
}
on (press) {
check();
}
Instance of Symbol 1342 MovieClip in Frame 1062
onClipEvent (load) {
function checkGotIt() {
keyword = "Deluxe";
done = false;
z = 0;
while (z < _root.unlockedEngines.length) {
lockTester = _root.unlockedEngines[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
lockIt();
}
z++;
}
}
function lockIt() {
this.gotoAndStop(2);
}
function check() {
if (_currentframe == 2) {
return(undefined);
}
price = 6000;
if (_root.cash >= price) {
buy();
} else {
_root.upgradeError("cash");
}
}
function buy() {
_root.car.info.EngineStrength = _root.car.info.EngineStrength + 40;
_root.unlockedEngines.push("Deluxe");
_root.cash = _root.cash - price;
_root.cashregister.start();
checkGotIt();
}
_alpha = 0;
checkGotIt();
}
on (press) {
check();
}
Instance of Symbol 1342 MovieClip in Frame 1062
onClipEvent (load) {
function check() {
price = 150;
if (_root.cash >= price) {
buy();
} else {
_root.upgradeError("cash");
}
}
function buy() {
_root.cash = _root.cash - price;
_root.otherStrengthPoints++;
_root.cashregister.start();
}
_alpha = 0;
}
on (press) {
check();
}
onClipEvent (enterFrame) {
_root.cashDisplay = "$" + _root.cash;
}
Frame 1063
stop();
Instance of Symbol 1342 MovieClip in Frame 1063
onClipEvent (load) {
function checkGotIt() {
keyword = "vampire";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
lockIt();
}
z++;
}
}
function lockIt() {
this.gotoAndStop(2);
}
function check() {
if (_currentframe == 2) {
return(undefined);
}
price = 25000;
if (_root.cash >= price) {
buy();
} else {
_root.upgradeError("cash");
}
}
function buy() {
_root.unlockedExtras.push("vampire");
_root.cash = _root.cash - price;
_root.cashregister.start();
checkGotIt();
}
_alpha = 0;
checkGotIt();
}
on (press) {
check();
}
onClipEvent (enterFrame) {
_root.cashDisplay = "$" + _root.cash;
}
Instance of Symbol 1342 MovieClip in Frame 1063
onClipEvent (load) {
function checkGotIt() {
keyword = "jaguar";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
lockIt();
}
z++;
}
}
function lockIt() {
this.gotoAndStop(2);
}
function check() {
if (_currentframe == 2) {
return(undefined);
}
price = 3000;
if (_root.cash >= price) {
buy();
} else {
_root.upgradeError("cash");
}
}
function buy() {
_root.unlockedExtras.push("jaguar");
_root.cash = _root.cash - price;
_root.cashregister.start();
checkGotIt();
}
_alpha = 0;
checkGotIt();
}
on (press) {
check();
}
Instance of Symbol 1342 MovieClip in Frame 1063
onClipEvent (load) {
function checkGotIt() {
keyword = "policeHunter";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
lockIt();
}
z++;
}
}
function lockIt() {
this.gotoAndStop(2);
}
function check() {
if (_currentframe == 2) {
return(undefined);
}
price = 7500;
if (_root.cash >= price) {
buy();
} else {
_root.upgradeError("cash");
}
}
function buy() {
_root.unlockedExtras.push("policeHunter");
_root.cash = _root.cash - price;
_root.cashregister.start();
checkGotIt();
}
_alpha = 0;
checkGotIt();
}
on (press) {
check();
}
Instance of Symbol 1342 MovieClip in Frame 1063
onClipEvent (load) {
function checkGotIt() {
keyword = "carDemolisher";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
lockIt();
}
z++;
}
}
function lockIt() {
this.gotoAndStop(2);
}
function check() {
if (_currentframe == 2) {
return(undefined);
}
price = 6000;
if (_root.cash >= price) {
buy();
} else {
_root.upgradeError("cash");
}
}
function buy() {
_root.unlockedExtras.push("carDemolisher");
_root.cash = _root.cash - price;
_root.cashregister.start();
checkGotIt();
}
_alpha = 0;
checkGotIt();
}
on (press) {
check();
}
Instance of Symbol 1342 MovieClip in Frame 1063
onClipEvent (load) {
function checkGotIt() {
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
lockIt();
}
z++;
}
}
function lockIt() {
this.gotoAndStop(2);
}
function check() {
if (_currentframe == 2) {
return(undefined);
}
price = 20000;
if (_root.cash >= price) {
buy();
} else {
_root.upgradeError("cash");
}
}
function buy() {
_root.unlockedExtras.push("hitman");
_root.cash = _root.cash - price;
_root.cashregister.start();
checkGotIt();
}
_alpha = 0;
checkGotIt();
}
on (press) {
check();
}
Instance of Symbol 1342 MovieClip in Frame 1063
onClipEvent (load) {
function checkGotIt() {
keyword = "goldBullets";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
lockIt();
}
z++;
}
}
function lockIt() {
this.gotoAndStop(2);
}
function check() {
if (_currentframe == 2) {
return(undefined);
}
price = 15000;
if (_root.cash >= price) {
buy();
} else {
_root.upgradeError("cash");
}
}
function buy() {
_root.unlockedExtras.push("goldBullets");
_root.cash = _root.cash - price;
_root.cashregister.start();
checkGotIt();
}
_alpha = 0;
checkGotIt();
}
on (press) {
check();
}
Instance of Symbol 1342 MovieClip in Frame 1063
onClipEvent (load) {
function check() {
price = 4000;
if (_root.cash >= price) {
buy();
} else {
_root.upgradeError("cash");
}
}
function buy() {
_root.pbQ++;
_root.cash = _root.cash - price;
_root.cashregister.start();
}
_alpha = 0;
}
on (press) {
check();
}
Symbol 110 MovieClip Frame 4
boom = new Sound(this);
this.boom.attachSound("boom");
this.boom.setVolume(_root.soundVolume);
dis = Math.round(_parent._x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
if (_root.surroundSound) {
boom.setPan(dis);
}
this.boom.start();
Symbol 110 MovieClip Frame 9
_parent.dWgH();
Symbol 110 MovieClip Frame 10
this.removeMovieClip();
Symbol 111 MovieClip [missileBoss] Frame 1
function selfkill() {
this.removeMovieClip();
trace(":D");
}
function dWgH() {
target.sparkAngle = rad_rot;
target.xHit = _x;
target.yHit = _y;
target.info.health = target.info.health - 1;
target.addExplosion();
selfkill();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
rad_rot = Math.atan2(vy, vx);
_rotation = ((rad_rot / (Math.PI/180)) + 90);
_x = (_x + vx);
_y = (_y + vy);
if (_x > 800) {
selfkill();
}
if (_y < -200) {
selfkill();
}
if (_y > 600) {
selfkill();
}
if (_x < -200) {
selfKill();
}
if (_root.finalhelicopter.hitTest(_x, _y, true)) {
if (!_root.finalhelicopter.banned.hitTest(_x, _y, true)) {
target = _root.finalhelicopter;
gotoAndStop (3);
}
}
if (_root.aTT.hitTest(_x, _y, true)) {
target = _root.aTT;
gotoAndStop (3);
}
Symbol 111 MovieClip [missileBoss] Frame 2
gotoAndPlay (1);
Symbol 111 MovieClip [missileBoss] Frame 3
stop();
Symbol 112 MovieClip [missileHelicopter] Frame 1
function selfkill() {
this.removeMovieClip();
trace(":D");
}
function dWgH() {
target.sparkAngle = rad_rot;
target.xHit = _x;
target.yHit = _y;
target.info.health = target.info.health - 1;
target.addExplosion();
selfkill();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
if (wtfSound == undefined) {
bazooka_explode = new Sound(this);
bazooka_explode.setVolume(_root.soundVolume);
bazooka_explode.attachSound("bazooka_explode");
bazooka_explode.start();
wtfSound = 1;
}
rad_rot = Math.atan2(vy, vx);
_rotation = ((rad_rot / (Math.PI/180)) + 90);
_x = (_x + vx);
_y = (_y + vy);
if (_x > 800) {
selfkill();
}
if (_y < -200) {
selfkill();
}
if (_y > 600) {
selfkill();
}
if (_x < -200) {
selfKill();
}
if (_root.car.hitTest(_x, _y, true)) {
if (!_root.car.banned.hitTest(_x, _y, true)) {
target = _root.car;
gotoAndStop (3);
}
}
if (_root.aTT.hitTest(_x, _y, true)) {
target = _root.aTT;
gotoAndStop (3);
}
Symbol 112 MovieClip [missileHelicopter] Frame 2
gotoAndPlay (1);
Symbol 112 MovieClip [missileHelicopter] Frame 3
stop();
Symbol 115 MovieClip [bulletHelicopter] Frame 1
function selfkill() {
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function dWgH() {
_root.car.sparkAngle = rad_rot;
_root.car.xHit = _x;
_root.car.yHit = _y;
_root.car.addExplosion();
selfkill();
}
enemies = _root.car;
rad_rot = Math.atan2(vy, vx);
_rotation = ((rad_rot / (Math.PI/180)) + 90);
this.cacheAsBitmap = true;
_x = (_x + vx);
_y = (_y + vy);
if (_x > 1000) {
selfkill();
}
if (_y < -500) {
selfkill();
}
if (_y > 800) {
selfkill();
}
if (_x < -500) {
selfkill();
}
if (_root.car.hitTest(_x, _y, true)) {
if (!_root.car.banned.hitTest(_x, _y, true)) {
dWgH();
}
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
Symbol 115 MovieClip [bulletHelicopter] Frame 2
gotoAndPlay (1);
Symbol 132 MovieClip Frame 24
stop();
Symbol 133 MovieClip [planeKiller] Frame 186
this.removeMovieClip();
Symbol 135 MovieClip [rBullet] Frame 1
function selfkill() {
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function dWgH() {
enemies[whois_hitting].sparkAngle = rad_rot;
enemies[whois_hitting].xHit = _x;
enemies[whois_hitting].yHit = _y;
enemies[whois_hitting].addExplosion();
selfkill();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
enemies = _root.car.enemies;
rad_rot = Math.atan2(vy, vx);
_rotation = ((rad_rot / (Math.PI/180)) + 90);
this.cacheAsBitmap = true;
if (wtfSound == undefined) {
bazooka = new Sound(this);
bazooka.setVolume(_root.soundVolume);
dis = Math.round(_x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
bazooka.attachSound("bazooka");
if (_root.surroundSound) {
bazooka.setPan(dis);
}
bazooka.start();
bazooka_explode = new Sound(this);
bazooka_explode.setVolume(_root.soundVolume);
bazooka_explode.attachSound("bazooka_explode");
bazooka_explode.start();
wtfSound = 1;
}
_x = (_x + vx);
_y = (_y + vy);
if (_x > 800) {
selfkill();
}
if (_y < -200) {
selfkill();
}
if (_y > 600) {
selfkill();
}
if (_x < -200) {
selfkill();
}
for (whois_hitting in enemies) {
hitName = enemies[whois_hitting];
if (hitName.hitTest(_x, _y, true)) {
if (!hitName.ignore.hitTest(_x, _y, true)) {
dWgH();
}
}
}
dis = Math.round(_x - _root.car._x) / 5;
bazooka.setPan(dis);
Symbol 135 MovieClip [rBullet] Frame 2
gotoAndPlay (1);
Symbol 137 MovieClip [packets] Frame 1
function collect() {
_root.caughtPacket++;
this.removeMovieClip();
}
this.onEnterFrame = function () {
if (_root.killAll) {
this.removeMovieClip();
}
_rotation = (_rotation + random(60));
_y = (_y + 5);
if (this.hitTest(_root.car.pickup)) {
collect();
}
if (_y > 500) {
this.removeMovieClip();
}
};
Symbol 147 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 2
makeB();
shot = new Sound(this);
this.shot.attachSound("enemyShot");
this.shot.setVolume(_root.soundVolume);
dis = Math.round(_parent._parent._x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
if (_root.surroundSound) {
shot.setPan(dis);
}
this.shot.start();
Symbol 151 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 2
makeB();
Instance of Symbol 147 MovieClip in Symbol 152 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
Bulletspeed = 30;
var _local3 = "enemyBulletPower" + _root.depthHolder;
_root.attachMovie("enemyBulletPower", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x + 40;
_root[_local3]._y = _parent._parent._y;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
_root.depthHolder++;
}
minAngle = 70;
maxAngle = 120;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = 1000;
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (_root.mode == "levelChoose") {
return(undefined);
}
if (getTimer() > resetTime) {
fire();
delay = random(1000);
resetTime = getTimer() + delay;
}
}
Instance of Symbol 151 MovieClip in Symbol 152 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
Bulletspeed = 30;
var _local3 = "missile" + _root.depthHolder;
_root.attachMovie("missile", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x;
_root[_local3]._y = _parent._parent._y - 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
_root.depthHolder++;
}
minAngle = -65;
maxAngle = 0;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = random(1500);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(1500);
resetTime = getTimer() + delay;
}
}
Symbol 153 MovieClip [MotorBike9] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
minSpeed = 10;
maxSpeed = 14;
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 2;
moneyWorth = 350;
_root.enemysUsed++;
scoreValue = 300;
health = 10;
lowHealth = 5;
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (alive) {
_x = (_x + speed);
}
if (_x > 900) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
};
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Symbol 156 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 2
makeB();
Instance of Symbol 147 MovieClip in Symbol 157 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
Bulletspeed = 30;
var _local3 = "enemyBulletPower" + _root.depthHolder;
_root.attachMovie("enemyBulletPower", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x + 40;
_root[_local3]._y = _parent._parent._y;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
_root.depthHolder++;
}
minAngle = 70;
maxAngle = 120;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = 1000;
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (_root.mode == "levelChoose") {
return(undefined);
}
if (getTimer() > resetTime) {
fire();
delay = random(1000);
resetTime = getTimer() + delay;
}
}
Instance of Symbol 156 MovieClip in Symbol 157 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
Bulletspeed = 30;
var _local3 = "missile" + _root.depthHolder;
_root.attachMovie("missile", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x;
_root[_local3]._y = _parent._parent._y - 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
_root.depthHolder++;
}
minAngle = 0;
maxAngle = 65;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = random(1500);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(1500);
resetTime = getTimer() + delay;
}
}
Symbol 158 MovieClip [MotorBike8] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
minSpeed = 10;
maxSpeed = 14;
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 2;
moneyWorth = 350;
_root.enemysUsed++;
scoreValue = 300;
health = 10;
lowHealth = 5;
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (alive) {
_x = (_x + speed);
}
if (_x > 900) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
};
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Symbol 162 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 2
makeB();
shot = new Sound(this);
this.shot.attachSound("enemyShot");
this.shot.setVolume(_root.soundVolume);
dis = Math.round(_parent._parent._x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
if (_root.surroundSound) {
shot.setPan(dis);
}
this.shot.start();
Symbol 178 MovieClip Frame 2
_parent.makeB();
Symbol 178 MovieClip Frame 8
_parent.gotoAndStop(1);
Symbol 179 MovieClip Frame 1
stop();
Symbol 179 MovieClip Frame 2
stop();
Symbol 182 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 2
makeB();
Instance of Symbol 162 MovieClip in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x + 40;
_root[_local3]._y = _parent._parent._y;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
_root.depthHolder++;
}
minAngle = 70;
maxAngle = 120;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = 500;
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(200);
resetTime = getTimer() + delay;
}
}
Instance of Symbol 182 MovieClip in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
Bulletspeed = 30;
var _local3 = "missile" + _root.depthHolder;
_root.attachMovie("missile", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x;
_root[_local3]._y = _parent._parent._y - 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
_root.depthHolder++;
}
minAngle = -110;
maxAngle = -70;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = random(1500);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(1500);
resetTime = getTimer() + delay;
}
}
Symbol 184 MovieClip [MotorBike7] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
minSpeed = 10;
maxSpeed = 14;
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 2;
moneyWorth = 350;
_root.enemysUsed++;
scoreValue = 300;
health = 10;
lowHealth = 5;
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (alive) {
_x = (_x + speed);
}
if (_x > 900) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
};
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 162 MovieClip in Symbol 185 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x + 40;
_root[_local3]._y = _parent._parent._y;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
_root.depthHolder++;
}
minAngle = 70;
maxAngle = 120;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = 500;
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(200);
resetTime = getTimer() + delay;
}
}
Instance of Symbol 182 MovieClip in Symbol 185 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
Bulletspeed = 30;
var _local3 = "missile" + _root.depthHolder;
_root.attachMovie("missile", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x;
_root[_local3]._y = _parent._parent._y - 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
_root.depthHolder++;
}
minAngle = 70;
maxAngle = 110;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = random(1500);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(1500);
resetTime = getTimer() + delay;
}
}
Symbol 186 MovieClip [MotorBike6] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
minSpeed = 10;
maxSpeed = 14;
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 2;
moneyWorth = 350;
_root.enemysUsed++;
scoreValue = 300;
health = 10;
lowHealth = 5;
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (alive) {
_x = (_x + speed);
}
if (_x > 900) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
};
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 147 MovieClip in Symbol 187 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
Bulletspeed = 30;
var _local3 = "enemyBulletPower" + _root.depthHolder;
_root.attachMovie("enemyBulletPower", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x + 40;
_root[_local3]._y = _parent._parent._y;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
_root.depthHolder++;
}
minAngle = 70;
maxAngle = 120;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = random(1000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(700);
resetTime = getTimer() + delay;
}
}
Instance of Symbol 162 MovieClip in Symbol 187 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
Bulletspeed = 30;
var _local3 = "enemyBulletPower" + _root.depthHolder;
_root.attachMovie("enemyBulletPower", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x + 10;
_root[_local3]._y = _parent._parent._y;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
_root.depthHolder++;
}
minAngle = 0;
maxAngle = 65;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = random(1000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(700);
resetTime = getTimer() + delay;
}
}
Symbol 188 MovieClip [MotorBike5] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
minSpeed = 10;
maxSpeed = 14;
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 2;
moneyWorth = 350;
_root.enemysUsed++;
scoreValue = 300;
health = 10;
lowHealth = 5;
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (alive) {
_x = (_x + speed);
}
if (_x > 900) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
};
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 147 MovieClip in Symbol 193 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x + 10;
_root[_local3]._y = _parent._parent._y;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
_root.depthHolder++;
}
minAngle = 0;
maxAngle = 65;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = random(1000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(500);
resetTime = getTimer() + delay;
}
}
Symbol 194 MovieClip [MotorBike4] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
minSpeed = 10;
maxSpeed = 14;
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 2;
moneyWorth = 350;
_root.enemysUsed++;
scoreValue = 300;
health = 10;
lowHealth = 5;
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (alive) {
_x = (_x + speed);
}
if (_x > 900) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
};
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 196 MovieClip in Symbol 199 MovieClip Frame 1
onClipEvent (load) {
function fire() {
makeB();
}
function makeB() {
var _local3 = "enemyGrenade" + _root.depthHolder;
_root.attachMovie("enemyGrenade", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 40;
_root[_local3]._y = _parent._parent._y + 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
_root.depthHolder++;
}
minAngle = -110;
maxAngle = -70;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = random(1500);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(1500);
resetTime = getTimer() + delay;
}
}
Symbol 200 MovieClip [MotorBike3] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
minSpeed = 10;
maxSpeed = 14;
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 2;
moneyWorth = 350;
_root.enemysUsed++;
scoreValue = 300;
health = 10;
lowHealth = 5;
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (alive) {
_x = (_x + speed);
}
if (_x > 900) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
};
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 147 MovieClip in Symbol 201 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x + 40;
_root[_local3]._y = _parent._parent._y;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
_root.depthHolder++;
}
minAngle = 70;
maxAngle = 120;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = 500;
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(200);
resetTime = getTimer() + delay;
}
}
Symbol 202 MovieClip [MotorBike2] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
minSpeed = 10;
maxSpeed = 14;
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 2;
moneyWorth = 350;
_root.enemysUsed++;
scoreValue = 300;
health = 10;
lowHealth = 5;
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (alive) {
_x = (_x + speed);
}
if (_x > 900) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
};
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 162 MovieClip in Symbol 203 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
Bulletspeed = 30;
var _local3 = "enemyBulletPower" + _root.depthHolder;
_root.attachMovie("enemyBulletPower", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x + 40;
_root[_local3]._y = _parent._parent._y;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
_root.depthHolder++;
}
minAngle = 70;
maxAngle = 120;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = 1000;
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (_root.mode == "levelChoose") {
return(undefined);
}
if (getTimer() > resetTime) {
fire();
delay = random(1000);
resetTime = getTimer() + delay;
}
}
Symbol 204 MovieClip [MotorBike1] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
minSpeed = 10;
maxSpeed = 14;
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 2;
moneyWorth = 350;
_root.enemysUsed++;
scoreValue = 300;
health = 10;
lowHealth = 5;
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (alive) {
_x = (_x + speed);
}
if (_x > 900) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
};
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Symbol 218 MovieClip [planeFake] Frame 178
this.removeMovieClip();
Symbol 219 MovieClip [plane] Frame 1
function changeSpeed() {
minSpeed = -5;
maxSpeed = 5;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
}
function makeB() {
m = m - 10;
Bulletspeed = 20;
_root.depthHolder++;
var _local2 = "packets" + _root.depthHolder;
_root.attachMovie("packets", _local2, _root.depthHolder);
_root[_local2]._x = _x;
_root[_local2]._y = _y;
_root.depthHolder++;
}
delay = random(2000);
resetTime = getTimer() + delay;
delayB = 7000;
resetTimeB = getTimer() + delayB;
xmin = 80;
xmax = 350;
changeSpeed();
this.cacheAsBitmap = true;
this.onEnterFrame = function () {
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
if (getTimer() > resetTime) {
changeSpeed();
delay = random(1000);
resetTime = getTimer() + delay;
}
if (getTimer() > resetTimeB) {
makeB();
resetTimeB = getTimer() + delayB;
}
_x = (_x + speed);
if (_x > xmax) {
speed = -5;
_x = xmax;
}
if (_x < xmin) {
speed = 5;
_x = xmin;
}
};
Symbol 229 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 2
makeB();
shot = new Sound(this);
this.shot.attachSound("enemyShot");
this.shot.setVolume(_root.soundVolume);
dis = Math.round(_parent._parent._x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
if (_root.surroundSound) {
shot.setPan(dis);
}
this.shot.start();
Symbol 229 MovieClip Frame 4
gotoAndStop (1);
Symbol 231 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 2
makeB();
shot = new Sound(this);
this.shot.attachSound("enemyShot");
this.shot.setVolume(_root.soundVolume);
dis = Math.round(_parent._parent._x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
if (_root.surroundSound) {
shot.setPan(dis);
}
this.shot.start();
Symbol 231 MovieClip Frame 4
gotoAndStop (1);
Symbol 233 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 2
makeB();
shot = new Sound(this);
this.shot.attachSound("enemyShot");
this.shot.setVolume(_root.soundVolume);
dis = Math.round(_parent._parent._x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
if (_root.surroundSound) {
shot.setPan(dis);
}
this.shot.start();
Symbol 233 MovieClip Frame 4
gotoAndStop (1);
Symbol 236 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 2
makeB();
shot = new Sound(this);
this.shot.attachSound("enemyShot");
this.shot.setVolume(_root.soundVolume);
dis = Math.round(_parent._parent._x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
if (_root.surroundSound) {
shot.setPan(dis);
}
this.shot.start();
Symbol 236 MovieClip Frame 4
gotoAndStop (1);
Instance of Symbol 229 MovieClip in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x + 10;
_root[_local3]._y = _parent._parent._y + 30;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = 90;
maxAngle = 125;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
delay = random(3000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(3000);
resetTime = getTimer() + delay;
}
}
Instance of Symbol 231 MovieClip in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y + 10;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = 90;
maxAngle = 125;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
delay = random(3000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(3000);
resetTime = getTimer() + delay;
}
}
Instance of Symbol 233 MovieClip in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x + 50;
_root[_local3]._y = _parent._parent._y - 5;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = 90;
maxAngle = 125;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
delay = random(3000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(3000);
resetTime = getTimer() + delay;
}
}
Instance of Symbol 233 MovieClip in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 10;
_root[_local3]._y = _parent._parent._y + 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = 90;
maxAngle = 125;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
delay = random(3000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(3000);
resetTime = getTimer() + delay;
}
}
Instance of Symbol 229 MovieClip in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 40;
_root[_local3]._y = _parent._parent._y + 30;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = 90;
maxAngle = 125;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
delay = random(3000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(3000);
resetTime = getTimer() + delay;
}
}
Instance of Symbol 236 MovieClip in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x + 35;
_root[_local3]._y = _parent._parent._y + 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = 90;
maxAngle = 125;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
delay = random(3000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(3000);
resetTime = getTimer() + delay;
}
}
Symbol 238 MovieClip [Mafia4] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
minSpeed = 8;
maxSpeed = 10;
if (_root.level == 6) {
minSpeed = 12;
maxSpeed = 14;
}
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 5;
moneyWorth = 400;
_root.enemysUsed++;
scoreValue = 600;
health = 35;
lowHealth = 17;
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (alive) {
_x = (_x + speed);
}
if (_x > 900) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
};
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 221 MovieClip "area" in Symbol 238 MovieClip [Mafia4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 233 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 10;
_root[_local3]._y = _parent._parent._y - 10;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = 90;
maxAngle = 125;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
delay = random(6000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(6000);
resetTime = getTimer() + delay;
}
}
Instance of Symbol 236 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 45;
_root[_local3]._y = _parent._parent._y + 30;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = 90;
maxAngle = 125;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
delay = random(6000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(6000);
resetTime = getTimer() + delay;
}
}
Instance of Symbol 233 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x + 35;
_root[_local3]._y = _parent._parent._y + 30;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = 90;
maxAngle = 125;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
delay = random(6000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(6000);
resetTime = getTimer() + delay;
}
}
Symbol 241 MovieClip [Mafia3] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
minSpeed = 8;
maxSpeed = 10;
if (_root.level == 6) {
minSpeed = 12;
maxSpeed = 14;
}
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 3;
moneyWorth = 300;
_root.enemysUsed++;
scoreValue = 300;
health = 25;
lowHealth = 12;
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (alive) {
_x = (_x + speed);
}
if (_x > 900) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
};
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 221 MovieClip "area" in Symbol 241 MovieClip [Mafia3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 236 MovieClip in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 40;
_root[_local3]._y = _parent._parent._y + 30;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = 90;
maxAngle = 125;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
delay = random(3000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(3000);
resetTime = getTimer() + delay;
}
}
Instance of Symbol 229 MovieClip in Symbol 243 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x + 30;
_root[_local3]._y = _parent._parent._y + 30;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = 90;
maxAngle = 125;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
delay = random(3000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(3000);
resetTime = getTimer() + delay;
}
}
Symbol 244 MovieClip [Mafia2] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
minSpeed = 8;
maxSpeed = 10;
if (_root.level == 6) {
minSpeed = 12;
maxSpeed = 14;
}
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 3;
moneyWorth = 250;
_root.enemysUsed++;
scoreValue = 300;
health = 25;
lowHealth = 12;
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (alive) {
_x = (_x + speed);
}
if (_x > 900) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
};
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 221 MovieClip "area" in Symbol 244 MovieClip [Mafia2] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 247 MovieClip [Mafia1] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
minSpeed = 8;
maxSpeed = 10;
if (_root.level == 6) {
minSpeed = 12;
maxSpeed = 14;
}
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 3;
moneyWorth = 100;
_root.enemysUsed++;
scoreValue = 150;
health = 20;
lowHealth = 10;
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (alive) {
_x = (_x + speed);
}
if (_x > 900) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
};
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 221 MovieClip "area" in Symbol 247 MovieClip [Mafia1] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 260 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 2
makeB();
Symbol 260 MovieClip Frame 4
gotoAndStop (1);
Instance of Symbol 260 MovieClip in Symbol 262 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "missile" + _root.depthHolder;
_root.attachMovie("missile", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x;
_root[_local3]._y = _parent._parent._y - 30;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = 60;
maxAngle = 90;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
delay = random(2000);
if (_root.level == 9) {
delay = random(1000);
}
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(2000);
if (_root.level == 9) {
delay = random(1000);
}
resetTime = getTimer() + delay;
}
}
Instance of Symbol 231 MovieClip in Symbol 262 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x + 25;
_root[_local3]._y = _parent._parent._y - 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = 90;
maxAngle = 125;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
delay = random(2000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(2000);
resetTime = getTimer() + delay;
}
}
Symbol 263 MovieClip [BHCar9] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
minSpeed = 8;
maxSpeed = 10;
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 3;
moneyWorth = 300;
_root.enemysUsed++;
scoreValue = 200;
health = 30;
lowHealth = 10;
if (_root.level == 9) {
health = 30;
lowHealth = 15;
scoreValue = 400;
moneyWorth = 400;
}
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (alive) {
_x = (_x + speed);
}
if (_x > 900) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
};
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 221 MovieClip "area" in Symbol 263 MovieClip [BHCar9] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 233 MovieClip in Symbol 265 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x + 50;
_root[_local3]._y = _parent._parent._y - 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = 90;
maxAngle = 125;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
delay = random(3000);
if (_root.level == 9) {
delay = random(1000);
}
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(3000);
if (_root.level == 9) {
delay = random(1000);
}
resetTime = getTimer() + delay;
}
}
Instance of Symbol 231 MovieClip in Symbol 265 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x + 25;
_root[_local3]._y = _parent._parent._y - 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = 90;
maxAngle = 125;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
delay = random(3000);
if (_root.level == 9) {
delay = random(1000);
}
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(3000);
if (_root.level == 9) {
delay = random(1000);
}
resetTime = getTimer() + delay;
}
}
Symbol 266 MovieClip [BHCar8] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
minSpeed = 8;
maxSpeed = 10;
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 3;
moneyWorth = 220;
_root.enemysUsed++;
scoreValue = 150;
health = 25;
lowHealth = 15;
if (_root.level == 9) {
health = 30;
lowHealth = 15;
scoreValue = 400;
moneyWorth = 400;
}
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (alive) {
_x = (_x + speed);
}
if (_x > 900) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
};
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 221 MovieClip "area" in Symbol 266 MovieClip [BHCar8] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 269 MovieClip [BHCar7] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
minSpeed = 8;
maxSpeed = 10;
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 3;
moneyWorth = 200;
_root.enemysUsed++;
scoreValue = 100;
health = 20;
lowHealth = 10;
if (_root.level == 9) {
health = 30;
lowHealth = 15;
scoreValue = 400;
moneyWorth = 400;
}
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (alive) {
_x = (_x + speed);
}
if (_x > 900) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
};
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 221 MovieClip "area" in Symbol 269 MovieClip [BHCar7] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 274 MovieClip [aTruck] Frame 1
function addExplosion() {
health = health - 1;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "Alcoholexplosion" + _root.depthHolder;
_root.attachMovie("Alcoholexplosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
this.swapDepths(900090);
this.removeMovieClip();
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
this.cacheAsBitmap = true;
speed = 5;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 5;
scoreValue = 0;
moneyWorth = 0;
health = 20;
lowHealth = 10;
alive = true;
this.onEnterFrame = function () {
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
this.swapDepths(_y);
if (_root.levelDone) {
_x = (_x + (speed + 2));
}
if (health <= 0) {
explode();
}
};
Symbol 285 MovieClip Frame 2
_parent.makeB();
Symbol 290 MovieClip Frame 1
if (numShots == undefined) {
numShots = 0;
}
Symbol 290 MovieClip Frame 5
numShots++;
_parent.makeB();
if (numShots < 3) {
_parent.makeB();
gotoAndPlay (1);
}
if (numShots >= 3) {
numShots = undefined;
_parent.gotoAndStop(1);
}
Symbol 291 MovieClip Frame 1
stop();
Symbol 291 MovieClip Frame 2
stop();
vulcan_fire = new Sound(this);
vulcan_fire.setVolume(_root.soundVolume);
vulcan_fire.attachSound("vulcan_fire");
vulcan_fire.start();
Symbol 294 MovieClip [Helicopter3] Frame 1
function explode() {
this.heliNoise.stop();
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function addExplosion() {
n = random(7);
word = "ric" + n;
ric = new Sound(this);
ric.attachSound(word);
ric.setVolume(_root.soundVolume);
dis = Math.round(_x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
if (_root.surroundSound) {
ric.setPan(dis);
}
ric.start();
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
myX = _xscale;
_root.enemysUsed++;
target = _root.car;
speed = 10;
sightX = random(400);
if (sightX < 100) {
sightX = 100;
}
sightY = 1000;
mode = "get";
direction = "right";
rate = 2;
fakeAngle = 153;
maxXSpeed = 20;
maxYSpeed = 15;
scrollY = 0;
scroll = 10;
friction = 1;
directionY = "down";
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 0;
moneyWorth = 200;
scoreValue = 300;
health = 30;
lowHealth = 10;
if (_root.level == 9) {
health = 45;
lowHealth = 20;
scoreValue = 750;
moneyWorth = 750;
}
alive = true;
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
dis = Math.round(_x - _root.car._x) / 5;
if (_root.surroundSound) {
heliNoise.setPan(dis);
}
z++;
}
heliNoise = new Sound(this);
this.heliNoise.attachSound("heliNoise");
this.heliNoise.setVolume(_root.soundVolume);
dis = Math.round(_x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
if (_root.surroundSound) {
heliNoise.setPan(dis);
}
this.heliNoise.start(0, 9999);
Instance of Symbol 291 MovieClip in Symbol 294 MovieClip [Helicopter3] Frame 1
onClipEvent (load) {
function fire() {
this.gotoAndStop(2);
}
function makeB() {
if (!(_parent.target === undefined)) {
Bulletspeed = 15;
_root.depthHolder++;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._x;
_root[_local3]._y = _parent._y;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
_root.depthHolder++;
}
}
delay = random(10000);
if (_root.level == 9) {
delay = random(6000);
}
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
deltaX = _parent._x - _parent.target._x;
deltaY = _parent._y - _parent.target._y;
angle = -Math.atan2(deltaX, deltaY);
Angle = Math.round((angle * 180) / Math.PI);
if (_parent._xscale == _parent.myX) {
_rotation = Angle;
}
if (_parent._xscale == (-_parent.myX)) {
_rotation = (-Angle);
}
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(10000);
if (_root.level == 9) {
delay = random(6000);
}
resetTime = getTimer() + delay;
}
}
Symbol 294 MovieClip [Helicopter3] Frame 2
stop();
this.onEnterFrame = function () {
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (health <= 0) {
explode();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
if (target._x >= _x) {
direction = "right";
_xscale = myX;
}
if (target._x < _x) {
direction = "left";
_xscale = (-myX);
}
if (mode == "get") {
if (direction == "right") {
if (scroll < maxXSpeed) {
scroll = scroll + (2 / friction);
}
} else if (direction == "left") {
if (scroll > (-maxXSpeed)) {
scroll = scroll - (2 / friction);
}
} else {
scroll = scroll * 0.8;
}
_x = (_x + scroll);
_rotation = scroll;
}
if (directionY == "down") {
if (scrollY < maxYSpeed) {
scrollY = scrollY + ((0.1 / friction) - 0.5);
}
} else if (directionY == "up") {
if (scrollY > (-maxYSpeed)) {
scrollY = scrollY - ((0.1 / friction) - 0.5);
}
} else {
scrollY = scrollY * 0.99;
}
_y = (_y + scrollY);
if (scrollY >= maxYSpeed) {
if (directionY == "down") {
directionY = "up";
return(undefined);
}
}
if (scrollY <= (-maxYSpeed)) {
if (directionY == "up") {
directionY = "down";
return(undefined);
}
}
if (direction == "left") {
distance = _x - target._x;
}
if (direction == "right") {
distance = target._x - _x;
}
if (distance <= sightX) {
mode = "align";
}
if (distance > sightX) {
mode = "get";
}
if (mode == "align") {
getAngle();
}
if (yguyuyugyuguygyugguy) {
if (scroll < maxXSpeed) {
scroll = scroll + (2 / friction);
}
} else if (gygyugyouyguoougygouyuygo) {
if (scroll > (-maxXSpeed)) {
scroll = scroll - (2 / friction);
}
} else {
scroll = scroll * 0.8;
}
_x = (_x + scroll);
if (directionY == "down") {
if (scrollY < maxYSpeed) {
scrollY = scrollY + (2 / friction);
}
} else if (directionY == "up") {
if (scrollY > (-maxYSpeed)) {
scrollY = scrollY - (2 / friction);
}
} else {
scrollY = scrollY * 0.99;
}
if (_root.levelDone) {
this.heliNoise.stop();
}
if (_root.car.info.health <= 0) {
this.heliNoise.stop();
}
if (_root.fadeInFX._currentframe >= 24) {
this.heliNoise.stop();
}
};
heliNoise = new Sound(this);
this.heliNoise.attachSound("heliNoise");
this.heliNoise.setVolume(_root.soundVolume);
dis = Math.round(_x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
if (_root.surroundSound) {
heliNoise.setPan(dis);
}
this.heliNoise.start(0, 9999);
Symbol 302 MovieClip Frame 1
_parent.makeB();
Symbol 302 MovieClip Frame 8
_parent.gotoAndStop(1);
Symbol 303 MovieClip Frame 1
stop();
Symbol 303 MovieClip Frame 2
stop();
Symbol 304 MovieClip [Helicopter2] Frame 1
function explode() {
this.heliNoise.stop();
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function addExplosion() {
n = random(7);
word = "ric" + n;
ric = new Sound(this);
ric.attachSound(word);
ric.setVolume(_root.soundVolume);
dis = Math.round(_x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
if (_root.surroundSound) {
ric.setPan(dis);
}
ric.start();
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
myX = _xscale;
_root.enemysUsed++;
target = _root.car;
speed = 10;
sightX = random(400);
if (sightX < 100) {
sightX = 100;
}
sightY = 1000;
mode = "get";
direction = "right";
rate = 2;
fakeAngle = 153;
maxXSpeed = 20;
maxYSpeed = 15;
scrollY = 0;
scroll = 10;
friction = 1;
directionY = "down";
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 0;
moneyWorth = 120;
scoreValue = 250;
health = 25;
lowHealth = 13;
if (_root.level == 9) {
health = 45;
lowHealth = 20;
scoreValue = 500;
moneyWorth = 500;
}
alive = true;
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 303 MovieClip in Symbol 304 MovieClip [Helicopter2] Frame 1
onClipEvent (load) {
function fire() {
this.gotoAndStop(2);
}
function makeB() {
if (!(_parent.target === undefined)) {
Bulletspeed = 14;
_root.depthHolder++;
var _local3 = "missile" + _root.depthHolder;
_root.attachMovie("missile", _local3, _root.depthHolder);
_root[_local3]._x = _parent._x;
_root[_local3]._y = _parent._y;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
_root.depthHolder++;
}
}
delay = random(6000);
if (_root.level == 9) {
delay = random(3000);
}
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
deltaX = _parent._x - _parent.target._x;
deltaY = _parent._y - _parent.target._y;
angle = -Math.atan2(deltaX, deltaY);
Angle = Math.round((angle * 180) / Math.PI);
if (_parent._xscale == _parent.myX) {
_rotation = Angle;
}
if (_parent._xscale == (-_parent.myX)) {
_rotation = (-Angle);
}
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(5000);
if (_root.level == 9) {
delay = random(3000);
}
resetTime = getTimer() + delay;
}
}
Symbol 304 MovieClip [Helicopter2] Frame 2
stop();
this.onEnterFrame = function () {
if (health <= 0) {
explode();
}
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
if (target._x >= _x) {
direction = "right";
_xscale = myX;
}
if (target._x < _x) {
direction = "left";
_xscale = (-myX);
}
if (mode == "get") {
if (direction == "right") {
if (scroll < maxXSpeed) {
scroll = scroll + (2 / friction);
}
} else if (direction == "left") {
if (scroll > (-maxXSpeed)) {
scroll = scroll - (2 / friction);
}
} else {
scroll = scroll * 0.8;
}
_x = (_x + scroll);
_rotation = scroll;
}
if (directionY == "down") {
if (scrollY < maxYSpeed) {
scrollY = scrollY + ((0.1 / friction) - 0.5);
}
} else if (directionY == "up") {
if (scrollY > (-maxYSpeed)) {
scrollY = scrollY - ((0.1 / friction) - 0.5);
}
} else {
scrollY = scrollY * 0.99;
}
_y = (_y + scrollY);
if (scrollY >= maxYSpeed) {
if (directionY == "down") {
directionY = "up";
return(undefined);
}
}
if (scrollY <= (-maxYSpeed)) {
if (directionY == "up") {
directionY = "down";
return(undefined);
}
}
if (direction == "left") {
distance = _x - target._x;
}
if (direction == "right") {
distance = target._x - _x;
}
if (distance <= sightX) {
mode = "align";
}
if (distance > sightX) {
mode = "get";
}
if (mode == "align") {
getAngle();
}
if (yguyuyugyuguygyugguy) {
if (scroll < maxXSpeed) {
scroll = scroll + (2 / friction);
}
} else if (gygyugyouyguoougygouyuygo) {
if (scroll > (-maxXSpeed)) {
scroll = scroll - (2 / friction);
}
} else {
scroll = scroll * 0.8;
}
_x = (_x + scroll);
if (directionY == "down") {
if (scrollY < maxYSpeed) {
scrollY = scrollY + (2 / friction);
}
} else if (directionY == "up") {
if (scrollY > (-maxYSpeed)) {
scrollY = scrollY - (2 / friction);
}
} else {
scrollY = scrollY * 0.99;
}
dis = Math.round(_x - _root.car._x) / 5;
if (_root.surroundSound) {
heliNoise.setPan(dis);
}
if (_root.levelDone) {
this.heliNoise.stop();
}
if (_root.car.info.health <= 0) {
this.heliNoise.stop();
}
if (_root.fadeInFX._currentframe >= 24) {
this.heliNoise.stop();
}
};
heliNoise = new Sound(this);
this.heliNoise.attachSound("heliNoise");
this.heliNoise.setVolume(_root.soundVolume);
dis = Math.round(_x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
if (_root.surroundSound) {
heliNoise.setPan(dis);
}
this.heliNoise.start(0, 9999);
Symbol 309 MovieClip [Helicopter1] Frame 1
function explode() {
this.heliNoise.stop();
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width;
_root[_local3]._yscale = _width;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
myX = _xscale;
_root.enemysUsed++;
target = _root.car;
speed = 10;
sightX = 100;
sightY = 1000;
mode = "get";
direction = "right";
rate = 2;
fakeAngle = 153;
maxXSpeed = 20;
maxYSpeed = 15;
scrollY = 0;
scroll = 10;
friction = 1;
directionY = "down";
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 5;
moneyWorth = 100;
scoreValue = 200;
health = 25;
lowHealth = 13;
alive = true;
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 307 MovieClip "ignore" in Symbol 309 MovieClip [Helicopter1] Frame 1
onClipEvent (enterFrame) {
deltaX = _parent._x - _parent.target._x;
deltaY = _parent._y - _parent.target._y;
angle = -Math.atan2(deltaX, deltaY);
Angle = Math.round((angle * 180) / Math.PI);
if (_parent._xscale == _parent.myX) {
_rotation = Angle;
}
if (_parent._xscale == (-_parent.myX)) {
_rotation = (-Angle);
}
}
Symbol 309 MovieClip [Helicopter1] Frame 2
stop();
this.onEnterFrame = function () {
if (health <= 0) {
explode();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
if (target._x >= _x) {
direction = "right";
_xscale = myX;
}
if (target._x < _x) {
direction = "left";
_xscale = (-myX);
}
if (mode == "get") {
if (direction == "right") {
if (scroll < maxXSpeed) {
scroll = scroll + (2 / friction);
}
} else if (direction == "left") {
if (scroll > (-maxXSpeed)) {
scroll = scroll - (2 / friction);
}
} else {
scroll = scroll * 0.8;
}
_x = (_x + scroll);
_rotation = scroll;
}
if (directionY == "down") {
if (scrollY < maxYSpeed) {
scrollY = scrollY + ((0.1 / friction) - 0.5);
}
} else if (directionY == "up") {
if (scrollY > (-maxYSpeed)) {
scrollY = scrollY - ((0.1 / friction) - 0.5);
}
} else {
scrollY = scrollY * 0.99;
}
_y = (_y + scrollY);
if (scrollY >= maxYSpeed) {
if (directionY == "down") {
directionY = "up";
return(undefined);
}
}
if (scrollY <= (-maxYSpeed)) {
if (directionY == "up") {
directionY = "down";
return(undefined);
}
}
if (direction == "left") {
distance = _x - target._x;
}
if (direction == "right") {
distance = target._x - _x;
}
if (distance <= sightX) {
mode = "align";
}
if (distance > sightX) {
mode = "get";
}
if (mode == "align") {
getAngle();
}
if (yguyuyugyuguygyugguy) {
if (scroll < maxXSpeed) {
scroll = scroll + (2 / friction);
}
} else if (gygyugyouyguoougygouyuygo) {
if (scroll > (-maxXSpeed)) {
scroll = scroll - (2 / friction);
}
} else {
scroll = scroll * 0.8;
}
_x = (_x + scroll);
if (directionY == "down") {
if (scrollY < maxYSpeed) {
scrollY = scrollY + (2 / friction);
}
} else if (directionY == "up") {
if (scrollY > (-maxYSpeed)) {
scrollY = scrollY - (2 / friction);
}
} else {
scrollY = scrollY * 0.99;
}
dis = Math.round(_x - _root.car._x) / 5;
if (_root.surroundSound) {
heliNoise.setPan(dis);
}
if (_root.levelDone) {
this.heliNoise.stop();
}
if (_root.car.info.health <= 0) {
this.heliNoise.stop();
}
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (_root.fadeInFX._currentframe >= 24) {
this.heliNoise.stop();
}
};
heliNoise = new Sound(this);
this.heliNoise.attachSound("heliNoise");
this.heliNoise.setVolume(_root.soundVolume);
dis = Math.round(_x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
if (_root.surroundSound) {
heliNoise.setPan(dis);
}
this.heliNoise.start(0, 9999);
Symbol 311 MovieClip Frame 2
makeB();
shot = new Sound(this);
this.shot.attachSound("enemyShot");
this.shot.setVolume(_root.soundVolume);
dis = Math.round(_parent._parent._x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
if (_root.surroundSound) {
shot.setPan(dis);
}
this.shot.start();
Symbol 311 MovieClip Frame 4
gotoAndStop (1);
Symbol 320 MovieClip Frame 2
makeB();
shot = new Sound(this);
this.shot.attachSound("enemyShot");
this.shot.setVolume(_root.soundVolume);
dis = Math.round(_parent._parent._x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
if (_root.surroundSound) {
shot.setPan(dis);
}
this.shot.start();
Symbol 320 MovieClip Frame 4
gotoAndStop (1);
Symbol 322 MovieClip Frame 2
makeB();
shot = new Sound(this);
this.shot.attachSound("enemyShot");
this.shot.setVolume(_root.soundVolume);
dis = Math.round(_parent._parent._x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
if (_root.surroundSound) {
shot.setPan(dis);
}
this.shot.start();
Symbol 322 MovieClip Frame 4
gotoAndStop (1);
Instance of Symbol 311 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y - 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = -110;
maxAngle = -80;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
delay = random(3000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(3000);
resetTime = getTimer() + delay;
}
}
Instance of Symbol 320 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y - 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = -110;
maxAngle = -80;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
delay = random(3000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(3000);
resetTime = getTimer() + delay;
}
}
Instance of Symbol 322 MovieClip in Symbol 323 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y - 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = -110;
maxAngle = -80;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
delay = random(3000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(3000);
resetTime = getTimer() + delay;
}
}
Symbol 324 MovieClip [PoliceCar6] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
minSpeed = 8;
maxSpeed = 10;
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 7;
moneyWorth = 30;
scoreValue = 30;
_root.enemysUsed++;
health = 10;
lowHealth = 6;
if (_root.level == 9) {
health = 30;
lowHealth = 15;
}
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (alive) {
_x = (_x - speed);
}
if (_x < -200) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
};
keyword = "policeHunter";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
trace("Police Hunter");
}
z++;
}
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 221 MovieClip "area" in Symbol 324 MovieClip [PoliceCar6] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 316 MovieClip in Symbol 326 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y - 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = -110;
maxAngle = -80;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
delay = random(3000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(3000);
resetTime = getTimer() + delay;
}
}
Symbol 327 MovieClip [PoliceCar5] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
minSpeed = 8;
maxSpeed = 10;
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 7;
moneyWorth = 30;
scoreValue = 30;
_root.enemysUsed++;
health = 10;
lowHealth = 6;
if (_root.level == 9) {
health = 30;
lowHealth = 15;
}
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (alive) {
_x = (_x - speed);
}
if (_x < -200) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
};
keyword = "policeHunter";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
trace("Police Hunter");
}
z++;
}
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 221 MovieClip "area" in Symbol 327 MovieClip [PoliceCar5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 322 MovieClip in Symbol 330 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y - 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = -110;
maxAngle = -80;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
delay = random(3000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(3000);
resetTime = getTimer() + delay;
}
}
Instance of Symbol 322 MovieClip in Symbol 330 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y - 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = -110;
maxAngle = -80;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
delay = random(3000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(3000);
resetTime = getTimer() + delay;
}
}
Instance of Symbol 320 MovieClip in Symbol 330 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y - 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = -110;
maxAngle = -80;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
delay = random(3000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(3000);
resetTime = getTimer() + delay;
}
}
Symbol 331 MovieClip [PoliceCar4] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
minSpeed = 8;
maxSpeed = 10;
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 7;
moneyWorth = 30;
scoreValue = 30;
_root.enemysUsed++;
health = 10;
lowHealth = 6;
if (_root.level == 9) {
health = 30;
lowHealth = 15;
}
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (alive) {
_x = (_x - speed);
}
if (_x < -200) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
};
keyword = "policeHunter";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
trace("Police Hunter");
}
z++;
}
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 221 MovieClip "area" in Symbol 331 MovieClip [PoliceCar4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 320 MovieClip in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y - 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = -110;
maxAngle = -80;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
delay = random(3000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(3000);
resetTime = getTimer() + delay;
}
}
Instance of Symbol 320 MovieClip in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y - 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = -110;
maxAngle = -80;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
delay = random(3000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(3000);
resetTime = getTimer() + delay;
}
}
Instance of Symbol 322 MovieClip in Symbol 337 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = -110;
maxAngle = -80;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
delay = random(3000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(3000);
resetTime = getTimer() + delay;
}
}
Symbol 338 MovieClip [PoliceCar3] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
minSpeed = 8;
maxSpeed = 10;
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 7;
moneyWorth = 80;
scoreValue = 200;
_root.enemysUsed++;
health = 14;
lowHealth = 7;
if (_root.level == 9) {
health = 30;
lowHealth = 15;
}
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (alive) {
_x = (_x - speed);
}
if (_x < -200) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
};
keyword = "policeHunter";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
trace("Police Hunter");
}
z++;
}
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 221 MovieClip "area" in Symbol 338 MovieClip [PoliceCar3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 320 MovieClip in Symbol 340 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y - 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = -110;
maxAngle = -80;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
delay = random(3000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(3000);
resetTime = getTimer() + delay;
}
}
Symbol 341 MovieClip [PoliceCar2] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
minSpeed = 8;
maxSpeed = 10;
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 7;
moneyWorth = 30;
scoreValue = 30;
_root.enemysUsed++;
health = 10;
lowHealth = 6;
if (_root.level == 9) {
health = 30;
lowHealth = 15;
}
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (alive) {
_x = (_x - speed);
}
if (_x < -200) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
};
keyword = "policeHunter";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
trace("Police Hunter");
}
z++;
}
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 221 MovieClip "area" in Symbol 341 MovieClip [PoliceCar2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 322 MovieClip in Symbol 343 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y - 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = -110;
maxAngle = -80;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
delay = random(3000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(3000);
resetTime = getTimer() + delay;
}
}
Symbol 344 MovieClip [PoliceCar1] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
minSpeed = 8;
maxSpeed = 10;
doubleDamage = false;
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 7;
moneyWorth = 30;
scoreValue = 30;
_root.enemysUsed++;
health = 10;
lowHealth = 6;
if (_root.level == 9) {
health = 30;
lowHealth = 15;
}
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (alive) {
_x = (_x - speed);
}
if (_x < -200) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
};
keyword = "policeHunter";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
trace("Police Hunter");
}
z++;
}
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 221 MovieClip "area" in Symbol 344 MovieClip [PoliceCar1] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 349 MovieClip Frame 2
makeB();
shot = new Sound(this);
this.shot.attachSound("enemyShot");
this.shot.setVolume(_root.soundVolume);
dis = Math.round(_parent._parent._x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
if (_root.surroundSound) {
shot.setPan(dis);
}
this.shot.start();
Symbol 349 MovieClip Frame 4
gotoAndStop (1);
Symbol 354 MovieClip Frame 2
makeB();
shot = new Sound(this);
this.shot.attachSound("enemyShot");
this.shot.setVolume(_root.soundVolume);
dis = Math.round(_parent._parent._x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
if (_root.surroundSound) {
shot.setPan(dis);
}
this.shot.start();
Symbol 354 MovieClip Frame 4
gotoAndStop (1);
Symbol 360 MovieClip Frame 2
makeB();
shot = new Sound(this);
this.shot.attachSound("enemyShot");
this.shot.setVolume(_root.soundVolume);
dis = Math.round(_parent._parent._x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
if (_root.surroundSound) {
shot.setPan(dis);
}
this.shot.start();
Symbol 360 MovieClip Frame 4
gotoAndStop (1);
Instance of Symbol 349 MovieClip in Symbol 361 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y - 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = -160;
maxAngle = -30;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = random(6000);
if (_root.level == 9) {
delay = random(1000);
}
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(6000);
if (_root.level == 9) {
delay = random(1000);
}
resetTime = getTimer() + delay;
}
}
Instance of Symbol 354 MovieClip in Symbol 361 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y - 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = -100;
maxAngle = -60;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = random(6000);
if (_root.level == 9) {
delay = random(1000);
}
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(6000);
if (_root.level == 9) {
delay = random(1000);
}
resetTime = getTimer() + delay;
}
}
Instance of Symbol 354 MovieClip in Symbol 361 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = -100;
maxAngle = -60;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = random(6000);
if (_root.level == 9) {
delay = random(1000);
}
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(6000);
if (_root.level == 9) {
delay = random(1000);
}
resetTime = getTimer() + delay;
}
}
Instance of Symbol 360 MovieClip in Symbol 361 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = -125;
maxAngle = -90;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = random(6000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(6000);
resetTime = getTimer() + delay;
}
}
Symbol 362 MovieClip [BHCar6] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
minSpeed = 8;
maxSpeed = 10;
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 7;
moneyWorth = 50;
scoreValue = 50;
_root.enemysUsed++;
health = 16;
lowHealth = 8;
if (_root.level == 9) {
health = 30;
lowHealth = 15;
scoreValue = 400;
moneyWorth = 400;
}
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
if (_root.level == 4) {
speed = -speed;
kkk = _xscale;
_xscale = (-kkk);
}
this.onEnterFrame = function () {
if (alive) {
_x = (_x - speed);
}
if (_x < -200) {
selfkill();
}
if (_root.level == 4) {
if (_x > 900) {
selfkill();
}
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
};
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 221 MovieClip "area" in Symbol 362 MovieClip [BHCar6] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 368 MovieClip Frame 2
makeB();
shot = new Sound(this);
this.shot.attachSound("enemyShot");
this.shot.setVolume(_root.soundVolume);
dis = Math.round(_parent._parent._x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
if (_root.surroundSound) {
shot.setPan(dis);
}
this.shot.start();
Symbol 368 MovieClip Frame 4
gotoAndStop (1);
Symbol 373 MovieClip Frame 2
makeB();
Symbol 373 MovieClip Frame 4
gotoAndStop (1);
Symbol 378 MovieClip Frame 2
makeB();
shot = new Sound(this);
this.shot.attachSound("enemyShot");
this.shot.setVolume(_root.soundVolume);
dis = Math.round(_parent._parent._x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
if (_root.surroundSound) {
shot.setPan(dis);
}
this.shot.start();
Symbol 378 MovieClip Frame 4
gotoAndStop (1);
Symbol 379 MovieClip [BHCar5] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
minSpeed = 8;
maxSpeed = 10;
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 7;
moneyWorth = 50;
scoreValue = 40;
_root.enemysUsed++;
health = 15;
lowHealth = 7;
if (_root.level == 9) {
health = 30;
lowHealth = 15;
scoreValue = 400;
moneyWorth = 400;
}
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
if (_root.level == 4) {
speed = -speed;
kkk = _xscale;
_xscale = (-kkk);
}
this.onEnterFrame = function () {
if (alive) {
_x = (_x - speed);
}
if (_x < -200) {
selfkill();
}
if (_root.level == 4) {
if (_x > 900) {
selfkill();
}
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
};
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 221 MovieClip "area" in Symbol 379 MovieClip [BHCar5] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 368 MovieClip in Symbol 379 MovieClip [BHCar5] Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y - 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = -160;
maxAngle = -30;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = random(6000);
if (_root.level == 9) {
delay = random(1000);
}
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(6000);
if (_root.level == 9) {
delay = random(1000);
}
resetTime = getTimer() + delay;
}
}
Instance of Symbol 373 MovieClip in Symbol 379 MovieClip [BHCar5] Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y - 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = -160;
maxAngle = -30;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = random(6000);
if (_root.level == 9) {
delay = random(1000);
}
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(6000);
if (_root.level == 9) {
delay = random(1000);
}
resetTime = getTimer() + delay;
}
}
Instance of Symbol 378 MovieClip in Symbol 379 MovieClip [BHCar5] Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = -100;
maxAngle = -60;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = random(6000);
if (_root.level == 9) {
delay = random(1000);
}
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(6000);
if (_root.level == 9) {
delay = random(1000);
}
resetTime = getTimer() + delay;
}
}
Instance of Symbol 360 MovieClip in Symbol 379 MovieClip [BHCar5] Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = -125;
maxAngle = -90;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = random(6000);
if (_root.level == 9) {
delay = random(1000);
}
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(6000);
if (_root.level == 9) {
delay = random(1000);
}
resetTime = getTimer() + delay;
}
}
Symbol 384 MovieClip Frame 2
makeB();
shot = new Sound(this);
this.shot.attachSound("enemyShot");
this.shot.setVolume(_root.soundVolume);
dis = Math.round(_parent._parent._x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
if (_root.surroundSound) {
shot.setPan(dis);
}
this.shot.start();
Symbol 384 MovieClip Frame 4
gotoAndStop (1);
Instance of Symbol 384 MovieClip in Symbol 386 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y - 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = -160;
maxAngle = -30;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = random(6000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(6000);
resetTime = getTimer() + delay;
}
}
Instance of Symbol 354 MovieClip in Symbol 386 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y - 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = -100;
maxAngle = -60;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = random(6000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(6000);
resetTime = getTimer() + delay;
}
}
Instance of Symbol 349 MovieClip in Symbol 386 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = -100;
maxAngle = -60;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = random(6000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(6000);
resetTime = getTimer() + delay;
}
}
Symbol 387 MovieClip [BHCar4] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
minSpeed = 8;
maxSpeed = 10;
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 7;
moneyWorth = 50;
scoreValue = 40;
_root.enemysUsed++;
health = 12;
lowHealth = 6;
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
if (_root.level == 4) {
speed = -speed;
kkk = _xscale;
_xscale = (-kkk);
}
this.onEnterFrame = function () {
if (alive) {
_x = (_x - speed);
}
if (_x < -200) {
selfkill();
}
if (_root.level == 4) {
if (_x > 900) {
selfkill();
}
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
};
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 221 MovieClip "area" in Symbol 387 MovieClip [BHCar4] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 349 MovieClip in Symbol 389 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y - 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = -160;
maxAngle = -30;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = random(6000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(6000);
resetTime = getTimer() + delay;
}
}
Instance of Symbol 354 MovieClip in Symbol 389 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y - 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = -100;
maxAngle = -60;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = random(6000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(6000);
resetTime = getTimer() + delay;
}
}
Instance of Symbol 360 MovieClip in Symbol 389 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = -125;
maxAngle = -90;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = random(6000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(6000);
resetTime = getTimer() + delay;
}
}
Symbol 390 MovieClip [BHCar3] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
minSpeed = 8;
maxSpeed = 10;
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 7;
moneyWorth = 50;
scoreValue = 40;
_root.enemysUsed++;
health = 12;
lowHealth = 6;
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
if (_root.level == 4) {
speed = -speed;
kkk = _xscale;
_xscale = (-kkk);
}
this.onEnterFrame = function () {
if (alive) {
_x = (_x - speed);
}
if (_x < -200) {
selfkill();
}
if (_root.level == 4) {
if (_x > 900) {
selfkill();
}
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
};
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 221 MovieClip "area" in Symbol 390 MovieClip [BHCar3] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 368 MovieClip in Symbol 392 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y - 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = -110;
maxAngle = -80;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = random(3000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(3000);
resetTime = getTimer() + delay;
}
}
Instance of Symbol 354 MovieClip in Symbol 392 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = -110;
maxAngle = -80;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = random(6000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(6000);
resetTime = getTimer() + delay;
}
}
Symbol 393 MovieClip [BHCar2] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
minSpeed = 8;
maxSpeed = 10;
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 7;
moneyWorth = 50;
_root.enemysUsed++;
scoreValue = 30;
health = 12;
lowHealth = 6;
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
if (_root.level == 4) {
speed = -speed;
kkk = _xscale;
_xscale = (-kkk);
}
this.onEnterFrame = function () {
if (alive) {
_x = (_x - speed);
}
if (_x < -200) {
selfkill();
}
if (_root.level == 4) {
if (_x > 900) {
selfkill();
}
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
};
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 221 MovieClip "area" in Symbol 393 MovieClip [BHCar2] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 349 MovieClip in Symbol 395 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
_root.depthHolder++;
Bulletspeed = 30;
var _local3 = "enemyBullet" + _root.depthHolder;
_root.attachMovie("enemyBullet", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._x - 35;
_root[_local3]._y = _parent._parent._y;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
_root.depthHolder++;
}
minAngle = -110;
maxAngle = -80;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = random(6000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(6000);
resetTime = getTimer() + delay;
}
}
Symbol 396 MovieClip [BHCar1] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
minSpeed = 8;
maxSpeed = 10;
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 7;
moneyWorth = 50;
_root.enemysUsed++;
scoreValue = 20;
health = 10;
lowHealth = 6;
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
if (_root.level == 4) {
speed = -speed;
kkk = _xscale;
_xscale = (-kkk);
}
this.onEnterFrame = function () {
if (alive) {
_x = (_x - speed);
}
if (_x < -200) {
selfkill();
}
if (_root.level == 4) {
if (_x > 900) {
selfkill();
}
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
};
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 221 MovieClip "area" in Symbol 396 MovieClip [BHCar1] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 403 MovieClip [Alcoholexplosion] Frame 6
_root.aTT.removeMovieClip();
Symbol 403 MovieClip [Alcoholexplosion] Frame 10
_root.deadFade.play();
this.removeMovieClip();
Symbol 410 MovieClip [humanexplosion] Frame 6
if (_root.mode == "final") {
_root.finalhelicopter.removeMovieClip();
}
_root.car.removeMovieClip();
Symbol 410 MovieClip [humanexplosion] Frame 10
_root.deadFade.play();
this.removeMovieClip();
Symbol 417 MovieClip [explosion] Frame 2
boom = new Sound(this);
this.boom.attachSound("boom");
this.boom.setVolume(_root.soundVolume);
dis = Math.round(_x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
if (_root.surroundSound) {
boom.setPan(dis);
}
this.boom.start();
Symbol 417 MovieClip [explosion] Frame 5
_root.cash = _root.cash + owner.moneyWorth;
_root.score = _root.score + owner.scoreValue;
_root.enemysUsed--;
keyword = "vampire";
done = false;
if (!(owner.moneyWorth === 0)) {
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
_root.car.vampire();
}
z++;
}
}
owner.removeMovieClip();
Symbol 417 MovieClip [explosion] Frame 37
this.boom.stop();
this.removeMovieClip();
Symbol 429 MovieClip [smoke] Frame 1
if (!(_root.SpecialEffects === "HIGH")) {
this.removeMovieClip();
}
Symbol 433 MovieClip [spark] Frame 1
n = random(7);
word = "ric" + n;
ric = new Sound(this);
ric.attachSound(word);
ric.setVolume(_root.soundVolume);
dis = Math.round(_x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
if (_root.surroundSound) {
ric.setPan(dis);
}
ric.start();
Symbol 433 MovieClip [spark] Frame 5
this.removeMovieClip();
Symbol 435 MovieClip [hole] Frame 1
this.cacheAsBitmap = true;
if (this.hitTest(_root.car.banned)) {
this.removeMovieClip();
}
if (_root.SpecialEffects == "LOW") {
this.removeMovieClip();
}
Symbol 438 MovieClip [CivCar9] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
minSpeed = 8;
maxSpeed = 10;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 5;
moneyWorth = 25;
this.cacheAsBitmap = true;
scoreValue = 10;
_root.enemysUsed++;
health = 10;
lowHealth = 6;
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (alive) {
_x = (_x - speed);
}
if (_x < -200) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.monsterWheels.hitTest(area)) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
};
keyword = "carDemolisher";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 221 MovieClip "area" in Symbol 438 MovieClip [CivCar9] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 441 MovieClip [CivCar8] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
minSpeed = 8;
maxSpeed = 10;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 5;
moneyWorth = 25;
this.cacheAsBitmap = true;
scoreValue = 10;
_root.enemysUsed++;
health = 10;
lowHealth = 6;
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (alive) {
_x = (_x - speed);
}
if (_x < -200) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.monsterWheels.hitTest(area)) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
};
keyword = "carDemolisher";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 221 MovieClip "area" in Symbol 441 MovieClip [CivCar8] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 444 MovieClip [CivCar7] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
minSpeed = 8;
maxSpeed = 10;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 5;
this.cacheAsBitmap = true;
scoreValue = 10;
moneyWorth = 25;
_root.enemysUsed++;
health = 10;
lowHealth = 6;
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (alive) {
_x = (_x - speed);
}
if (_x < -200) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.monsterWheels.hitTest(area)) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
};
keyword = "carDemolisher";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 221 MovieClip "area" in Symbol 444 MovieClip [CivCar7] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 448 MovieClip [CivCar6] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
minSpeed = 8;
maxSpeed = 10;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 5;
this.cacheAsBitmap = true;
scoreValue = 10;
moneyWorth = 25;
_root.enemysUsed++;
health = 10;
lowHealth = 6;
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (alive) {
_x = (_x - speed);
}
if (_x < -200) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.monsterWheels.hitTest(area)) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
};
keyword = "carDemolisher";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 221 MovieClip "area" in Symbol 448 MovieClip [CivCar6] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 451 MovieClip [CivCar5] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
minSpeed = 8;
maxSpeed = 10;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 5;
this.cacheAsBitmap = true;
scoreValue = 10;
moneyWorth = 25;
_root.enemysUsed++;
health = 10;
lowHealth = 6;
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (alive) {
_x = (_x - speed);
}
if (_x < -200) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.monsterWheels.hitTest(area)) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
};
keyword = "carDemolisher";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 221 MovieClip "area" in Symbol 451 MovieClip [CivCar5] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 455 MovieClip [CivCar4] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
minSpeed = 8;
maxSpeed = 10;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 5;
this.cacheAsBitmap = true;
scoreValue = 10;
moneyWorth = 25;
_root.enemysUsed++;
health = 10;
lowHealth = 6;
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (alive) {
_x = (_x - speed);
}
if (_x < -200) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.monsterWheels.hitTest(area)) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
};
keyword = "carDemolisher";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 221 MovieClip "area" in Symbol 455 MovieClip [CivCar4] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 458 MovieClip [CivCar3] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
minSpeed = 8;
maxSpeed = 10;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 5;
this.cacheAsBitmap = true;
moneyWorth = 25;
scoreValue = 10;
_root.enemysUsed++;
health = 10;
lowHealth = 6;
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (alive) {
_x = (_x - speed);
}
if (_x < -200) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.monsterWheels.hitTest(area)) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
};
keyword = "carDemolisher";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 221 MovieClip "area" in Symbol 458 MovieClip [CivCar3] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 459 MovieClip [CivCar2] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
minSpeed = 8;
maxSpeed = 10;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 5;
this.cacheAsBitmap = true;
moneyWorth = 25;
_root.enemysUsed++;
scoreValue = 10;
health = 10;
lowHealth = 6;
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (alive) {
_x = (_x - speed);
}
if (_x < -200) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.monsterWheels.hitTest(area)) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
};
keyword = "carDemolisher";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 221 MovieClip "area" in Symbol 459 MovieClip [CivCar2] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 462 MovieClip [CivCar1] Frame 1
function explode() {
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 2;
_root[_local3]._yscale = _width * 2;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function selfkill() {
_root.enemysUsed--;
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function addExplosion() {
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
minSpeed = 8;
maxSpeed = 10;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 5;
this.cacheAsBitmap = true;
scoreValue = 10;
moneyWorth = 25;
_root.enemysUsed++;
health = 10;
lowHealth = 6;
alive = true;
speed = Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed;
this.onEnterFrame = function () {
if (alive) {
_x = (_x - speed);
}
if (_x < -200) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.car.front.hitTest(area)) {
_root.car.bounce();
}
if (_root.monsterWheels.hitTest(area)) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
if (_root.pba) {
health = health - 1000;
xHit = _x;
yHit = _y;
addExplosion();
}
};
keyword = "carDemolisher";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
Instance of Symbol 221 MovieClip "area" in Symbol 462 MovieClip [CivCar1] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 464 MovieClip [bBullet] Frame 1
function selfkill() {
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function dWgH() {
bazooka.stop();
bazooka_explode.stop();
delete bazooka;
delete bazooka_explode;
enemies[whois_hitting].sparkAngle = rad_rot;
enemies[whois_hitting].xHit = _x;
enemies[whois_hitting].yHit = _y;
enemies[whois_hitting].addExplosion();
selfkill();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
enemies = _root.car.enemies;
rad_rot = Math.atan2(vy, vx);
_rotation = ((rad_rot / (Math.PI/180)) + 90);
this.cacheAsBitmap = true;
if (wtfSound == undefined) {
bazooka = new Sound(this);
bazooka.setVolume(_root.soundVolume);
dis = Math.round(_x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
bazooka.attachSound("bazooka");
if (_root.surroundSound) {
bazooka.setPan(dis);
}
bazooka.start();
bazooka_explode = new Sound(this);
bazooka_explode.setVolume(_root.soundVolume);
bazooka_explode.attachSound("bazooka_explode");
bazooka_explode.start();
wtfSound = 1;
}
_x = (_x + vx);
_y = (_y + vy);
if (_x > 800) {
selfkill();
}
if (_y < -200) {
selfkill();
}
if (_y > 600) {
selfkill();
}
if (_x < -200) {
selfkill();
}
for (whois_hitting in enemies) {
hitName = enemies[whois_hitting];
if (hitName.hitTest(_x, _y, true)) {
if (!hitName.ignore.hitTest(_x, _y, true)) {
dWgH();
}
}
}
dis = Math.round(_x - _root.car._x) / 5;
bazooka.setPan(dis);
Symbol 464 MovieClip [bBullet] Frame 2
gotoAndPlay (1);
Symbol 466 MovieClip [vcBullet] Frame 1
function selfkill() {
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function dWgH() {
enemies[whois_hitting].sparkAngle = rad_rot;
enemies[whois_hitting].xHit = _x;
enemies[whois_hitting].yHit = _y;
enemies[whois_hitting].addExplosion();
selfkill();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
enemies = _root.car.enemies;
rad_rot = Math.atan2(vy, vx);
_rotation = ((rad_rot / (Math.PI/180)) + 90);
this.cacheAsBitmap = true;
_x = (_x + vx);
_y = (_y + vy);
if (_x > 800) {
selfkill();
}
if (_y < -200) {
selfkill();
}
if (_y > 600) {
selfkill();
}
if (_x < -200) {
selfkill();
}
for (whois_hitting in enemies) {
hitName = enemies[whois_hitting];
if (hitName.hitTest(_x, _y, true)) {
if (!hitName.ignore.hitTest(_x, _y, true)) {
dWgH();
}
}
}
Symbol 466 MovieClip [vcBullet] Frame 2
gotoAndPlay (1);
Symbol 468 MovieClip [enemyBulletPower] Frame 1
function selfkill() {
this.removeMovieClip();
trace(":D");
}
function dWgH() {
target.sparkAngle = rad_rot;
target.xHit = _x;
target.yHit = _y;
target.addExplosion();
target.info.health = target.info.health - 0.5;
selfkill();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
rad_rot = Math.atan2(vy, vx);
_rotation = ((rad_rot / (Math.PI/180)) + 90);
_x = (_x + vx);
_y = (_y + vy);
if (_x > 800) {
selfkill();
}
if (_y < -200) {
selfkill();
}
if (_y > 600) {
selfkill();
}
if (x < -200) {
selfKill();
}
if (_root.car.hitTest(_x, _y, true)) {
if (!car.banned.hitTest(_x, _y, true)) {
target = _root.car;
dWgH();
}
}
if (_root.aTT.hitTest(_x, _y, true)) {
target = _root.aTT;
dWgH();
}
Symbol 468 MovieClip [enemyBulletPower] Frame 2
gotoAndPlay (1);
Symbol 470 MovieClip [enemyBullet] Frame 1
function selfkill() {
this.removeMovieClip();
trace(":D");
}
function dWgH() {
target.sparkAngle = rad_rot;
target.xHit = _x;
target.yHit = _y;
target.addExplosion();
selfkill();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
rad_rot = Math.atan2(vy, vx);
_rotation = ((rad_rot / (Math.PI/180)) + 90);
_x = (_x + vx);
_y = (_y + vy);
if (_x > 800) {
selfkill();
}
if (_y < -200) {
selfkill();
}
if (_y > 600) {
selfkill();
}
if (x < -200) {
selfKill();
}
if (_root.car.hitTest(_x, _y, true)) {
if (!car.banned.hitTest(_x, _y, true)) {
target = _root.car;
dWgH();
}
}
if (_root.aTT.hitTest(_x, _y, true)) {
target = _root.aTT;
dWgH();
}
Symbol 470 MovieClip [enemyBullet] Frame 2
gotoAndPlay (1);
Symbol 472 MovieClip [bulletGang] Frame 1
function selfkill() {
this.swapDepths(900090);
this.removeMovieClip();
}
function dWgH() {
enemies[whois_hitting].sparkAngle = rad_rot;
enemies[whois_hitting].health = enemies[whois_hitting].health - damage;
enemies[whois_hitting].xHit = _x;
enemies[whois_hitting].yHit = _y;
enemies[whois_hitting].addCPUExplosion();
selfkill();
}
if (_root.killAll) {
this.swapDepths(900092);
this.removeMovieClip();
selfkill();
}
enemies = _root.car.enemies;
rad_rot = Math.atan2(vy, vx);
_rotation = ((rad_rot / (Math.PI/180)) + 90);
this.cacheAsBitmap = true;
if (damage == undefined) {
damage = 2;
keyword = "2BG";
done = false;
z = 0;
while (z < _root.unlockedAid.length) {
lockTester = _root.unlockedAid[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
damage++;
}
z++;
}
keyword = "3BG";
done = false;
z = 0;
while (z < _root.unlockedAid.length) {
lockTester = _root.unlockedAid[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
damage = damage + 2;
}
z++;
}
}
_x = (_x + vx);
_y = (_y + vy);
if (_x > 800) {
selfkill();
}
if (_y < -200) {
selfkill();
}
if (_y > 600) {
selfkill();
}
if (_x < -200) {
selfkill();
}
for (whois_hitting in enemies) {
hitName = enemies[whois_hitting];
if (hitName.hitTest(_x, _y, true)) {
if (!hitName.ignore.hitTest(_x, _y, true)) {
dWgH();
}
}
}
Symbol 472 MovieClip [bulletGang] Frame 2
gotoAndPlay (1);
Symbol 475 MovieClip [missile] Frame 1
function selfkill() {
this.removeMovieClip();
trace(":D");
}
function dWgH() {
target.sparkAngle = rad_rot;
target.xHit = _x;
target.yHit = _y;
target.info.health = target.info.health - 1;
target.addExplosion();
selfkill();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
rad_rot = Math.atan2(vy, vx);
_rotation = ((rad_rot / (Math.PI/180)) + 90);
_x = (_x + vx);
_y = (_y + vy);
if (wtfSound == undefined) {
bazooka = new Sound(this);
bazooka.setVolume(_root.soundVolume);
dis = Math.round(_x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
bazooka.attachSound("bazooka");
if (_root.surroundSound) {
bazooka.setPan(dis);
}
bazooka.start();
bazooka_explode = new Sound(this);
bazooka_explode.setVolume(_root.soundVolume);
bazooka_explode.attachSound("bazooka_explode");
bazooka_explode.start();
wtfSound = 1;
}
if (_x > 800) {
selfkill();
}
if (_y < -200) {
selfkill();
}
if (_y > 600) {
selfkill();
}
if (_x < -200) {
selfKill();
}
if (_root.car.hitTest(_x, _y, true)) {
if (!_root.car.banned.hitTest(_x, _y, true)) {
target = _root.car;
gotoAndStop (3);
}
}
if (_root.aTT.hitTest(_x, _y, true)) {
target = _root.aTT;
gotoAndStop (3);
}
dis = Math.round(_x - _root.car._x) / 5;
bazooka.setPan(dis);
Symbol 475 MovieClip [missile] Frame 2
gotoAndPlay (1);
Symbol 475 MovieClip [missile] Frame 3
stop();
Symbol 477 MovieClip [bullet] Frame 1
function selfkill() {
this.swapDepths(900090);
this.removeMovieClip();
trace(":D");
}
function dWgH() {
enemies[whois_hitting].sparkAngle = rad_rot;
enemies[whois_hitting].xHit = _x;
enemies[whois_hitting].yHit = _y;
enemies[whois_hitting].addExplosion();
selfkill();
}
enemies = _root.car.enemies;
rad_rot = Math.atan2(vy, vx);
_rotation = ((rad_rot / (Math.PI/180)) + 90);
this.cacheAsBitmap = true;
_x = (_x + vx);
_y = (_y + vy);
if (_x > 800) {
selfkill();
}
if (_y < -200) {
selfkill();
}
if (_y > 600) {
selfkill();
}
if (_x < -200) {
selfkill();
}
for (whois_hitting in enemies) {
hitName = enemies[whois_hitting];
if (hitName.hitTest(_x, _y, true)) {
if (!hitName.ignore.hitTest(_x, _y, true)) {
dWgH();
}
}
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
Symbol 477 MovieClip [bullet] Frame 2
gotoAndPlay (1);
Symbol 479 MovieClip [Bossgrenade] Frame 1
function selfkill() {
this.swapDepths(1920);
this.removeMovieClip();
trace(":D");
}
function dWgH() {
enemies[whois_hitting].xHit = _x;
enemies[whois_hitting].yHit = _y;
enemies[whois_hitting].health = enemies[whois_hitting].health - 10000;
selfkill();
}
stop();
this.cacheAsBitmap = true;
alive = true;
this.swapDepths(-1000);
this.onEnterFrame = function () {
if (_currentframe == 1) {
_rotation = (_rotation - 2);
_y = (_y + 10);
if (_root.car.hitTest(_x, _y, true)) {
_root.car.addExplosion();
this.gotoAndStop(2);
}
}
if (this.hitTest(_root.bGround)) {
this.gotoAndStop(2);
}
};
enemies = _root.car;
for (whois_hitting in enemies) {
hitName = enemies[whois_hitting];
if (hitName.hitTest(_x, _y, true)) {
dWgH();
}
}
Symbol 479 MovieClip [Bossgrenade] Frame 2
_rotation = 0;
Instance of Symbol 110 MovieClip in Symbol 479 MovieClip [Bossgrenade] Frame 2
onClipEvent (enterFrame) {
if (_currentframe >= 9) {
_parent.removeMovieClip();
}
}
Symbol 481 MovieClip [enemyGrenade] Frame 1
function selfkill() {
this.swapDepths(1920);
this.removeMovieClip();
trace(":D");
}
function dWgH() {
_root.car.xHit = _x;
_root.car.yHit = _y;
_root.car.info.health = _root.car.info.health - 3;
selfkill();
}
enemies = _root.car;
this.cacheAsBitmap = true;
if (!_root.goLeft) {
speed = 7;
}
if (_root.goLeft) {
speed = -7;
}
alive = true;
this.swapDepths(-1000);
this.onEnterFrame = function () {
if (!_root.goLeft) {
_rotation = (_rotation - 20);
}
if (_root.goLeft) {
_rotation = (_rotation + 20);
}
if (alive) {
_x = (_x - speed);
}
if (_x < -200) {
selfkill();
}
if (_x > 800) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.killAll) {
selfkill();
}
if (_root.car.hitTest(_x, _y, true)) {
if (!_root.car.banned.hitTest(_x, _y, true)) {
dWgH();
}
}
};
Symbol 483 MovieClip [grenade] Frame 1
function selfkill() {
this.swapDepths(1920);
this.removeMovieClip();
trace(":D");
}
function dWgH() {
enemies[whois_hitting].xHit = _x;
enemies[whois_hitting].yHit = _y;
enemies[whois_hitting].health = enemies[whois_hitting].health - 10000;
gotoAndStop (2);
}
stop();
this.cacheAsBitmap = true;
if (!_root.goLeft) {
speed = 7;
}
if (_root.goLeft) {
speed = -7;
}
alive = true;
this.swapDepths(-1000);
this.onEnterFrame = function () {
if (!_root.goLeft) {
_rotation = (_rotation - 20);
}
if (_root.goLeft) {
_rotation = (_rotation + 20);
}
if (alive) {
_x = (_x - speed);
}
if (_x < -200) {
selfkill();
}
if (_x > 800) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.killAll) {
selfkill();
}
for (whois_hitting in enemies) {
hitName = enemies[whois_hitting];
if (hitName.hitTest(_x, _y, true)) {
dWgH();
}
}
};
enemies = _root.car.enemies;
Symbol 483 MovieClip [grenade] Frame 2
function selfkill() {
this.swapDepths(1920);
this.removeMovieClip();
trace(":D");
}
Instance of Symbol 110 MovieClip in Symbol 483 MovieClip [grenade] Frame 2
onClipEvent (enterFrame) {
if (_currentframe > 8) {
_parent.selfkill();
}
}
Symbol 486 MovieClip [blur] Frame 1
stop();
Symbol 486 MovieClip [blur] Frame 2
blurS = new Sound(_root.blur);
blurS.attachSound("metal_door_huge");
blurS.setVolume(_root.soundVolume);
blurS.start();
Symbol 486 MovieClip [blur] Frame 6
_root.gotoAndStop(_root.frameDirection);
Symbol 486 MovieClip [blur] Frame 8
gotoAndStop (1);
Symbol 488 MovieClip [powerbomb] Frame 1
function selfkill() {
this.swapDepths(1920);
this.removeMovieClip();
trace(":D");
}
function dWgH() {
enemies[whois_hitting].xHit = _x;
enemies[whois_hitting].yHit = _y;
enemies[whois_hitting].health = enemies[whois_hitting].health - 10000;
gotoAndStop (2);
}
stop();
this.cacheAsBitmap = true;
if (!_root.goLeft) {
speed = 8;
}
if (_root.goLeft) {
speed = -8;
}
alive = true;
this.swapDepths(-1000);
this.onEnterFrame = function () {
if (!_root.goLeft) {
_rotation = (_rotation - 20);
}
if (_root.goLeft) {
_rotation = (_rotation + 20);
}
if (alive) {
_x = (_x - speed);
}
if (_x < -200) {
selfkill();
}
if (_x > 800) {
selfkill();
}
if (health <= 0) {
explode();
}
if (_root.killAll) {
selfkill();
}
for (whois_hitting in enemies) {
hitName = enemies[whois_hitting];
if (hitName.hitTest(_x, _y, true)) {
dWgH();
}
}
};
enemies = _root.car.enemies;
Symbol 488 MovieClip [powerbomb] Frame 2
function selfkill() {
this.swapDepths(1920);
this.removeMovieClip();
trace(":D");
}
_root.pba = true;
Instance of Symbol 110 MovieClip in Symbol 488 MovieClip [powerbomb] Frame 2
onClipEvent (enterFrame) {
if (_currentframe > 8) {
_root.pba = false;
_parent.selfkill();
}
}
Symbol 494 MovieClip Frame 1
_xscale = _root.percent;
Symbol 494 MovieClip Frame 2
gotoAndPlay (1);
Symbol 503 MovieClip Frame 61
if (_root.percent == 100) {
gotoAndPlay (61);
} else {
gotoAndPlay (1);
}
Symbol 503 MovieClip Frame 82
stop();
Symbol 507 Button
on (release) {
_root.gotoAndStop("Logos");
}
Symbol 508 MovieClip Frame 1
_xscale = _root.percent;
if (_root.percent == 100) {
gotoAndStop (3);
}
Symbol 508 MovieClip Frame 2
gotoAndPlay (1);
Symbol 508 MovieClip Frame 3
stop();
Symbol 515 Button
on (release) {
getURL ("http://www.rustygames.com", "_blank");
}
Symbol 528 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 535 MovieClip Frame 81
_root.play();
Symbol 556 MovieClip Frame 10
_root.play();
Symbol 557 MovieClip Frame 108
stop();
Symbol 573 MovieClip Frame 100
_root.play();
Symbol 596 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("Menu");
}
Symbol 674 MovieClip Frame 8
stop();
Symbol 686 Button
on (press) {
_root.blur.play();
_root.frameDirection = "LS";
}
Symbol 690 Button
on (release) {
_root.blur.play();
_root.frameDirection = "instructions";
}
Symbol 692 Button
on (release) {
_root.gotoAndStop("credits_full");
}
Symbol 698 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 704 Button
on (release) {
_root.blur.play();
_root.frameDirection = "options";
}
Symbol 720 MovieClip Frame 1
stop();
Symbol 790 MovieClip Frame 1
stop();
Symbol 790 MovieClip Frame 2
stop();
Symbol 790 MovieClip Frame 3
stop();
Symbol 791 MovieClip Frame 1
stop();
Instance of Symbol 784 MovieClip in Symbol 791 MovieClip Frame 1
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.InGameQuality = "HIGH";
if (((_root.mode == "game") or (_root.mode == "final")) or (_root.mode == "boss")) {
_quality = _root.InGameQuality;
}
}
}
Instance of Symbol 786 MovieClip in Symbol 791 MovieClip Frame 1
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.InGameQuality = "MEDIUM";
if (((_root.mode == "game") or (_root.mode == "final")) or (_root.mode == "boss")) {
_quality = _root.InGameQuality;
}
}
}
Instance of Symbol 788 MovieClip in Symbol 791 MovieClip Frame 1
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.InGameQuality = "LOW";
if (((_root.mode == "game") or (_root.mode == "final")) or (_root.mode == "boss")) {
_quality = _root.InGameQuality;
}
}
}
Instance of Symbol 790 MovieClip in Symbol 791 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.InGameQuality == "HIGH") {
this.gotoAndStop(1);
}
if (_root.InGameQuality == "MEDIUM") {
this.gotoAndStop(2);
}
if (_root.InGameQuality == "LOW") {
this.gotoAndStop(3);
}
}
Symbol 792 MovieClip Frame 1
stop();
Instance of Symbol 784 MovieClip in Symbol 792 MovieClip Frame 1
on (press) {
_root.MenuQuality = "HIGH";
_quality = _root.MenuQuality;
}
Instance of Symbol 786 MovieClip in Symbol 792 MovieClip Frame 1
on (press) {
_root.MenuQuality = "MEDIUM";
_quality = _root.MenuQuality;
}
Instance of Symbol 788 MovieClip in Symbol 792 MovieClip Frame 1
on (press) {
_root.MenuQuality = "LOW";
_quality = _root.MenuQuality;
}
Instance of Symbol 790 MovieClip in Symbol 792 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.MenuQuality == "HIGH") {
this.gotoAndStop(1);
}
if (_root.MenuQuality == "MEDIUM") {
this.gotoAndStop(2);
}
if (_root.MenuQuality == "LOW") {
this.gotoAndStop(3);
}
}
Symbol 793 MovieClip Frame 1
stop();
Instance of Symbol 784 MovieClip in Symbol 793 MovieClip Frame 1
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.SpecialEffects = "HIGH";
}
}
Instance of Symbol 786 MovieClip in Symbol 793 MovieClip Frame 1
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.SpecialEffects = "MEDIUM";
}
}
Instance of Symbol 788 MovieClip in Symbol 793 MovieClip Frame 1
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.SpecialEffects = "LOW";
}
}
Instance of Symbol 790 MovieClip in Symbol 793 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.SpecialEffects == "HIGH") {
this.gotoAndStop(1);
}
if (_root.SpecialEffects == "MEDIUM") {
this.gotoAndStop(2);
}
if (_root.SpecialEffects == "LOW") {
this.gotoAndStop(3);
}
}
Symbol 798 MovieClip Frame 1
stop();
Symbol 798 MovieClip Frame 2
stop();
Symbol 799 MovieClip Frame 1
stop();
Instance of Symbol 795 MovieClip in Symbol 799 MovieClip Frame 1
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.surroundSound = true;
}
}
Instance of Symbol 797 MovieClip in Symbol 799 MovieClip Frame 1
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.surroundSound = false;
}
}
Instance of Symbol 798 MovieClip in Symbol 799 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.surroundSound == true) {
this.gotoAndStop(1);
}
if (_root.surroundSound == false) {
this.gotoAndStop(2);
}
}
Symbol 814 MovieClip Frame 443
stop();
Symbol 819 MovieClip Frame 5
stop();
Symbol 820 Button
on (press) {
with (_root) {
mission_music.stop();
}
_root.level = 1;
_root.frameDirection = "game_engine";
_root.blur.play();
}
Symbol 826 MovieClip Frame 444
stop();
Symbol 827 Button
on (press) {
with (_root) {
mission_music.stop();
}
_root.level = 2;
_root.frameDirection = "game_engine";
_root.blur.play();
}
Symbol 832 MovieClip Frame 445
stop();
Symbol 833 Button
on (press) {
with (_root) {
mission_music.stop();
}
_root.level = 3;
_root.frameDirection = "game_engine";
_root.blur.play();
}
Symbol 839 MovieClip Frame 375
stop();
Symbol 840 Button
on (press) {
with (_root) {
mission_music.stop();
}
_root.level = 4;
_root.frameDirection = "game_engine";
_root.blur.play();
}
Symbol 845 MovieClip Frame 409
stop();
Symbol 846 Button
on (press) {
with (_root) {
mission_music.stop();
}
_root.level = 5;
_root.frameDirection = "game_engine";
_root.blur.play();
}
Symbol 851 MovieClip Frame 321
stop();
Symbol 852 Button
on (press) {
with (_root) {
mission_music.stop();
}
_root.level = 6;
_root.frameDirection = "game_engine";
_root.blur.play();
}
Symbol 857 MovieClip Frame 443
stop();
Symbol 858 Button
on (press) {
with (_root) {
mission_music.stop();
}
_root.level = 7;
_root.frameDirection = "game_engine";
_root.blur.play();
}
Symbol 863 Button
on (press) {
with (_root) {
mission_music.stop();
}
_root.level = 8;
_root.frameDirection = "game_engine";
_root.blur.play();
}
Symbol 865 MovieClip Frame 443
stop();
Symbol 869 Button
on (press) {
with (_root) {
mission_music.stop();
}
_root.level = 9;
_root.frameDirection = "game_engine";
_root.blur.play();
}
Symbol 872 MovieClip Frame 443
stop();
Symbol 875 Button
on (press) {
with (_root) {
mission_music.stop();
}
_root.frameDirection = "final";
_root.blur.play();
}
Symbol 877 MovieClip Frame 443
stop();
Symbol 904 MovieClip Frame 1
stop();
Symbol 904 MovieClip Frame 2
stop();
Symbol 904 MovieClip Frame 3
stop();
Symbol 904 MovieClip Frame 4
stop();
Symbol 904 MovieClip Frame 6
stop();
Symbol 904 MovieClip Frame 7
stop();
Symbol 904 MovieClip Frame 8
stop();
Symbol 904 MovieClip Frame 9
stop();
Symbol 904 MovieClip Frame 10
stop();
Symbol 920 MovieClip Frame 1
_root.car.info.TyreStrength = 0;
_root.car.tireDepth = 5;
stop();
Instance of Symbol 912 MovieClip in Symbol 920 MovieClip Frame 1
onClipEvent (load) {
if (_root.mode == "levelChoose") {
this.stop();
}
}
onClipEvent (enterFrame) {
if (_root.mode == "boss") {
if (((Key.isDown(37) or Key.isDown(39)) or Key.isDown(38)) or Key.isDown(40)) {
this.play();
} else {
this.stop();
}
}
}
Symbol 920 MovieClip Frame 2
_root.car.info.TyreStrength = 7;
_root.car.tireDepth = 5;
stop();
Symbol 920 MovieClip Frame 3
_root.car.info.TyreStrength = 12;
_root.car.tireDepth = 7;
stop();
Instance of Symbol 254 MovieClip in Symbol 920 MovieClip Frame 3
onClipEvent (load) {
if (_root.mode == "levelChoose") {
this.stop();
}
}
onClipEvent (enterFrame) {
if (_root.mode == "boss") {
if (((Key.isDown(37) or Key.isDown(39)) or Key.isDown(38)) or Key.isDown(40)) {
this.play();
} else {
this.stop();
}
}
}
Symbol 920 MovieClip Frame 4
_root.car.info.TyreStrength = 12;
stop();
_root.car.tireDepth = 30;
Instance of Symbol 254 MovieClip in Symbol 920 MovieClip Frame 4
onClipEvent (load) {
if (_root.mode == "levelChoose") {
this.stop();
}
}
onClipEvent (enterFrame) {
if (_root.mode == "boss") {
if (((Key.isDown(37) or Key.isDown(39)) or Key.isDown(38)) or Key.isDown(40)) {
this.play();
} else {
this.stop();
}
}
}
Symbol 927 MovieClip Frame 1
_root.car.info.EngineStrength = 0;
stop();
Symbol 927 MovieClip Frame 2
_root.car.info.EngineStrength = 10;
Symbol 927 MovieClip Frame 3
_root.car.info.EngineStrength = 20;
Symbol 927 MovieClip Frame 4
_root.car.info.EngineStrength = 30;
Symbol 927 MovieClip Frame 5
_root.car.info.EngineStrength = 40;
Symbol 932 MovieClip Frame 1
stop();
_root.car.info.ArmorWeight = 0;
_root.car.info.armor = 30;
keyword = "rocketLauncher";
done = false;
z = 0;
while (z < _root.unlockedWeapons.length) {
lockTester = _root.unlockedWeapons[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
_root.car.info.armor = _root.car.info.armor + 15;
}
z++;
}
Symbol 932 MovieClip Frame 2
_root.car.info.armor = 35;
_root.car.info.ArmorWeight = 10;
keyword = "rocketLauncher";
done = false;
z = 0;
while (z < _root.unlockedWeapons.length) {
lockTester = _root.unlockedWeapons[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
_root.car.info.armor = _root.car.info.armor + 15;
}
z++;
}
Symbol 932 MovieClip Frame 3
_root.car.info.armor = 45;
_root.car.info.ArmorWeight = 20;
keyword = "rocketLauncher";
done = false;
z = 0;
while (z < _root.unlockedWeapons.length) {
lockTester = _root.unlockedWeapons[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
_root.car.info.armor = _root.car.info.armor + 15;
}
z++;
}
Symbol 932 MovieClip Frame 4
_root.car.info.armor = 60;
_root.car.info.ArmorWeight = 28;
keyword = "rocketLauncher";
done = false;
z = 0;
while (z < _root.unlockedWeapons.length) {
lockTester = _root.unlockedWeapons[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
_root.car.info.armor = _root.car.info.armor + 15;
}
z++;
}
Instance of Symbol 927 MovieClip in Symbol 935 MovieClip Frame 1
onClipEvent (load) {
keyword = "V8";
done = false;
z = 0;
while (z < _root.unlockedEngines.length) {
lockTester = _root.unlockedEngines[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
this.gotoAndStop(2);
}
z++;
}
keyword = "V12";
done = false;
z = 0;
while (z < _root.unlockedEngines.length) {
lockTester = _root.unlockedEngines[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
this.gotoAndStop(3);
}
z++;
}
keyword = "Superior";
done = false;
z = 0;
while (z < _root.unlockedEngines.length) {
lockTester = _root.unlockedEngines[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
this.gotoAndStop(4);
}
z++;
}
keyword = "Deluxe";
done = false;
z = 0;
while (z < _root.unlockedEngines.length) {
lockTester = _root.unlockedEngines[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
this.gotoAndStop(5);
}
z++;
}
}
Instance of Symbol 932 MovieClip in Symbol 935 MovieClip Frame 1
onClipEvent (load) {
keyword = "Steel";
done = false;
z = 0;
while (z < _root.unlockedArmor.length) {
lockTester = _root.unlockedArmor[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
this.gotoAndStop(2);
}
z++;
}
keyword = "Reinforced";
done = false;
z = 0;
while (z < _root.unlockedArmor.length) {
lockTester = _root.unlockedArmor[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
this.gotoAndStop(3);
}
z++;
}
keyword = "Multilayer";
done = false;
z = 0;
while (z < _root.unlockedArmor.length) {
lockTester = _root.unlockedArmor[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
this.gotoAndStop(4);
}
z++;
}
}
Symbol 943 MovieClip Frame 7
_parent.makeB();
_root.gQ--;
_parent.gotoAndStop(1);
Symbol 944 MovieClip Frame 1
stop();
Symbol 944 MovieClip Frame 2
stop();
Symbol 946 MovieClip Frame 7
_parent.makeB();
_root.pbQ--;
_parent.gotoAndStop(1);
Symbol 947 MovieClip Frame 1
stop();
Symbol 947 MovieClip Frame 2
stop();
Symbol 952 MovieClip Frame 1
stop();
Symbol 952 MovieClip Frame 3
makeB();
_root.pistol.start();
Symbol 952 MovieClip Frame 4
gotoAndStop (1);
Symbol 956 MovieClip Frame 1
stop();
Symbol 956 MovieClip Frame 3
makeB();
_root.pistol.start();
Symbol 956 MovieClip Frame 4
gotoAndStop (1);
Symbol 961 MovieClip Frame 1
stop();
Symbol 961 MovieClip Frame 3
makeB();
_root.pistol.start();
Symbol 961 MovieClip Frame 4
gotoAndStop (1);
Symbol 962 MovieClip Frame 1
stop();
Instance of Symbol 952 MovieClip "man" in Symbol 962 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 962 MovieClip Frame 2
stop();
_root.car.info.TeamWeight = 2;
Instance of Symbol 952 MovieClip "man" in Symbol 962 MovieClip Frame 2
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
Bulletspeed = 30;
var _local3 = "bulletGang" + _root.depthHolder;
_root.attachMovie("bulletGang", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._parent._x - 35;
_root[_local3]._y = _parent._parent._parent._y + 10;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
_root.depthHolder++;
}
_root.car.info.TeamWeight = 2;
minAngle = -110;
maxAngle = -80;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = 3000;
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (_root.mode == "levelChoose") {
return(undefined);
}
if (getTimer() > resetTime) {
fire();
delay = random(2000);
resetTime = getTimer() + delay;
}
}
Symbol 962 MovieClip Frame 3
_root.car.info.TeamWeight = 4;
stop();
trace(_root.car.info.TeamWeight);
Instance of Symbol 952 MovieClip in Symbol 962 MovieClip Frame 3
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
Bulletspeed = 30;
var _local3 = "bulletGang" + _root.depthHolder;
_root.attachMovie("bulletGang", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._parent._x - 35;
_root[_local3]._y = _parent._parent._parent._y + 10;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
_root.depthHolder++;
}
_root.car.info.TeamWeight = 2;
minAngle = -110;
maxAngle = -80;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = 3000;
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(2000);
resetTime = getTimer() + delay;
}
}
Instance of Symbol 956 MovieClip in Symbol 962 MovieClip Frame 3
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
Bulletspeed = 30;
var _local3 = "bulletGang" + _root.depthHolder;
_root.attachMovie("bulletGang", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._parent._x + 60;
_root[_local3]._y = _parent._parent._parent._y + 15;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
_root.depthHolder++;
}
minAngle = 70;
maxAngle = 120;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = 3000;
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (_root.mode == "levelChoose") {
return(undefined);
}
if (getTimer() > resetTime) {
fire();
delay = random(2000);
resetTime = getTimer() + delay;
}
}
Symbol 962 MovieClip Frame 4
stop();
_root.car.info.TeamWeight = 6;
Instance of Symbol 952 MovieClip in Symbol 962 MovieClip Frame 4
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
Bulletspeed = 30;
var _local3 = "bulletGang" + _root.depthHolder;
_root.attachMovie("bulletGang", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._parent._x - 35;
_root[_local3]._y = _parent._parent._parent._y + 10;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
_root.depthHolder++;
}
_root.car.info.TeamWeight = 2;
minAngle = -110;
maxAngle = -80;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = 3000;
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(2000);
resetTime = getTimer() + delay;
}
}
Instance of Symbol 956 MovieClip in Symbol 962 MovieClip Frame 4
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
Bulletspeed = 30;
var _local3 = "bulletGang" + _root.depthHolder;
_root.attachMovie("bulletGang", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._parent._x + 60;
_root[_local3]._y = _parent._parent._parent._y + 15;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
_root.depthHolder++;
}
minAngle = 70;
maxAngle = 120;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = 3000;
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(2000);
resetTime = getTimer() + delay;
}
}
Instance of Symbol 961 MovieClip in Symbol 962 MovieClip Frame 4
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
Bulletspeed = 30;
var _local3 = "bulletGang" + _root.depthHolder;
_root.attachMovie("bulletGang", _local3, _root.depthHolder);
_root[_local3]._x = _parent._parent._parent._x + 40;
_root[_local3]._y = _parent._parent._parent._y;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
_root.depthHolder++;
}
minAngle = 20;
maxAngle = 80;
Angle = Math.round(Math.random() * (maxAngle - minAngle)) + minAngle;
if (_root.goLeft) {
Angle = -Angle;
}
delay = 1500;
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (_root.mode == "levelChoose") {
return(undefined);
}
if (getTimer() > resetTime) {
fire();
delay = random(1500);
resetTime = getTimer() + delay;
}
}
Symbol 972 MovieClip Frame 3
_parent.makeB();
Symbol 972 MovieClip Frame 4
_parent.gotoAndStop(1);
Symbol 973 MovieClip Frame 1
stop();
Symbol 973 MovieClip Frame 2
chance = random(2);
if (chance == 0) {
_root.pistol.start();
}
if (chance == 1) {
_root.pistol2.start();
}
Symbol 980 MovieClip Frame 3
_parent.makeB();
Symbol 981 MovieClip Frame 1
stop();
Symbol 981 MovieClip Frame 2
stop();
Symbol 982 MovieClip Frame 1
stop();
_root.car.info.damage = 2;
keyword = "goldBullets";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
_root.car.info.damage = _root.car.info.damage * 1.25;
}
z++;
}
Instance of Symbol 973 MovieClip "gun" in Symbol 982 MovieClip Frame 1
onClipEvent (load) {
function makeB() {
Bulletspeed = 30;
_root.depthHolder++;
var _local3 = "bullet" + _root.depthHolder;
_root.attachMovie("bullet", _local3, _root.depthHolder);
if (_root.goLeft) {
_parent.Angle = -_parent.Angle;
}
_root[_local3]._x = _parent._parent._parent._parent._x;
_root[_local3]._y = _parent._parent._parent._parent._y;
_root[_local3].vx = Math.sin(_parent.Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(_parent.Angle * (Math.PI/180))) * Bulletspeed;
_root.depthHolder++;
}
}
onClipEvent (mouseDown) {
if (_root.mode == "levelChoose") {
return(undefined);
}
this.gotoAndStop(2);
}
Symbol 982 MovieClip Frame 2
stop();
_root.car.info.damage = 2;
keyword = "goldBullets";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
_root.car.info.damage = _root.car.info.damage * 1.25;
}
z++;
}
Instance of Symbol 981 MovieClip in Symbol 982 MovieClip Frame 2
onClipEvent (load) {
function makeB() {
Bulletspeed = 30;
_root.depthHolder++;
var _local3 = "bullet" + _root.depthHolder;
_root.attachMovie("bullet", _local3, _root.depthHolder);
if (_root.goLeft) {
_parent.Angle = -_parent.Angle;
}
_root[_local3]._x = _parent._parent._parent._parent._x;
_root[_local3]._y = _parent._parent._parent._parent._y;
_root[_local3].vx = Math.sin(_parent.Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(_parent.Angle * (Math.PI/180))) * Bulletspeed;
_root.depthHolder++;
}
submachinegun = new Sound(this);
submachinegun.setVolume(_root.soundVolume);
submachinegun.attachSound("submachinegun");
}
onClipEvent (mouseDown) {
if (_root.mode == "levelChoose") {
return(undefined);
}
this.gotoAndStop(2);
submachinegun.start(0, 9999);
}
onClipEvent (mouseUp) {
this.gotoAndStop(1);
submachinegun.stop();
}
onClipEvent (enterFrame) {
if (((Key.isDown(49) or Key.isDown(51)) or Key.isDown(52)) or Key.isDown(53)) {
submachinegun.stop();
}
if (_root.car.info.health <= 0) {
submachinegun.stop();
}
if (_root.fadeInFX._currentframe >= 24) {
submachinegun.stop();
}
}
Symbol 986 MovieClip Frame 1
stop();
Symbol 986 MovieClip Frame 2
stop();
Symbol 988 MovieClip Frame 1
_root.car.info.damage = 4;
keyword = "goldBullets";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
_root.car.info.damage = _root.car.info.damage * 1.25;
}
z++;
}
Instance of Symbol 986 MovieClip in Symbol 988 MovieClip Frame 1
onClipEvent (load) {
function makeB() {
_root.depthHolder++;
Bulletspeed = 40;
var _local3 = "vcBullet" + _root.depthHolder;
_root.attachMovie("vcBullet", _local3, _root.depthHolder);
if (_root.goLeft) {
_parent.Angle = -_parent.Angle;
}
_root[_local3]._x = _parent._parent._parent._parent._x;
_root[_local3]._y = _parent._parent._parent._parent._y - 5;
_root[_local3].vx = Math.sin(_parent.Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(_parent.Angle * (Math.PI/180))) * Bulletspeed;
_root.depthHolder++;
}
}
onClipEvent (mouseDown) {
vulcan_fire = new Sound(this);
vulcan_fire.setVolume(_root.soundVolume);
vulcan_fire.attachSound("vulcan_fire");
vulcan_fire.start(0, 9999);
this.gotoAndStop(2);
}
onClipEvent (mouseUp) {
vulcan_fire.stop();
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (((Key.isDown(49) or Key.isDown(50)) or Key.isDown(52)) or Key.isDown(53)) {
vulcan_fire.stop();
}
if (_root.car.info.health <= 0) {
vulcan_fire.stop();
}
if (_root.fadeInFX._currentframe >= 24) {
vulcan_fire.stop();
}
}
Symbol 988 MovieClip Frame 2
stop();
_root.car.info.damage = 15;
keyword = "goldBullets";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
_root.car.info.damage = _root.car.info.damage * 1.25;
}
z++;
}
Instance of Symbol 179 MovieClip in Symbol 988 MovieClip Frame 2
onClipEvent (load) {
function makeB() {
Bulletspeed = 30;
var _local3 = "bBullet" + _root.depthHolder;
_root.attachMovie("bBullet", _local3, _root.depthHolder);
if (_root.goLeft) {
_parent.Angle = -_parent.Angle;
}
_root[_local3]._x = _parent._parent._parent._parent._x;
_root[_local3]._y = _parent._parent._parent._parent._y - 10;
_root[_local3].vx = Math.sin(_parent.Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(_parent.Angle * (Math.PI/180))) * Bulletspeed;
_root.depthHolder++;
}
}
onClipEvent (mouseDown) {
this.gotoAndStop(2);
}
Symbol 999 MovieClip Frame 3
_parent.makeB();
Symbol 999 MovieClip Frame 13
_parent.gotoAndStop(1);
Symbol 1000 MovieClip Frame 1
stop();
Symbol 1000 MovieClip Frame 2
stop();
Symbol 1001 MovieClip Frame 1
stop();
Instance of Symbol 982 MovieClip in Symbol 1001 MovieClip Frame 1
onClipEvent (load) {
if (_root.car.weaponOut == "pistol") {
this.gotoAndStop(1);
}
if (_root.car.weaponOut == "SMG") {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.mode == "levelChoose") {
_rotation = 90;
return(undefined);
}
deltaX = _parent._parent._parent._x - _root._xmouse;
deltaY = _parent._parent._parent._y - _root._ymouse;
angle = -Math.atan2(deltaX, deltaY);
Angle = Math.round((angle * 180) / Math.PI);
if (_root.goLeft) {
Angle = -Angle;
}
_rotation = Angle;
}
onClipEvent (enterFrame) {
if (_root.car.weaponOut == "pistol") {
this.gotoAndStop(1);
}
if (_root.car.weaponOut == "SMG") {
this.gotoAndStop(2);
}
}
Symbol 1001 MovieClip Frame 2
stop();
Instance of Symbol 988 MovieClip in Symbol 1001 MovieClip Frame 2
onClipEvent (load) {
xScale = _xscale;
if (_root.car.weaponOut == "volcan") {
this.gotoAndStop(1);
}
if (_root.car.weaponOut == "bazooka") {
this.gotoAndStop(2);
}
deltaX = _parent._parent._parent._x - _root._xmouse;
deltaY = _parent._parent._parent._y - _root._ymouse;
angle = -Math.atan2(deltaX, deltaY);
Angle = Math.round((angle * 180) / Math.PI);
if (_xmouse < _root.car._x) {
_xscale = (-xScale);
}
if (_xmouse >= _root.car._x) {
_xscale = xScale;
}
if (_root.goLeft) {
Angle = -Angle;
}
_rotation = Angle;
}
onClipEvent (enterFrame) {
deltaX = _parent._parent._parent._x - _root._xmouse;
deltaY = _parent._parent._parent._y - _root._ymouse;
angle = -Math.atan2(deltaX, deltaY);
Angle = Math.round((angle * 180) / Math.PI);
if (_root.goLeft) {
Angle = -Angle;
}
_rotation = Angle;
}
onClipEvent (enterFrame) {
if (_root.car._x > _root._xmouse) {
_xscale = (-xScale);
}
if (_root.car._x <= _root._xmouse) {
_xscale = xScale;
}
if (_root.goLeft) {
_xscale = (-_xscale);
}
if (_xscale == xScale) {
_rotation = Angle;
}
if (_xscale == (-xScale)) {
_rotation = Angle;
}
if (_root.weaponP >= 3) {
if (_root.car.weaponOut == "volcan") {
this.gotoAndStop(1);
}
}
if (_root.weaponP >= 4) {
if (_root.car.weaponOut == "bazooka") {
this.gotoAndStop(2);
}
}
}
Symbol 1001 MovieClip Frame 3
stop();
_root.car.info.damage = 25;
keyword = "goldBullets";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
_root.car.info.damage = _root.car.info.damage * 1.25;
}
z++;
}
Instance of Symbol 1000 MovieClip in Symbol 1001 MovieClip Frame 3
onClipEvent (load) {
function makeB() {
Bulletspeed = 30;
var _local3 = "rBullet" + _root.depthHolder;
_root.attachMovie("rBullet", _local3, _root.depthHolder);
if (_root.goLeft) {
Angle = -Angle;
}
_root[_local3]._x = _parent._parent._parent._x - 30;
_root[_local3]._y = _parent._parent._parent._y - 40;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
_root.depthHolder++;
}
xScale = _xscale;
if (_xmouse < _root.car._x) {
_xscale = (-xScale);
}
if (_xmouse >= _root.car._x) {
_xscale = xScale;
}
deltaX = _parent._parent._parent._x - _root._xmouse;
deltaY = _parent._parent._parent._y - _root._ymouse;
angle = -Math.atan2(deltaX, deltaY);
Angle = Math.round((angle * 180) / Math.PI);
if (_root.goLeft) {
Angle = -Angle;
}
_rotation = Angle;
}
onClipEvent (enterFrame) {
deltaX = _parent._parent._parent._x - _root._xmouse;
deltaY = _parent._parent._parent._y - _root._ymouse;
angle = -Math.atan2(deltaX, deltaY);
Angle = Math.round((angle * 180) / Math.PI);
if (_root.goLeft) {
Angle = -Angle;
}
_rotation = Angle;
}
onClipEvent (enterFrame) {
if (_root.car._x > _root._xmouse) {
_xscale = (-xScale);
}
if (_root.car._x <= _root._xmouse) {
_xscale = xScale;
}
if (_root.goLeft) {
_xscale = (-_xscale);
}
if (_xscale == xScale) {
_rotation = Angle;
}
if (_xscale == (-xScale)) {
_rotation = Angle;
}
}
onClipEvent (mouseDown) {
this.gotoAndStop(2);
}
Instance of Symbol 944 MovieClip in Symbol 1002 MovieClip Frame 1
onClipEvent (load) {
function makeB() {
Bulletspeed = 30;
_root.depthHolder++;
var _local3 = "grenade" + _root.depthHolder;
_root.attachMovie("grenade", _local3, _root.depthHolder);
if (!_root.goLeft) {
_root[_local3]._x = _parent._parent._x - 55;
}
if (_root.goLeft) {
_root[_local3]._x = _parent._parent._x + 55;
}
_root[_local3]._y = _parent._parent._y + 60;
_root.depthHolder++;
}
}
onClipEvent (enterFrame) {
if (!(_root.mode === "boss")) {
if (Key.isDown(32)) {
if (_root.gQ > 0) {
this.gotoAndStop(2);
}
}
}
}
Instance of Symbol 947 MovieClip in Symbol 1002 MovieClip Frame 1
onClipEvent (load) {
function makeB() {
Bulletspeed = 30;
_root.depthHolder++;
var _local3 = "powerbomb" + _root.depthHolder;
_root.attachMovie("powerbomb", _local3, _root.depthHolder);
if (!_root.goLeft) {
_root[_local3]._x = _parent._parent._x - 45;
}
if (_root.goLeft) {
_root[_local3]._x = _parent._parent._x + 45;
}
_root[_local3]._y = _parent._parent._y + 60;
_root.depthHolder++;
}
}
onClipEvent (enterFrame) {
if (!(_root.mode === "boss")) {
if (Key.isDown(17)) {
if (_root.pbQ > 0) {
this.gotoAndStop(2);
}
}
}
}
Instance of Symbol 962 MovieClip in Symbol 1002 MovieClip Frame 1
onClipEvent (load) {
keyword = "1BG";
done = false;
z = 0;
while (z < _root.unlockedAid.length) {
lockTester = _root.unlockedAid[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
this.gotoAndStop(2);
}
z++;
}
keyword = "2BG";
done = false;
z = 0;
while (z < _root.unlockedAid.length) {
lockTester = _root.unlockedAid[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
this.gotoAndStop(3);
}
z++;
}
keyword = "3BG";
done = false;
z = 0;
while (z < _root.unlockedAid.length) {
lockTester = _root.unlockedAid[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
this.gotoAndStop(4);
}
z++;
}
}
Instance of Symbol 1001 MovieClip in Symbol 1002 MovieClip Frame 1
onClipEvent (load) {
keyword = "SMG";
done = false;
z = 0;
while (z < _root.unlockedWeapons.length) {
lockTester = _root.unlockedWeapons[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
_root.car.info.WeaponWeight = 1;
}
z++;
}
keyword = "volcan";
done = false;
z = 0;
while (z < _root.unlockedWeapons.length) {
lockTester = _root.unlockedWeapons[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
_root.car.info.WeaponWeight = 10;
}
z++;
}
keyword = "bazooka";
done = false;
z = 0;
while (z < _root.unlockedWeapons.length) {
lockTester = _root.unlockedWeapons[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
_root.car.info.WeaponWeight = 20;
}
z++;
}
keyword = "rocketLauncher";
done = false;
z = 0;
while (z < _root.unlockedWeapons.length) {
lockTester = _root.unlockedWeapons[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
_root.car.info.WeaponWeight = 30;
}
z++;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(49)) {
_root.car.weaponOut = "pistol";
}
if (Key.isDown(50)) {
keyword = "SMG";
done = false;
z = 0;
while (z < _root.unlockedWeapons.length) {
lockTester = _root.unlockedWeapons[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
_root.car.weaponOut = "SMG";
}
z++;
}
}
if (Key.isDown(51)) {
keyword = "volcan";
done = false;
z = 0;
while (z < _root.unlockedWeapons.length) {
lockTester = _root.unlockedWeapons[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
_root.car.weaponOut = "volcan";
}
z++;
}
}
if (Key.isDown(52)) {
keyword = "bazooka";
done = false;
z = 0;
while (z < _root.unlockedWeapons.length) {
lockTester = _root.unlockedWeapons[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
_root.car.weaponOut = "bazooka";
}
z++;
}
}
if (Key.isDown(53)) {
keyword = "rocketLauncher";
done = false;
z = 0;
while (z < _root.unlockedWeapons.length) {
lockTester = _root.unlockedWeapons[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
_root.car.weaponOut = "rocketLauncher";
}
z++;
}
}
if (_root.car.weaponOut == "pistol") {
this.gotoAndStop(1);
}
if (_root.car.weaponOut == "SMG") {
this.gotoAndStop(1);
}
if (_root.car.weaponOut == "volcan") {
this.gotoAndStop(2);
}
if (_root.car.weaponOut == "bazooka") {
this.gotoAndStop(2);
}
if (_root.car.weaponOut == "rocketLauncher") {
this.gotoAndStop(3);
}
if (_root.mode == "levelChoose") {
this.gotoAndStop(1);
}
}
Instance of Symbol 920 MovieClip in Symbol 1005 MovieClip Frame 1
onClipEvent (load) {
_root.monsterWheels = undefined;
keyword = "Superior";
done = false;
z = 0;
while (z < _root.unlockedWheels.length) {
lockTester = _root.unlockedWheels[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
this.gotoAndStop(2);
}
z++;
}
keyword = "Heavy_Duty";
done = false;
z = 0;
while (z < _root.unlockedWheels.length) {
lockTester = _root.unlockedWheels[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
this.gotoAndStop(3);
}
z++;
}
keyword = "Monster";
done = false;
z = 0;
while (z < _root.unlockedWheels.length) {
lockTester = _root.unlockedWheels[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
this.gotoAndStop(4);
_root.monsterWheels = this;
}
z++;
}
}
Instance of Symbol 920 MovieClip in Symbol 1005 MovieClip Frame 1
onClipEvent (load) {
keyword = "Superior";
done = false;
z = 0;
while (z < _root.unlockedWheels.length) {
lockTester = _root.unlockedWheels[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
this.gotoAndStop(2);
}
z++;
}
keyword = "Heavy_Duty";
done = false;
z = 0;
while (z < _root.unlockedWheels.length) {
lockTester = _root.unlockedWheels[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
this.gotoAndStop(3);
}
z++;
}
keyword = "Monster";
done = false;
z = 0;
while (z < _root.unlockedWheels.length) {
lockTester = _root.unlockedWheels[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
this.gotoAndStop(4);
}
z++;
}
}
Symbol 1010 MovieClip Frame 1
stop();
Symbol 1017 MovieClip Frame 1
stop();
Symbol 1028 MovieClip Frame 1
stop();
Instance of Symbol 1010 MovieClip in Symbol 1028 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(Math.round(_root.mapP));
}
Instance of Symbol 1017 MovieClip in Symbol 1028 MovieClip Frame 3
onClipEvent (enterFrame) {
this.gotoAndStop(Math.round(_root.mapP));
}
Instance of Symbol 1010 MovieClip in Symbol 1028 MovieClip Frame 6
onClipEvent (enterFrame) {
this.gotoAndStop(Math.round(_root.mapP));
}
Instance of Symbol 1033 MovieClip in Symbol 1047 MovieClip Frame 1
onClipEvent (load) {
health = _root.healthDisplay;
fakehealth = health;
rate = 0.5;
}
onClipEvent (enterFrame) {
health = _root.healthDisplay;
if (fakehealth < health) {
fakehealth = fakehealth + rate;
}
if (fakehealth > health) {
fakehealth = fakehealth - rate;
}
_xscale = health;
if (_xscale <= 0) {
_root.car.explode();
_xscale = 0;
}
}
Instance of Symbol 1045 MovieClip in Symbol 1047 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.car.weaponOut == "pistol") {
this.gotoAndStop(5);
}
if (_root.car.weaponOut == "SMG") {
this.gotoAndStop(2);
}
if (_root.car.weaponOut == "volcan") {
this.gotoAndStop(3);
}
if (_root.car.weaponOut == "bazooka") {
this.gotoAndStop(4);
}
if (_root.car.weaponOut == "rocketLauncher") {
this.gotoAndStop(1);
}
}
Symbol 1053 MovieClip Frame 1
stop();
_visible = false;
Symbol 1053 MovieClip Frame 2
word = (("l" + _root.level) + "m") + (_currentframe - 1);
_root[word].start();
stop();
messageActive = true;
_visible = true;
time = 0;
if (_root.level == 1) {
message = "Yo, go down to the river and dump the evidence; watch out for the cops";
}
if (_root.level == 2) {
message = "Now make your way through the woods; don't be spotted by helicopters";
}
if (_root.level == 3) {
message = "The Blue Hats are trying to steal the truck, show them who's the boss!";
}
if (_root.level == 4) {
message = "Ok my friend; it's now time for revenge";
}
if (_root.level == 5) {
message = "Something is happening here ...this smells fishy";
}
if (_root.level == 6) {
message = "Their leader is dead, they are running away! Stop them from exiting the city!";
}
if (_root.level == 7) {
message = "Ok I'm gonna start dropping the packets. Catch them in the boot of your truck.";
}
if (_root.level == 8) {
message = "Whats that? It looks like a police helicopter...";
}
if (_root.level == 9) {
message = "Huh? What's going on here?";
}
if (_root.level == 10) {
message = "Give up now or we'll blast you outta the sky";
}
Symbol 1053 MovieClip Frame 3
word = (("l" + _root.level) + "m") + (_currentframe - 1);
_root[word].start();
stop();
messageActive = true;
_visible = true;
time = 0;
if (_root.level == 1) {
message = "Hey, the cops are coming! Move ya ass and get outta there!!";
PS = new Sound(this);
PS.attachSound("police");
PS.setVolume(_root.soundVolume);
PS.start();
}
if (_root.level == 2) {
message = "Watch it; here comes the SWAT Team";
}
if (_root.level == 3) {
message = "OH SHIT! This is the mafia's territory, dont let them destroy the truck";
}
if (_root.level == 4) {
message = "Watch out! Here comes the rest of the gang";
}
if (_root.level == 5) {
message = "Holy Shit! It's a trap! He wants us dead, let's show him who we are";
}
if (_root.level == 6) {
message = "Keep it up, most of the members have either left or been killed";
}
if (_root.level == 7) {
message = "Over half way there, keep trying to get the packets";
}
if (_root.level == 8) {
message = "Oh SHIT!";
}
if (_root.level == 9) {
message = "Sorry Danny, but you had it coming...";
}
if (_root.level == 10) {
message = "I see you're not going to give up then...very well";
}
Symbol 1053 MovieClip Frame 4
if (!(_root.level === 7)) {
word = (("l" + _root.level) + "m") + (_currentframe - 1);
_root[word].start();
}
stop();
messageActive = true;
_visible = true;
time = 0;
if (_root.level == 1) {
message = "Good Work, you're in the clear!";
}
if (_root.level == 2) {
message = "Nice Job, you're clear to enter Vahalla City";
}
if (_root.level == 3) {
message = "Watch it, you're entering the Industrial Estate";
}
if (_root.level == 4) {
message = "Good work! Now they know who we are and who to respect!";
}
if (_root.level == 5) {
message = "Haha, that'll teach him!";
}
if (_root.level == 6) {
message = "The City is Ours!";
}
if (_root.level == 7) {
amount = _root.caughtPacket;
if (amount < 7) {
message = "What?! Is that all you got??";
_root.l7m3.start();
}
if (amount >= 7) {
message = "Nice job, it looks like you've got enough";
_root.l7m4.start();
}
}
if (_root.level == 8) {
message = "AAAAAAAAAHHHHHH!!";
}
if (_root.level == 9) {
message = "Had what coming? You bastards!";
}
if (_root.level == 10) {
message = "What? How can this be?!";
}
Symbol 1058 MovieClip Frame 1
stop();
Symbol 1058 MovieClip Frame 2
stop();
Symbol 1062 MovieClip Frame 1
stop();
Symbol 1062 MovieClip Frame 2
stop();
Symbol 1067 Button
on (release) {
stopAllSounds();
_root.killAll = true;
stopAllSounds();
with (_root) {
gamemusic.stop();
stopAllSounds();
menu_music.start(0, 9999);
}
_root.gotoAndStop("Menu");
}
Symbol 1074 MovieClip Frame 1
stop();
Symbol 1074 MovieClip Frame 2
stop();
Symbol 1074 MovieClip Frame 3
stop();
Instance of Symbol 777 MovieClip in Symbol 1074 MovieClip Frame 3
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.musicVolume = _root.musicVolume - 10;
if (_root.musicVolume <= 0) {
_root.musicVolume = 0;
}
_root.gamemusic.setVolume(_root.musicVolume);
}
}
Instance of Symbol 775 MovieClip in Symbol 1074 MovieClip Frame 3
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.musicVolume = _root.musicVolume + 10;
if (_root.musicVolume >= 100) {
_root.musicVolume = 100;
}
_root.gamemusic.setVolume(_root.musicVolume);
}
}
Instance of Symbol 1076 MovieClip in Symbol 1077 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.caughtPacket >= 1) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 1076 MovieClip in Symbol 1077 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.caughtPacket >= 2) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 1076 MovieClip in Symbol 1077 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.caughtPacket >= 3) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 1076 MovieClip in Symbol 1077 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.caughtPacket >= 4) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 1076 MovieClip in Symbol 1077 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.caughtPacket >= 5) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 1076 MovieClip in Symbol 1077 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.caughtPacket >= 6) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 1076 MovieClip in Symbol 1077 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.caughtPacket >= 7) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 1076 MovieClip in Symbol 1077 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.caughtPacket >= 8) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 1076 MovieClip in Symbol 1077 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.caughtPacket >= 9) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 1076 MovieClip in Symbol 1077 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.caughtPacket >= 10) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 1028 MovieClip in Symbol 1078 MovieClip Frame 1
onClipEvent (load) {
counter = 0;
if (_root.level == 1) {
levelLength = 60;
} else {
levelLength = 70;
}
delay = 1000;
resetTime = getTimer() + delay;
percentDone = (counter / levelLength) * 100;
_root.mapP = 0;
this.gotoAndStop(_root.level);
}
onClipEvent (enterFrame) {
if (_root.mode == "boss") {
return(undefined);
}
_root.mapP = (counter / levelLength) * 100;
if (_root.mapP > 100) {
_root.levelDone = true;
_root.mapP = 100;
}
if (_root.mapP > 70) {
_root.levelMode = "police";
}
if (getTimer() > resetTime) {
counter++;
resetTime = getTimer() + delay;
}
}
Instance of Symbol 1053 MovieClip in Symbol 1078 MovieClip Frame 1
onClipEvent (load) {
time = 0;
delay = 150;
messageActive = true;
this.gotoAndStop(2);
done1 = false;
done2 = false;
if (_root.level == 1) {
M2D = 70;
}
if (_root.level == 2) {
M2D = 65;
}
if (_root.level == 3) {
M2D = 40;
}
if (_root.level == 4) {
M2D = 50;
}
if (_root.level == 6) {
M2D = 50;
}
if (_root.level == 7) {
M2D = 55;
}
if (_root.level == 8) {
M2D = 3;
}
if (_root.level == 9) {
M2D = 5;
}
M3D = 100;
if (_root.level == 8) {
M3D = 6;
}
if (_root.level == 9) {
M3D = 10;
}
bossD = 0;
}
onClipEvent (enterFrame) {
if (_root.mode == "boss") {
if (_root.levelDone) {
if (!done2) {
this.gotoAndStop(4);
done2 = true;
}
}
}
if (_root.mode == "boss") {
bossD++;
if (bossD > 60) {
if (!_root.levelDone) {
this.gotoAndStop(3);
return(undefined);
}
}
return(undefined);
}
if (messageActive) {
time++;
if (time >= delay) {
this.gotoAndStop(1);
time = 0;
}
}
if (_root.mapP >= M2D) {
if (!done1) {
this.gotoAndStop(3);
done1 = true;
}
}
if (_root.mapP >= M3D) {
if (!done2) {
this.gotoAndStop(4);
done2 = true;
}
}
}
Instance of Symbol 1058 MovieClip in Symbol 1078 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.mode == "boss") {
this.gotoAndStop(2);
}
if (_root.gQ <= 0) {
_visible = false;
}
}
Instance of Symbol 1062 MovieClip in Symbol 1078 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.mode == "boss") {
this.gotoAndStop(2);
}
if (_root.pbQ <= 0) {
_visible = false;
}
}
Instance of Symbol 1074 MovieClip in Symbol 1078 MovieClip Frame 1
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
this.gotoAndStop(3);
}
Symbol 1087 MovieClip Frame 2
if (_root.level == 7) {
if (_root.caughtPacket < 7) {
stop();
_root.deadFade.play();
}
}
Symbol 1087 MovieClip Frame 26
if (_root.level == 7) {
if (_root.caughtPacket < 7) {
return(undefined);
}
}
if (_root.levelUnlocked == _root.level) {
_root.levelUnlocked = _root.level + 1;
}
-_root.gamemusic.stop();
with (_root) {
menu_music.start(0, 9999);
}
_root.gotoAndStop("LS");
_root.killAll = true;
Symbol 1089 MovieClip Frame 26
_root.gamemusic.stop();
_root.killAll = true;
_root.gotoAndStop("GameOver");
this.removeMovieClip();
Symbol 1097 MovieClip Frame 1
stop();
Symbol 1097 MovieClip Frame 2
stop();
Symbol 1098 Button
on (press) {
with (_root) {
menu_music.start(0, 9999);
}
_root.gotoAndStop("Menu");
}
Instance of Symbol 1102 MovieClip "barriorA" in Symbol 1103 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 1102 MovieClip "barriorB" in Symbol 1103 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 1107 MovieClip Frame 7
_parent.makeB();
_parent.gotoAndStop(1);
Symbol 1108 MovieClip Frame 1
stop();
Symbol 1108 MovieClip Frame 2
stop();
Symbol 1114 MovieClip Frame 1
stop();
Symbol 1114 MovieClip Frame 3
makeB();
Symbol 1114 MovieClip Frame 4
gotoAndStop (1);
Symbol 1115 MovieClip Frame 1
function explode() {
this.swapDepths(6940);
_root.levelDone = true;
alive = false;
if (doneBoom) {
return(undefined);
}
this[bulletHole]._x = xHit - _x;
this[bulletHole]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "explosion" + _root.depthHolder;
_root.attachMovie("explosion", _local3, _root.depthHolder);
_root[_local3].moneyWorth = moneyWorth;
_root[_local3].owner = this;
_root[_local3]._xscale = _width * 3;
_root[_local3]._yscale = _width * 3;
_root[_local3]._x = xHit;
_root[_local3]._y = yHit;
_root.depthHolder++;
doneBoom = true;
}
function addExplosion() {
n = random(7);
word = "ric" + n;
ric = new Sound(this);
ric.attachSound(word);
ric.setVolume(_root.soundVolume);
dis = Math.round(_x - _root.car._x) / 5;
if (dis < -100) {
dis = -100;
}
if (dis > 100) {
dis = 100;
}
if (_root.surroundSound) {
ric.setPan(dis);
}
ric.start();
health = health - _root.car.info.damage;
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
function makeSmoke() {
if (!doneSmoke) {
var _local3 = "smoke" + _root.depthHolder;
this.attachMovie("smoke", bulletsmoke, _root.depthHolder);
this[bulletsmoke]._x = xHit - _x;
this[bulletsmoke]._y = yHit - _y;
_root.depthHolder++;
doneSmoke = true;
}
}
function addCPUExplosion() {
if (health <= lowHealth) {
makeSmoke();
}
if (bulletsTaken >= maxBullets) {
return(undefined);
}
bulletsTaken++;
var _local4 = "hole" + _root.depthHolder;
this.attachMovie("hole", _local4, _root.depthHolder);
this[_local4]._x = xHit - _x;
this[_local4]._y = yHit - _y;
this[_local4].parent = this;
_root.depthHolder++;
var _local3 = "spark" + _root.depthHolder;
this.attachMovie("spark", _local3, _root.depthHolder);
this[_local3]._rotation = Math.round((sparkAngle * 180) / Math.PI);
this[_local3]._x = xHit - _x;
this[_local3]._y = yHit - _y;
_root.depthHolder++;
}
myX = _xscale;
_root.enemysUsed++;
target = _root.car;
speed = 10;
sightX = 350;
sightY = 1000;
mode = "get";
direction = "right";
rate = 2;
fakeAngle = 153;
maxXSpeed = 20;
maxYSpeed = 15;
scrollY = 0;
scroll = 10;
friction = 1;
directionY = "down";
this.cacheAsBitmap = true;
doneSmoke = false;
doneBoom = false;
bulletsTaken = 0;
maxBullets = 0;
moneyWorth = 3000;
scoreValue = 5000;
health = 300;
lowHealth = 140;
alive = true;
keyword = "hitman";
done = false;
z = 0;
while (z < _root.unlockedExtras.length) {
lockTester = _root.unlockedExtras[z].indexOf(keyword);
if (lockTester == 0) {
locked = false;
done = true;
} else if (done == false) {
locked = true;
}
if (!locked) {
moneyWorth = moneyWorth * 2;
}
z++;
}
_root.car.enemies.push(this);
Instance of Symbol 1108 MovieClip in Symbol 1115 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.gotoAndStop(2);
}
function makeB() {
if (!(_root.car === undefined)) {
Bulletspeed = 30;
_root.depthHolder++;
var _local3 = "Bossgrenade" + _root.depthHolder;
_root.attachMovie("Bossgrenade", _local3, _root.depthHolder);
_root[_local3]._x = _parent._x - 10;
_root[_local3]._y = _parent._y + 60;
_root.depthHolder++;
}
}
delay = random(4000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(4000);
resetTime = getTimer() + delay;
}
}
Instance of Symbol 1114 MovieClip in Symbol 1115 MovieClip Frame 1
onClipEvent (load) {
function fire() {
this.play();
}
function makeB() {
if (!(_root.car === undefined)) {
Bulletspeed = 15;
_root.depthHolder++;
var _local3 = "missile" + _root.depthHolder;
_root.attachMovie("missile", _local3, _root.depthHolder);
if (_parent._xscale == _parent.myX) {
_root[_local3]._x = _parent._x + 15;
}
if (_parent._xscale == (-_parent.myX)) {
_root[_local3]._x = _parent._x - 15;
}
_root[_local3]._y = _parent._y + 20;
_root[_local3].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local3].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
_root.depthHolder++;
}
}
delay = random(5000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
deltaX = _parent._x - _parent.target._x;
deltaY = _parent._y - _parent.target._y;
angle = -Math.atan2(deltaX, deltaY);
Angle = Math.round((angle * 180) / Math.PI);
if (_parent._xscale == _parent.myX) {
_rotation = (Angle + 80);
}
if (_parent._xscale == (-_parent.myX)) {
_rotation = ((-Angle) + 80);
}
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(4000);
resetTime = getTimer() + delay;
}
}
Symbol 1115 MovieClip Frame 2
stop();
this.onEnterFrame = function () {
if (health <= 0) {
explode();
}
if (_root.killAll) {
this.swapDepths(900090);
this.removeMovieClip();
}
if (target._x >= _x) {
direction = "right";
_xscale = myX;
}
if (target._x < _x) {
direction = "left";
_xscale = (-myX);
}
if (mode == "get") {
if (direction == "right") {
if (scroll < maxXSpeed) {
scroll = scroll + (2 / friction);
}
} else if (direction == "left") {
if (scroll > (-maxXSpeed)) {
scroll = scroll - (2 / friction);
}
} else {
scroll = scroll * 0.8;
}
_x = (_x + scroll);
_rotation = scroll;
}
if (directionY == "down") {
if (scrollY < maxYSpeed) {
scrollY = scrollY + ((0.1 / friction) - 0.5);
}
} else if (directionY == "up") {
if (scrollY > (-maxYSpeed)) {
scrollY = scrollY - ((0.1 / friction) - 0.5);
}
} else {
scrollY = scrollY * 0.99;
}
_y = (_y + scrollY);
if (scrollY >= maxYSpeed) {
if (directionY == "down") {
directionY = "up";
return(undefined);
}
}
if (scrollY <= (-maxYSpeed)) {
if (directionY == "up") {
directionY = "down";
return(undefined);
}
}
if (direction == "left") {
distance = _x - target._x;
}
if (direction == "right") {
distance = target._x - _x;
}
if (distance <= sightX) {
mode = "align";
}
if (distance > sightX) {
mode = "get";
}
if (mode == "align") {
getAngle();
}
if (yguyuyugyuguygyugguy) {
if (scroll < maxXSpeed) {
scroll = scroll + (2 / friction);
}
} else if (gygyugyouyguoougygouyuygo) {
if (scroll > (-maxXSpeed)) {
scroll = scroll - (2 / friction);
}
} else {
scroll = scroll * 0.8;
}
_x = (_x + scroll);
if (directionY == "down") {
if (scrollY < maxYSpeed) {
scrollY = scrollY + (2 / friction);
}
} else if (directionY == "up") {
if (scrollY > (-maxYSpeed)) {
scrollY = scrollY - (2 / friction);
}
} else {
scrollY = scrollY * 0.99;
}
};
Instance of Symbol 1122 MovieClip in Symbol 1123 MovieClip Frame 1
onClipEvent (load) {
health = _root.healthDisplay;
fakehealth = health;
rate = 0.5;
}
onClipEvent (enterFrame) {
health = _root.healthDisplay;
if (fakehealth < health) {
fakehealth = fakehealth + rate;
}
if (fakehealth > health) {
fakehealth = fakehealth - rate;
}
_xscale = health;
if (_xscale <= 0) {
_root.finalhelicopter.explode();
_xscale = 0;
}
}
Symbol 1127 MovieClip Frame 112
_parent.message = "AAAAAAAHHHHHH";
_root.l10m4.start();
Symbol 1127 MovieClip Frame 123
_root.boss_explode.start();
_root.bossExplode = true;
Symbol 1127 MovieClip Frame 149
_root.boom.start();
Symbol 1127 MovieClip Frame 153
_root.bazooka_explode.start();
Symbol 1127 MovieClip Frame 164
_root.boss_explode.start();
Symbol 1127 MovieClip Frame 190
_root.boss_explode.start();
Symbol 1127 MovieClip Frame 211
_root.boss_explode.start();
Symbol 1128 MovieClip Frame 1
stop();
_visible = false;
Symbol 1128 MovieClip Frame 2
message = "Give up now or we'll blast you outta the sky";
_root.l10m1.start();
_visible = true;
Symbol 1128 MovieClip Frame 3
message = "I see you're not going to give up then...very well";
_root.l10m2.start();
_visible = true;
Symbol 1128 MovieClip Frame 4
message = "What? How can this be?!";
_root.l10m3.start();
_visible = true;
Symbol 1130 Button
on (release) {
stopAllSounds();
with (_root) {
gamemusic.stop();
menu_music.start(0, 9999);
}
_root.killAll = true;
_root.gotoAndStop("Menu");
}
Symbol 1134 MovieClip Frame 1
stop();
Symbol 1134 MovieClip Frame 2
stop();
Symbol 1134 MovieClip Frame 3
stop();
Instance of Symbol 777 MovieClip in Symbol 1134 MovieClip Frame 3
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.musicVolume = _root.musicVolume - 10;
if (_root.musicVolume <= 0) {
_root.musicVolume = 0;
}
_root.menu_music.setVolume(_root.musicVolume);
}
}
Instance of Symbol 775 MovieClip in Symbol 1134 MovieClip Frame 3
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.musicVolume = _root.musicVolume + 10;
if (_root.musicVolume >= 100) {
_root.musicVolume = 100;
}
_root.menu_music.setVolume(_root.musicVolume);
}
}
Instance of Symbol 1128 MovieClip in Symbol 1135 MovieClip Frame 1
onClipEvent (load) {
time = 0;
delay = 150;
messageActive = true;
this.gotoAndStop(2);
done1 = false;
done2 = false;
bossD = 0;
}
onClipEvent (enterFrame) {
if (_root.bossHealth < 50) {
if (!done2) {
this.gotoAndStop(3);
done2 = true;
_visible = true;
messageActive = true;
}
}
if (_root.bossHealth <= 0) {
this.gotoAndStop(4);
_visible = true;
messageActive = true;
}
if (messageActive) {
time++;
if (time >= delay) {
_visible = false;
time = 0;
messageActive = false;
}
}
}
Instance of Symbol 1134 MovieClip in Symbol 1135 MovieClip Frame 1
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
this.gotoAndStop(3);
}
Symbol 1149 MovieClip Frame 1
stop();
Symbol 1149 MovieClip Frame 6
makeB();
Symbol 1153 MovieClip Frame 1
stop();
Symbol 1153 MovieClip Frame 2
makeB();
Symbol 1161 MovieClip Frame 1
stop();
Symbol 1161 MovieClip Frame 2
makeB();
Symbol 1162 MovieClip Frame 1
if (vset == undefined) {
maxYSpeed = 10;
scrollY = 0;
friction = 1;
directionY = "up";
vset = 1;
sens = 1E-17;
}
this.onEnterFrame = function () {
if (directionY == "down") {
if (scrollY < maxYSpeed) {
scrollY = scrollY + ((sens / friction) - 0.5);
}
} else if (directionY == "up") {
if (scrollY > (-maxYSpeed)) {
scrollY = scrollY - ((sens / friction) - 0.5);
}
} else {
scrollY = scrollY * 0.99;
}
_y = (_y + scrollY);
if (scrollY >= maxYSpeed) {
if (directionY == "down") {
directionY = "up";
return(undefined);
}
}
if (scrollY <= (-maxYSpeed)) {
if (directionY == "up") {
directionY = "down";
return(undefined);
}
}
if (directionY == "down") {
if (scrollY < maxYSpeed) {
scrollY = scrollY + (2 / friction);
}
} else if (directionY == "up") {
if (scrollY > (-maxYSpeed)) {
scrollY = scrollY - (2 / friction);
}
} else {
scrollY = scrollY * 0.99;
}
};
Instance of Symbol 1149 MovieClip in Symbol 1162 MovieClip Frame 1
onClipEvent (load) {
function makeB() {
Bulletspeed = 30;
_root.depthHolder++;
var _local2 = "bulletHelicopter" + _root.depthHolder;
_root.attachMovie("bulletHelicopter", _local2, _root.depthHolder);
_root[_local2]._x = _root.finalhelicopter._x + 20;
_root[_local2]._y = _root.finalhelicopter._y + 20;
_root[_local2].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local2].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
_root.depthHolder++;
}
vulcan_fire = new Sound(this);
vulcan_fire.setVolume(_root.soundVolume);
vulcan_fire.attachSound("vulcan_fire");
}
onClipEvent (enterFrame) {
deltaX = _root.finalhelicopter._x - _root._xmouse;
deltaY = _root.finalhelicopter._y - _root._ymouse;
angle = -Math.atan2(deltaX, deltaY);
Angle = Math.round((angle * 180) / Math.PI);
_rotation = Angle;
if (Key.isDown(1)) {
this.play();
}
if (_root.fadeInFX._currentframe >= 24) {
vulcan_fire.stop();
}
}
onClipEvent (mouseDown) {
vulcan_fire.start(0, 9999);
}
onClipEvent (mouseUp) {
vulcan_fire.stop();
}
Instance of Symbol 1153 MovieClip in Symbol 1162 MovieClip Frame 1
onClipEvent (load) {
function makeB() {
Bulletspeed = 30;
_root.depthHolder++;
var _local2 = "missileHelicopter" + _root.depthHolder;
_root.attachMovie("missileHelicopter", _local2, _root.depthHolder);
_root[_local2]._x = _root.finalhelicopter._x - 30;
_root[_local2]._y = _root.finalhelicopter._y - 10;
_root[_local2].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local2].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
_root.depthHolder++;
}
}
onClipEvent (enterFrame) {
deltaX = _root.finalhelicopter._x - _root._xmouse;
deltaY = _root.finalhelicopter._y - _root._ymouse;
angle = -Math.atan2(deltaX, deltaY);
Angle = Math.round((angle * 180) / Math.PI);
_rotation = Angle;
if (Key.isDown(1)) {
this.play();
}
}
Instance of Symbol 1161 MovieClip in Symbol 1162 MovieClip Frame 1
onClipEvent (load) {
function makeB() {
Bulletspeed = 30;
_root.depthHolder++;
var _local2 = "bulletHelicopter" + _root.depthHolder;
_root.attachMovie("bulletHelicopter", _local2, _root.depthHolder);
_root[_local2]._x = _root.finalhelicopter._x + 20;
_root[_local2]._y = _root.finalhelicopter._y + 35;
_root[_local2].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local2].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
_root.depthHolder++;
}
}
onClipEvent (enterFrame) {
deltaX = _root.finalhelicopter._x - _root._xmouse;
deltaY = _root.finalhelicopter._y - _root._ymouse;
angle = -Math.atan2(deltaX, deltaY);
Angle = Math.round((angle * 180) / Math.PI);
_rotation = Angle;
trace("Angle is " + Angle);
trace("rot is " + _rotation);
if (Key.isDown(1)) {
this.play();
}
}
Symbol 1186 MovieClip Frame 1
_parent.makeB();
Symbol 1186 MovieClip Frame 5
_parent.makeB();
Symbol 1186 MovieClip Frame 9
_parent.makeB();
Symbol 1186 MovieClip Frame 11
_parent.gotoAndStop(1);
Symbol 1187 MovieClip Frame 1
stop();
Symbol 1187 MovieClip Frame 2
stop();
Instance of Symbol 1187 MovieClip in Symbol 1188 MovieClip Frame 1
onClipEvent (load) {
function makeB() {
if (_root.levelDone) {
return(undefined);
}
if (_root.finalhelicopter.health <= 0) {
return(undefined);
}
Bulletspeed = 25;
_root.depthHolder++;
var _local2 = "missileBoss" + _root.depthHolder;
_root.attachMovie("missileBoss", _local2, _root.depthHolder);
if (_xscale == (-X)) {
_root[_local2]._x = _root.car._x - 65;
}
if (_xscale == X) {
_root[_local2]._x = _root.car._x - 20;
}
_root[_local2]._y = _root.car._y + 10;
_root[_local2].vx = Math.sin(Angle * (Math.PI/180)) * Bulletspeed;
_root[_local2].vy = (-Math.cos(Angle * (Math.PI/180))) * Bulletspeed;
_root.depthHolder++;
}
function fire() {
if (_root.levelDone) {
return(undefined);
}
this.play();
}
X = _xscale;
delay = random(4000);
resetTime = getTimer() + delay;
}
onClipEvent (enterFrame) {
deltaX = _root.car._x - _root.finalhelicopter._x;
deltaY = _root.car._y - _root.finalhelicopter._y;
angle = -Math.atan2(deltaX, deltaY);
Angle = Math.round((angle * 180) / Math.PI);
if (_xscale == (-X)) {
_rotation = ((-Angle) + 90);
}
if (_xscale == X) {
_rotation = ((-Angle) - 90);
}
if (_root.finalhelicopter._x > (_root.car._x - 20)) {
_xscale = (-X);
}
if (_root.finalhelicopter._x <= (_root.car._x - 20)) {
_xscale = X;
}
}
onClipEvent (enterFrame) {
if (getTimer() > resetTime) {
fire();
delay = random(1000) + 1500;
resetTime = getTimer() + delay;
}
}
Symbol 1189 MovieClip Frame 1
stop();
Symbol 1189 MovieClip Frame 82
stop();
Symbol 1201 MovieClip Frame 1
stop();
Symbol 1201 MovieClip Frame 100
stop();
_root.levelDone = true;
Symbol 1203 MovieClip Frame 26
_root.gamemusic.stop();
_root.killAll = true;
_root.gotoAndPlay("lastScene");
Symbol 1243 MovieClip Frame 1
stop();
Symbol 1273 MovieClip Frame 201
_root.gotoAndStop("credits_full");
Symbol 1286 Button
on (release) {
getURL ("http://www.rustygames.com", "_blank");
}
Symbol 1290 Button
on (release) {
getURL ("http://www.corkysurprise.com", "_blank");
}
Symbol 1293 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("Menu");
}
Symbol 1294 Button
on (release) {
stopAllSounds();
with (_root) {
menu_music.start(0, 9999);
}
_root.gotoAndStop("Menu");
}
Symbol 1295 MovieClip Frame 16
stop();
Symbol 1296 MovieClip Frame 1283
stop();
Symbol 1297 MovieClip Frame 72
stop();
Symbol 1342 MovieClip Frame 1
stop();
Symbol 1342 MovieClip Frame 2
stop();
_alpha = 100;
Symbol 1358 MovieClip Frame 1
stop();
_visible = false;
_alpha = 100;
Symbol 1358 MovieClip Frame 2
_visible = true;
wire = new Sound(this);
this.wire.attachSound("noCash");
this.wire.setVolume(_root.soundVolume);
this.wire.start();
Symbol 1358 MovieClip Frame 42
_alpha = (_alpha - 10);
if (_alpha < 30) {
gotoAndStop (1);
}
Symbol 1358 MovieClip Frame 43
gotoAndPlay(_currentframe - 1);
Symbol 1363 MovieClip Frame 1
stop();
_visible = false;
_alpha = 100;
Symbol 1363 MovieClip Frame 2
_visible = true;
wire = new Sound(this);
this.wire.attachSound("wire");
this.wire.setVolume(_root.soundVolume);
this.wire.start();
Symbol 1363 MovieClip Frame 42
_alpha = (_alpha - 10);
if (_alpha < 30) {
gotoAndStop (1);
}
Symbol 1363 MovieClip Frame 43
gotoAndPlay(_currentframe - 1);
Symbol 1369 Button
on (press) {
_root.car.updateInfo();
_root.blur.play();
_root.frameDirection = "LS";
}