Frame 1
MENU = new ContextMenu();
MENU.hideBuiltInItems();
_root.menu = MENU;
Instance of Symbol 8 MovieClip in Frame 1
onClipEvent (load) {
targetWidth = bar._width;
var loaded = _root.getBytesLoaded();
var total = _root.getBytesTotal();
bar._width = targetWidth * (loaded / total);
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
bar._width = targetWidth * (loaded / total);
}
Frame 2
onEnterFrame = function () {
if (getBytesLoaded() == getBytesTotal()) {
fader.target = "agIntro";
if (fader._currentframe < 11) {
fader.gotoAndPlay(11);
}
}
loadedPercent = Math.round((getBytesLoaded() / getBytesTotal()) * 100) + "%";
};
stop();
loadedPercent = Math.round((getBytesLoaded() / getBytesTotal()) * 100) + "%";
Frame 3
gotoAndPlay (2);
Frame 54
stop();
onEnterFrame = function () {
};
ag_intro_02_02.onRelease = function () {
getURL ("http://www.addictinggames.com", "_blank");
};
stop();
Instance of Symbol 28 MovieClip "ag_mouse" in Frame 54
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
Frame 55
stop();
timer = 0;
onEnterFrame = function () {
if (timer >= 100) {
fader.target = "menu";
if (fader._currentframe < 11) {
fader.gotoAndPlay(11);
}
timer = 0;
}
timer++;
};
Frame 56
function checkContacts() {
newContacts = 0;
i = 1;
while (i <= 8) {
if ((contractData[i][1] == false) and (contractData[i][2] <= _root.respect)) {
newContacts = newContacts + 1;
}
i = i + 1;
}
}
function muteGame() {
if (muted == true) {
fubar = new Sound(this);
fubar.setVolume(100);
muted = false;
} else {
fubar = new Sound(this);
fubar.setVolume(0);
muted = true;
}
}
function updateCarStats() {
playerMaxSpeed = 45 + (engineLevel * 2);
playerAccel = 0.4 + (engineLevel / 5);
playerMaxLife = 9999400 + (armourLevel * 50);
playerMaxTurnSpeed = 2.5 + (engineLevel / 2);
playerMass = 35 + (armourLevel * 6);
if (_root.missionSelected <= 2) {
_root.enviroment = 1;
}
if (_root.missionSelected > 3) {
_root.enviroment = 2;
}
if (_root.missionSelected > 6) {
_root.enviroment = 3;
}
if (_root.missionSelected > 8) {
_root.enviroment = 4;
}
}
function calcTimeReturn(ltimer) {
mins = Math.floor((ltimer / 25) / 60);
secs = Math.floor(ltimer / 25) % 60;
mills = Math.floor(ltimer * 2.4) % 60;
if (length(secs) < 2) {
secs = "0" + secs;
}
if (length(mills) < 2) {
mills = "0" + mills;
}
return((((mins + ":") + secs) + ":") + mills);
}
function saveData() {
saveddata = SharedObject.getLocal("HeistSaveFinalest");
saveddata.data.money = _root.money;
saveddata.data.respect = _root.respect;
saveddata.data.graphicsDetail = _root.graphicsDetail;
saveddata.data.missionSelected = _root.missionSelected;
saveddata.data.missionProgress = _root.missionProgress;
saveddata.data.currentGangLevel = _root.currentGangLevel;
saveddata.data.engineLevel = _root.engineLevel;
saveddata.data.armourLevel = _root.armourLevel;
saveddata.data.weaponLevel = _root.weaponLevel;
saveddata.data.engineLevelMax = _root.engineLevelMax;
saveddata.data.armourLevelMax = _root.armourLevelMax;
saveddata.data.weaponLevelMax = _root.weaponLevelMax;
saveddata.flush();
}
function loadData() {
saveddata = SharedObject.getLocal("HeistSaveFinalest");
if (saveddata.data.money != undefined) {
money = saveddata.data.money;
respect = saveddata.data.respect;
graphicsDetail = saveddata.data.graphicsDetail;
missionSelected = saveddata.data.missionSelected;
missionProgress = saveddata.data.missionProgress;
currentGangLevel = saveddata.data.currentGangLevel;
engineLevel = saveddata.data.engineLevel;
armourLevel = saveddata.data.armourLevel;
weaponLevel = saveddata.data.weaponLevel;
engineLevelMax = saveddata.data.engineLevelMax;
armourLevelMax = saveddata.data.armourLevelMax;
weaponLevelMax = saveddata.data.weaponLevelMax;
}
}
function updateMissionData() {
_root.copLevel = _root.missionData[_root.missionSelected][1];
_root.shootingLevel = _root.missionData[_root.missionSelected][2];
_root.reward = _root.missionData[_root.missionSelected][3];
_root.nightMode = _root.missionData[_root.missionSelected][4];
_root.getAwayDist = _root.missionData[_root.missionSelected][5];
_root.gangLevel = _root.missionData[_root.missionSelected][6];
}
function playAgain() {
_root.gotoAndPlay("backIn");
}
stop();
money = 0;
respect = 0;
graphicsDetail = 1;
missionSelected = 1;
missionProgress = 1;
missionTotal = 10;
contactSelected = 1;
upgradeSelected = 1;
currentGangLevel = 1;
enviroment = 1;
missionData = new Array();
contractData = new Array();
upgradeData = new Array();
newContacts = 0;
i = 1;
while (i <= missionTotal) {
_root.missionData[i] = new Array();
_root.contractData[i] = new Array();
i = i + 1;
}
j = 1;
while (j <= 20) {
_root.upgradeData[j] = new Array();
j = j + 1;
}
missionData[1][1] = 6;
missionData[1][2] = 0;
missionData[1][3] = 15000;
missionData[1][4] = false;
missionData[1][5] = 150;
missionData[1][6] = 1;
missionData[2][1] = 10;
missionData[2][2] = 0;
missionData[2][3] = 25000;
missionData[2][4] = false;
missionData[2][5] = 200;
missionData[2][6] = 5;
missionData[3][1] = 13;
missionData[3][2] = 0;
missionData[3][3] = 40000;
missionData[3][4] = true;
missionData[3][5] = 200;
missionData[3][6] = 12;
missionData[4][1] = 15;
missionData[4][2] = 1;
missionData[4][3] = 60000;
missionData[4][4] = false;
missionData[4][5] = 200;
missionData[4][6] = 25;
missionData[4][7] = 2;
missionData[5][1] = 20;
missionData[5][2] = 2;
missionData[5][3] = 80000 /* 0x013880 */;
missionData[5][4] = false;
missionData[5][5] = 250;
missionData[5][6] = 35;
missionData[6][1] = 25;
missionData[6][2] = 3;
missionData[6][3] = 120000 /* 0x01D4C0 */;
missionData[6][4] = true;
missionData[6][5] = 300;
missionData[6][6] = 50;
missionData[6][7] = 4;
missionData[7][1] = 30;
missionData[7][2] = 4;
missionData[7][3] = 180000 /* 0x02BF20 */;
missionData[7][4] = false;
missionData[7][5] = 300;
missionData[7][6] = 70;
missionData[8][1] = 35;
missionData[8][2] = 5;
missionData[8][3] = 200000 /* 0x030D40 */;
missionData[8][4] = false;
missionData[8][5] = 300;
missionData[8][6] = 80;
missionData[8][7] = 6;
missionData[9][1] = 40;
missionData[9][2] = 6;
missionData[9][3] = 250000 /* 0x03D090 */;
missionData[9][4] = true;
missionData[9][5] = 300;
missionData[9][6] = 100;
missionData[10][1] = 50;
missionData[10][2] = 10;
missionData[10][3] = 350000 /* 0x055730 */;
missionData[10][4] = false;
missionData[10][5] = 300;
missionData[10][6] = 120;
missionData[10][7] = 8;
enableBaseMove = false;
contractData[1][1] = false;
contractData[1][2] = 5;
contractData[1][3] = 5;
contractData[1][4] = "Security systems";
contractData[2][1] = false;
contractData[2][2] = 20;
contractData[2][3] = 6;
contractData[2][4] = "Planning";
contractData[3][1] = false;
contractData[3][2] = 50;
contractData[3][3] = 7;
contractData[3][4] = "Hacker";
contractData[4][1] = false;
contractData[4][2] = 120;
contractData[4][3] = 10;
contractData[4][4] = "Stealth";
contractData[5][1] = false;
contractData[5][2] = 200;
contractData[5][3] = 10;
contractData[5][4] = "Hostage Control";
contractData[6][1] = false;
contractData[6][2] = 300;
contractData[6][3] = 20;
contractData[6][4] = "Surveillance";
contractData[7][1] = false;
contractData[7][2] = 500;
contractData[7][3] = 30;
contractData[7][4] = "Decoy";
contractData[8][1] = false;
contractData[8][2] = 700;
contractData[8][3] = 50;
contractData[8][4] = "Planning";
trace(contractData[1][2]);
upgradeData[1][1] = false;
upgradeData[1][2] = 5000;
upgradeData[1][3] = "Engine 1";
upgradeData[1][4] = "engineLevel";
upgradeData[1][5] = 1;
upgradeData[2][1] = false;
upgradeData[2][2] = 15000;
upgradeData[2][3] = "Engine 2";
upgradeData[2][4] = "engineLevel";
upgradeData[2][5] = 2;
upgradeData[3][1] = false;
upgradeData[3][2] = 30000;
upgradeData[3][3] = "Engine 3";
upgradeData[3][4] = "engineLevel";
upgradeData[3][5] = 3;
upgradeData[4][1] = false;
upgradeData[4][2] = 60000;
upgradeData[4][3] = "Engine 4";
upgradeData[4][4] = "engineLevel";
upgradeData[4][5] = 4;
upgradeData[5][1] = false;
upgradeData[5][2] = 120000 /* 0x01D4C0 */;
upgradeData[5][3] = "Engine 5";
upgradeData[5][4] = "engineLevel";
upgradeData[5][5] = 5;
upgradeData[6][1] = false;
upgradeData[6][2] = 240000 /* 0x03A980 */;
upgradeData[6][3] = "Engine 6";
upgradeData[6][4] = "engineLevel";
upgradeData[6][5] = 6;
upgradeData[7][1] = false;
upgradeData[7][2] = 5000;
upgradeData[7][3] = "Armour 1";
upgradeData[7][4] = "armourLevel";
upgradeData[7][5] = 1;
upgradeData[8][1] = false;
upgradeData[8][2] = 15000;
upgradeData[8][3] = "Armour 2";
upgradeData[8][4] = "armourLevel";
upgradeData[8][5] = 2;
upgradeData[9][1] = false;
upgradeData[9][2] = 35000;
upgradeData[9][3] = "Armour 3";
upgradeData[9][4] = "armourLevel";
upgradeData[9][5] = 3;
upgradeData[10][1] = false;
upgradeData[10][2] = 75000 /* 0x0124F8 */;
upgradeData[10][3] = "Armour 4";
upgradeData[10][4] = "armourLevel";
upgradeData[10][5] = 4;
upgradeData[11][1] = false;
upgradeData[11][2] = 150000 /* 0x0249F0 */;
upgradeData[11][3] = "Armour 5";
upgradeData[11][4] = "armourLevel";
upgradeData[11][5] = 5;
upgradeData[12][1] = false;
upgradeData[12][2] = 300000 /* 0x0493E0 */;
upgradeData[12][3] = "Armour 6";
upgradeData[12][4] = "armourLevel";
upgradeData[12][5] = 6;
upgradeData[13][1] = false;
upgradeData[13][2] = 10000;
upgradeData[13][3] = "Oil Slicks";
upgradeData[13][4] = "weaponLevel";
upgradeData[13][5] = 1;
upgradeData[14][1] = false;
upgradeData[14][2] = 150000 /* 0x0249F0 */;
upgradeData[14][3] = "Slammer";
upgradeData[14][4] = "weaponLevel";
upgradeData[14][5] = 2;
upgradeData[15][1] = false;
upgradeData[15][2] = 75000 /* 0x0124F8 */;
upgradeData[15][3] = "Mines";
upgradeData[15][4] = "weaponLevel";
upgradeData[15][5] = 3;
upgradeData[16][1] = false;
upgradeData[16][2] = 400000 /* 0x061A80 */;
upgradeData[16][3] = "Auto Guns";
upgradeData[16][4] = "weaponLevel";
upgradeData[16][5] = 4;
upgradeData[17][1] = false;
upgradeData[17][2] = 1000000 /* 0x0F4240 */;
upgradeData[17][3] = "Missiles";
upgradeData[17][4] = "weaponLevel";
upgradeData[17][5] = 5;
upgradeData[18][1] = false;
upgradeData[18][2] = 600000 /* 0x0927C0 */;
upgradeData[18][3] = "Mega Mines";
upgradeData[18][4] = "weaponLevel";
upgradeData[18][5] = 6;
engineLevel = 1;
armourLevel = 1;
weaponLevel = 1;
engineLevelMax = 1;
armourLevelMax = 1;
weaponLevelMax = 1;
playerMaxSpeed = 45;
playerAccel = 0.5;
playerMaxLife = 99900 /* 0x01863C */;
playerMaxTurnSpeed = 3.5;
playerMass = 40;
Number.prototype.commaFormat = function () {
n = this.toString();
insPTR = 1;
if (n.indexOf(".") == -1) {
t = "";
n = n.split("");
} else {
t = n.substr(n.indexOf("."), n.length);
n = n.substr(0, n.indexOf(".")).split("");
}
for (ptr in n) {
t = n[ptr] + t;
if ((insPTR++) == 3) {
insPTR = 1;
t = (((isNaN(n[0]) && (ptr > 1)) || ((!isNaN(n[0])) && (ptr >= 1))) ? ("," + t) : (t));
}
}
return(t);
};
loadData();
currentGangLevel = 0;
i = 1;
while (i <= 8) {
if (respect > contractData[i][2]) {
contractData[i][1] = true;
currentGangLevel = currentGangLevel + contractData[i][3];
}
i = i + 1;
}
i = 1;
while (i <= 6) {
if ((engineLevelMax - 1) >= upgradeData[i][5]) {
upgradeData[i][1] = true;
}
if ((armourLevelMax - 1) >= upgradeData[i + 6][5]) {
upgradeData[i + 6][1] = true;
}
if ((weaponLevelMax - 1) >= upgradeData[i + 12][5]) {
upgradeData[i + 12][1] = true;
}
i = i + 1;
}
updateMissionData();
System.security.allowDomain("shockwave.com", "intranet.shockwave.com", "gameblast.shockwave.com", "www.shockwave.com", "dev.shockwave.com", "stage.shockwave.com");
_level0.swHighScoreObject = new Object();
_level0.swHighScoreObject.showTab = "view";
_level0.swHighScoreObject.gameId = "AG_TheHeist";
_level0.swHighScoreObject.gameTitle = "The Heist";
_level0.swHighScoreObject.screenWidth = 600;
_level0.swHighScoreObject.screenHeight = 500;
_level0.swHighScoreObject.scoreDescriptor = "credits";
_level0.swHighScoreObject.numPlayers = 1;
_level0.swHighScoreObject.player1Score = 0;
_level0.swHighScoreObject.player2Score = 0;
_level0.swHighScoreObject.player3Score = 0;
_level0.swHighScoreObject.player4Score = 0;
_level0.HSHubURL = "http://www.shockwave.com/content/highscores/scorez-2002.swf";
onEnterFrame = function () {
};
Instance of Symbol 321 MovieClip in Frame 56
on (press) {
_root.play();
}
Frame 80
Mouse.show();
_x = 0;
_y = 0;
hud._x = 0;
hud._y = 0;
removeMovieClip(hud);
play();
theBase.gotoAndStop(1);
theBase.door.content.gotoAndStop(1);
theBase.door.gotoAndPlay(2);
theBase.door.play();
Frame 140
stop();
enableBaseMove = true;
theBase.gotoAndStop(2);
theBase.door.content.gotoAndStop(1);
if (updateMission == true) {
missionSelected = missionProgress;
updateMission = false;
}
updateMissionData();
checkContacts();
saveData();
Frame 141
enableBaseMove = false;
theBase.gotoAndStop(1);
Frame 195
updateCarStats();
updateMissionData();
gotoAndPlay ("mission");
Frame 205
Mouse.show();
_x = 0;
_y = 0;
hud._x = 0;
hud._y = 0;
theBase.door.content.gotoAndStop(2);
removeMovieClip(hud);
_quality = "HIGH";
if (_root.gameQuit == true) {
gotoAndPlay (80);
} else {
if (missionSelected == missionProgress) {
if (missionProgress < 11) {
missionProgress = missionProgress + 1;
justUpdated = true;
}
if (missionProgress < 11) {
missionSelected = missionProgress;
updateMission = true;
}
}
_root.respect = _root.respect + Math.round(_root.endGold / 2000);
if (_root.respect > 999) {
_root.respect = 999;
}
_level0.swHighScoreObject.player1Score = _root.endGold;
}
saveData();
if ((justUpdated == true) and (missionProgress == 11)) {
gotoAndPlay ("endGame");
}
justUpdated = false;
play();
Frame 235
stop();
Frame 236
theBase.door.gotoAndPlay(101);
Frame 285
gotoAndStop (140);
Frame 286
var credits = _root.reward;
shiny.intro.gotoAndStop(2);
mission.button_text.text = "Mission " + missionSelected;
var timer = 0;
var b = 0;
onEnterFrame = function () {
trace(timer);
if (timer > 0) {
stop();
timer = timer - 1;
} else {
play();
}
show_bonus.credits.text = "+ " + credits;
};
Frame 295
stop();
timer = 30;
Frame 315
stop();
timer = 60;
van.play();
theBonus = Math.round(((_root.currentGangLevel - missionSelected) * 500) + random(100));
if (theBonus < 0) {
theBonus = 5 + random(50);
}
bonus_add.anim.credits.text = "+ " + theBonus;
bonus.play();
onEnterFrame = function () {
trace(timer);
if (timer > 0) {
stop();
timer = timer - 1;
} else {
play();
}
if (timer == 35) {
van.play();
}
if (bonus_add._currentframe == 1) {
bonus_add.play();
}
if (timer == 15) {
bonus.play();
}
show_bonus.credits.text = "+ " + credits;
};
Frame 326
ready.button_text.text = "Get Ready!";
Frame 385
_root.reward = credits;
gotoAndStop ("game");
Frame 386
function showBonus(target, amount) {
trace(amount);
theBonus = theBonus + amount;
bonusTimer = 35;
}
function doBonusShow() {
if (gameTimer <= 0) {
hud.totalGold = hud.totalGold + theBonus;
theBonus = 0;
} else if (bonusTimer > 0) {
if (hud.showBonus._currentframe == 1) {
hud.showBonus.play();
}
hud.showBonus.theBonus.bonus = "+" + theBonus;
bonusTimer = bonusTimer - 1;
} else {
if (hud.showBonus._currentframe == 5) {
hud.showBonus.play();
}
if (hud.showBonus._currentframe == 1) {
hud.showBonus.theBonus.bonus = "+" + theBonus;
if (theBonus > 0) {
hud.totalGold = hud.totalGold + theBonus;
}
theBonus = 0;
}
}
}
function setMyShadow(target) {
if (_root.graphicsDetail == 1) {
shadDist = (target.zpos / 7) + 2;
var _local3 = new flash.filters.DropShadowFilter(shadDist, 45, 0, 1, 7 + (shadDist / 2), 7 + (shadDist / 2), 0.6 - (shadDist / 40), 1, false, false, false);
target.filters = [_local3];
} else {
target.filters = null;
}
}
function doQuality() {
if (_quality == "LOW") {
_quality = "HIGH";
} else {
_quality = "LOW";
}
storedQuality = _quality;
}
stop();
_root.gameQuit = false;
policeClose = 0;
carsBlownUp = 0;
copsDead = 0;
jumpsDone = 0;
endGold = 0;
goldLost = 0;
colatDamage = 0;
_root.showingTip = false;
_root.missionWon = false;
id = 4;
carId = 0;
carsAlive = 0;
maxCars = 12;
score = 0;
nextCar = false;
distTrav = 0;
messages = 0;
targetsLeft = 3;
targetsStored = targetsLeft;
targetTime = 20;
missionCompleteShown = false;
currentLife = 0;
deathRattle = 0;
timerL = 0;
lifeStored = 0;
currentScore = 0;
distToGo = 10;
fps = 25;
var timeinit = new Date();
var lasttime = timeinit.getMilliseconds();
Mouse.hide();
hud._x = (-_x) + 300;
hud._y = 250;
if (storedQuality != undefined) {
_quality = storedQuality;
} else {
storedQuality = "HIGH";
}
theBonus = 0;
bonusTimer = 0;
gameTimer = Math.round(3000 - (missionSelected * 5));
tutTimer = 0;
onEnterFrame = function () {
if ((tutorialDone != true) and (_root.missionProgress == 1)) {
tutTimer = tutTimer + (1 * game.timeVar);
if (Math.floor(tutTimer) == 65) {
_root.showingTip = true;
_root.hud.tutTipsAni.target = 2;
_root.hud.tutTipsAni.play();
}
if (Math.floor(tutTimer) == 300) {
_root.showingTip = true;
_root.hud.tutTipsAni.target = 1;
_root.hud.tutTipsAni.play();
}
if (Math.floor(tutTimer) == 600) {
_root.showingTip = true;
_root.hud.tutTime.play();
}
if (Math.floor(tutTimer) == 800) {
_root.showingTip = true;
_root.hud.tutTipsAni.target = 3;
_root.hud.tutTipsAni.play();
}
if (Math.floor(tutTimer) == 1000) {
_root.showingTip = true;
_root.hud.tutTipsAni.target = 4;
_root.hud.tutTipsAni.play();
}
if (Math.floor(tutTimer) == 2000) {
tutorialDone = true;
}
}
if (_root.game.paused != true) {
gameTimer = gameTimer - (1 * game.timeVar);
if (gameTimer < 0) {
gameTimer = 0;
}
}
doBonusShow();
if (Key.isDown(81)) {
if (qdown == false) {
doQuality();
}
qdown = true;
} else {
qdown = false;
}
if (game.player.life < 1) {
}
if (deathRattle > 70) {
}
if (distTrav >= distToGo) {
gotoAndStop ("endOfLevel");
}
if (targetsStored > targetsLeft) {
}
if ((targetsLeft == 0) and (targetTime > 0)) {
targetTime = targetTime - 1;
}
if (id > 49) {
id = 4;
}
if (game.paused != true) {
var _local3 = (275 - (game._x + game.player._x)) * (game._xscale / 100);
_x = (_x - ((_x - _local3) / 5));
hud._x = (-_x) + 300;
hud._y = 250;
if (currentDepth > 50) {
currentDepth = 0;
}
xscaler = (1 / (100 / _root.game._xscale)) + _root.game._x;
yscaler = (1 / (100 / _root.game._yscale)) + _root.game._y;
}
i = _root.maxCars;
while (i > 0) {
if (_root.game.carHolder["car" + i]._x == undefined) {
_root.carId = i - 1;
}
i = i - 1;
}
timerL = timerL + 1;
if (timerL == 2) {
timerL = 0;
} else {
lifeStored = game.player.life;
}
watchMedals();
var _local2 = new Date();
timepassed = (((_local2.getMilliseconds() - lasttime) >= 0) ? (_local2.getMilliseconds() - lasttime) : (1000 + (_local2.getMilliseconds() - lasttime)));
fps = Math.round((10000 / timepassed) / 10);
lasttime = _local2.getMilliseconds();
if (fps > 100) {
fps = 100;
}
mousePointer._x = _xmouse;
mousePointer._y = _ymouse;
mousePointer._rotation = mousePointer._rotation + 3;
};
Instance of Symbol 1028 MovieClip "hud" in Frame 386
onClipEvent (load) {
timer = 0;
timesLogged = 0;
totalSpeed = 0;
currentScoreType = false;
totalGold = _root.reward;
trafficSound = new Sound(this);
trafficSound.attachSound("traffic");
trafficSound.setVolume(35);
trafficSound.start(0, 4);
trafficSound.setVolume(35);
}
onClipEvent (enterFrame) {
showTime = _root.calcTimeReturn(_root.gameTimer);
divNum = _root.armourLevel / 2;
if (divNum < 1) {
divNum = 1;
}
if ((_root.game.player.life < (storedLife - 1)) and (totalGold > 0)) {
deductAmount = Math.round((storedLife - _root.game.player.life) * ((_root.reward / 500) / (_root.armourLevel / 1.5)));
if (deductAmount > 200) {
totalGold = totalGold - deductAmount;
}
_root.game.effects2.id = _root.game.effects2.id + 1;
duplicateMovieClip (_root.game.effects2.goldBars, "spark" + _root.game.effects2.id, _root.game.effects2.id + 1);
_root.game.effects2["spark" + _root.game.effects2.id]._x = _root.game.player._x;
_root.game.effects2["spark" + _root.game.effects2.id]._y = _root.game.player._y + (_root.game.player._height / 2);
if (totalGold < 0) {
totalGold = 0;
}
}
_root.currentGold = totalGold;
storedLife = _root.game.player.life;
if (_root.game.paused != true) {
van._x = van._x + ((_root.game.player.yspeed / (_root.getAwayDist * 1.4)) * _root.game.timeVar);
if (van._x >= 150) {
fader.play();
if (doneMoney != true) {
_root.missionWon = true;
doneMoney = true;
}
}
}
showCurrentScore = Math.round((_root.distToGo - _root.distTrav) * 100) / 100;
displayText = _root.game._x;
_root.distTrav = _root.distTrav + ((_root.game.player.yspeed / 5000) * _root.game.timeVar);
var speed = Math.round(_root.game.player.yspeed * 3);
timer = timer + 1;
if (timer > 1) {
totalSpeed = totalSpeed + speed;
timesLogged = timesLogged + 1;
if (Math.round(totalSpeed / timesLogged) != 0) {
_root.averageSpeed2 = Math.round(totalSpeed / timesLogged);
}
timer = 0;
}
_root.currentLife = _root.game.player.life;
currentScore = _root.currentScore;
_root.averageSpeed = averageSpeed;
}
Frame 387
_x = 0;
_y = 0;
Frame 388
gotoAndStop (386);
Frame 389
trails.cacheAsBitmap = true;
tf.cacheAsBitmap = true;
tf.setMask(trails);
Frame 1353
stop();
Symbol 11 MovieClip Frame 10
stop();
Symbol 11 MovieClip Frame 20
stop();
_root.gotoAndStop(target);
Symbol 180 MovieClip Frame 134
_root.play();
Symbol 199 MovieClip Frame 1
go_jts.onPress = function () {
getURL ("http://www.johnnytwoshoes.com/", "_blank");
};
Symbol 199 MovieClip Frame 100
stop();
Symbol 216 MovieClip Frame 8
stop();
Symbol 217 MovieClip Frame 1
stop();
Symbol 226 MovieClip Frame 1
stop();
onEnterFrame = function () {
if ((_root.newContacts >= 1) and (_root.hudMenu._currentframe == 1)) {
if (_currentframe == 1) {
trace("contacts" + _root.newContacts);
play();
}
} else {
gotoAndStop (1);
}
};
Symbol 226 MovieClip Frame 8
stop();
Symbol 232 MovieClip Frame 8
stop();
Symbol 233 MovieClip Frame 1
stop();
_root.checkContacts();
Symbol 233 MovieClip Frame 2
stop();
_root.checkContacts();
Symbol 241 MovieClip Frame 8
stop();
Symbol 242 MovieClip Frame 1
stop();
Symbol 243 MovieClip Frame 1
onEnterFrame = function () {
if (_root.enableBaseMove == false) {
_x = (_x - ((_x - 0) / 10));
} else if (_root.pauseInside != true) {
_x = (_x - ((_x - (-_parent._xmouse)) / 10));
} else {
if (_root.targetX > 0) {
targetX = _root.targetX - 100;
} else {
targetX = _root.targetX + 100;
}
_x = (_x - ((_x - (-targetX)) / 5));
}
if (_x > 136.4) {
_x = 136.4;
}
if (_x < -136.4) {
_x = -136.4;
}
};
Instance of Symbol 217 MovieClip in Symbol 243 MovieClip Frame 1
on (rollOver) {
if (_root.enableBaseMove != false) {
gotoAndStop (2);
}
}
on (rollOut, dragOut) {
gotoAndStop (1);
}
on (press) {
_root.targetX = _x;
_root.hudMenu.windowTarget = 3;
_root.hudMenu.gotoAndStop(2);
}
Instance of Symbol 233 MovieClip in Symbol 243 MovieClip Frame 1
on (rollOver) {
if (_root.enableBaseMove != false) {
gotoAndStop (2);
}
}
on (rollOut, dragOut) {
gotoAndStop (1);
}
on (press) {
_root.targetX = _x;
_root.hudMenu.windowTarget = 2;
_root.hudMenu.gotoAndStop(2);
}
Instance of Symbol 242 MovieClip in Symbol 243 MovieClip Frame 1
on (rollOver) {
if (_root.enableBaseMove != false) {
gotoAndStop (2);
}
}
on (rollOut, dragOut) {
gotoAndStop (1);
}
on (press) {
_root.targetX = _x;
_root.hudMenu.windowTarget = 1;
_root.hudMenu.gotoAndStop(2);
}
Symbol 287 Button
on (release) {
_root.swHighScoreObject.showTab = "submit";
docount = true;
loadMovieNum (_root.HSHubURL, 2);
}
Symbol 289 Button
on (release) {
_root.play();
}
Symbol 290 MovieClip Frame 1
creditsWon = "+" + _root.endGold.commaFormat();
if (_root.goldLost < 0) {
_root.goldLost = 0;
}
creditsLost = _root.goldLost.commaFormat() + " Credits lost";
copKills = _root.copsDead.commaFormat() + " Police";
civKills = _root.carsBlownUp.commaFormat() + " Civilians";
averageSpeed = Math.round(_root.averageSpeed2 / 1.3) + "Mph Average";
jumps = _root.jumpsDone + " Jumps";
colatDam = _root.colatDamage.commaFormat() + " Collateral";
respect = Math.round(_root.endGold / 2000);
respectWon = "+" + respect;
Symbol 291 MovieClip Frame 1
stop();
Symbol 295 MovieClip Frame 1
stop();
Symbol 295 MovieClip Frame 35
stop();
Symbol 295 MovieClip Frame 124
gotoAndStop (35);
Symbol 296 MovieClip Frame 1
stop();
Symbol 319 MovieClip Frame 60
stop();
Symbol 325 Button
on (press) {
getURL ("http://www.addictinggames.com", "_blank");
}
Symbol 331 Button
on (release) {
getURL ("http://www.johnnytwoshoes.com/", "_blank");
}
Symbol 338 MovieClip Frame 1
stop();
Symbol 338 MovieClip Frame 20
_root.gotoAndStop("game");
Symbol 338 MovieClip Frame 30
play();
Symbol 338 MovieClip Frame 51
stop();
Symbol 350 MovieClip Frame 8
stop();
Symbol 351 MovieClip Frame 1
stop();
onRollOver = function () {
gotoAndStop (2);
};
onRollOut = function () {
gotoAndStop (1);
};
onDragOut = function () {
gotoAndStop (1);
};
Symbol 361 MovieClip Frame 8
stop();
Symbol 362 MovieClip Frame 1
stop();
onRollOver = function () {
gotoAndStop (2);
};
onRollOut = function () {
gotoAndStop (1);
};
onDragOut = function () {
gotoAndStop (1);
};
Symbol 373 MovieClip Frame 8
stop();
Symbol 374 MovieClip Frame 1
stop();
onRollOver = function () {
gotoAndStop (2);
};
onRollOut = function () {
gotoAndStop (1);
};
onDragOut = function () {
gotoAndStop (1);
};
Symbol 474 MovieClip Frame 1
function updateData() {
reward = "+" + _root.missionData[_root.missionSelected][3].commaFormat();
timeLevel = _root.calcTimeReturn(Math.round(3000 - (_root.missionSelected * 5)));
}
stop();
updateData();
Symbol 474 MovieClip Frame 2
updateData();
Symbol 474 MovieClip Frame 3
updateData();
Symbol 474 MovieClip Frame 4
updateData();
Symbol 474 MovieClip Frame 5
updateData();
Symbol 474 MovieClip Frame 6
updateData();
Symbol 474 MovieClip Frame 7
updateData();
Symbol 474 MovieClip Frame 8
updateData();
Symbol 474 MovieClip Frame 9
updateData();
Symbol 474 MovieClip Frame 10
updateData();
Symbol 476 MovieClip Frame 1
missionContent.gotoAndStop(_root.missionSelected);
stop();
Symbol 476 MovieClip Frame 6
missionContent.gotoAndStop(_root.missionSelected);
Symbol 476 MovieClip Frame 11
gotoAndStop (1);
Symbol 476 MovieClip Frame 16
missionContent.gotoAndStop(_root.missionSelected);
Symbol 476 MovieClip Frame 21
gotoAndStop (1);
Symbol 484 Button
on (release, keyPress "<Enter>") {
if (_root.missionProgress >= _root.missionSelected) {
stopAllSounds();
_root.play();
}
}
Symbol 490 Button
on (release) {
_level0.swHighScoreObject.player1Score = 0;
_root.swHighScoreObject.showTab = "view";
docount = true;
loadMovieNum (_root.HSHubURL, 2);
}
Symbol 494 Button
on (release, keyPress "<Right>") {
if ((_root.missionSelected < _root.missionProgress) and (_root.missionSelected <= 9)) {
_root.missionSelected = _root.missionSelected + 1;
missionContentAni.gotoAndPlay("next");
_root.updateMissionData();
}
}
Symbol 495 Button
on (release, keyPress "<Left>") {
if (_root.missionSelected > 1) {
_root.missionSelected = _root.missionSelected - 1;
missionContentAni.gotoAndPlay("prev");
_root.updateMissionData();
}
}
Symbol 501 Button
on (release, keyPress "<Escape>") {
_parent.play();
}
Symbol 513 MovieClip Frame 1
stop();
Symbol 513 MovieClip Frame 2
theText = ("Specialist \"" + _root.contractData[slot][4]) + "\" Required to Play";
Instance of Symbol 503 MovieClip in Symbol 513 MovieClip Frame 2
onClipEvent (load) {
useHandCursor = false;
}
on (release) {
}
Symbol 528 MovieClip Frame 1
onEnterFrame = function () {
if (_parent.money > _root.respect) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 535 MovieClip Frame 1
onEnterFrame = function () {
if (_parent.money > _root.respect) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 542 MovieClip Frame 1
onEnterFrame = function () {
if (_parent.money > _root.respect) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 549 MovieClip Frame 1
onEnterFrame = function () {
if (_parent.money > _root.respect) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 557 MovieClip Frame 1
onEnterFrame = function () {
if (_parent.money > _root.respect) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 565 MovieClip Frame 1
onEnterFrame = function () {
if (_parent.money > _root.respect) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 574 MovieClip Frame 1
onEnterFrame = function () {
if (_parent.money > _root.respect) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 580 MovieClip Frame 1
onEnterFrame = function () {
if (_parent.money > _root.respect) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 581 MovieClip Frame 1
function updateData() {
money = _root.contractData[_root.contactSelected][2].commaFormat();
gangLevel = "+" + _root.contractData[_root.contactSelected][3];
}
updateData();
Symbol 581 MovieClip Frame 2
updateData();
Symbol 581 MovieClip Frame 3
updateData();
Symbol 581 MovieClip Frame 4
updateData();
Symbol 581 MovieClip Frame 5
updateData();
Symbol 581 MovieClip Frame 6
updateData();
Symbol 581 MovieClip Frame 7
updateData();
Symbol 581 MovieClip Frame 8
updateData();
Symbol 582 MovieClip Frame 1
contactContent.gotoAndStop(_root.contactSelected);
stop();
Symbol 582 MovieClip Frame 6
contactContent.gotoAndStop(_root.contactSelected);
Symbol 582 MovieClip Frame 11
gotoAndStop (1);
Symbol 582 MovieClip Frame 16
contactContent.gotoAndStop(_root.contactSelected);
Symbol 582 MovieClip Frame 21
gotoAndStop (1);
Symbol 586 Button
on (release, keyPress "<Right>") {
if (_root.contactSelected < 8) {
_root.contactSelected = _root.contactSelected + 1;
contactContentAni.gotoAndPlay("next");
} else {
_root.contactSelected = 1;
contactContentAni.gotoAndPlay("next");
}
}
Symbol 587 Button
on (release, keyPress "<Left>") {
if (_root.contactSelected > 1) {
_root.contactSelected = _root.contactSelected - 1;
contactContentAni.gotoAndPlay("prev");
} else {
_root.contactSelected = 8;
contactContentAni.gotoAndPlay("prev");
}
}
Symbol 595 Button
on (release, keyPress "<Enter>") {
if (_root.respect >= _root.contractData[_root.contactSelected][2]) {
_root.contractData[_root.contactSelected][1] = true;
_root.currentGangLevel = _root.currentGangLevel + _root.contractData[_root.contactSelected][3];
}
}
Symbol 600 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.contractData[_root.contactSelected][1] != true) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
};
Symbol 614 MovieClip Frame 1
stop();
Symbol 616 MovieClip Frame 1
function updateStats() {
if (storedSelected != _root.upgradeSelected) {
storedSelected = _root.upgradeSelected;
myId = myIdPart + ((_root.upgradeSelected - 1) * 6);
partName = _root.upgradeData[myId][3];
partPrice = _root.upgradeData[myId][2].commaFormat();
if (_root.upgradeData[myId][1] == true) {
bought = true;
gotoAndStop (3);
} else {
bought = false;
gotoAndStop (1);
}
}
}
stop();
_alpha = 50;
if (myIdPart == undefined) {
_parent.partId = _parent.partId + 1;
myIdPart = _parent.partId;
}
onEnterFrame = function () {
if (_root[_root.upgradeData[myId][4] + "Max"] >= (myId - ((_root.upgradeSelected - 1) * 6))) {
}
if (_parent._currentframe == _root.upgradeSelected) {
updateStats();
}
if ((((_root.money >= _root.upgradeData[myId][2]) and (_root[_root.upgradeData[myId][4] + "Max"] >= (myId - ((_root.upgradeSelected - 1) * 6)))) || (_root.upgradeData[myId][1] == true)) || ((_root.money >= _root.upgradeData[myId][2]) and (_root.upgradeSelected > 2))) {
_alpha = 100;
} else {
_alpha = 50;
}
if (_root[_root.upgradeData[myId][4]] == ((myId - ((_root.upgradeSelected - 1) * 6)) + 1)) {
tick.gotoAndStop(2);
} else {
tick.gotoAndStop(1);
}
};
updateStats();
onRollOver = function () {
if ((bought != true) and (_alpha >= 100)) {
gotoAndStop (2);
}
if (bought == true) {
gotoAndStop (4);
}
};
onRollOut = function () {
if (bought != true) {
gotoAndStop (1);
} else {
gotoAndStop (3);
}
};
onDragOut = function () {
if (bought != true) {
gotoAndStop (1);
} else {
gotoAndStop (3);
}
};
onRelease = function () {
if (((_root.money >= _root.upgradeData[myId][2]) and (_alpha >= 100)) || ((_root.upgradeData[myId][1] == true) and (_alpha >= 100))) {
if (_root.upgradeData[myId][1] != true) {
_root.upgradeData[myId][1] = true;
bought = true;
_root.money = _root.money - _root.upgradeData[myId][2];
_root[_root.upgradeData[myId][4] + "Max"] = (myId - ((_root.upgradeSelected - 1) * 6)) + 1;
}
_root[_root.upgradeData[myId][4]] = (myId - ((_root.upgradeSelected - 1) * 6)) + 1;
gotoAndStop (3);
drillSound = new Sound(this);
drillSound.attachSound("drill");
drillSound.setVolume(50);
drillSound.start(0, 0);
}
};
if (partName == undefined) {
gotoAndStop (6);
}
Symbol 643 MovieClip Frame 1
partId = 0;
stop();
Symbol 643 MovieClip Frame 2
partId = 0;
Symbol 643 MovieClip Frame 3
partId = 0;
Symbol 644 MovieClip Frame 1
upgradeContent.gotoAndStop(_root.upgradeSelected);
stop();
Symbol 644 MovieClip Frame 6
upgradeContent.gotoAndStop(_root.upgradeSelected);
Symbol 644 MovieClip Frame 11
gotoAndStop (1);
Symbol 644 MovieClip Frame 16
upgradeContent.gotoAndStop(_root.upgradeSelected);
Symbol 644 MovieClip Frame 21
gotoAndStop (1);
Symbol 648 Button
on (release, keyPress "<Right>") {
if (_root.upgradeSelected < 3) {
_root.upgradeSelected = _root.upgradeSelected + 1;
upgradeContentAni.gotoAndPlay("next");
} else {
_root.upgradeSelected = 1;
upgradeContentAni.gotoAndPlay("next");
}
}
Symbol 649 Button
on (release, keyPress "<Left>") {
if (_root.upgradeSelected > 1) {
_root.upgradeSelected = _root.upgradeSelected - 1;
upgradeContentAni.gotoAndPlay("prev");
} else {
_root.upgradeSelected = 3;
upgradeContentAni.gotoAndPlay("prev");
}
}
Symbol 650 MovieClip Frame 1
stop();
Instance of Symbol 513 MovieClip "specialistWindow" in Symbol 650 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.missionData[_root.missionSelected][7] != undefined) {
slot = _root.missionData[_root.missionSelected][7];
if (_root.contractData[slot][1] != true) {
gotoAndStop (2);
showMe = true;
} else {
showMe = false;
}
} else {
showMe = false;
}
if (showMe == true) {
if (_alpha < 100) {
_alpha = (_alpha + 20);
}
} else if (_alpha > 0) {
_alpha = (_alpha - 20);
} else {
gotoAndStop (1);
}
}
Symbol 651 MovieClip Frame 1
windowType.gotoAndStop(_root.hudMenu.windowTarget);
Symbol 651 MovieClip Frame 10
stop();
Symbol 651 MovieClip Frame 20
_parent.gotoAndStop(1);
Symbol 652 MovieClip Frame 1
_root.pauseInside = false;
stop();
money = _root.money.commaFormat();
gangLevel = _root.currentGangLevel;
respect = _root.respect;
onEnterFrame = function () {
if (storedNum != _root.money) {
money = _root.money.commaFormat();
storedNum = _root.money;
}
gangLevel = _root.currentGangLevel;
respect = _root.respect;
};
Symbol 652 MovieClip Frame 2
_root.pauseInside = true;
money = _root.money.commaFormat();
gangLevel = _root.currentGangLevel;
if (_root.targetX > 0) {
theWindow._x = -65;
} else {
theWindow._x = 55;
}
Instance of Symbol 377 MovieClip in Symbol 652 MovieClip Frame 2
onClipEvent (load) {
this.useHandCursor = false;
}
on (release) {
}
Symbol 656 MovieClip Frame 1
stop();
Symbol 662 MovieClip Frame 1
stop();
Symbol 662 MovieClip Frame 5
stop();
Symbol 662 MovieClip Frame 6
credits = _root.credits;
Symbol 662 MovieClip Frame 45
stop();
Symbol 671 MovieClip Frame 1
stop();
Symbol 671 MovieClip Frame 10
stop();
Symbol 671 MovieClip Frame 20
stop();
Symbol 674 MovieClip Frame 1
stop();
Symbol 678 MovieClip Frame 1
stop();
Symbol 678 MovieClip Frame 26
stop();
_root.credits = _root.credits + _root.theBonus;
Symbol 684 MovieClip Frame 1
scale = 100 + ((_y - 340) / 3);
speed = 8;
_xscale = scale;
_yscale = scale;
onEnterFrame = function () {
_x = (_x + (speed * (scale / 50)));
};
Symbol 700 MovieClip Frame 1
stop();
gotoAndStop(_root.enviroment);
Symbol 703 MovieClip Frame 1
if (_root.nightMode == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
Instance of Symbol 724 MovieClip in Symbol 726 MovieClip Frame 1
onClipEvent (load) {
origY = _y;
}
onClipEvent (enterFrame) {
_y = (_y + (_root.game.player.yspeed * _root.game.timeVar));
if (_y > (origY + 1275)) {
_y = origY;
}
}
Instance of Symbol 724 MovieClip in Symbol 726 MovieClip Frame 1
onClipEvent (load) {
origY = _y;
}
onClipEvent (enterFrame) {
_y = (_y + (_root.game.player.yspeed * _root.game.timeVar));
if (_y > (origY + 1275)) {
_y = origY;
}
}
Symbol 734 MovieClip Frame 1
stop();
Instance of Symbol 734 MovieClip in Symbol 736 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + (_root.game.player.yspeed * _root.game.timeVar));
if (_y > 700) {
_y = -2500;
gotoAndStop(random(1 + _totalframes));
}
}
Instance of Symbol 734 MovieClip in Symbol 736 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + (_root.game.player.yspeed * _root.game.timeVar));
if (_y > 700) {
_y = -2500;
gotoAndStop(random(1 + _totalframes));
}
}
Instance of Symbol 734 MovieClip in Symbol 736 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + (_root.game.player.yspeed * _root.game.timeVar));
if (_y > 700) {
_y = -2500;
gotoAndStop(random(1 + _totalframes));
}
}
Instance of Symbol 734 MovieClip in Symbol 736 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + (_root.game.player.yspeed * _root.game.timeVar));
if (_y > 700) {
_y = -2500;
gotoAndStop(random(1 + _totalframes));
}
}
Instance of Symbol 734 MovieClip in Symbol 736 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + (_root.game.player.yspeed * _root.game.timeVar));
if (_y > 700) {
_y = -2500;
gotoAndStop(random(1 + _totalframes));
}
}
Instance of Symbol 734 MovieClip in Symbol 736 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + (_root.game.player.yspeed * _root.game.timeVar));
if (_y > 700) {
_y = -2500;
gotoAndStop(random(1 + _totalframes));
}
}
Instance of Symbol 734 MovieClip in Symbol 736 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + (_root.game.player.yspeed * _root.game.timeVar));
if (_y > 700) {
_y = -2500;
gotoAndStop(random(1 + _totalframes));
}
}
Instance of Symbol 734 MovieClip in Symbol 736 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + (_root.game.player.yspeed * _root.game.timeVar));
if (_y > 700) {
_y = -2500;
gotoAndStop(random(1 + _totalframes));
}
}
Instance of Symbol 734 MovieClip in Symbol 736 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + (_root.game.player.yspeed * _root.game.timeVar));
if (_y > 700) {
_y = -2500;
gotoAndStop(random(1 + _totalframes));
}
}
Instance of Symbol 734 MovieClip in Symbol 736 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + (_root.game.player.yspeed * _root.game.timeVar));
if (_y > 700) {
_y = -2500;
gotoAndStop(random(1 + _totalframes));
}
}
Instance of Symbol 734 MovieClip in Symbol 736 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + (_root.game.player.yspeed * _root.game.timeVar));
if (_y > 700) {
_y = -2500;
gotoAndStop(random(1 + _totalframes));
}
}
Instance of Symbol 734 MovieClip in Symbol 736 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + (_root.game.player.yspeed * _root.game.timeVar));
if (_y > 700) {
_y = -2500;
gotoAndStop(random(1 + _totalframes));
}
}
Symbol 740 MovieClip Frame 1
stop();
Instance of Symbol 715 MovieClip "lane1" in Symbol 740 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 35;
targetX = _x;
id = 1;
}
Instance of Symbol 715 MovieClip "lane2" in Symbol 740 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 35;
targetX = _x;
id = 1;
}
Instance of Symbol 715 MovieClip "lane3" in Symbol 740 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 35;
targetX = _x;
id = 1;
}
Instance of Symbol 715 MovieClip "lane4" in Symbol 740 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 35;
targetX = _x;
id = 1;
}
Symbol 748 MovieClip Frame 42
stop();
Symbol 750 MovieClip Frame 1
stop();
Symbol 763 MovieClip Frame 1
gotoAndStop(1 + random(_totalframes));
Symbol 769 MovieClip Frame 1
gotoAndStop(1 + random(_totalframes));
Symbol 776 MovieClip Frame 1
gotoAndStop(1 + random(_totalframes));
Symbol 782 MovieClip Frame 1
gotoAndStop(1 + random(_totalframes));
Symbol 788 MovieClip Frame 1
gotoAndStop(1 + random(_totalframes));
Symbol 796 MovieClip Frame 1
gotoAndStop(1 + random(_totalframes));
Symbol 814 MovieClip Frame 1
gotoAndStop(Math.round(1 + random((_root.distTrav / 6) + (_root.copLevel / 10))));
_parent.life = _parent.life * 1;
Symbol 814 MovieClip Frame 2
_parent.mass = _parent.mass * 2;
_parent.life = _parent.life * 1.5;
Symbol 814 MovieClip Frame 3
_parent.mass = _parent.mass * 2;
_parent.life = _parent.life * 2;
Symbol 814 MovieClip Frame 4
_parent.mass = _parent.mass * 4;
_parent.life = _parent.life * 2.5;
Symbol 814 MovieClip Frame 5
_parent.mass = _parent.mass * 2;
_parent.life = _parent.life * 3;
Symbol 815 MovieClip Frame 37
type = 1;
Symbol 815 MovieClip Frame 38
type = 2;
Symbol 815 MovieClip Frame 39
type = 3;
Instance of Symbol 815 MovieClip "car" in Symbol 816 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(1 + random(_totalframes - 4));
}
onClipEvent (enterFrame) {
_x = (_x + (10 * _root.game.timeVar));
if (_x > 1200) {
gotoAndStop(1 + random(_totalframes - 4));
_x = -1200;
}
}
Instance of Symbol 815 MovieClip "car" in Symbol 816 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(1 + random(_totalframes - 4));
}
onClipEvent (enterFrame) {
_x = (_x + (10 * _root.game.timeVar));
if (_x > 1200) {
gotoAndStop(1 + random(_totalframes - 4));
_x = -1200;
}
}
Instance of Symbol 815 MovieClip "car" in Symbol 816 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(1 + random(_totalframes - 4));
}
onClipEvent (enterFrame) {
_x = (_x + (10 * _root.game.timeVar));
if (_x > 1200) {
gotoAndStop(1 + random(_totalframes - 4));
_x = -1200;
}
}
Instance of Symbol 815 MovieClip "car" in Symbol 816 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(1 + random(_totalframes - 4));
}
onClipEvent (enterFrame) {
_x = (_x + (10 * _root.game.timeVar));
if (_x > 1200) {
gotoAndStop(1 + random(_totalframes - 4));
_x = -1200;
}
}
Instance of Symbol 815 MovieClip "car" in Symbol 816 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(1 + random(_totalframes - 4));
}
onClipEvent (enterFrame) {
_x = (_x + (10 * _root.game.timeVar));
if (_x > 1200) {
gotoAndStop(1 + random(_totalframes - 4));
_x = -1200;
}
}
Symbol 819 MovieClip Frame 1
stop();
Symbol 822 MovieClip Frame 1
stop();
Symbol 825 MovieClip Frame 1
stop();
Symbol 830 MovieClip Frame 1
stop();
Symbol 833 MovieClip Frame 1
gotoAndStop(1 + random(_totalframes));
Symbol 836 MovieClip Frame 1
stop();
Symbol 840 MovieClip Frame 1
if (_root.nightMode == true) {
gotoAndStop (2);
} else {
stop();
if (_parent._x > 0) {
gotoAndStop (3);
}
}
Symbol 843 MovieClip Frame 1
stop();
Symbol 846 MovieClip Frame 1
stop();
Symbol 847 MovieClip Frame 1
objId = 0;
grenadeId = 101;
sirenSound = new Sound(this);
sirenSound.attachSound("siren");
sirenSound.setVolume(0);
sirenSound.start(0, 99999);
sirenSound.setVolume(0);
onEnterFrame = function () {
sirenSound.setVolume(_root.policeClose * 15);
if (objId > 100) {
objId = 0;
}
if (grenadeId > 120) {
grenadeId = 101;
}
};
Instance of Symbol 819 MovieClip "cone" in Symbol 847 MovieClip Frame 1
onClipEvent (load) {
origY = _y;
origX = _x;
xspeed = 0;
yspeed = 0;
}
onClipEvent (enterFrame) {
if (_root.graphicsDetail == 1) {
if (_name != "cone") {
if (_root.game.carHolder.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (_root.game.player.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
i = 0;
while (i <= _root.maxCars) {
target = _root.game.carHolder["car" + i];
if (i == 0) {
target = _root.game.player;
}
if ((target._x != undefined) and (target.inAir != true)) {
if (target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
gotoAndStop (2);
xspeed = target.xspeed * 1.6;
yspeed = target.yspeed * -1.6;
_root.game.doFriction(target, "xspeed", 0.95);
_root.game.doFriction(target, "yspeed", 0.95);
}
}
i = i + 1;
}
}
_y = (_y + (_root.game.player.yspeed * _root.game.timeVar));
if (_y > 450) {
removeMovieClip(this);
_y = origY;
_x = origX;
gotoAndStop (1);
xspeed = 0;
yspeed = 0;
}
_root.game.doFriction(this, "xspeed", 0.97);
_root.game.doFriction(this, "yspeed", 0.97);
_rotation = (_rotation + ((xspeed + yspeed) * _root.game.timeVar));
_x = (_x + (xspeed * _root.game.timeVar));
_y = (_y + (yspeed * _root.game.timeVar));
}
}
}
Instance of Symbol 822 MovieClip "barrier" in Symbol 847 MovieClip Frame 1
onClipEvent (load) {
origY = _y;
origX = _x;
xspeed = 0;
yspeed = 0;
}
onClipEvent (enterFrame) {
if (_root.graphicsDetail == 1) {
if (_name != "barrier") {
if (_currentframe == 1) {
if (_root.game.carHolder.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (_root.game.player.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
i = 0;
while (i <= _root.maxCars) {
target = _root.game.carHolder["car" + i];
if (i == 0) {
target = _root.game.player;
}
if ((target._x != undefined) and (target.inAir != true)) {
if (target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
gotoAndStop (2);
xspeed = target.xspeed * 1.6;
yspeed = target.yspeed * -1.6;
_root.game.doFriction(target, "xspeed", 0.9);
_root.game.doFriction(target, "yspeed", 0.9);
}
}
i = i + 1;
}
}
}
_y = (_y + (_root.game.player.yspeed * _root.game.timeVar));
if (_y > 450) {
removeMovieClip(this);
_y = origY;
_x = origX;
gotoAndStop (1);
xspeed = 0;
yspeed = 0;
}
_root.game.doFriction(this, "xspeed", 0.97);
_root.game.doFriction(this, "yspeed", 0.97);
_rotation = (_rotation + ((xspeed + yspeed) * _root.game.timeVar));
_x = (_x + (xspeed * _root.game.timeVar));
_y = (_y + (yspeed * _root.game.timeVar));
}
}
}
Instance of Symbol 825 MovieClip "waterBucket" in Symbol 847 MovieClip Frame 1
onClipEvent (load) {
origY = _y;
origX = _x;
xspeed = 0;
yspeed = 0;
}
onClipEvent (enterFrame) {
if (_name != "cone") {
if (_currentframe == 1) {
if (_root.game.carHolder.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (_root.game.player.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
i = 0;
while (i <= _root.maxCars) {
target = _root.game.carHolder["car" + i];
if (i == 0) {
target = _root.game.player;
}
if ((target._x != undefined) and (target.inAir != true)) {
if (target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
gotoAndStop (2);
xspeed = target.xspeed * 1.6;
yspeed = target.yspeed * -1.6;
_root.game.doFriction(target, "xspeed", 0.9);
_root.game.doFriction(target, "yspeed", 0.9);
if (doneSplash != true) {
if (_root.graphicsDetail == 1) {
_root.game.makeSplash(6, _x + _width, _y - _height, xspeed * 0.8, yspeed * 0.8, -_width, _height);
}
doneSplash = true;
}
}
}
i = i + 1;
}
}
}
_y = (_y + (_root.game.player.yspeed * _root.game.timeVar));
if (_y > 450) {
removeMovieClip(this);
_y = origY;
_x = origX;
gotoAndStop (1);
xspeed = 0;
yspeed = 0;
}
_root.game.doFriction(this, "xspeed", 0.97);
_root.game.doFriction(this, "yspeed", 0.97);
_rotation = (_rotation + ((xspeed + yspeed) * _root.game.timeVar));
_x = (_x + (xspeed * _root.game.timeVar));
_y = (_y + (yspeed * _root.game.timeVar));
}
}
Instance of Symbol 827 MovieClip "grenade" in Symbol 847 MovieClip Frame 1
onClipEvent (load) {
timer = 0;
xspeed = 0;
yspeed = -10;
}
onClipEvent (enterFrame) {
if (_name != "grenade") {
timer = timer + ((1 + random(2)) * _root.game.timeVar);
if (timer > 30) {
exploded = true;
_root.id = _root.id + 1;
_root.game.expTargetX = _x;
_root.game.expTargetY = _y;
_root.game.expSize = 100;
_root.game.expSize = 100;
duplicateMovieClip (_root.game.explosion, "explosion" + _root.id, _root.id + 300);
_root.game["explosion" + _root.id]._x = _x;
_root.game["explosion" + _root.id]._y = _y;
_root.game["explosion" + _root.id]._height = _root.game.expSize / 2.5;
_root.game["explosion" + _root.id]._width = _root.game.expSize / 2.5;
_root.game["explosion" + _root.id].sizeE = _root.game.expSize * 2;
removeMovieClip(this);
}
if (_root.game.carHolder.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (_root.game.player.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
i = 0;
while (i <= _root.maxCars) {
target = _root.game.carHolder["car" + i];
if (i == 0) {
target = _root.game.player;
}
if ((target._x != undefined) and (target.inAir != true)) {
if (target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
gotoAndStop (2);
xspeed = target.xspeed * 1.6;
yspeed = target.yspeed * -1.6;
_root.game.doFriction(target, "xspeed", 0.95);
_root.game.doFriction(target, "yspeed", 0.95);
}
}
i = i + 1;
}
}
_y = (_y + (_root.game.player.yspeed * _root.game.timeVar));
if (_y > 450) {
removeMovieClip(this);
_y = origY;
_x = origX;
gotoAndStop (1);
xspeed = 0;
yspeed = 0;
}
_root.game.doFriction(this, "xspeed", 0.97);
_root.game.doFriction(this, "yspeed", 0.97);
_rotation = (_rotation + ((xspeed + yspeed) * _root.game.timeVar));
_x = (_x + (xspeed * _root.game.timeVar));
_y = (_y + (yspeed * _root.game.timeVar));
}
}
Instance of Symbol 833 MovieClip "debris" in Symbol 847 MovieClip Frame 1
onClipEvent (load) {
origY = _y;
origX = _x;
xspeed = 0;
yspeed = 0;
}
onClipEvent (enterFrame) {
if (_root.graphicsDetail == 1) {
if (_name != "cone") {
if (object._currentframe == 1) {
if (_root.game.carHolder.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (_root.game.player.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
i = 0;
while (i <= _root.maxCars) {
target = _root.game.carHolder["car" + i];
if (i == 0) {
target = _root.game.player;
}
if ((target._x != undefined) and (target.inAir != true)) {
if (target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
object.gotoAndStop(2);
xspeed = target.xspeed * 1.6;
yspeed = target.yspeed * -1.6;
_root.game.doFriction(target, "xspeed", 0.95);
_root.game.doFriction(target, "yspeed", 0.95);
}
}
i = i + 1;
}
}
}
_y = (_y + (_root.game.player.yspeed * _root.game.timeVar));
if (_y > 450) {
removeMovieClip(this);
}
_root.game.doFriction(this, "xspeed", 0.97);
_root.game.doFriction(this, "yspeed", 0.97);
_rotation = (_rotation + ((xspeed + yspeed) * _root.game.timeVar));
_x = (_x + (xspeed * _root.game.timeVar));
_y = (_y + (yspeed * _root.game.timeVar));
}
}
}
Instance of Symbol 836 MovieClip "mixer" in Symbol 847 MovieClip Frame 1
onClipEvent (load) {
origY = _y;
origX = _x;
xspeed = 0;
yspeed = 0;
}
onClipEvent (enterFrame) {
if (_name != "mixer") {
if (_currentframe == 1) {
if (_root.game.carHolder.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (_root.game.player.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
i = 0;
while (i <= _root.maxCars) {
target = _root.game.carHolder["car" + i];
if (i == 0) {
target = _root.game.player;
}
if ((target._x != undefined) and (target.inAir != true)) {
if (target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
gotoAndStop (2);
xspeed = target.xspeed * 1.6;
yspeed = target.yspeed * -1.6;
_root.game.doFriction(target, "xspeed", 0.9);
_root.game.doFriction(target, "yspeed", 0.9);
}
}
i = i + 1;
}
}
}
_y = (_y + (_root.game.player.yspeed * _root.game.timeVar));
if (_y > 450) {
removeMovieClip(this);
_y = origY;
_x = origX;
gotoAndStop (1);
xspeed = 0;
yspeed = 0;
}
_root.game.doFriction(this, "xspeed", 0.97);
_root.game.doFriction(this, "yspeed", 0.97);
_rotation = (_rotation + ((xspeed + yspeed) * _root.game.timeVar));
_x = (_x + (xspeed * _root.game.timeVar));
_y = (_y + (yspeed * _root.game.timeVar));
}
}
Instance of Symbol 843 MovieClip "lampPost" in Symbol 847 MovieClip Frame 1
onClipEvent (load) {
origY = _y;
origX = _x;
xspeed = 0;
yspeed = 0;
}
onClipEvent (enterFrame) {
if (_name != "lampPost") {
if (_currentframe == 1) {
if (_root.game.carHolder.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (_root.game.player.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
i = 0;
while (i <= _root.maxCars) {
target = _root.game.carHolder["car" + i];
if (i == 0) {
target = _root.game.player;
}
if ((target._x != undefined) and (target.inAir != true)) {
if (target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
gotoAndStop (2);
xspeed = target.xspeed * 1.6;
yspeed = target.yspeed * -1.6;
if (target != _root.game.player) {
target.life = target.life - 150;
_root.game.doFriction(target, "xspeed", 0.4);
_root.game.doFriction(target, "yspeed", 0.4);
} else {
_root.game.doFriction(target, "xspeed", 0.6);
_root.game.doFriction(target, "yspeed", 0.6);
}
_root.game.makeSparks(sparkNo, _x - (_width / 2), _y - (_height / 2), 5, yspeed * 2, _width, _height / 2);
}
}
i = i + 1;
}
}
}
_y = (_y + (_root.game.player.yspeed * _root.game.timeVar));
if (_y > 450) {
removeMovieClip(this);
}
_root.game.doFriction(this, "xspeed", 0.9);
_root.game.doFriction(this, "yspeed", 0.9);
_rotation = (_rotation + (((xspeed + yspeed) / 4) * _root.game.timeVar));
_x = (_x + (xspeed * _root.game.timeVar));
_y = (_y + (yspeed * _root.game.timeVar));
}
}
Instance of Symbol 846 MovieClip "palmTree" in Symbol 847 MovieClip Frame 1
onClipEvent (load) {
origY = _y;
origX = _x;
xspeed = 0;
yspeed = 0;
}
onClipEvent (enterFrame) {
if (_name != "palmTree") {
if (_currentframe == 1) {
if (_root.game.carHolder.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (_root.game.player.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
i = 0;
while (i <= _root.maxCars) {
target = _root.game.carHolder["car" + i];
if (i == 0) {
target = _root.game.player;
}
if ((target._x != undefined) and (target.inAir != true)) {
if (target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
gotoAndStop (2);
xspeed = target.xspeed * 1.6;
yspeed = target.yspeed * -1.6;
if (target != _root.game.player) {
target.life = target.life - 70;
_root.game.doFriction(target, "xspeed", 0.4);
_root.game.doFriction(target, "yspeed", 0.4);
} else {
_root.game.doFriction(target, "xspeed", 0.6);
_root.game.doFriction(target, "yspeed", 0.6);
}
}
}
i = i + 1;
}
}
}
_y = (_y + (_root.game.player.yspeed * _root.game.timeVar));
if (_y > 450) {
removeMovieClip(this);
}
_root.game.doFriction(this, "xspeed", 0.92);
_root.game.doFriction(this, "yspeed", 0.92);
_rotation = (_rotation + (((xspeed + yspeed) / 4) * _root.game.timeVar));
_x = (_x + (xspeed * _root.game.timeVar));
_y = (_y + (yspeed * _root.game.timeVar));
}
}
Symbol 854 MovieClip Frame 1
id = 0;
i = 0;
while (i < _root.maxCars) {
duplicateMovieClip (tracker, "tracker" + i, i + 1);
i = i + 1;
}
Instance of Symbol 853 MovieClip "tracker" in Symbol 854 MovieClip Frame 1
onClipEvent (load) {
_parent.id = _parent.id + 1;
id = _parent.id;
}
onClipEvent (enterFrame) {
_x = _root.game["car" + id]._x;
_y = _root.game["car" + id]._y;
_width = (_root.game["car" + id]._width + 110);
_height = _root.game["car" + id]._height;
}
Instance of Symbol 815 MovieClip "car" in Symbol 856 MovieClip Frame 1
onClipEvent (load) {
var lane;
var laneId;
var truckLikely = (1 + random(10));
startY = _y;
yspeed = 0;
xspeed = 0;
hitTimes = 0;
spin = 0;
targetX = lane.targetX;
if (sideways != true) {
if (_x > 0) {
gotoAndStop(1 + random(_totalframes - 4));
up = false;
_rotation = (_rotation + 180);
yspeed = -lane.maxSpeed;
maxSpeed = lane.maxSpeed;
} else {
gotoAndStop(1 + random(_totalframes - 1));
up = true;
_rotation = 0;
yspeed = lane.maxSpeed;
maxSpeed = lane.maxSpeed;
}
} else {
gotoAndStop(1 + random(_totalframes - 4));
maxSpeed = 30;
_rotation = 90;
}
life = 100;
target = _root.game.player;
mass = (_height + _width) / 33;
exploded = false;
timerSmoke = 0;
sparkNo = 0;
var targetCar;
messageShown = false;
engineStarted = false;
sDiff = 0;
deadCar = false;
inAir = false;
zspeed = 0;
zpos = 0;
dropTimer = 120;
turnSpeed = 0.2;
enemyAdded = false;
grenadeTimer = 30;
myDepth = getDepth();
shootNow = 0;
slipping = 0;
i = 0;
while (i <= _root.maxCars) {
if ((_root.game.carHolder["car" + i]._x != undefined) || (gotCars != true)) {
if (_root.game.carHolder["car" + i] != this) {
target = _root.game.carHolder["car" + i];
} else if (_root.game.player.inAir == false) {
target = _root.game.player;
}
_root.game.seperateBoxes(this, target);
}
i = i + 1;
}
_root.setMyShadow(this);
inRad = false;
madeSound = 0;
}
onClipEvent (enterFrame) {
function hornSound() {
var _local4 = Math.sqrt(((_x - _root.game.player._x) * (_x - _root.game.player._x)) + ((_y - _root.game.player._y) * (_y - _root.game.player._y)));
soundVol = 100 - (_local4 / 4);
if (soundVol > 0) {
var _local3 = 1 + random(2);
horningSound = new Sound(this);
if (_local3 == 1) {
horningSound.attachSound("horn1");
} else if (_local3 == 2) {
horningSound.attachSound("horn2");
}
horningSound.setVolume(soundVol * 1.2);
horningSound.start(0, 0);
horningSound.setVolume(soundVol * 1.2);
}
}
function hitSounds() {
var _local4 = Math.sqrt(((_x - _root.game.player._x) * (_x - _root.game.player._x)) + ((_y - _root.game.player._y) * (_y - _root.game.player._y)));
soundVol = (sDiff * 10) - (_local4 / 2);
if (soundVol > 70) {
soundVol = 70;
}
if ((soundVol > 0) and (madeSound <= 0)) {
var _local3 = 1 + random(3);
hitSound = new Sound(this);
if (_local3 == 1) {
hitSound.attachSound("hit1");
} else if (_local3 == 2) {
hitSound.attachSound("hit2");
} else {
hitSound.attachSound("hit3");
}
hitSound.setVolume(soundVol * 1.3);
hitSound.start(0, 0);
hitSound.setVolume(soundVol * 1.3);
madeSound = 15;
}
}
if (_name != "car") {
if (madeSound > 0) {
madeSound = madeSound - 1;
}
if (targetCar == true) {
if (((_y < (_root.game.player._y + 600)) and (_y > (_root.game.player._y - 600))) and (life > 0)) {
if (inRad == false) {
inRad = true;
_root.policeClose = _root.policeClose + 1;
}
} else {
if (inRad == true) {
_root.policeClose = _root.policeClose - 1;
}
inRad = false;
}
if (enemyAdded != true) {
_root.game.addEnemy(this);
enemyAdded = true;
}
targetX = _root.game.player._x;
if (badCar._currentframe > 2) {
inFront = 300;
if ((_y < (_root.game.player._y - 100)) and (_y > (_root.game.player._y - 600))) {
grenadeTimer = grenadeTimer + 1;
if ((grenadeTimer > 50) and (random(10) == 1)) {
_root.game.propHolder.grenadeId = _root.game.propHolder.grenadeId + 1;
duplicateMovieClip (_root.game.propHolder.grenade, "grenade" + _root.game.propHolder.grenadeId, _root.game.propHolder.grenadeId + 100);
_root.game.propHolder["grenade" + _root.game.propHolder.grenadeId]._x = (_x + 40) - (random(8) * 10);
_root.game.propHolder["grenade" + _root.game.propHolder.grenadeId]._y = _y + (_height / 1.9);
grenadeTimer = 0;
}
}
} else {
inFront = 100;
}
gotoAndStop(_totalframes);
shootNow = shootNow + _root.shootingLevel;
if (((shotTimer <= 0) and (Math.round(1 + _root.distTrav) > 1)) and (shootNow > 10)) {
if (((random(5) == 1) and (_y > (_root.game.player._y - 300))) and (_y < (_root.game.player._y + 600))) {
shootNow = 0;
shotTimer = 15;
_root.game.createBullet((_root.game.player._x + _root.game.player.xspeed) + (-80 + random(80)), (_root.game.player._y - _root.game.player.yspeed) + (-80 + random(80)), player, this);
}
} else {
shotTimer = shotTimer - 1;
}
_root.game.targetShow._x = _x;
_root.game.targetShow._y = _y;
turnSpeed = 0.5;
if (((_y + inFront) > _root.game.player._y) and (_y < (_root.game.player._y + 100))) {
maxSpeed = 35 + (badCar._currentframe * 3);
} else if (_y > (_root.game.player._y + 100)) {
maxSpeed = 47 + (badCar._currentframe * 3);
} else {
maxSpeed = 20;
}
if ((life < 1) and (messageShown == false)) {
_root.currentScore = _root.currentScore + Math.round((1000 + (-(life * 30))) * (badCar._currentframe * 1.5));
if (_root.targetsLeft == 0) {
_root.extraCar = true;
}
_root.targetsLeft = _root.targetsLeft - 1;
_root.copsDead = _root.copsDead + 1;
bonus = Math.round((200 + (-life)) * (badCar._currentframe * 2));
_root.showBonus(this, bonus);
bonus = Math.round((1000 + (-life)) * mass);
_root.colatDamage = _root.colatDamage + bonus;
messageShown = true;
targetCar = false;
_root.game.targetShow._x = -2000;
deadCar = true;
}
} else if ((life < 1) and (deadCar != true)) {
_root.carsBlownUp = _root.carsBlownUp + 1;
if (_currentframe == 4) {
}
deadCar = true;
bonus = Math.round((500 + (-life)) * mass);
_root.colatDamage = _root.colatDamage + bonus;
}
_xscale = (200 + zpos);
_yscale = (200 + zpos);
if (zpos > 0) {
if (zspeed > 40) {
zspeed = 40;
}
_root.setMyShadow(this);
if (inAir == false) {
this.swapDepths(myDepth + 100);
}
inAir = true;
zspeed = zspeed - (0.7 * _root.game.timeVar);
if (life <= 0) {
_rotation = (_rotation + (((xspeed * 10) / mass) * _root.game.timeVar));
}
} else {
if (inAir == true) {
this.swapDepths(myDepth);
life = life - (-(zspeed * 5));
_root.setMyShadow(this);
}
zspeed = 0;
zpos = 0;
inAir = false;
}
if (_root.game.jump.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
if ((zpos == 0) and (firstTime == true)) {
zspeed = yspeed / 3;
if (_x < (_root.game.bridge._x - 80)) {
_root.game.bridge.hole1.gotoAndStop(2);
} else if (_x > (_root.game.bridge._x + 80)) {
_root.game.bridge.hole3.gotoAndStop(2);
} else {
_root.game.bridge.hole2.gotoAndStop(2);
}
}
firstTime = false;
} else {
firstTime = true;
}
_root.game.doFriction(this, "zspeed", 0.97);
zpos = zpos + (zspeed * _root.game.timeVar);
if (_root.game.jump.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) and (zpos == 0)) {
zspeed = yspeed / 3;
}
gotCars = false;
if (inAir == false) {
if (_root.game.carHolder.hitTest(((_x - (_width / 1.9)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 1.9)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
gotCars = true;
}
if (_root.game.carHolder.hitTest(((_x + (_width / 1.9)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 1.9)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
gotCars = true;
}
if (_root.game.carHolder.hitTest(((_x - (_width / 1.9)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 1.9)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
gotCars = true;
}
if (_root.game.carHolder.hitTest(((_x + (_width / 1.9)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 1.9)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
gotCars = true;
}
if (gotCars == false) {
if (_root.game.carHolder.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 1.9)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
gotCars = true;
}
}
}
_root.game.showMc._x = _x;
_root.game.showMc._y = passY;
hittingCar = false;
if ((inAir == false) and (gotCars != false)) {
i = 0;
while (i <= _root.maxCars) {
if (_root.game.carHolder["car" + i]._x != undefined) {
if (_root.game.carHolder["car" + i] != this) {
target = _root.game.carHolder["car" + i];
} else if (_root.game.player.inAir == false) {
target = _root.game.player;
}
if (gotCars != true) {
target = _root.game.player;
i = 99;
}
if (target.inAir != true) {
if ((target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
xspeed = xspeed + ((((_x - target._x) / 40) + (target.xspeed / 5)) * _root.game.timeVar);
if ((target._x > (_x - ((_width / 2) + (target._width / 2.2)))) and (target._x < (_x + ((_width / 2) + (target._width / 2.2))))) {
var s1 = yspeed;
var s2 = target.yspeed;
var sDiff = 0;
if (((s1 < 0) and (s2 >= 0)) || ((s2 < 0) and (s1 >= 0))) {
if (s1 < 0) {
var sDiff = (s2 - s1);
} else {
var sDiff = (s1 - s2);
}
} else if ((s1 >= 0) and (s2 >= 0)) {
if (s1 > s2) {
var sDiff = (s1 - s2);
} else {
var sDiff = (s2 - s1);
}
} else {
var sDiff = (s1 - s2);
}
if (sDiff < 0) {
sDiff = -sDiff;
}
if (sDiff > 6) {
sDiff = sDiff - 5;
life = life - (((sDiff * 12) / mass) / 2);
target.life = target.life - (((sDiff * 12) / mass) / 4);
sparkNo = sDiff;
}
trace(sDiff);
if (sDiff > 1) {
hitSounds();
}
if ((target == _root.game.player) and (targetCar == false)) {
_root.game.player.hitTime = 0;
_root.score = _root.score - (sDiff / 5);
}
_root.game.makeSparks(sparkNo, _x - (_width / 2), _y - (_height / 2), 5, yspeed * 2, _width, _height / 2);
maxSpeed = maxSpeed - random(2);
var v1 = yspeed;
var m1 = mass;
var v2 = target.yspeed;
var m2 = target.mass;
var newV1 = ((((m1 - m2) / (m1 + m2)) * v1) + (((2 * m2) / (m1 + m2)) * v2));
var newV2 = ((((2 * m1) / (m1 + m2)) * v1) - (((m1 - m2) / (m1 + m2)) * v2));
if ((_y > target._y) and (newV1 < v1)) {
yspeed = newV1;
target.yspeed = newV2;
}
hittingCar = true;
}
}
if ((target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
xspeed = xspeed + ((((_x - target._x) / 40) + (target.xspeed / 5)) * _root.game.timeVar);
if ((target._x > (_x - ((_width / 2) + (target._width / 2)))) and (target._x < (_x + ((_width / 2) + (target._width / 2))))) {
var s1 = yspeed;
var s2 = target.yspeed;
var sDiff = 0;
if (((s1 < 0) and (s2 >= 0)) || ((s2 < 0) and (s1 >= 0))) {
if (s1 < 0) {
var sDiff = (s2 - s1);
} else {
var sDiff = (s1 - s2);
}
} else if ((s1 >= 0) and (s2 >= 0)) {
if (s1 > s2) {
var sDiff = (s1 - s2);
} else {
var sDiff = (s2 - s1);
}
} else {
var sDiff = (s1 - s2);
}
if (sDiff < 0) {
sDiff = -sDiff;
}
if (sDiff > 6) {
sDiff = sDiff - 5;
life = life - (((sDiff * 12) / mass) / 2);
target.life = target.life - (((sDiff * 12) / mass) / 4);
sparkNo = sDiff;
}
if (sDiff > 1) {
hitSounds();
}
if ((target == _root.game.player) and (targetCar == false)) {
_root.game.player.hitTime = 0;
_root.score = _root.score - (sDiff / 5);
}
_root.game.makeSparks(sparkNo, _x - (_width / 2), _y + (_height / 2), 5, yspeed * 2, _width, -(_height / 2));
var v1 = yspeed;
var m1 = mass;
var v2 = target.yspeed;
var m2 = target.mass;
var newV1 = ((((m1 - m2) / (m1 + m2)) * v1) + (((2 * m2) / (m1 + m2)) * v2));
var newV2 = ((((2 * m1) / (m1 + m2)) * v1) - (((m1 - m2) / (m1 + m2)) * v2));
if ((_y < target._y) and (newV1 > v1)) {
yspeed = newV1;
target.yspeed = newV2;
}
maxSpeed = maxSpeed + random(2);
hittingCar = true;
}
}
if (((target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2.5)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (height / 2.5)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
var speedDiff = ((xspeed - target.xspeed) + (yspeed - target.yspeed));
if (speedDiff > 0) {
var sparkNo = speedDiff;
} else {
var sparkNo = (-speedDiff);
}
hitTimes = hitTimes + 1;
var v1 = xspeed;
var m1 = mass;
var v2 = target.xspeed;
var m2 = target.mass;
var newV1 = ((((m1 - m2) / (m1 + m2)) * v1) + (((2 * m2) / (m1 + m2)) * v2));
var newV2 = ((((2 * m1) / (m1 + m2)) * v1) - (((m1 - m2) / (m1 + m2)) * v2));
if ((target == _root.game.player) and (targetCar == false)) {
_root.game.player.hitTime = 0;
_root.score = _root.score - (sDiff / 5);
}
if ((_x > target._x) and (newV1 > v1)) {
_root.game.makeSparks(sparkNo, _x + (_width / 2), _y - (_height / 2), xspeed, yspeed * 2, _width / 3, _height);
xspeed = newV1;
target.xspeed = newV2;
}
if ((_x < target._x) and (newV1 < v1)) {
_root.game.makeSparks(sparkNo, _x - (_width / 2), _y - (_height / 2), xspeed, yspeed * 2, _width / 3, _height);
xspeed = newV1;
target.xspeed = newV2;
}
if (((target == _root.game.player) and (sparkNo > 10)) || (target != _root.game.player)) {
life = life - (((sparkNo * 12) / mass) / 8);
}
hittingCar = true;
}
if (target == _root.game.player) {
_root.game.seperateBoxes(this, target);
}
}
}
i = i + 1;
}
} else if (inAir != true) {
target = _root.game.player;
if (target.inAir != true) {
if ((target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
xspeed = xspeed + ((((_x - target._x) / 40) + (target.xspeed / 5)) * _root.game.timeVar);
if ((target._x > (_x - ((_width / 2) + (target._width / 2.2)))) and (target._x < (_x + ((_width / 2) + (target._width / 2.2))))) {
var s1 = yspeed;
var s2 = target.yspeed;
var sDiff = 0;
if (((s1 < 0) and (s2 >= 0)) || ((s2 < 0) and (s1 >= 0))) {
if (s1 < 0) {
var sDiff = (s2 - s1);
} else {
var sDiff = (s1 - s2);
}
} else if ((s1 >= 0) and (s2 >= 0)) {
if (s1 > s2) {
var sDiff = (s1 - s2);
} else {
var sDiff = (s2 - s1);
}
} else {
var sDiff = (s1 - s2);
}
if (sDiff < 0) {
sDiff = -sDiff;
}
if (sDiff > 6) {
sDiff = sDiff - 5;
life = life - (((sDiff * 12) / mass) / 2);
target.life = target.life - (((sDiff * 12) / mass) / 4);
sparkNo = sDiff;
}
if (sDiff > 1) {
hitSounds();
}
if ((target == _root.game.player) and (targetCar == false)) {
_root.game.player.hitTime = 0;
_root.score = _root.score - (sDiff / 5);
}
_root.game.makeSparks(sparkNo, _x - (_width / 2), _y - (_height / 2), 5, yspeed * 2, _width, _height / 2);
maxSpeed = maxSpeed - random(2);
var v1 = yspeed;
var m1 = mass;
var v2 = target.yspeed;
var m2 = target.mass;
var newV1 = ((((m1 - m2) / (m1 + m2)) * v1) + (((2 * m2) / (m1 + m2)) * v2));
var newV2 = ((((2 * m1) / (m1 + m2)) * v1) - (((m1 - m2) / (m1 + m2)) * v2));
if ((_y > target._y) and (newV1 < v1)) {
yspeed = newV1;
target.yspeed = newV2;
}
hittingCar = true;
}
}
if ((target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
xspeed = xspeed + ((((_x - target._x) / 40) + (target.xspeed / 5)) * _root.game.timeVar);
if ((target._x > (_x - ((_width / 2) + (target._width / 2)))) and (target._x < (_x + ((_width / 2) + (target._width / 2))))) {
var s1 = yspeed;
var s2 = target.yspeed;
var sDiff = 0;
if (((s1 < 0) and (s2 >= 0)) || ((s2 < 0) and (s1 >= 0))) {
if (s1 < 0) {
var sDiff = (s2 - s1);
} else {
var sDiff = (s1 - s2);
}
} else if ((s1 >= 0) and (s2 >= 0)) {
if (s1 > s2) {
var sDiff = (s1 - s2);
} else {
var sDiff = (s2 - s1);
}
} else {
var sDiff = (s1 - s2);
}
if (sDiff < 0) {
sDiff = -sDiff;
}
if (sDiff > 6) {
sDiff = sDiff - 5;
life = life - (((sDiff * 12) / mass) / 2);
target.life = target.life - (((sDiff * 12) / mass) / 4);
sparkNo = sDiff;
}
if (sDiff > 1) {
hitSounds();
}
if ((target == _root.game.player) and (targetCar == false)) {
_root.game.player.hitTime = 0;
_root.score = _root.score - (sDiff / 5);
}
_root.game.makeSparks(sparkNo, _x - (_width / 2), _y + (_height / 2), 5, yspeed * 2, _width, -(_height / 2));
var v1 = yspeed;
var m1 = mass;
var v2 = target.yspeed;
var m2 = target.mass;
var newV1 = ((((m1 - m2) / (m1 + m2)) * v1) + (((2 * m2) / (m1 + m2)) * v2));
var newV2 = ((((2 * m1) / (m1 + m2)) * v1) - (((m1 - m2) / (m1 + m2)) * v2));
if ((_y < target._y) and (newV1 > v1)) {
yspeed = newV1;
target.yspeed = newV2;
}
maxSpeed = maxSpeed + random(2);
hittingCar = true;
}
}
if (((target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) || (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (_height / 2.5)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) || (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y + (height / 2.5)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true))) {
var speedDiff = ((xspeed - target.xspeed) + (yspeed - target.yspeed));
if (speedDiff > 0) {
var sparkNo = speedDiff;
} else {
var sparkNo = (-speedDiff);
}
hitTimes = hitTimes + 1;
var v1 = xspeed;
var m1 = mass;
var v2 = target.xspeed;
var m2 = target.mass;
var newV1 = ((((m1 - m2) / (m1 + m2)) * v1) + (((2 * m2) / (m1 + m2)) * v2));
var newV2 = ((((2 * m1) / (m1 + m2)) * v1) - (((m1 - m2) / (m1 + m2)) * v2));
if ((target == _root.game.player) and (targetCar == false)) {
_root.game.player.hitTime = 0;
_root.score = _root.score - (sDiff / 5);
}
if ((_x > target._x) and (newV1 > v1)) {
_root.game.makeSparks(sparkNo, _x + (_width / 2), _y - (_height / 2), xspeed, yspeed * 2, _width / 3, _height);
xspeed = newV1;
target.xspeed = newV2;
}
if ((_x < target._x) and (newV1 < v1)) {
_root.game.makeSparks(sparkNo, _x - (_width / 2), _y - (_height / 2), xspeed, yspeed * 2, _width / 3, _height);
xspeed = newV1;
target.xspeed = newV2;
}
if (((target == _root.game.player) and (sparkNo > 10)) || (target != _root.game.player)) {
life = life - (((sparkNo * 12) / mass) / 8);
}
hittingCar = true;
}
if (target == _root.game.player) {
_root.game.seperateBoxes(this, target);
}
}
}
if (sideways != true) {
var target = _root.game.walls;
if (target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
_x = (_x - (xspeed / 3));
xspeed = -(xspeed * 0.2);
if (yspeed > 0) {
var sparkNo = yspeed;
}
if (yspeed < 0) {
var sparkNo = (-yspeed);
}
if ((sparkNo / 4) > 1) {
hitSounds();
}
hitSounds();
_root.game.makeSparks(sparkNo, _x - (_width / 2), _y - (_height / 2), xspeed, yspeed * 2, _width / 3, _height);
life = life - (((sparkNo * 12) / mass) / 6);
}
if (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
_x = (_x - (xspeed / 3));
xspeed = -(xspeed * 0.2);
if (yspeed > 0) {
var sparkNo = yspeed;
}
if (yspeed < 0) {
var sparkNo = (-yspeed);
}
if ((sparkNo / 4) > 1) {
hitSounds();
}
_root.game.makeSparks(sparkNo, _x + (_width / 2), _y - (_height / 2), xspeed, yspeed * 2, -(_width / 3), _height);
life = life - (((sparkNo * 12) / mass) / 6);
}
}
if (_root.game.sound.type == 2) {
var dist = Math.sqrt(((_x - _root.game.sound._x) * (_x - _root.game.sound._x)) + ((_y - _root.game.sound._y) * (_y - _root.game.sound._y)));
if (dist < 300) {
interestX = _root.game.sound._x;
interestY = _root.game.sound._y;
interestLevel = interestLevel + 50;
}
if (dist < (_root.game.sound.size * 2)) {
life = life - (((_root.game.sound.size * 2) - dist) / 8);
var adjside = (_root.game.sound._x - _x);
var oppside = (-1 * (_root.game.sound._y - _y));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var throwRot = (-1 * angle);
xspeed = xspeed - (Math.cos(throwRot * (Math.PI/180)) * (((_root.game.sound.size * 2) - dist) / (10 * mass)));
yspeed = yspeed + (Math.sin(throwRot * (Math.PI/180)) * (((_root.game.sound.size * 2) - dist) / (10 * mass)));
}
}
if ((life < -75) and (exploded == false)) {
var c = new Color(this);
var trans = {ra:"30", rb:"30", ga:"30", gb:"30", ba:"30", bb:"30"};
c.setTransform(trans);
exploded = true;
_root.id = _root.id + 1;
_root.game.expTargetX = _x;
_root.game.expTargetY = _y;
_root.game.expSize = _height;
_root.game.expSize = _height;
duplicateMovieClip (_root.game.explosion, "explosion" + _root.id, _root.id + 300);
_root.game["explosion" + _root.id]._x = _x;
_root.game["explosion" + _root.id]._y = _y;
_root.game["explosion" + _root.id]._height = _root.game.expSize / 2.5;
_root.game["explosion" + _root.id]._width = _root.game.expSize / 2.5;
_root.game["explosion" + _root.id].sizeE = _root.game.expSize * 2;
i = 0;
while (i < 4) {
_root.game.effects2.id = _root.game.effects2.id + 1;
duplicateMovieClip (_root.game.effects2.tire, "spark" + _root.game.effects2.id, _root.game.effects2.id + 1);
_root.game.effects2["spark" + _root.game.effects2.id]._x = _x;
_root.game.effects2["spark" + _root.game.effects2.id]._y = _y;
i = i + 1;
}
}
if (((life < 50) and (life > -75)) || (zspeed > 3)) {
timerSmoke = timerSmoke + (1 * _root.game.timeVar);
if (timerSmoke > 1) {
_root.game.effects.id5 = _root.game.effects.id5 + 1;
duplicateMovieClip (_root.game.effects.smoke, "spark" + _root.game.effects.id5, _root.game.effects.id5 + 1);
_root.game.effects["spark" + _root.game.effects.id5]._x = _x;
_root.game.effects["spark" + _root.game.effects.id5]._y = _y;
_root.game.effects["spark" + _root.game.effects.id5]._height = _root.game.effects["spark" + _root.game.effects.id5]._height + (_root.game.player.yspeed * _root.game.timeVar);
_root.game.effects["spark" + _root.game.effects.id5].xspeed = _root.game.effects["spark" + _root.game.effects.id5].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id5].yspeed = _root.game.effects["spark" + _root.game.effects.id5].yspeed + (yspeed * 2);
timerSmoke = 0;
}
}
if (life < -75) {
timerSmoke = timerSmoke + (1 * _root.game.timeVar);
if (timerSmoke > 1) {
_root.game.effects.id5 = _root.game.effects.id5 + 1;
duplicateMovieClip (_root.game.effects.smoke2, "spark" + _root.game.effects.id, _root.game.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id5]._x = _x;
_root.game.effects["spark" + _root.game.effects.id5]._y = _y;
_root.game.effects["spark" + _root.game.effects.id5]._height = _root.game.effects["spark" + _root.game.effects.id5]._height + (_root.game.player.yspeed * _root.game.timeVar);
_root.game.effects["spark" + _root.game.effects.id5].xspeed = _root.game.effects["spark" + _root.game.effects.id5].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id5].yspeed = _root.game.effects["spark" + _root.game.effects.id5].yspeed + (yspeed * 2);
timerSmoke = 0;
}
}
if (inAir == false) {
if ((((life > 0) and (sideways != true)) and (slipping <= 0)) || (((sideways == true) and (life > 60)) and (slipping <= 0))) {
if (sideways != true) {
if ((_x + xspeed) < targetX) {
xspeed = xspeed + (turnSpeed * _root.game.timeVar);
} else if ((_x < targetX) and (xspeed > 0)) {
_root.game.doFriction(this, "xspeed", 0.97);
}
if ((_x + xspeed) > targetX) {
xspeed = xspeed - (turnSpeed * _root.game.timeVar);
}
if ((_x > targetX) and (xspeed < 0)) {
_root.game.doFriction(this, "xspeed", 0.97);
}
if (up == false) {
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - (maxSpeed / 30);
}
_rotation = (((xspeed * 3) + spin) + 180);
} else {
var laneChange = random(500);
if ((laneChange == 10) || (lane.closed == true)) {
var chooseLane = (1 + random(3));
lane = _root.game["lane" + chooseLane];
targetX = lane.targetX;
if (targetCar != true) {
maxSpeed = lane.maxSpeed;
}
}
if (((_root.game.crossRoad._y > _y) || (_root.game.crossRoad._y < (_y - 450))) || (targetCar == true)) {
if (yspeed < maxSpeed) {
if (_root.game.carHolder.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, ((_y - (_height * 1.5)) * (1 / (100 / _root.game._yscale))) + _root.game._y, true) and (zpos == 0)) {
if (targetCar == true) {
if ((_parent.player._x > (_x - 70)) and (_parent.player._x < (_x + 70))) {
yspeed = yspeed + ((maxSpeed / 30) * _root.game.timeVar);
} else {
yspeed = yspeed - ((maxSpeed / 30) * _root.game.timeVar);
if (random(4) == 1) {
var chooseLane = (1 + random(3));
lane = _root.game["lane" + chooseLane];
targetX = lane.targetX;
}
}
} else {
if (canHorn == true) {
hornSound();
}
canHorn = false;
yspeed = yspeed - ((maxSpeed / 30) * _root.game.timeVar);
}
} else {
canHorn = true;
yspeed = yspeed + ((maxSpeed / 30) * _root.game.timeVar);
}
}
} else if (targetCar != true) {
if (hittingCar == false) {
if ((yspeed + 0.4) < 0) {
}
_root.game.doFriction(this, "yspeed", 0.97);
_root.game.doFriction(this, "xspeed", 0.7);
} else {
_root.game.doFriction(this, "yspeed", 0.97);
_root.game.doFriction(this, "xspeed", 0.7);
}
}
_rotation = ((xspeed * 6) / mass);
}
} else {
if (xspeed < maxSpeed) {
xspeed = xspeed + (maxSpeed / 30);
}
_rotation = (90 + (-yspeed));
_root.game.doFriction(this, "yspeed", 0.97);
}
} else if (slipping <= 0) {
waySlip = 0;
if (sideways != true) {
_rotation = (_rotation + (((xspeed * 10) / mass) * _root.game.timeVar));
} else {
_rotation = (_rotation + (((yspeed * 5) / mass) * _root.game.timeVar));
}
} else {
if (waySlip == 0) {
waySlip = 1 + random(2);
}
slipping = slipping - 0.5;
_rotation = ((xspeed * 3) + spin);
if (slipping > 2) {
if (waySlip <= 1) {
xspeed = xspeed + 0.7;
} else {
xspeed = xspeed - 0.7;
}
} else {
xspeed = xspeed * 0.9;
}
yspeed = yspeed + 2;
trace("slipping");
}
}
if (_name != "car") {
if (((_y > 1000) || (_y < -1700)) || (_x > 1200)) {
_root.carsAlive = _root.carsAlive - 1;
engineSound.stop();
if (enemyAdded == true) {
_root.game.removeEnemy(this);
}
_root.game.removeMyLights(this);
removeMovieClip(this);
}
}
_root.game.doFriction(this, "xspeed", 0.97);
_root.game.doFriction(this, "yspeed", 0.97);
showy = _y;
showx = _x;
_x = (_x + (xspeed * _root.game.timeVar));
_y = (_y - (((-_root.game.player.yspeed) + yspeed) * _root.game.timeVar));
if (_root.nightMode == true) {
_root.game.handleLights(this);
}
}
}
Symbol 860 MovieClip Frame 1
stop();
Symbol 865 MovieClip Frame 1
Symbol 868 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.game.player.boostTimer > 0) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 875 MovieClip Frame 1
stop();
Symbol 875 MovieClip Frame 2
stop();
Symbol 875 MovieClip Frame 3
stop();
Symbol 878 MovieClip Frame 1
stop();
if (_root.missionProgress == 11) {
gotoAndStop (2);
}
Symbol 878 MovieClip Frame 12
stop();
Symbol 878 MovieClip Frame 13
maxLife = 1000;
life = maxLife;
maxSpeed = 50;
stop();
Symbol 878 MovieClip Frame 14
gotoAndStop (1);
Instance of Symbol 875 MovieClip in Symbol 878 MovieClip Frame 14
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
gotoAndStop (3);
} else if (Key.isDown(37)) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 878 MovieClip Frame 15
stop();
Symbol 878 MovieClip Frame 16
stop();
Symbol 889 MovieClip Frame 16
stop();
Symbol 916 MovieClip Frame 1
gotoAndStop(1 + random(_totalframes));
Instance of Symbol 881 MovieClip "splash" in Symbol 920 MovieClip Frame 1
onClipEvent (load) {
if (_name != "splash") {
xspeed = xspeed + ((-200 + random(400)) / 100);
speed = speed + ((-200 + random(400)) / 100);
var adjside = ((_x + xspeed) - _x);
var oppside = (-1 * ((_y + yspeed) - _y));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
trail._rotation = -1 * angle;
trail._width = trail._width + (-(yspeed / 2));
}
}
onClipEvent (enterFrame) {
if (_name != "splash") {
_root.game.doFriction(this, "xspeed", 0.97);
_root.game.doFriction(this, "yspeed", 0.97);
var adjside = ((_x + xspeed) - _x);
var oppside = (-1 * ((_y + yspeed) - _y));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
trail._rotation = -1 * angle;
trail._width = trail._width - (2 * _root.game.timeVar);
_x = (_x + (xspeed * _root.game.timeVar));
_y = (_y + ((yspeed + _root.game.player.yspeed) * _root.game.timeVar));
if ((_y > 400) || (_width <= 0)) {
removeMovieClip(this);
}
}
}
Instance of Symbol 885 MovieClip "spark" in Symbol 920 MovieClip Frame 1
onClipEvent (load) {
if (_name != "spark") {
var xspeed = ((-200 + random(400)) / 100);
var yspeed = 5;
var adjside = ((_x + xspeed) - _x);
var oppside = (-1 * ((_y + yspeed) - _y));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
trail._rotation = -1 * angle;
trail._width = trail._width + (-(yspeed / 5));
_x = (_x + ((-30 + random(60)) / 15));
_y = (_y + ((-30 + random(60)) / 15));
}
}
onClipEvent (enterFrame) {
if (_name != "spark") {
_root.game.doFriction(this, "xspeed", 0.97);
_root.game.doFriction(this, "yspeed", 0.97);
var adjside = ((_x + xspeed) - _x);
var oppside = (-1 * ((_y + yspeed) - _y));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
trail._rotation = -1 * angle;
trail._width = trail._width + ((-(yspeed / 2)) * _root.game.timeVar);
_x = (_x + (xspeed * _root.game.timeVar));
_y = (_y + ((yspeed + _root.game.player.yspeed) * _root.game.timeVar));
if ((_y > 400) || (_y < -1500)) {
removeMovieClip(this);
}
}
}
Instance of Symbol 887 MovieClip "skid" in Symbol 920 MovieClip Frame 1
onClipEvent (load) {
_alpha = (_root.game.player.yspeed / 3);
}
onClipEvent (enterFrame) {
_y = (_y + (_root.game.player.yspeed * _root.game.timeVar));
if (_name != "skid") {
if ((_y > 400) || (_y < -1500)) {
removeMovieClip(this);
}
}
}
Instance of Symbol 889 MovieClip "paint" in Symbol 920 MovieClip Frame 1
onClipEvent (load) {
var xspeed = ((-200 + random(400)) / 100);
var yspeed = random(5);
}
onClipEvent (enterFrame) {
_x = (_x + xspeed);
_y = (_y + ((yspeed + _root.game.player.yspeed) * _root.game.timeVar));
if (_name != "paint") {
if ((_y > 400) || (_y < -1500)) {
removeMovieClip(this);
}
}
}
Instance of Symbol 893 MovieClip "smoke" in Symbol 920 MovieClip Frame 1
onClipEvent (load) {
var xspeed = ((-200 + random(400)) / 100);
var yspeed = random(5);
_alpha = 100;
timer = 0;
}
onClipEvent (enterFrame) {
if (_name != "smoke") {
_xscale = (_xscale + (20 * _root.game.timeVar));
_yscale = (_yscale + (20 * _root.game.timeVar));
timer = timer + (1 * _root.game.timeVar);
if (timer > 12) {
_alpha = (_alpha - (20 * _root.game.timeVar));
}
_x = (_x + (xspeed * _root.game.timeVar));
_y = (_y + ((yspeed + _root.game.player.yspeed) * _root.game.timeVar));
if (((_y > 400) || (_y < -1500)) || (_alpha <= 0)) {
removeMovieClip(this);
}
}
}
Instance of Symbol 902 MovieClip "tire" in Symbol 920 MovieClip Frame 1
onClipEvent (load) {
var xspeed = ((-200 + random(400)) / 20);
var yspeed = (-20 + random(40));
gotoAndStop(1 + random(8));
}
onClipEvent (enterFrame) {
_root.game.doFriction(this, "xspeed", 0.95);
_root.game.doFriction(this, "yspeed", 0.95);
_x = (_x + (xspeed * _root.game.timeVar));
_y = (_y + ((yspeed + _root.game.player.yspeed) * _root.game.timeVar));
_rotation = (_rotation + (xspeed * _root.game.timeVar));
if (_name != "tire") {
if ((_y > 400) || (_y < -1500)) {
removeMovieClip(this);
}
}
}
Instance of Symbol 885 MovieClip "bullet" in Symbol 920 MovieClip Frame 1
onClipEvent (load) {
speed = 55;
timer = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (xs == undefined) {
xs = xspeed;
ys = yspeed;
}
if (_name != "bullet") {
xspeed = (Math.cos(_rotation * (Math.PI/180)) * speed) + xs;
yspeed = (Math.sin(_rotation * (Math.PI/180)) * speed) + ys;
trail._width = 40;
_x = (_x + (xspeed * _root.game.timeVar));
_y = (_y + ((yspeed + _root.game.player.yspeed) * _root.game.timeVar));
if ((((_y > 400) || (_y < -1500)) || (_x < -1500)) || (_x > 1500)) {
removeMovieClip(this);
}
if (timer < 5) {
if (owner.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
} else {
timer = 10;
}
}
if (timer > 5) {
_alpha = 100;
if (_root.game.walls.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
_root.game.makeSparks(4, _x, _y, xspeed + ((-50 + random(100)) / 30), yspeed + ((-50 + random(100)) / 30));
removeMovieClip(this);
}
if (_root.game.carHolder.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
i = 0;
while (i < (_root.maxCars + 1)) {
target = _root.game.carHolder["car" + i];
if (target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
target.xspeed = target.xspeed + (xspeed / (target.mass * 2.4));
target.yspeed = target.yspeed - (yspeed / (target.mass * 2.4));
target.life = target.life - (20 + random(5));
_root.game.makeSparks(4, _x, _y, xspeed + ((-50 + random(100)) / 40), yspeed + ((-50 + random(100)) / 40));
removeMovieClip(this);
}
i = i + 1;
}
}
if (((owner != _root.game.player) and (_root.game.player.inAir == false)) and (owner != _root.game.shooter)) {
if (_root.game.player.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
target = _root.game.player;
target.xspeed = target.xspeed + ((xspeed / target.mass) * 2);
target.yspeed = target.yspeed - ((yspeed / target.mass) * 2);
target.life = target.life - (4 + random(4));
ricochetSound = new Sound(_parent);
if (random(2) == 0) {
ricochetSound.attachSound("ricochet1");
} else {
ricochetSound.attachSound("ricochet2");
}
ricochetSound.setVolume(50);
ricochetSound.start(0, 0);
_root.game.makeSparks(4, _x, _y, xspeed + ((-50 + random(100)) / 30), yspeed + ((-50 + random(100)) / 30));
removeMovieClip(this);
}
}
if (_y > 1000) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 893 MovieClip "smoke2" in Symbol 920 MovieClip Frame 1
onClipEvent (load) {
var xspeed = ((-200 + random(400)) / 100);
var yspeed = random(5);
_alpha = 100;
timer = 0;
}
onClipEvent (enterFrame) {
if (_name != "smoke2") {
_xscale = (_xscale + (20 * _root.game.timeVar));
_yscale = (_yscale + (20 * _root.game.timeVar));
timer = timer + (1 * _root.game.timeVar);
if (timer > 12) {
_alpha = (_alpha - (20 * _root.game.timeVar));
}
_x = (_x + (xspeed * _root.game.timeVar));
_y = (_y + ((yspeed + _root.game.player.yspeed) * _root.game.timeVar));
if (((_y > 400) || (_y < -1500)) || (_alpha <= 0)) {
removeMovieClip(this);
}
}
}
Instance of Symbol 904 MovieClip "goldBars" in Symbol 920 MovieClip Frame 1
onClipEvent (load) {
var xspeed = _root.game.player.xspeed;
var yspeed = (-_root.game.player.yspeed);
gotoAndStop(1 + random(8));
}
onClipEvent (enterFrame) {
if (_name != "goldBars") {
_root.game.doFriction(this, "xspeed", 0.95);
_root.game.doFriction(this, "yspeed", 0.95);
yspeed = yspeed * 0.9;
_x = (_x + (xspeed * _root.game.timeVar));
_y = (_y + ((yspeed + _root.game.player.yspeed) * _root.game.timeVar));
_rotation = (_rotation + (yspeed * _root.game.timeVar));
if (_name != "tire") {
if ((_y > 400) || (_y < -1500)) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 908 MovieClip "rocket" in Symbol 920 MovieClip Frame 1
onClipEvent (load) {
speed = 55;
timer = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (xs == undefined) {
xs = xspeed;
ys = yspeed;
}
if (_name != "rocket") {
if (_root.graphicsDetail == 1) {
_root.game.effects.id5 = _root.game.effects.id5 + 1;
duplicateMovieClip (_root.game.effects.smoke, "spark" + _root.game.effects.id5, _root.game.effects.id5 + 1);
_root.game.effects["spark" + _root.game.effects.id5]._x = _x;
_root.game.effects["spark" + _root.game.effects.id5]._y = _y;
_root.game.effects["spark" + _root.game.effects.id5]._height = _root.game.effects["spark" + _root.game.effects.id5]._height + (_root.game.player.yspeed * _root.game.timeVar);
_root.game.effects["spark" + _root.game.effects.id5].xspeed = _root.game.effects["spark" + _root.game.effects.id5].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id5].yspeed = _root.game.effects["spark" + _root.game.effects.id5].yspeed + (yspeed * 2);
}
xspeed = (Math.cos(_rotation * (Math.PI/180)) * speed) + xs;
yspeed = (Math.sin(_rotation * (Math.PI/180)) * speed) + ys;
trail._width = 40;
_x = (_x + (xspeed * _root.game.timeVar));
_y = (_y + ((yspeed + _root.game.player.yspeed) * _root.game.timeVar));
if ((((_y > 400) || (_y < -1500)) || (_x < -1500)) || (_x > 1500)) {
removeMovieClip(this);
}
if (timer < 5) {
if (owner.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
} else {
timer = 10;
}
}
if (timer > 5) {
_alpha = 100;
if (_root.game.walls.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
exploded = true;
_root.id = _root.id + 1;
_root.game.expTargetX = _x;
_root.game.expTargetY = _y;
_root.game.expSize = 200;
_root.game.expSize = 200;
duplicateMovieClip (_root.game.explosion, "explosion" + _root.id, _root.id + 300);
_root.game["explosion" + _root.id]._x = _x;
_root.game["explosion" + _root.id]._y = _y;
_root.game["explosion" + _root.id]._height = _root.game.expSize / 2.5;
_root.game["explosion" + _root.id]._width = _root.game.expSize / 2.5;
_root.game["explosion" + _root.id].sizeE = _root.game.expSize * 2;
removeMovieClip(this);
}
if (_root.game.carHolder.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
i = 0;
while (i < (_root.maxCars + 1)) {
target = _root.game.carHolder["car" + i];
if (target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
target.xspeed = target.xspeed + (xspeed / (target.mass * 1));
target.yspeed = target.yspeed - (yspeed / (target.mass * 1));
exploded = true;
_root.id = _root.id + 1;
_root.game.expTargetX = _x;
_root.game.expTargetY = _y;
_root.game.expSize = 200;
_root.game.expSize = 200;
duplicateMovieClip (_root.game.explosion, "explosion" + _root.id, _root.id + 300);
_root.game["explosion" + _root.id]._x = _x;
_root.game["explosion" + _root.id]._y = _y;
_root.game["explosion" + _root.id]._height = _root.game.expSize / 2.5;
_root.game["explosion" + _root.id]._width = _root.game.expSize / 2.5;
_root.game["explosion" + _root.id].sizeE = _root.game.expSize * 2;
target.life = target.life - (2000 + random(5));
removeMovieClip(this);
}
i = i + 1;
}
}
if (_y > 1000) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 910 MovieClip "mine" in Symbol 920 MovieClip Frame 1
onClipEvent (load) {
timer = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_name != "mine") {
_y = (_y + (_root.game.player.yspeed * _root.game.timeVar));
if (timer < 5) {
if (owner.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
} else {
timer = 10;
}
}
if (timer > 5) {
_alpha = 100;
if (_root.game.carHolder.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
i = 0;
while (i < (_root.maxCars + 1)) {
target = _root.game.carHolder["car" + i];
if (target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
exploded = true;
_root.id = _root.id + 1;
_root.game.expTargetX = _x;
_root.game.expTargetY = _y;
_root.game.expSize = 200;
_root.game.expSize = 200;
duplicateMovieClip (_root.game.explosion, "explosion" + _root.id, _root.id + 300);
_root.game["explosion" + _root.id]._x = _x;
_root.game["explosion" + _root.id]._y = _y;
_root.game["explosion" + _root.id]._height = _root.game.expSize / 2.5;
_root.game["explosion" + _root.id]._width = _root.game.expSize / 2.5;
_root.game["explosion" + _root.id].sizeE = _root.game.expSize * 2;
target.life = target.life - (100 + random(5));
removeMovieClip(this);
}
i = i + 1;
}
}
if (_y > 1000) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 917 MovieClip "oil" in Symbol 920 MovieClip Frame 1
onClipEvent (load) {
timer = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_name != "oil") {
if (doneRot != true) {
_rotation = (_root.game.player.xspeed * 2);
doneRot = true;
slick._height = _root.game.player.yspeed + 10;
}
_y = (_y + (_root.game.player.yspeed * _root.game.timeVar));
if (timer < 5) {
if (owner.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
} else {
timer = 13;
}
}
if (timer > 5) {
_alpha = 100;
if (_root.game.carHolder.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
i = 0;
while (i < (_root.maxCars + 1)) {
target = _root.game.carHolder["car" + i];
if (target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
target.slipping = 10 + random(10);
removeMovieClip(this);
}
i = i + 1;
}
}
if (_y > 1000) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 919 MovieClip "tacks" in Symbol 920 MovieClip Frame 1
onClipEvent (load) {
timer = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_name != "oil") {
_y = (_y + (_root.game.player.yspeed * _root.game.timeVar));
if (timer < 5) {
if (owner.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
} else {
timer = 10;
}
}
if (timer > 5) {
_alpha = 100;
if (_root.game.carHolder.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
i = 0;
while (i < (_root.maxCars + 1)) {
target = _root.game.carHolder["car" + i];
if (target.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
target.slipping = 20 + random(20);
removeMovieClip(this);
}
i = i + 1;
}
}
if (_y > 1000) {
removeMovieClip(this);
}
}
}
}
Symbol 928 MovieClip Frame 1
_root.game.sound.owned = 0;
_root.game.sound.owner = this;
_root.game.sound.type = 2;
_root.game.sound.size = sizeE;
if (_name == "explosion") {
stop();
}
stop();
Symbol 928 MovieClip Frame 14
if (_name != "explosion") {
removeMovieClip(this);
}
Symbol 930 MovieClip Frame 1
stop();
Symbol 932 MovieClip Frame 1
if (_root.nightMode != true) {
removeMovieClip(this);
_visible = false;
} else {
shootingSound = new Sound(this);
shootingSound.attachSound("heli");
shootingSound.setVolume(40);
shootingSound.start(0, 9999);
shootingSound.setVolume(40);
}
this.swapDepths(2505);
timer = 0;
targetX = _x;
targetY = _y;
onEnterFrame = function () {
if (_visible != false) {
timer = timer + 1;
targetX = _root.game.player._x;
if ((timer > 15) and random(8)) {
targetY = (_root.game.player._y - 105) + random(200);
timer = 0;
}
_x = (_x - (((_x - targetX) / 10) * _root.game.timeVar));
_y = (_y - (((_y - targetY) / 20) * _root.game.timeVar));
}
};
Symbol 933 MovieClip Frame 1
function doFriction(target, varName, amount) {
if (varName == "xspeed") {
speedVal = target.xspeed;
target.xspeed = target.xspeed - ((speedVal - (speedVal * amount)) * timeVar);
}
if (varName == "yspeed") {
speedVal = target.yspeed;
target.yspeed = target.yspeed - ((speedVal - (speedVal * amount)) * timeVar);
}
if (varName == "zspeed") {
speedVal = target.zspeed;
target.zspeed = target.zspeed - ((speedVal - (speedVal * amount)) * timeVar);
}
}
function seperateBoxes(target1, target2) {
if (target1.hitTest(target2)) {
target1.xadd = target1._width;
target1.yadd = target1._height;
target2.xadd = target2._width;
target2.yadd = target2._height;
penX = ((target1.xadd / 2) + (target2.xadd / 2)) - (Math.max(target1._x, target2._x) - Math.min(target1._x, target2._x));
penY = ((target1.yadd / 2) + (target2.yadd / 2)) - (Math.max(target1._y, target2._y) - Math.min(target1._y, target2._y));
if (penX < penY) {
if (target1._x < target2._x) {
target1._x = target1._x - (penX / 2);
target2._x = target2._x + (penX / 2);
target1.xspeed = target1.xspeed - (penX / 10);
target2.xspeed = target2.xspeed + (penX / 10);
} else {
target1._x = target1._x + (penX / 2);
target2._x = target2._x - (penX / 2);
target1.xspeed = target1.xspeed + (penX / 10);
target2.xspeed = target2.xspeed - (penX / 10);
}
} else if (target1._y < target2._y) {
target1._y = target1._y - penY;
target2.yspeed = target2.yspeed + ((penY / 10) + 0.1);
} else {
target1._y = target1._y + penY;
target2.yspeed = target2.yspeed - ((penY / 10) + 0.1);
}
if (((target2 == player) and (player.slammer._currentframe > 1)) and (player.slammer._currentframe < 7)) {
if (target1._y < (target2._y + (target2._height / 1.7))) {
if (target1._x > target2._x) {
target1.xspeed = target1.xspeed + (penX * 1.3);
} else {
target1.xspeed = target1.xspeed - (penX * 1.3);
}
}
target1.life = target1.life - penX;
}
}
}
function addEnemy(target) {
enemiesAlive = enemiesAlive + 1;
target.enemySlot = enemiesAlive - 1;
enemiesArray.push(target);
}
function removeEnemy(target) {
enemiesArray[target.enemySlot] = enemiesArray[enemiesAlive - 1];
enemiesArray[enemiesAlive - 1].enemySlot = target.enemySlot;
enemiesArray.pop();
enemiesAlive = enemiesAlive - 1;
}
function findEnemy() {
if (enemiesAlive > 0) {
i = 1;
while (i <= enemiesAlive) {
target = enemiesArray[i - 1];
var _local2 = target._x - player._x;
var _local1 = -1 * (target._y - player._y);
var _local3 = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
if ((_local3 < 400) and (random(5) == 1)) {
if (reloadTimer > 8) {
if (uziAmmo > 0) {
reloadSpeed = 3;
} else {
reloadSpeed = 1;
}
if (uziAmmo > 0) {
uziAmmo = uziAmmo - 1;
}
createBullet(target._x + (-60 + random(60)), target._y + (-60 + random(60)), target, player);
reloadTimer = 0;
}
}
i = i + 1;
}
}
}
function handleLights(owner) {
if (_root.game.effects2[owner._name]._x == undefined) {
_root.game.effects2.lightId = _root.game.effects2.lightId + 1;
duplicateMovieClip (_root.game.effects2.headlights, owner._name, _root.game.effects2.lightId + 300);
} else if (owner.life > 50) {
lights = _root.game.effects2[owner._name];
if (owner.theHeight == undefined) {
storedRot = owner._rotation;
owner.theHeight = owner._height / 2;
owner._rotation = storedRot;
}
lights._x = owner._x + (Math.cos((owner._rotation - 90) * (Math.PI/180)) * owner.theHeight);
lights._y = owner._y + (Math.sin((owner._rotation - 90) * (Math.PI/180)) * owner.theHeight);
lights._rotation = owner._rotation;
lights._alpha = 100 - owner.zpos;
lights._xscale = 100 + (owner.zpos / 2);
lights._yscale = lights._xscale;
} else {
lights = _root.game.effects2[owner._name];
lights._alpha = 0;
}
}
function removeMyLights(owner) {
lights = _root.game.effects2[owner._name];
removeMovieClip(lights);
}
function createBullet(xpos, ypos, target, owner) {
if (paused != true) {
var _local6 = Math.sqrt(((owner._x - _root.game.player._x) * (owner._x - _root.game.player._x)) + ((owner._y - _root.game.player._y) * (owner._y - _root.game.player._y)));
soundVol = 100 - (_local6 / 4);
if (soundVol > 30) {
soundVol = 30;
}
if (soundVol > 0) {
shootingSound = new Sound(owner);
shootingSound.attachSound("shot");
shootingSound.setVolume(soundVol);
shootingSound.start(0, 0);
shootingSound.setVolume(soundVol);
}
effects.bulletId = effects.bulletId + 1;
duplicateMovieClip (effects.bullet, "bullet" + effects.bulletId, effects.bulletId + 500);
targetBullet = effects["bullet" + effects.bulletId];
targetBullet._x = owner._x;
targetBullet._y = owner._y;
targetBullet.xspeed = owner.xspeed;
targetBullet.yspeed = -owner.yspeed;
targetBullet.owner = owner;
var _local5 = xpos - owner._x;
var _local4 = -1 * (ypos - owner._y);
var _local3 = Math.atan2(_local4, _local5);
_local3 = (_local3 / Math.PI) * 180;
targetBullet._rotation = -1 * _local3;
}
}
function createRocket(xpos, ypos, target, owner) {
effects.bulletId = effects.bulletId + 1;
duplicateMovieClip (effects.rocket, "bullet" + effects.bulletId, effects.bulletId + 500);
targetBullet = effects["bullet" + effects.bulletId];
targetBullet._x = owner._x;
targetBullet._y = owner._y;
targetBullet.xspeed = owner.xspeed;
targetBullet.yspeed = -owner.yspeed;
targetBullet.owner = owner;
var _local4 = xpos - owner._x;
var _local3 = -1 * (ypos - owner._y);
var _local2 = Math.atan2(_local3, _local4);
_local2 = (_local2 / Math.PI) * 180;
targetBullet._rotation = -1 * _local2;
}
function createMine(xpos, ypos, target, owner) {
effects.bulletId = effects.bulletId + 1;
duplicateMovieClip (effects.mine, "bullet" + effects.bulletId, effects.bulletId + 500);
targetBullet = effects["bullet" + effects.bulletId];
targetBullet._x = owner._x;
targetBullet._y = owner._y;
targetBullet.owner = owner;
}
function createMines(xpos, ypos, target, owner) {
effects.bulletId = effects.bulletId + 1;
duplicateMovieClip (effects.mine, "bullet" + effects.bulletId, effects.bulletId + 500);
targetBullet = effects["bullet" + effects.bulletId];
targetBullet._x = owner._x;
targetBullet._y = owner._y;
targetBullet.owner = owner;
effects.bulletId = effects.bulletId + 1;
duplicateMovieClip (effects.mine, "bullet" + effects.bulletId, effects.bulletId + 500);
targetBullet = effects["bullet" + effects.bulletId];
targetBullet._x = owner._x + 35;
targetBullet._y = owner._y;
targetBullet.owner = owner;
effects.bulletId = effects.bulletId + 1;
duplicateMovieClip (effects.mine, "bullet" + effects.bulletId, effects.bulletId + 500);
targetBullet = effects["bullet" + effects.bulletId];
targetBullet._x = owner._x - 35;
targetBullet._y = owner._y;
targetBullet.owner = owner;
}
function createOil(xpos, ypos, target, owner) {
effects.bulletId = effects.bulletId + 1;
duplicateMovieClip (effects.oil, "bullet" + effects.bulletId, effects.bulletId + 500);
targetBullet = effects["bullet" + effects.bulletId];
targetBullet._x = owner._x;
targetBullet._y = owner._y;
targetBullet.owner = owner;
}
function createTacks(xpos, ypos, target, owner) {
effects.bulletId = effects.bulletId + 1;
duplicateMovieClip (effects.tacks, "bullet" + effects.bulletId, effects.bulletId + 500);
targetBullet = effects["bullet" + effects.bulletId];
targetBullet._x = owner._x;
targetBullet._y = owner._y;
targetBullet.owner = owner;
}
function makeSparks(sparkNo, xpos, ypos, xspeed, yspeed, xrange, yrange) {
if (((sparkNo == undefined) || (sparkNo == null)) || (sparkNo == NaN)) {
sparkNo = 4;
}
if (sparkNo > 10) {
sparkNo = 10;
}
if (sparkNo >= 1) {
s = 0;
while (s < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_root.game.effects.spark, "spark" + _root.game.effects.id, _root.game.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = xpos + random(xrange);
_root.game.effects["spark" + _root.game.effects.id]._y = ypos + random(yrange);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + yspeed;
s = s + 1;
}
}
}
function makeSplash(sparkNo, xpos, ypos, xspeed, yspeed, xrange, yrange) {
if (((sparkNo == undefined) || (sparkNo == null)) || (sparkNo == NaN)) {
sparkNo = 4;
}
if (sparkNo > 10) {
sparkNo = 10;
}
if (sparkNo >= 1) {
s = 0;
while (s < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_root.game.effects.splash, "spark" + _root.game.effects.id, _root.game.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = xpos + random(xrange);
_root.game.effects["spark" + _root.game.effects.id]._y = ypos + random(yrange);
_root.game.effects["spark" + _root.game.effects.id].xspeed = (xspeed * 0.5) + (xspeed * (random(100) / 200));
_root.game.effects["spark" + _root.game.effects.id].yspeed = (yspeed * 0.5) + (yspeed * (random(100) / 200));
s = s + 1;
}
}
}
function controlCar(target) {
if (carHolder.hitTest((target._x * (1 / (100 / _root.game._xscale))) + _root.game._x, (target._y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
}
}
distMoved = 0;
timeVar = 1;
enemiesAlive = 0;
enemiesArray = new Array();
storedDist1 = 0;
storedDist2 = 500;
paused = false;
shotSide = 1;
doingOil = 0;
createEmptyMovieClip("shooter", 998);
boostLevel == 30;
onEnterFrame = function () {
if (_root.missionProgress == 11) {
if (Key.isDown(17)) {
if (boostLevel >= 30) {
player.boostTimer = 30;
boostLevel = 0;
}
} else {
if (boostLevel < 30) {
boostLevel = boostLevel + (0.2 * timeVar);
}
player.boostOn = false;
}
}
if (Key.isDown(32)) {
shooting = true;
} else {
shooting = false;
}
if (_root.nightMode == true) {
night.gotoAndStop(2);
}
if ((_root.gameTimer <= 0) and (doneOutOfTime != true)) {
paused = true;
_root.hud.pauseMenu.play();
doneOutOfTime = true;
}
if (Key.isDown(27) || (Key.isDown(80))) {
if (_root.gameTimer > 0) {
if (escaped == false) {
if (timeVar > 0) {
paused = true;
_root.hud.pauseMenu.play();
} else {
paused = false;
_root.hud.pauseMenu.gotoAndPlay(11);
}
}
escaped = true;
}
} else {
escaped = false;
}
_root.paused = paused;
if (((Key.isDown(16) and (paused != true)) || ((player.zspeed > 2) and (paused != true))) || ((_root.showingTip == true) and (paused != true))) {
if (_root.gameTimer > 0) {
if (timeVar > 0.4) {
timeVar = timeVar - 0.05;
} else {
timeVar = 0.4;
}
}
} else if (paused == false) {
if (timeVar < 1) {
timeVar = timeVar + 0.1;
} else {
timeVar = 1;
}
} else if (timeVar > 0) {
timeVar = timeVar - 0.1;
} else {
timeVar = 0;
}
distMoved = distMoved + (player.yspeed * timeVar);
if (distMoved > (storedDist1 + 1000)) {
placeY = -1200 - ((storedDist1 - distMoved) + 1000);
storedDist1 = distMoved;
if ((_root.game.bridge._y < (placeY - 300)) || (_root.game.bridge._y > (placeY + 300))) {
if ((_root.game.crossRoad._y < placeY) || (_root.game.crossRoad._y > (placeY + 700))) {
m = 1;
while (m <= 3) {
_root.game.propHolder.objId = _root.game.propHolder.objId + 1;
duplicateMovieClip (_root.game.propHolder.waterBucket, "cone" + _root.game.propHolder.objId, _root.game.propHolder.objId);
_root.game.propHolder["cone" + _root.game.propHolder.objId]._x = 30;
_root.game.propHolder["cone" + _root.game.propHolder.objId]._y = placeY - (m * 50);
m = m + 1;
}
_root.game.propHolder.objId = _root.game.propHolder.objId + 1;
duplicateMovieClip (_root.game.propHolder.lampPost, "cone" + _root.game.propHolder.objId, _root.game.propHolder.objId);
_root.game.propHolder["cone" + _root.game.propHolder.objId]._x = -535;
_root.game.propHolder["cone" + _root.game.propHolder.objId]._y = placeY - 100;
_root.game.propHolder.objId = _root.game.propHolder.objId + 1;
duplicateMovieClip (_root.game.propHolder.lampPost, "cone" + _root.game.propHolder.objId, _root.game.propHolder.objId);
_root.game.propHolder["cone" + _root.game.propHolder.objId]._x = 579;
_root.game.propHolder["cone" + _root.game.propHolder.objId]._y = placeY - 100;
_root.game.propHolder["cone" + _root.game.propHolder.objId]._rotation = _root.game.propHolder["cone" + _root.game.propHolder.objId]._rotation - 180;
}
}
}
if ((distMoved > (storedDist2 + 200)) and (random(50) == 1)) {
placeY = -1400;
storedDist2 = distMoved;
if ((_root.game.bridge._y < (placeY - 300)) || (_root.game.bridge._y > (placeY + 300))) {
if ((_root.game.crossRoad._y < placeY) || (_root.game.crossRoad._y > (placeY + 700))) {
l = 1;
while (l <= 1) {
_root.game.propHolder.objId = _root.game.propHolder.objId + 1;
duplicateMovieClip (_root.game.propHolder.debris, "cone" + _root.game.propHolder.objId, _root.game.propHolder.objId);
_root.game.propHolder["cone" + _root.game.propHolder.objId]._x = -600 + random(70);
_root.game.propHolder["cone" + _root.game.propHolder.objId]._y = (placeY - (l * 50)) - random(60);
_root.game.propHolder["cone" + _root.game.propHolder.objId]._rotation = random(360);
l = l + 1;
}
}
}
}
if ((100 - (player.yspeed * 2)) > 43) {
var _local2 = 100 - (player.yspeed * 2);
} else {
var _local2 = 43;
}
_xscale = (_xscale - ((_xscale - _local2) / 5));
_yscale = _xscale;
reloadTimer = reloadTimer + (reloadSpeed * timeVar);
if (doingOil > 0) {
doingOil = doingOil - 1;
theDist = 70;
shooter._x = player._x + (Math.cos((player._rotation + 90) * (Math.PI/180)) * theDist);
shooter._y = player._y + (Math.sin((player._rotation + 90) * (Math.PI/180)) * theDist);
createOil(theX, theY, target, shooter);
}
if ((shooting == true) and (paused != true)) {
if (_root.weaponLevel == 2) {
if (reloadTimer > 20) {
reloadSpeed = 1;
if (shotSide < 0) {
shotSide = 1;
} else {
shotSide = -1;
}
doingOil = 10;
reloadTimer = 0;
}
}
if (_root.weaponLevel == 3) {
if (reloadTimer > 20) {
reloadSpeed = 1;
if (shotSide < 0) {
shotSide = 1;
} else {
shotSide = -1;
}
theDist = 70;
shooter._x = player._x + (Math.cos((player._rotation + 90) * (Math.PI/180)) * theDist);
shooter._y = player._y + (Math.sin((player._rotation + 90) * (Math.PI/180)) * theDist);
player.slammer.play();
reloadTimer = 0;
}
}
if (_root.weaponLevel == 4) {
if (reloadTimer > 50) {
reloadSpeed = 1;
if (shotSide < 0) {
shotSide = 1;
} else {
shotSide = -1;
}
theDist = 70;
shooter._x = player._x + (Math.cos((player._rotation + 90) * (Math.PI/180)) * theDist);
shooter._y = player._y + (Math.sin((player._rotation + 90) * (Math.PI/180)) * theDist);
createMine(theX, theY, target, shooter);
reloadTimer = 0;
}
}
if (_root.weaponLevel == 5) {
if (reloadTimer > 8) {
if (uziAmmo > 0) {
reloadSpeed = 3;
} else {
reloadSpeed = 3;
}
if (uziAmmo > 0) {
uziAmmo = uziAmmo - 1;
}
if (shotSide < 0) {
shotSide = 1;
} else {
shotSide = -1;
}
theDist = 20 * shotSide;
shooter._x = player._x + (Math.cos(player._rotation * (Math.PI/180)) * theDist);
shooter._y = player._y + (Math.sin(player._rotation * (Math.PI/180)) * theDist);
theX = shooter._x + (Math.cos((player._rotation - 90) * (Math.PI/180)) * 100);
theY = shooter._y + (Math.sin((player._rotation - 90) * (Math.PI/180)) * 100);
shooter.xspeed = player.xspeed;
shooter.yspeed = player.yspeed;
createBullet(theX, theY, target, shooter);
reloadTimer = 0;
}
}
if (_root.weaponLevel == 6) {
if (reloadTimer > 15) {
reloadSpeed = 1;
if (shotSide < 0) {
shotSide = 1;
} else {
shotSide = -1;
}
theDist = 20 * shotSide;
shooter._x = player._x + (Math.cos((player._rotation - 90) * (Math.PI/180)) * theDist);
shooter._y = player._y + (Math.sin((player._rotation - 90) * (Math.PI/180)) * theDist);
theX = shooter._x + (Math.cos((player._rotation - 90) * (Math.PI/180)) * 100);
theY = shooter._y + (Math.sin((player._rotation - 90) * (Math.PI/180)) * 100);
shooter.xspeed = player.xspeed;
shooter.yspeed = player.yspeed;
createRocket(theX, theY, target, shooter);
reloadTimer = 0;
}
}
if (_root.weaponLevel == 7) {
if (reloadTimer > 40) {
reloadSpeed = 1;
if (shotSide < 0) {
shotSide = 1;
} else {
shotSide = -1;
}
theDist = 70;
shooter._x = player._x + (Math.cos((player._rotation + 90) * (Math.PI/180)) * theDist);
shooter._y = player._y + (Math.sin((player._rotation + 90) * (Math.PI/180)) * theDist);
createMines(theX, theY, target, shooter);
reloadTimer = 0;
}
}
}
};
onMouseDown = function () {
};
onMouseUp = function () {
};
uziAmmo = 0;
reloadTimer = 0;
reloadSpeed = 1;
carHolder.swapDepths(250);
Instance of Symbol 708 MovieClip "track" in Symbol 933 MovieClip Frame 1
onClipEvent (load) {
startY = _y;
}
onClipEvent (enterFrame) {
_y = (_y + (_parent.player.yspeed * _root.game.timeVar));
if ((_y + (_parent.player.yspeed * _root.game.timeVar)) > (startY + 184)) {
_y = startY;
}
}
Instance of Symbol 715 MovieClip "lane1" in Symbol 933 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 20;
targetX = _x;
id = 1;
}
Instance of Symbol 715 MovieClip "lane2" in Symbol 933 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 25;
targetX = _x;
id = 2;
}
Instance of Symbol 715 MovieClip "lane3" in Symbol 933 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 30;
targetX = _x;
id = 3;
}
Instance of Symbol 715 MovieClip "lane4" in Symbol 933 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 35;
targetX = _x;
id = 4;
}
Instance of Symbol 715 MovieClip "lane5" in Symbol 933 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 20;
targetX = _x;
}
Instance of Symbol 715 MovieClip "lane6" in Symbol 933 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 25;
targetX = _x;
}
Instance of Symbol 715 MovieClip "lane7" in Symbol 933 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 30;
targetX = _x;
}
Instance of Symbol 715 MovieClip "lane8" in Symbol 933 MovieClip Frame 1
onClipEvent (load) {
maxSpeed = 35;
targetX = _x;
}
Instance of Symbol 720 MovieClip "roadWorks" in Symbol 933 MovieClip Frame 1
onClipEvent (load) {
origY = _y - 2500;
}
onClipEvent (enterFrame) {
_y = (_y + (_root.game.player.yspeed * _root.game.timeVar));
if (((_y > (origY + 4000)) and ((_root.game.crossRoad._y - 600) > 1000)) and (random(400) == 1)) {
trace("doing road works");
amount = 1 + random(4);
lane = _root.game["lane" + amount];
_y = origY;
_x = lane._x;
i = 0;
while (i <= 5) {
_root.game.propHolder.objId = _root.game.propHolder.objId + 1;
duplicateMovieClip (_root.game.propHolder.cone, "cone" + _root.game.propHolder.objId, _root.game.propHolder.objId);
_root.game.propHolder["cone" + _root.game.propHolder.objId]._x = (_x + 40) - (i * 10);
_root.game.propHolder["cone" + _root.game.propHolder.objId]._y = (_y + 80) + (i * 60);
i = i + 1;
}
i = 0;
while (i <= 5) {
_root.game.propHolder.objId = _root.game.propHolder.objId + 1;
duplicateMovieClip (_root.game.propHolder.barrier, "cone" + _root.game.propHolder.objId, _root.game.propHolder.objId);
_root.game.propHolder["cone" + _root.game.propHolder.objId]._x = _x + 40;
_root.game.propHolder["cone" + _root.game.propHolder.objId]._y = (_y + 80) - (i * 140);
_root.game.propHolder.objId = _root.game.propHolder.objId + 1;
duplicateMovieClip (_root.game.propHolder.barrier, "cone" + _root.game.propHolder.objId, _root.game.propHolder.objId);
_root.game.propHolder["cone" + _root.game.propHolder.objId]._x = _x - 40;
_root.game.propHolder["cone" + _root.game.propHolder.objId]._y = (_y + 80) - (i * 140);
i = i + 1;
}
i = 0;
while (i <= 3) {
_root.game.propHolder.objId = _root.game.propHolder.objId + 1;
duplicateMovieClip (_root.game.propHolder.mixer, "cone" + _root.game.propHolder.objId, _root.game.propHolder.objId);
_root.game.propHolder["cone" + _root.game.propHolder.objId]._x = _x;
_root.game.propHolder["cone" + _root.game.propHolder.objId]._y = (_y - 80) - (i * 160);
_root.game.propHolder["cone" + _root.game.propHolder.objId]._rotation = random(360);
i = i + 1;
}
}
if (_y < 0) {
lane.closed = true;
} else {
lane.closed = false;
}
}
Instance of Symbol 722 MovieClip "slower" in Symbol 933 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 726 MovieClip "walls" in Symbol 933 MovieClip Frame 1
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
mass = 1000;
}
onClipEvent (enterFrame) {
xspeed = 0;
yspeed = 0;
}
Instance of Symbol 740 MovieClip "crossRoad" in Symbol 933 MovieClip Frame 1
onClipEvent (load) {
startY = -2500;
}
onClipEvent (enterFrame) {
_y = (_y + (_parent.player.yspeed * _root.game.timeVar));
if ((((_y + _parent.player.yspeed) > 1500) and (random(150) == 1)) and (_root.game.jump._y > 500)) {
_y = startY;
_root.game.jump._y = _y + 200;
}
_root.game.crossSign._y = _y + 1500;
}
Instance of Symbol 742 MovieClip in Symbol 933 MovieClip Frame 1
onClipEvent (load) {
timer = 0;
spawnTime = 20;
startX = _x;
newLane = none;
oldLane = alsoNone;
lastCar = none;
createCar = true;
targetSpawned = false;
wantedLevel = 0;
}
onClipEvent (enterFrame) {
if (_root.copLevel > 1) {
randNum = _root.copLevel + Math.round(1 + random(_root.distTrav * (_root.copLevel / 20)));
if (randNum > 100) {
randNum = 100;
}
}
wantedLevel = wantedLevel + randNum;
if (wantedLevel > 200) {
wantedLevel = 0;
_root.nextCar = true;
var amount = (1 + random(4));
_x = _root.game["lane" + amount]._x;
newLane = _root.game["lane" + amount];
} else {
_root.nextCar = false;
var amount = (1 + random(8));
_x = _root.game["lane" + amount]._x;
newLane = _root.game["lane" + amount];
}
timer = timer + (_root.game.player.yspeed + random(_root.game.player.yspeed / 2));
if (_root.game.crossRoad._y < -1000) {
if ((_root.carsAlive < _root.maxCars) and (_root.carId != 10)) {
_root.carId = _root.carId + 1;
if (_root.game.carHolder["car" + _root.carId]._x == undefined) {
_root.carsAlive = _root.carsAlive + 1;
duplicateMovieClip (_parent.carHolder.car, "car" + _root.carId, _root.carId + 1);
_root.game.carHolder["car" + _root.carId].sideways = true;
_root.game.carHolder["car" + _root.carId]._rotation = 90;
_root.game.carHolder["car" + _root.carId]._x = -1200 + random(1000);
if (amount > 4) {
amount = amount - 3;
}
_root.game.carHolder["car" + _root.carId]._y = _root.game.crossRoad._y + _root.game.crossRoad["lane" + amount]._y;
_root.game.carHolder["car" + _root.carId].lane = _root.game["lane" + amount];
_root.game.carHolder["car" + _root.carId].laneId = amount;
_root.game.carHolder["car" + _root.carId].targetCar = false;
lastCar = _root.game.carHolder["car" + _root.carId];
timer = 0;
}
oldLane = _root.game["lane" + amount];
}
} else if (((((timer > spawnTime) and (_root.carsAlive < _root.maxCars)) and (createCar == true)) and (_root.carId != 10)) and (_root.game["lane" + amount].closed != true)) {
if (((_root.game["lane" + amount].lastCar._y > (_y + 150)) || (_root.game["lane" + amount].lastCar._y < (_y - 150))) || (_root.game["lane" + amount].lastCar._y == undefined)) {
_root.carId = _root.carId + 1;
if (_root.game.carHolder["car" + _root.carId]._x == undefined) {
_root.carsAlive = _root.carsAlive + 1;
duplicateMovieClip (_parent.carHolder.car, "car" + _root.carId, _root.carId + 1);
if (_root.nextCar == true) {
_root.game.carHolder["car" + _root.carId]._x = (_x - 2) + random(4);
if ((random(3) == 1) and (_root.game.player.yspeed <= 20)) {
_root.game.carHolder["car" + _root.carId]._y = _y + 2000;
} else {
_root.game.carHolder["car" + _root.carId]._y = _y;
}
_root.game.carHolder["car" + _root.carId].lane = _root.game["lane" + amount];
_root.game.carHolder["car" + _root.carId].laneId = 2;
_root.game.carHolder["car" + _root.carId].targetCar = true;
_root.nextCar = false;
} else {
_root.game["lane" + amount].lastCar = _root.game.carHolder["car" + _root.carId];
_root.game.carHolder["car" + _root.carId].sideways = false;
_root.game.carHolder["car" + _root.carId]._rotation = 0;
_root.game.carHolder["car" + _root.carId]._x = (_x - 2) + random(4);
if (_root.game.player.yspeed <= 25) {
_root.game.carHolder["car" + _root.carId]._y = _y + 2000;
} else {
_root.game.carHolder["car" + _root.carId]._y = _y;
}
_root.game.carHolder["car" + _root.carId].lane = _root.game["lane" + amount];
_root.game.carHolder["car" + _root.carId].laneId = amount;
_root.game.carHolder["car" + _root.carId].targetCar = false;
}
_root.game["lane" + amount].lastCar = _root.game.carHolder["car" + _root.carId];
lastCar = _root.game.carHolder["car" + _root.carId];
timer = 0;
}
oldLane = _root.game["lane" + amount];
}
}
}
Instance of Symbol 744 MovieClip "jump" in Symbol 933 MovieClip Frame 1
onClipEvent (load) {
origY = _y;
}
onClipEvent (enterFrame) {
_y = (_y + (_root.game.player.yspeed * _root.game.timeVar));
if (_y > (origY + 5275)) {
_root.game.bridge.hole1.gotoAndStop(1);
_root.game.bridge.hole2.gotoAndStop(1);
_root.game.bridge.hole3.gotoAndStop(1);
_y = origY;
}
_parent.bridge._y = _y;
_root.game.bridgeSign._y = _y + 1500;
_parent.bridge.swapDepths(460);
}
Instance of Symbol 878 MovieClip "player" in Symbol 933 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
maxTurnSpeed = _root.playerMaxTurnSpeed;
accel = _root.playerAccel;
maxSpeedE = _root.playerMaxSpeed;
yspeed = 0;
xspeed = 0;
mass = _root.playerMass;
maxLife = _root.playerMaxLife;
life = _root.playerMaxLife;
slowTimer = 0;
origWidth = _width;
this.swapDepths(200);
yspeed = 45;
exploded = false;
smokeTime = 0;
hitTime = 0;
skidPlaying = false;
rev = true;
revLength = 0;
explodeTimer = 10;
inAir = false;
zspeed = 0;
zpos = 0;
boostTimer = 0;
cleanSpeedTimer = 0;
jumpTimer = 0;
otherSideTimer = 0;
maxSpeedTimer = 0;
cleanTimer = 0;
_root.setMyShadow(this);
}
onClipEvent (enterFrame) {
if (slowTimer > 0) {
} else {
cleanTimer = cleanTimer + 1;
}
if (inAir == true) {
if (zspeed > 40) {
zspeed = 40;
}
_root.hud.currentScoreType = "JUMP";
_root.hud.currentScoreAd = Math.round(jumpTimer * 20);
jumpTimer = jumpTimer + (1 * _root.game.timeVar);
} else {
_root.currentScore = _root.currentScore + Math.round(jumpTimer * 20);
jumpTimer = 0;
}
if (boostTimer > 0) {
boostTimer = boostTimer - (1 * _root.game.timeVar);
yspeed = yspeed + (1 * _root.game.timeVar);
}
_xscale = (100 + (zpos / 2));
_yscale = (100 + (zpos / 2));
if (zpos > 0) {
_root.setMyShadow(this);
inAir = true;
this.swapDepths(400);
zspeed = zspeed - (0.7 * _root.game.timeVar);
} else {
this.swapDepths(200);
zspeed = 0;
zpos = 0;
if (inAir == true) {
_root.setMyShadow(this);
}
inAir = false;
}
if (_parent.jump.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
if ((zpos == 0) and (firstTime == true)) {
zspeed = yspeed / 3;
_root.jumpsDone = _root.jumpsDone + 1;
if (_x < (_root.game.bridge._x - 80)) {
_root.game.bridge.hole1.gotoAndStop(2);
} else if (_x > (_root.game.bridge._x + 80)) {
_root.game.bridge.hole3.gotoAndStop(2);
} else {
_root.game.bridge.hole2.gotoAndStop(2);
}
}
firstTime = false;
} else {
firstTime = true;
}
_root.game.doFriction(this, "zspeed", 0.97);
zpos = zpos + (zspeed * _root.game.timeVar);
if (_root.hud.speed >= 200) {
skidActive = true;
}
if (skidActive == true) {
if (Key.isDown(40)) {
} else {
skidActive = false;
}
}
if ((skidActive == true) and (_root.hud.speed <= 30)) {
_root.skidDone = true;
}
if (_root.game.cars.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) and (yspeed > 30)) {
hitTime = hitTime + 1;
} else if (hitTime > 0) {
_root.score = _root.score + (yspeed / 5);
hitTime = 0;
} else {
hitTime = 0;
}
if (yspeed < 0) {
yspeed = yspeed - (yspeed / 2);
}
if ((yspeed / 5) < maxTurnSpeed) {
var turnSpeed = (yspeed / 5);
} else {
turnSpeed = maxTurnSpeed;
}
if (Key.isDown(40) || (Key.isDown(83))) {
turnSpeed = turnSpeed * 1.5;
}
if (inAir != true) {
if (Key.isDown(38) || (Key.isDown(87))) {
if ((yspeed < maxSpeedE) and (life > 0)) {
yspeed = yspeed + (accel * _root.game.timeVar);
}
}
if (Key.isDown(40) || (Key.isDown(83))) {
if ((yspeed > 0) and (life > 0)) {
yspeed = yspeed - (1 * _root.game.timeVar);
turnSpeed = turnSpeed + (0.2 * _root.game.timeVar);
if (yspeed > 10) {
if (skidPlaying == false) {
skidSound = new Sound(this);
skidSound.attachSound("skid");
skidSound.start(0, 4);
skidPlaying = true;
}
skidSound.setVolume(yspeed * 2);
var adjside = ((_x - xspeed) - _x);
var oppside = (-1 * ((_y + yspeed) - _y));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
_root.game.effects2.id = _root.game.effects2.id + 1;
duplicateMovieClip (_root.game.effects2.skid, "spark" + _root.game.effects2.id, _root.game.effects2.id + 1);
if (_rotation <= 0) {
_root.game.effects2["spark" + _root.game.effects2.id]._x = ((_x + (_width / 2)) - 14) + xspeed;
} else {
_root.game.effects2["spark" + _root.game.effects2.id]._x = (((_x + (_width / 2)) - (_rotation * 1.8)) - 14) + xspeed;
}
if (xspeed < 0) {
theX = -xspeed;
} else {
theX = xspeed;
}
_root.game.effects2["spark" + _root.game.effects2.id]._y = _y + (_height / 2.5);
_root.game.effects2["spark" + _root.game.effects2.id]._height = ((yspeed * 1.1) + 3) + (theX / 3);
_root.game.effects2["spark" + _root.game.effects2.id]._rotation = (-1 * angle) - 90;
_root.game.effects2.id = _root.game.effects2.id + 1;
duplicateMovieClip (_root.game.effects2.skid, "spark" + _root.game.effects2.id, _root.game.effects2.id + 1);
if (_rotation >= 0) {
_root.game.effects2["spark" + _root.game.effects2.id]._x = ((_x - (_width / 2)) + 14) + xspeed;
} else {
_root.game.effects2["spark" + _root.game.effects2.id]._x = (((_x - (_width / 2)) - (_rotation * 1.8)) + 14) + xspeed;
}
_root.game.effects2["spark" + _root.game.effects2.id]._y = _y + (_height / 2.5);
_root.game.effects2["spark" + _root.game.effects2.id]._height = ((yspeed * 1.1) + 3) + (theX / 3);
_root.game.effects2["spark" + _root.game.effects2.id]._rotation = (-1 * angle) - 90;
} else {
skidSound.stop();
skidPlaying = false;
}
}
} else {
if (turnSpeed > 3.5) {
turnSpeed = turnSpeed - 0.1;
}
skidPlaying = false;
skidSound.stop();
}
if (Key.isDown(39) || (Key.isDown(68))) {
if (life > 0) {
if (_root.game.timeVar < 0.6) {
xspeed = xspeed + (turnSpeed * _root.game.timeVar);
} else {
xspeed = xspeed + (turnSpeed * (_root.game.timeVar + 0.4));
}
}
}
if (Key.isDown(37) || (Key.isDown(65))) {
if (life > 0) {
if (_root.game.timeVar < 0.6) {
xspeed = xspeed - (turnSpeed * _root.game.timeVar);
} else {
xspeed = xspeed - (turnSpeed * (_root.game.timeVar + 0.4));
}
}
}
_root.game.doFriction(this, "xspeed", 0.8);
_root.game.doFriction(this, "yspeed", 0.99);
}
_rotation = (xspeed / 2);
_x = (_x + (xspeed * _root.game.timeVar));
showx = _x;
showy = _y;
if (life < 0) {
explodeTimer = explodeTimer + (1 * _root.game.timeVar);
}
var target = _parent.walls;
if (target.hitTest(((_x - (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) and (xspeed < 0)) {
_x = (_x - xspeed);
xspeed = -(xspeed * 0.2);
var sparkNo = ((yspeed / 5) - 2);
life = life - (sparkNo / 5);
i = 0;
while (i < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_root.game.effects.spark, "spark" + _root.game.effects.id, _root.game.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x - (_width / 2)) + random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
i = 0;
while (i < (sparkNo / 4)) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_root.game.effects.paint, "spark" + _root.game.effects.id, _root.game.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x - (_width / 2)) + random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = yspeed * 1.5;
i = i + 1;
}
}
if (target.hitTest(((_x + (_width / 2)) * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true) and (xspeed > 0)) {
_x = (_x - xspeed);
xspeed = -(xspeed * 0.2);
var sparkNo = ((yspeed / 5) - 2);
life = life - (sparkNo / 5);
i = 0;
while (i < sparkNo) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_root.game.effects.spark, "spark" + _root.game.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x + (_width / 2)) - random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = _root.game.effects["spark" + _root.game.effects.id].yspeed + (yspeed * 2);
i = i + 1;
}
i = 0;
while (i < (sparkNo / 4)) {
_root.game.effects.id = _root.game.effects.id + 1;
duplicateMovieClip (_root.game.effects.paint, "spark" + _root.game.effects.id, _parent.effects.id + 1);
_root.game.effects["spark" + _root.game.effects.id]._x = (_x + (_width / 2)) - random(_width / 3);
_root.game.effects["spark" + _root.game.effects.id]._y = (_y - (_height / 2)) + random(_height);
_root.game.effects["spark" + _root.game.effects.id].xspeed = _root.game.effects["spark" + _root.game.effects.id].xspeed + xspeed;
_root.game.effects["spark" + _root.game.effects.id].yspeed = yspeed * 1.5;
i = i + 1;
}
}
if (_root.game.slower.hitTest((_x * (1 / (100 / _root.game._xscale))) + _root.game._x, (_y * (1 / (100 / _root.game._yscale))) + _root.game._y, true)) {
if ((_x * (1 / (100 / _root.game._xscale))) < 0) {
_root.pavementTime = _root.pavementTime + 1;
}
if (inAir == false) {
if (slowTimer < 40) {
slowTimer = slowTimer + (1 * _root.game.timeVar);
} else {
_root.game.doFriction(this, "yspeed", 0.98);
if (yspeed > 35) {
trace("harshSlow");
_root.game.doFriction(this, "yspeed", 0.9);
}
}
}
dirtTimer = dirtTimer + 1;
} else {
dirtTimer = 0;
if (slowTimer > 0) {
slowTimer = slowTimer - (1 * _root.game.timeVar);
}
}
if ((_root.game.sound.type == 2) and (inAir == false)) {
var dist = Math.sqrt(((_x - _root.game.sound._x) * (_x - _root.game.sound._x)) + ((_y - _root.game.sound._y) * (_y - _root.game.sound._y)));
if (dist < 300) {
interestX = _root.game.sound._x;
interestY = _root.game.sound._y;
interestLevel = interestLevel + 50;
}
if (dist < (_root.game.sound.size * 2)) {
life = life - (((_root.game.sound.size * 2) - dist) / 100);
var adjside = (_root.game.sound._x - _x);
var oppside = (-1 * (_root.game.sound._y - _y));
var angle = Math.atan2(oppside, adjside);
angle = (angle / Math.PI) * 180;
var throwRot = (-1 * angle);
xspeed = xspeed - (Math.cos(throwRot * (Math.PI/180)) * (((_root.game.sound.size * 2) - dist) / (5 * mass)));
yspeed = yspeed + (Math.sin(throwRot * (Math.PI/180)) * (((_root.game.sound.size * 2) - dist) / (5 * mass)));
}
}
if (_root.nightMode == true) {
_root.game.handleLights(this);
}
_root.game.carHolder.player._x = _x;
_root.game.carHolder.player._y = _y;
_root.game.carHolder.player._rotation = _rotation;
}
Instance of Symbol 920 MovieClip "effects" in Symbol 933 MovieClip Frame 1
onClipEvent (load) {
id = 0;
bulletId = 51;
id5 = 200;
}
onClipEvent (enterFrame) {
this.swapDepths(300);
if (id > 50) {
id = 0;
}
if (bulletId > 65) {
bulletId = 51;
}
if (id5 > 250) {
id5 = 200;
}
}
Instance of Symbol 922 MovieClip "sound" in Symbol 933 MovieClip Frame 1
onClipEvent (load) {
owner = false;
owned = 0;
type = 1;
size = 1;
}
onClipEvent (enterFrame) {
if (owner != false) {
if (owned < 1) {
_x = owner._x;
_y = owner._y;
}
owned = owned + 1;
}
if (owned > 2) {
owner = false;
owned = 0;
type = 1;
_x = -9999;
}
}
Instance of Symbol 920 MovieClip "effects2" in Symbol 933 MovieClip Frame 1
onClipEvent (load) {
id = 0;
_x = 0;
_y = 0;
lightId = 0;
}
onClipEvent (enterFrame) {
this.swapDepths(1);
if (id > 50) {
id = 0;
}
}
Instance of Symbol 928 MovieClip "explosion" in Symbol 933 MovieClip Frame 1
onClipEvent (load) {
var sizeE;
if ((_x - _root.game.player._x) > 100) {
pan = 100;
} else if ((_x - _root.game.player._x) < -100) {
pan = -100;
} else {
pan = _x - _root.game.player._x;
}
vol = 100 - (Math.sqrt(((_x - _root.game.player._x) * (_x - _root.game.player._x)) + ((_y - _root.game.player._y) * (_y - _root.game.player._y))) / 10);
if (vol > 100) {
vol = 100;
}
if (vol < 0) {
vol = 0;
}
if (_name == "explosion") {
_visible = false;
} else {
explosionSound = new Sound(this);
explosionSound.attachSound("explosion");
explosionSound.setPan(pan);
explosionSound.setVolume(vol);
explosionSound.start(0, 0);
explosionSound.setPan(pan);
explosionSound.setVolume(vol);
}
time = 100;
timer = 1;
}
onClipEvent (enterFrame) {
gotoAndStop(Math.round(timer));
timer = timer + (1 * _root.game.timeVar);
_y = (_y + (_root.game.player.yspeed * _root.game.timeVar));
if ((_x - _root.game.player._x) > 100) {
pan = 100;
} else if ((_x - _root.game.player._x) < -100) {
pan = -100;
} else {
pan = _x - _root.game.player._x;
}
vol = 100 - (Math.sqrt(((_x - _root.game.player._x) * (_x - _root.game.player._x)) + ((_y - _root.game.player._y) * (_y - _root.game.player._y))) / 10);
if (vol > 100) {
vol = 100;
}
if (vol < 0) {
vol = 0;
}
explosionSound.setPan(pan);
explosionSound.setVolume(vol);
}
Symbol 944 MovieClip Frame 1
stop();
Symbol 944 MovieClip Frame 5
stop();
Symbol 952 MovieClip Frame 1
_root.showingTip = false;
stop();
Symbol 978 MovieClip Frame 1
stop();
Symbol 979 MovieClip Frame 1
stop();
_root.showingTip = false;
Symbol 979 MovieClip Frame 2
tutTips.gotoAndStop(target);
Symbol 981 MovieClip Frame 30
stop();
Symbol 989 MovieClip Frame 20
stop();
Symbol 995 MovieClip Frame 1
stop();
Symbol 995 MovieClip Frame 5
stop();
Symbol 995 MovieClip Frame 10
stop();
Symbol 996 Button
on (release) {
_root.game.paused = false;
_parent.play();
}
Symbol 1001 Button
on (release) {
_root.game.paused = false;
_parent.play();
}
Symbol 1005 Button
on (release) {
_root.gameQuit = true;
_root.hud.fader.play();
}
Symbol 1009 Button
on (release) {
_root.play();
}
Symbol 1012 Button
on (release) {
_root.gameQuit = true;
_root.hud.fader.play();
}
Symbol 1016 Button
on (release) {
_root.play();
}
Symbol 1021 MovieClip Frame 1
stop();
if (_root.gameTimer <= 0) {
gotoAndStop (2);
}
Instance of Symbol 995 MovieClip in Symbol 1021 MovieClip Frame 1
on (release) {
_root.doQuality();
}
onClipEvent (load) {
if (_quality == "HIGH") {
gotoAndStop (1);
} else {
gotoAndStop (5);
}
}
onClipEvent (enterFrame) {
if (_quality == "HIGH") {
gotoAndStop (1);
} else {
gotoAndStop (5);
}
}
Instance of Symbol 995 MovieClip in Symbol 1021 MovieClip Frame 1
on (release) {
_root.muteGame();
}
onClipEvent (load) {
if (_root.muted != true) {
gotoAndStop (1);
} else {
gotoAndStop (5);
}
}
onClipEvent (enterFrame) {
if (_root.muted != true) {
gotoAndStop (1);
} else {
gotoAndStop (5);
}
}
Symbol 1025 MovieClip Frame 5
stop();
Symbol 1026 MovieClip Frame 1
stop();
Mouse.hide();
Symbol 1026 MovieClip Frame 10
stop();
Mouse.show();
Symbol 1027 MovieClip Frame 11
stop();
Symbol 1027 MovieClip Frame 22
stopAllSounds();
if (_root.missionWon == true) {
_root.money = _root.money + _root.hud.totalGold;
_root.endGold = _root.hud.totalGold;
_root.goldLost = _root.reward - _root.hud.totalGold;
}
_root.gotoAndPlay("win");
Symbol 1030 MovieClip Frame 1
stop();
Symbol 1046 Button
on (release) {
gotoAndPlay ("backIn");
}