STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229454
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2574 · P5148

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/63273048?noj=FRM63273048-5DC" width="1" height="1"></div>

Flash Racer.swf

This is the info page for
Flash #27791

(Click the ID number above for more basic data on this flash file.)


Text
<p align="left"><font face="Arial" size="12" color="#000000" letterSpacing="0.000000" kerning="0"><b>Estimated time etc is here</b></font></p>

Smash open boxes in order
to get weapons. Remember
you can only have 1 weapon
at a time.

If you drag your mouse off-
screen accidentaly then the
game will automaticaly
pause for you to avoid any
frustration.

TAPE SPACE BAR FOR RECOVERY!!!

Tap space in order to
recover your HP. If your HP
drops below 0 you will need
to heal before you can
move again.

The machine gun requires
some skill but can deal
some serious damage in the
right hands.

Use this to literaly stop your
opponents in their tracks

The oil slick will make your
enemies spin out of control

These explosive barrels will
bounce around until they
hit a car. They will then
explode on impact. Watch
out for those rebounds!

Use these for a quick speed
boost at vital moments

The laser gun locks on to
the nearest target and
shoots them regardless oif
distance

This powerful missile homes
in on enemies and chases
them until it hits

Use the teleporter to jump
from place to place in a
map. Watch out some will
take you backwards or even
to a random location!

Speed boosters can be a
great help in a tricky
situation. Use them to leave
your opponents eating your
dust

Race on gran prix mode in
order to prove your skills
and win trophies

Play through history mode -
the ultimate challenge. Can
you become the worlds best
driver?

Race against the world in
time trial mode and
compete for the fastest
time on each map

Practice your driving on the
different maps in free race
mode

Car name

Name

<p align="left"><font face="Arial" size="8" color="#ff0000" letterSpacing="0.000000" kerning="0"><b>:</b></font></p>

<p align="left"><font face="Arial" size="8" color="#ff0000" letterSpacing="0.000000" kerning="0"><b>o</b></font></p>

<p align="left"><font face="Arial" size="8" color="#ff0000" letterSpacing="0.000000" kerning="0"><b>f</b></font></p>

<p align="left"><font face="Arial" size="8" color="#ff0000" letterSpacing="0.000000" kerning="0"><b>n</b></font></p>

<p align="left"><font face="Arial" size="8" color="#ff0000" letterSpacing="0.000000" kerning="0"><b>I</b></font></p>

Back to parking mode

www.armorgames.com

www.rustygames.com

select difficulty

-PARKING MENU: drive (W.A.S.D or ARROWS KEYS)onto the mode/ option you want to play them press ENTER

-FAST MENU: click on an option shown on the radar and you will jump there

-SIMPLE MENU: click HERE to display a simple menu which is easier to navigate

Note: It is strongly reccomended that you play the tutorial first and read the tips.

close this window

Info:

X

open this window

Radar
on/off

Free race

Characters

Grand prix

Time trial

rustygames

High score

armorgames

History mode

Trophys

Credits

Challenges

Tutorial

/4

YOU FINISHED!!

Watch car:

Skip

fps

-Quality:

-Please visit:

Coding: Matthew shaile (ninja-chicken) Art: Eduardo Mojica Vasquez (Cicla)

4

3

2

1

Go!

Go!

lap

lap

/

lap

fps

12345

Main menu

play

Main menu

play

Ha ha ha you race like a girl... oh wait a minute...

I have been avenged! Now get lost i'm sick
of the site of you!


says:   you dont have the guts to do it!

Continue...

67.3 seg

Cicla

Cicla

4

lap

lap

fps

12345

4

lap

lap

fps

12345

<p align="left"></p>

4

lap

lap

fps

12345

<p align="left"></p>

4

lap

lap

fps

12345

<p align="left"></p>

Armor games

Rusty games

Coding by Matthew Shaile

Art by Eduardo Mojica Vasquez

Daniel McNeely as

Dashing Dan

Ryan Murphy as

Mad Dog Murphy

Jennifer McCoy as

The Real McCoy

Nathan Wood as

Woody

Kenneth McNeely as

Krazy Kenny

James Evans as

J-Zinger

Timothy McNeely as

Terrible Timmy

Thanks for playing

-Map owner:

-Map features:

-Map description:

Cicla

-booster
-teleport

-Missiles
-cop cars

tis is the private Cicla's track made from  the AG money

Drag this window

Drag the map with the mouse

+

-

Challenges

Preview

Info:

Skip

ActionScript [AS1/AS2]

Frame 1
function umenu1() { getURL ("http://www.armorgames.com", "_BLANK"); } function umenu2() { getURL ("http://www.rustygames.com", "_BLANK"); } function umenu3() { getURL ("http://www.rustygames.com/highscores", "_BLANK"); } function umenu4() { } function umenu5() { _root.qual = 0; } function umenu6() { _root.qual = 1; } function umenu7() { _root.qual = 2; } function umenu8() { _root.qual = 3; } function saveTrops() { var _local2 = SharedObject.getLocal("FlashRacers"); _root.savefile.data.gptrop = _root.gptrop; _root.savefile.data.strop = _root.strop; _root.savefile.data.cretrop = _root.cretrop; _root.savefile.data.ctrop1 = _root.ctrop1; _root.savefile.data.ctrop2 = _root.ctrop2; _root.savefile.data.ctrop3 = _root.ctrop3; _root.savefile.data.ctrop4 = _root.ctrop4; _root.savefile.data.ctrop5 = _root.ctrop5; _root.savefile.flush(); } var MENU = new ContextMenu(); MENU.hideBuiltInItems(); var Functioned = new ContextMenuItem("Armor games", umenu1); var Functioned2 = new ContextMenuItem("Rusty games", umenu2); var Functioned3 = new ContextMenuItem("Highscores", umenu3); var Functioned4 = new ContextMenuItem("Quality", umenu4); var Functioned5 = new ContextMenuItem("Low", umenu5); var Functioned6 = new ContextMenuItem("Medium", umenu6); var Functioned7 = new ContextMenuItem("High", umenu7); var Functioned8 = new ContextMenuItem("Auto", umenu8); MENU.customItems.push(Functioned); MENU.customItems.push(Functioned2); MENU.customItems.push(Functioned3); MENU.customItems.push(Functioned4); MENU.customItems.push(Functioned5); MENU.customItems.push(Functioned6); MENU.customItems.push(Functioned7); MENU.customItems.push(Functioned8); Functioned4.separatorBefore = true; _root.menu = MENU; stop(); onEnterFrame = null; var freeracelaps = 4; var savefile = SharedObject.getLocal("FlashRacers"); if (savefile.data.gptrop == undefined) { _root.gptrop = 0; } else { _root.gptrop = savefile.data.gptrop; } if (savefile.data.strop == undefined) { _root.strop = 0; } else { _root.strop = savefile.data.strop; } if (savefile.data.ctrop1 == undefined) { _root.ctrop1 = false; } else { _root.ctrop1 = savefile.data.ctrop1; } if (savefile.data.ctrop2 == undefined) { _root.ctrop2 = false; } else { _root.ctrop2 = savefile.data.ctrop2; } if (savefile.data.ctrop3 == undefined) { _root.ctrop3 = false; } else { _root.ctrop3 = savefile.data.ctrop3; } if (savefile.data.ctrop4 == undefined) { _root.ctrop4 = false; } else { _root.ctrop4 = savefile.data.ctrop4; } if (savefile.data.ctrop5 == undefined) { _root.ctrop5 = false; } else { _root.ctrop5 = savefile.data.ctrop5; } if (savefile.data.cretrop == undefined) { _root.cretrop = false; } else { _root.cretrop = savefile.data.cretrop; } stop(); _root.saveTrops(); if (_root.loadedmovie) { _root.play(); } pldm128947 = new LoadVars(); pldm128947.mv = _level0._url; pldm128947.md = "bfa6d6928033b2b1848e7ef962c9332e"; pldm128947.mid = 53; pldm128947.sendAndLoad("http://bot.armorstudios.com/track.php", pldm128947, "POST"); System.security.allowDomain("bot.armorstudios.com", "www.armorstudios.com"); loadMovieNum ("http://bot.armorstudios.com/globalbar.swf?barmd2569=bfa6d6928033b2b1848e7ef962c9332e&barid2569=53", 1520);
Instance of Symbol 82 MovieClip in Frame 1
onClipEvent (load) { var oldt = getTimer(); var lasttime = 1; } onClipEvent (enterFrame) { this._xscale = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (this._xscale == 100) { _root.begin.gotoAndStop(2); } if (Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) == (this.percentage + 1)) { this.lasttime = getTimer() - this.oldt; this.oldt = getTimer(); } this.percentage = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); this.estimated = Math.ceil(((100 - this.percentage) * this.lasttime) / 1000); _root.loadstat.htmlText = ((((((this.percentage + "% Loaded<br>Estimated load time:") + this.estimated) + "<br>") + _root.getBytesLoaded()) + "/") + _root.getBytesTotal()) + " bytes loaded"; }
Instance of Symbol 174 MovieClip "begin" in Frame 1
on (press) { if (this._currentframe == 2) { _root.loadedmovie = true; _root.gotoAndStop("intro"); } }
Frame 2
function changetext() { switch (_root.carno) { case 1 : _root.cartext2 = "Dashing Dan"; _root.cartext = "Dashing Dan is rumored to have been adopted and raised amongst the knights of Ireland until he made safe passage to America. He enjoys jumping out of airplanes and eating 7 solid meals a day. It is also rumored that Dashing Dan is not after a trophy, but is secretly trying to win the affections of 'The Real McCoy'. He might look like a prep school drop out, but don't be deceived by appearances."; _root.cartext3 = "Blue Thunder"; break; case 2 : _root.cartext2 = "Mad-dog Murphy"; _root.cartext = "Mad Dog Murphy was born and raised in the plateaus of Irvine. As an only child he took to racing cars as a young kid and now owns and operates the largest underground network around. When he's not mad-dogging you on the course he can be found chilaxing in a Hot Tub or contemplating 101 uses for his 50inch DLP-TV."; _root.cartext3 = "Brown Titan"; break; case 3 : _root.cartext2 = "The Real McCoy"; _root.cartext = "The Real McCoy is far from the many impostors trying to steal her beauty and fame. She was raised a lily among thorns, and her wit and intelligence are matched by none. When she's not on the track she can be found cheering on the USC trojans or working on her trigger finger. She'll leave you light years behind as she buzzes by you on the track and you might not like 'them apples' but she will gladly leave you with apple sauce."; _root.cartext3 = "Flashing Rose"; break; case 4 : _root.cartext2 = "Woody"; _root.cartext = "Wood, Woodster or Woody. This main street circuit racer goes by all of the above. When he's not busy tickling the Ivory, he can be found spinning out opponents on the streets. He also likes to show off his dance moves after a glass or two of champaign"; _root.cartext3 = "The Bullet"; break; case 5 : _root.cartext2 = "Krazy Kenny"; _root.cartext = "Krazy Kenny will own you. Don't be fooled by his cute smile. When he's not on the track he can be found earning his 5th level 60 character in WOW. He won't be pulling any LeRoy Jenkins, so watch out!"; _root.cartext3 = "Flying Beatle"; break; case 6 : _root.cartext2 = "J-Zinger"; _root.cartext = "J-Zinger is the master of all trades. He will zing you, brand you, and leave you in the dust. Don't let his real name fool you; Terry is only a cover up of his true Irish roots. When he's not spending time with his lady, he can be found campaigning for Bono. It's also rumored that J-Zinger will be naming his first child Robert Smith, after the famous band from the 80's"; _root.cartext3 = "Blood Viper"; break; case 7 : _root.cartext2 = "Terrible Timmy"; _root.cartext = "Terrible Timmy is a teddy bear at heart, but a roaring lion on the race track. When he's not passing you on the finishing lap, he can be found studying the many famous theologians throughout history. Watch out, and make sure to carry a concordance at all times"; _root.cartext3 = "Comet No. 5"; } } stop(); if (_root.characterselected) { _root.play(); } var carno = 1; _root.cartext2 = "Name"; _root.cartext = "Synopsis"; _root.cartext3 = "Car"; changetext(); var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop4"); _root.bgm.start(0, 100);
Instance of Symbol 194 MovieClip in Frame 2
onClipEvent (enterFrame) { this.gotoAndStop(_root.carno); }
Instance of Symbol 218 MovieClip in Frame 2
onClipEvent (enterFrame) { this.gotoAndStop(_root.carno); }
Frame 3
stop(); var currentgptrack = 1; var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop4"); _root.bgm.start(0, 100); function GotoAndStop(labels) { _root.gotoAndStop(labels); } function clearAll() { _root.onEnterFrame = null; for (d in _root) { _root[d].swapDepths(_root.getNextHighestDepth()); _root[d].removeMovieClip(); } } function clearAll2() { _root.onEnterFrame = null; for (d in _root) { _root[d].swapDepths(_root.getNextHighestDepth()); _root[d].removeMovieClip(); } _root.prevFrame(); } stop(); var pauser = false; var quotes1 = ["Ha ha you suck", "You loser!", "just quit now wuss", "Get off the track", "Next time learn how to drive", "Ha ha ha ha ha ha", "Who's laughing now?"]; var quotes2 = ["Ahhh you'll pay for this", "You're paying for that!", "I'll get you next time", "Oh darn", "You little punk", "Mommy!", "I will be avenged", "Ahhhh!!"]; function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, heights, widths, ang) { var arr = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root.debug1) { _root.createEmptyMovieClip("dd", 100000); with (_root.dd) { lineStyle(1, 16711680, 100); moveTo(xs, ys); lineTo((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); } _root.createEmptyMovieClip("tt", 100001); with (_root.tt) { lineStyle(1, 255, 100); moveTo(xs, ys); lineTo(xs + (Math.sin(ang - (Math.PI/2)) * widths), ys + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs - (Math.sin(ang - (Math.PI/2)) * widths), ys - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs + (Math.sin(ang) * heights), ys + (Math.cos(ang) * heights)); lineTo(xs - (Math.sin(ang) * heights), ys - (Math.cos(ang) * heights)); } } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[3] = 1; } return(arr); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; stop(); var qual = 3; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); onEnterFrame = function () { k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); }; stop(); RealTime = setInterval(function () { _root.hudamm = _root.car.ammo + "/100"; _root.hudwep = ""; switch (_root.car.weapon) { case 5 : _root.hudwep = "Booster"; break; case 2 : _root.hudwep = "MG"; break; case 7 : _root.hudwep = "Rocket"; break; case 1 : _root.hudwep = "Barrel"; break; case 6 : _root.hudwep = "Laser"; break; case 3 : _root.hudwep = "Oil"; break; case 4 : _root.hudwep = "Glue"; } var _local2 = new Date(); hours = _local2.getHours(); minutes = _local2.getMinutes(); _root.RealTime = ((hours + ":") + ((minutes < 10) ? "0" : "")) + minutes; }, 1000); var difficulty = 0; var map = "map1"; function pickchars() { _root.car.gotoAndStop(_root.carno); jj = false; rand = random(7) + 1; j = 0; while (j < _root.players.length) { if (rand == _root.players[j]) { jj = true; break; } j++; } if (jj) { _root.pickchars(); } else { _root.players.push(rand); _root["opp" + i] = rand; _root["car" + i].gotoAndStop(_root["opp" + i]); if (_root.i < 3) { _root.i++; _root.pickchars(); } } } var opp0 = _root.carno; players = []; players.push(_root.carno); i = 1; pickchars();
Instance of Symbol 229 MovieClip in Frame 3
on (release) { _root.difis.gotoAndStop(2); _root.difis.modes = "tutorial"; _root.difis._alpha = 100; } on (rollOver) { _root.desc.text = "It is strongly advised you take this tutorial before trying to race with the big boys!"; } on (rollOut) { _root.desc.text = ""; }
Instance of Symbol 231 MovieClip in Frame 3
on (release) { _root.difis.modes = "selectfr"; _root.difis._alpha = 100; } on (rollOver) { _root.desc.text = "Free race mode allows you to race on any track you want for some good practice"; } on (rollOut) { _root.desc.text = ""; }
Instance of Symbol 233 MovieClip in Frame 3
on (release) { _root.difis.modes = "storyBegin"; _root.difis._alpha = 100; } on (rollOver) { _root.desc.text = "You play as a new racer called Jake. You must prove your abilities in this ultimate challenge!"; } on (rollOut) { _root.desc.text = ""; }
Instance of Symbol 235 MovieClip in Frame 3
on (release) { _root.difis.gotoAndStop(2); _root.difis.modes = "selecttt"; _root.difis._alpha = 100; } on (rollOver) { _root.desc.text = "Compete against the world and become a true champ by beating the fastes time!"; } on (rollOut) { _root.desc.text = ""; }
Instance of Symbol 237 MovieClip in Frame 3
on (release) { _root.difis.modes = 13; _root.difis._alpha = 100; } on (rollOver) { _root.desc.text = "Race in all tracks gaining points as you go. Prepare yourself for an action-packed ride!"; } on (rollOut) { _root.desc.text = ""; }
Instance of Symbol 239 MovieClip in Frame 3
on (release) { _root.difis.gotoAndStop(2); _root.difis.modes = "selectch"; _root.difis._alpha = 100; } on (rollOver) { _root.desc.text = "Complete various challenges to win awards"; } on (rollOut) { _root.desc.text = ""; }
Instance of Symbol 241 MovieClip in Frame 3
on (release) { _root.gotoAndStop("trophies"); } on (rollOver) { _root.desc.text = "View the awards you have received throughout the game"; } on (rollOut) { _root.desc.text = ""; }
Instance of Symbol 243 MovieClip in Frame 3
on (release) { _root.gotoAndStop("credits"); } on (rollOver) { _root.desc.text = "View the credits. Watch them from beginning to end for a special suprise"; } on (rollOut) { _root.desc.text = ""; }
Instance of Symbol 245 MovieClip in Frame 3
on (release) { _root.characterselected = false; _root.gotoAndStop(1); } on (rollOver) { _root.desc.text = "Reselect your character"; } on (rollOut) { _root.desc.text = ""; }
Instance of Symbol 255 MovieClip in Frame 3
on (release) { _root.play(); }
Instance of Symbol 258 MovieClip in Frame 3
on (release) { getURL ("http://www.armorgames.com", "_blank"); }
Instance of Symbol 260 MovieClip in Frame 3
on (release) { getURL ("http://www.rustygames.com", "_blank"); }
Frame 4
var currentgptrack = 1; var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop4"); _root.bgm.start(0, 100); function GotoAndStop(labels) { _root.gotoAndStop(labels); } function clearAll() { _root.onEnterFrame = null; for (d in _root) { _root[d].swapDepths(_root.getNextHighestDepth()); _root[d].removeMovieClip(); } } function clearAll2() { _root.onEnterFrame = null; for (d in _root) { _root[d].swapDepths(_root.getNextHighestDepth()); _root[d].removeMovieClip(); } _root.prevFrame(); } stop(); var pauser = false; var quotes1 = ["Ha ha you suck", "You loser!", "just quit now wuss", "Get off the track", "Next time learn how to drive", "Ha ha ha ha ha ha", "Who's laughing now?"]; var quotes2 = ["Ahhh you'll pay for this", "You're paying for that!", "I'll get you next time", "Oh darn", "You little punk", "Mommy!", "I will be avenged", "Ahhhh!!"]; function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, heights, widths, ang) { var arr = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root.debug1) { _root.createEmptyMovieClip("dd", 100000); with (_root.dd) { lineStyle(1, 16711680, 100); moveTo(xs, ys); lineTo((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); } _root.createEmptyMovieClip("tt", 100001); with (_root.tt) { lineStyle(1, 255, 100); moveTo(xs, ys); lineTo(xs + (Math.sin(ang - (Math.PI/2)) * widths), ys + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs - (Math.sin(ang - (Math.PI/2)) * widths), ys - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs + (Math.sin(ang) * heights), ys + (Math.cos(ang) * heights)); lineTo(xs - (Math.sin(ang) * heights), ys - (Math.cos(ang) * heights)); } } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[3] = 1; } return(arr); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; stop(); var qual = 3; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); onEnterFrame = function () { k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); }; stop(); RealTime = setInterval(function () { _root.hudamm = _root.car.ammo + "/100"; _root.hudwep = ""; switch (_root.car.weapon) { case 5 : _root.hudwep = "Booster"; break; case 2 : _root.hudwep = "MG"; break; case 7 : _root.hudwep = "Rocket"; break; case 1 : _root.hudwep = "Barrel"; break; case 6 : _root.hudwep = "Laser"; break; case 3 : _root.hudwep = "Oil"; break; case 4 : _root.hudwep = "Glue"; } var _local2 = new Date(); hours = _local2.getHours(); minutes = _local2.getMinutes(); _root.RealTime = ((hours + ":") + ((minutes < 10) ? "0" : "")) + minutes; }, 1000); var difficulty = 0; var map = "map1"; function pickchars() { _root.car.gotoAndStop(_root.carno); jj = false; rand = random(7) + 1; j = 0; while (j < _root.players.length) { if (rand == _root.players[j]) { jj = true; break; } j++; } if (jj) { _root.pickchars(); } else { _root.players.push(rand); _root["opp" + i] = rand; _root["car" + i].gotoAndStop(_root["opp" + i]); if (_root.i < 3) { _root.i++; _root.pickchars(); } } } var opp0 = _root.carno; players = []; players.push(_root.carno); i = 1; pickchars();
Instance of Symbol 279 MovieClip "tracks" in Frame 4
onClipEvent (load) { this.cacheAsBitmap = true; }
Instance of Symbol 281 MovieClip "bn12" in Frame 4
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.car.got = "tutorial"; _root.cam.action.desc.text = "New to the game? Play this first to figure out what's what"; _root.cam.action.pressd.text = "Press Enter to begin"; } }
Instance of Symbol 281 MovieClip "bn1" in Frame 4
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.characterselected = false; _root.car.got = 1; _root.cam.action.desc.text = "Reselect your character"; _root.cam.action.pressd.text = "Press Enter to begin"; } }
Instance of Symbol 281 MovieClip "bn3" in Frame 4
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.car.got = "selecttt"; _root.cam.action.desc.text = "Race against the world and compete for the best times on each map"; _root.cam.action.pressd.text = "Press Enter to begin"; } }
Instance of Symbol 281 MovieClip "bn5" in Frame 4
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { if (!this.hitting) { this.hitting = true; getURL ("http://www.rustygames.com", "_blank"); } } else { this.hitting = false; } }
Instance of Symbol 281 MovieClip "bn6" in Frame 4
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { if (!this.hitting) { this.hitting = true; getURL ("http://www.rustygames.com/highscores", "_blank"); } } else { this.hitting = false; } }
Instance of Symbol 281 MovieClip "bn7" in Frame 4
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { if (!this.hitting) { this.hitting = true; getURL ("http://www.armorgames.com", "_blank"); } } else { this.hitting = false; } }
Instance of Symbol 281 MovieClip in Frame 4
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.car.got = 13; _root.car.dif = 0; _root.cam.action.desc.text = "Race on all the tracks and gain points in gran prix mode! (Easy)"; _root.cam.action.pressd.text = "Press Enter to begin"; } }
Instance of Symbol 281 MovieClip in Frame 4
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.car.got = 13; _root.car.dif = 1; _root.cam.action.desc.text = "Race on all the tracks and gain points in gran prix mode! (Normal)"; _root.cam.action.pressd.text = "Press Enter to begin"; } }
Instance of Symbol 281 MovieClip in Frame 4
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.car.got = 13; _root.car.dif = 2; _root.cam.action.desc.text = "Race on all the tracks and gain points in gran prix mode! (Hard)"; _root.cam.action.pressd.text = "Press Enter to begin"; } }
Instance of Symbol 281 MovieClip in Frame 4
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.car.got = "storyBegin"; _root.car.dif = 0; _root.cam.action.desc.text = "Play as Jake and race to become world champ! (Easy)"; _root.cam.action.pressd.text = "Press Enter to begin"; } }
Instance of Symbol 281 MovieClip "bn10" in Frame 4
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.car.got = "storyBegin"; _root.car.dif = 1; _root.cam.action.desc.text = "Play as Jake and race to become world champ! (Normal)"; _root.cam.action.pressd.text = "Press Enter to begin"; } }
Instance of Symbol 281 MovieClip in Frame 4
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.car.got = "storyBegin"; _root.car.dif = 2; _root.cam.action.desc.text = "Play as Jake and race to become world champ! (Hard)"; _root.cam.action.pressd.text = "Press Enter to begin"; } }
Instance of Symbol 281 MovieClip "bn4" in Frame 4
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.car.got = "trophies"; _root.cam.action.desc.text = "View your awards you have earnt so far"; _root.cam.action.pressd.text = "Press Enter to begin"; } }
Instance of Symbol 281 MovieClip in Frame 4
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.car.got = "selectfr"; _root.car.dif = 0; _root.cam.action.desc.text = "Practice your skills on a track of your choice. (Easy)"; _root.cam.action.pressd.text = "Press Enter to begin"; } }
Instance of Symbol 281 MovieClip in Frame 4
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.car.got = "selectfr"; _root.car.dif = 1; _root.cam.action.desc.text = "Practice your skills on a track of your choice. (Normal)"; _root.cam.action.pressd.text = "Press Enter to begin"; } }
Instance of Symbol 281 MovieClip in Frame 4
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.car.got = "selectfr"; _root.car.dif = 2; _root.cam.action.desc.text = "Practice your skills on a track of your choice. (Hard)"; _root.cam.action.pressd.text = "Press Enter to begin"; } }
Instance of Symbol 281 MovieClip "bn9" in Frame 4
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.car.got = "selectch"; _root.cam.action.desc.text = "Complete various challenges for awards"; _root.cam.action.pressd.text = "Press Enter to begin"; } }
Instance of Symbol 281 MovieClip "bn8" in Frame 4
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.car.got = "credits"; _root.cam.action.desc.text = "View the credits. Watch from beginning to end for a special suprise"; _root.cam.action.pressd.text = "Press Enter to begin"; } }
Instance of Symbol 290 MovieClip "car" in Frame 4
onClipEvent (keyDown) { if (Key.isDown(13)) { _root.difficulty = this.dif; _root.gotoAndStop(this.got); } } onClipEvent (load) { this.gotoAndStop(_root.carno); var place = 0; var laps = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = 2; var decc = 0.95; var inc; var hits = new Array(); var currkey = 1; var node; var nodenum = 1; } onClipEvent (mouseDown) { this.mosD = true; switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name, _root._xmouse, _root._ymouse); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } } onClipEvent (mouseUp) { this.mosD = false; } onClipEvent (enterFrame) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } if (Key.isDown(65)) { this.weapon++; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (Key.isDown(38) || (Key.isDown(87))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; } else if (Key.isDown(40) || (Key.isDown(83))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.speed = this.speed - this.acc; } else { this.cars.gotoAndStop(1); } if (Key.isDown(37) || (Key.isDown(65))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation - Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (Key.isDown(39) || (Key.isDown(68))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation + Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); this.skidspeed = this.skidspeed - 3; } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; if (this.mosD) { _root.weapon2(this._name, _root._xmouse, _root._ymouse); } } else { this.weapons._rotation = 90; } if (this.weapon == 6) { if (this.mosD) { _root.weapon5(this._name); } } if (this.health <= 0) { this.health = 0; this.speed = 0; } if (this.health >= 100) { this.health = 100; } if (Key.isDown(32) == this.currkey) { this.health = this.health + 3; if (this.currkey == 0) { this.currkey = 1; } else { this.currkey = 0; } } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 311 MovieClip "cam" in Frame 4
onClipEvent (load) { this.carwatch = ""; }
Instance of Symbol 341 MovieClip in Frame 4
onClipEvent (load) { this.carwatch = ""; } onClipEvent (enterFrame) { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; }
Frame 5
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop1"); _root.bgm.start(0, 100); var opp0 = _root.carno; var maxlaps = _root.freeracelaps; players = []; players.push(_root.carno); i = 1; pickchars(); function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, heights, widths, ang) { var arr = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root.debug1) { _root.createEmptyMovieClip("dd", 100000); with (_root.dd) { lineStyle(1, 16711680, 100); moveTo(xs, ys); lineTo((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); } _root.createEmptyMovieClip("tt", 100001); with (_root.tt) { lineStyle(1, 255, 100); moveTo(xs, ys); lineTo(xs + (Math.sin(ang - (Math.PI/2)) * widths), ys + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs - (Math.sin(ang - (Math.PI/2)) * widths), ys - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs + (Math.sin(ang) * heights), ys + (Math.cos(ang) * heights)); lineTo(xs - (Math.sin(ang) * heights), ys - (Math.cos(ang) * heights)); } } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[3] = 1; } return(arr); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; stop(); var pauser = true; var pauser2 = true; var currentgptrack = 1; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var totalpoints1 = 0; var totalpoints2 = 0; var totalpoints3 = 0; var totalpoints4 = 0; var finished = []; onEnterFrame = function () { i = 1; while (i < 4) { if (_root["car" + i].laps >= _root.maxlaps) { if (!_root["car" + i].finishedrace) { _root.finished.push(i); _root["car" + i].finishedrace = true; } } i++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 0) { _root.gotoAndStop(1); } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 346 MovieClip "tracks" in Frame 5
onClipEvent (load) { this.cacheAsBitmap = true; }
Instance of Symbol 348 MovieClip in Frame 5
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._x < this._x) && (this["rem" + d] > this._x)) { _root[d].laps++; } if ((_root[d]._x > this._x) && (this["rem" + d] < this._x)) { _root[d].laps--; } } this["rem" + d] = _root[d]._x; } } } }
Instance of Symbol 354 MovieClip in Frame 5
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 354 MovieClip in Frame 5
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 354 MovieClip in Frame 5
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 354 MovieClip in Frame 5
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 354 MovieClip in Frame 5
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 354 MovieClip in Frame 5
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 423 MovieClip "car1" in Frame 5
onClipEvent (load) { this.gotoAndStop(_root.opp1); var laps = 0; var place = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = _root.dif3; var decc = 0.95; var inc; var hits = new Array(); var node; var nodenum = 1; var noderot; var recharge = false; var weapon = 0; var ammo = 0; } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; var goalRotation = ((-Math.atan2(this._x - _root[this.node]._x, this._y - _root[this.node]._y)) * 57.2957795130823); if (goalRotation != this._rotation) { this.speed = this.speed * 0.97; if ((Math.abs(this.speed) * 0.5) > 35) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } var maxRotation = Math.abs(this.speed * _root.dif2); var ang2 = (goalRotation - _rotation); ang2 = ang2 + ((ang2 < -180) ? 360 : (((ang2 > 180) ? -360 : 0))); _rotation = (_rotation + Math.max(-maxRotation, Math.min(ang2, maxRotation))); } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } _root.speedometer.needle._rotation = 12 * this.speed; this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.skidspeed--; this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); } if (this.health <= 0) { this.health = 0; this.recharge = true; } if (this.recharge) { this.speed = -2; this.health++; if (this.health >= 100) { this.health = 100; this.recharge = false; } } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } for (d in _root) { if (d.slice(0, 3) == "car") { a = this._x - _root[d]._x; b = this._y - _root[d]._y; if (((a * a) + (b * b)) < 160000) { switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; _root.weapon2(this._name, _root[d]._x, _root[d]._y); } else { this.weapons._rotation = 90; } if (this.weapon == 6) { _root.weapon5(this._name, _root[d]._x, _root[d]._y); } } } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 423 MovieClip "car2" in Frame 5
onClipEvent (load) { this.gotoAndStop(_root.opp2); var laps = 0; var place = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = _root.dif3; var decc = 0.95; var inc; var hits = new Array(); var node; var nodenum = 1; var noderot; var recharge = false; var weapon = 0; var ammo = 0; } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; var goalRotation = ((-Math.atan2(this._x - _root[this.node]._x, this._y - _root[this.node]._y)) * 57.2957795130823); if (goalRotation != this._rotation) { this.speed = this.speed * 0.97; if ((Math.abs(this.speed) * 0.5) > 35) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } var maxRotation = Math.abs(this.speed * _root.dif2); var ang2 = (goalRotation - _rotation); ang2 = ang2 + ((ang2 < -180) ? 360 : (((ang2 > 180) ? -360 : 0))); _rotation = (_rotation + Math.max(-maxRotation, Math.min(ang2, maxRotation))); } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } _root.speedometer.needle._rotation = 12 * this.speed; this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.skidspeed--; this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); } if (this.health <= 0) { this.health = 0; this.recharge = true; } if (this.recharge) { this.speed = -2; this.health++; if (this.health >= 100) { this.health = 100; this.recharge = false; } } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } for (d in _root) { if (d.slice(0, 3) == "car") { a = this._x - _root[d]._x; b = this._y - _root[d]._y; if (((a * a) + (b * b)) < 160000) { switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; _root.weapon2(this._name, _root[d]._x, _root[d]._y); } else { this.weapons._rotation = 90; } if (this.weapon == 6) { _root.weapon5(this._name, _root[d]._x, _root[d]._y); } } } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 423 MovieClip "car3" in Frame 5
onClipEvent (load) { this.gotoAndStop(_root.opp3); var laps = 0; var place = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = _root.dif3; var decc = 0.95; var inc; var hits = new Array(); var node; var nodenum = 1; var noderot; var recharge = false; var weapon = 0; var ammo = 0; } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; var goalRotation = ((-Math.atan2(this._x - _root[this.node]._x, this._y - _root[this.node]._y)) * 57.2957795130823); if (goalRotation != this._rotation) { this.speed = this.speed * 0.97; if ((Math.abs(this.speed) * 0.5) > 35) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } var maxRotation = Math.abs(this.speed * _root.dif2); var ang2 = (goalRotation - _rotation); ang2 = ang2 + ((ang2 < -180) ? 360 : (((ang2 > 180) ? -360 : 0))); _rotation = (_rotation + Math.max(-maxRotation, Math.min(ang2, maxRotation))); } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } _root.speedometer.needle._rotation = 12 * this.speed; this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.skidspeed--; this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); } if (this.health <= 0) { this.health = 0; this.recharge = true; } if (this.recharge) { this.speed = -2; this.health++; if (this.health >= 100) { this.health = 100; this.recharge = false; } } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } for (d in _root) { if (d.slice(0, 3) == "car") { a = this._x - _root[d]._x; b = this._y - _root[d]._y; if (((a * a) + (b * b)) < 160000) { switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; _root.weapon2(this._name, _root[d]._x, _root[d]._y); } else { this.weapons._rotation = 90; } if (this.weapon == 6) { _root.weapon5(this._name, _root[d]._x, _root[d]._y); } } } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 423 MovieClip "car" in Frame 5
onClipEvent (load) { this.gotoAndStop(_root.opp0); var place = 0; var laps = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = 2; var decc = 0.95; var inc; var hits = new Array(); var weapon = 0; var ammo = 100; var currkey = 1; var node; var nodenum = 1; } onClipEvent (mouseDown) { if (!_root.pauser) { this.mosD = true; switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name, _root._xmouse, _root._ymouse); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } } } onClipEvent (mouseUp) { if (!_root.pauser) { this.mosD = false; } } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { _root.position = 4; for (d in _root) { if (_root[d].place < this.place) { _root.position--; _root.cam.posi.text = _root.position; } } this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (Key.isDown(38) || (Key.isDown(87))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; } else if (Key.isDown(40) || (Key.isDown(83))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.speed = this.speed - this.acc; } else { this.cars.gotoAndStop(1); } if (Key.isDown(37) || (Key.isDown(65))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation - Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (Key.isDown(39) || (Key.isDown(68))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation + Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); this.skidspeed = this.skidspeed - 3; } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; if (this.mosD) { _root.weapon2(this._name, _root._xmouse, _root._ymouse); } } else { this.weapons._rotation = 90; } if (this.weapon == 6) { if (this.mosD) { _root.weapon5(this._name); } } if (this.health <= 0) { this.health = 0; this.speed = 0; } if (this.health >= 100) { this.health = 100; } if (Key.isDown(32) == this.currkey) { this.health = this.health + 3; if (this.currkey == 0) { this.currkey = 1; } else { this.currkey = 0; } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 517 MovieClip "cam" in Frame 5
onClipEvent (load) { this.trackf = 1; this.carwatch = ""; }
Frame 6
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop2"); _root.bgm.start(0, 100); var opp0 = _root.carno; var maxlaps = _root.freeracelaps; players = []; players.push(_root.carno); i = 1; pickchars(); function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, widths, heights, ang) { var _local5 = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[3] = 1; } return(_local5); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; stop(); var pauser = true; var pauser2 = true; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var finished = []; onEnterFrame = function () { i = 1; while (i < 4) { if (_root["car" + i].laps >= _root.maxlaps) { if (!_root["car" + i].finishedrace) { _root.finished.push(i); _root["car" + i].finishedrace = true; } } i++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 0) { _root.gotoAndStop(1); } _root.places = []; for (d in _root) { if (d.slice(0, 3) == "car") { _root.places.push({nam:d, place:_root[d].place}); } } _root.places.sortOn("place", Array.DESCENDING | Array.NUMERIC); i = 0; while (i < 5) { if (_root.places[i].nam == "car") { _root.position = i + 1; } i++; } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 522 MovieClip "tracks" in Frame 6
onClipEvent (load) { this.cacheAsBitmap = true; }
Instance of Symbol 348 MovieClip in Frame 6
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._y < this._y) && (this["rem" + d] > this._y)) { _root[d].laps++; } if ((_root[d]._y > this._y) && (this["rem" + d] < this._y)) { _root[d].laps--; } } this["rem" + d] = _root[d]._y; } } } }
Instance of Symbol 423 MovieClip "car" in Frame 6
onClipEvent (load) { this.gotoAndStop(_root.opp0); var place = 0; var laps = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = 2; var decc = 0.95; var inc; var hits = new Array(); var weapon = 0; var ammo = 100; var currkey = 1; var node; var nodenum = 1; } onClipEvent (mouseDown) { if (!_root.pauser) { this.mosD = true; switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name, _root._xmouse, _root._ymouse); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } } } onClipEvent (mouseUp) { if (!_root.pauser) { this.mosD = false; } } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { _root.position = 4; for (d in _root) { if (_root[d].place < this.place) { _root.position--; _root.cam.posi.text = _root.position; } } this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (Key.isDown(38) || (Key.isDown(87))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; } else if (Key.isDown(40) || (Key.isDown(83))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.speed = this.speed - this.acc; } else { this.cars.gotoAndStop(1); } if (Key.isDown(37) || (Key.isDown(65))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation - Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (Key.isDown(39) || (Key.isDown(68))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation + Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); this.skidspeed = this.skidspeed - 3; } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; if (this.mosD) { _root.weapon2(this._name, _root._xmouse, _root._ymouse); } } else { this.weapons._rotation = 90; } if (this.weapon == 6) { if (this.mosD) { _root.weapon5(this._name); } } if (this.health <= 0) { this.health = 0; this.speed = 0; } if (this.health >= 100) { this.health = 100; } if (Key.isDown(32) == this.currkey) { this.health = this.health + 3; if (this.currkey == 0) { this.currkey = 1; } else { this.currkey = 0; } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 423 MovieClip "car1" in Frame 6
onClipEvent (load) { this.gotoAndStop(_root.opp1); var laps = 0; var place = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = _root.dif3; var decc = 0.95; var inc; var hits = new Array(); var node; var nodenum = 1; var noderot; var recharge = false; var weapon = 0; var ammo = 0; } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; var goalRotation = ((-Math.atan2(this._x - _root[this.node]._x, this._y - _root[this.node]._y)) * 57.2957795130823); if (goalRotation != this._rotation) { this.speed = this.speed * 0.97; if ((Math.abs(this.speed) * 0.5) > 35) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } var maxRotation = Math.abs(this.speed * _root.dif2); var ang2 = (goalRotation - _rotation); ang2 = ang2 + ((ang2 < -180) ? 360 : (((ang2 > 180) ? -360 : 0))); _rotation = (_rotation + Math.max(-maxRotation, Math.min(ang2, maxRotation))); } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } _root.speedometer.needle._rotation = 12 * this.speed; this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.skidspeed--; this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); } if (this.health <= 0) { this.health = 0; this.recharge = true; } if (this.recharge) { this.speed = -2; this.health++; if (this.health >= 100) { this.health = 100; this.recharge = false; } } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } for (d in _root) { if (d.slice(0, 3) == "car") { a = this._x - _root[d]._x; b = this._y - _root[d]._y; if (((a * a) + (b * b)) < 160000) { switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; _root.weapon2(this._name, _root[d]._x, _root[d]._y); } else { this.weapons._rotation = 90; } if (this.weapon == 6) { _root.weapon5(this._name, _root[d]._x, _root[d]._y); } } } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 423 MovieClip "car2" in Frame 6
onClipEvent (load) { this.gotoAndStop(_root.opp2); var laps = 0; var place = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = _root.dif3; var decc = 0.95; var inc; var hits = new Array(); var node; var nodenum = 1; var noderot; var recharge = false; var weapon = 0; var ammo = 0; } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; var goalRotation = ((-Math.atan2(this._x - _root[this.node]._x, this._y - _root[this.node]._y)) * 57.2957795130823); if (goalRotation != this._rotation) { this.speed = this.speed * 0.97; if ((Math.abs(this.speed) * 0.5) > 35) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } var maxRotation = Math.abs(this.speed * _root.dif2); var ang2 = (goalRotation - _rotation); ang2 = ang2 + ((ang2 < -180) ? 360 : (((ang2 > 180) ? -360 : 0))); _rotation = (_rotation + Math.max(-maxRotation, Math.min(ang2, maxRotation))); } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } _root.speedometer.needle._rotation = 12 * this.speed; this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.skidspeed--; this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); } if (this.health <= 0) { this.health = 0; this.recharge = true; } if (this.recharge) { this.speed = -2; this.health++; if (this.health >= 100) { this.health = 100; this.recharge = false; } } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } for (d in _root) { if (d.slice(0, 3) == "car") { a = this._x - _root[d]._x; b = this._y - _root[d]._y; if (((a * a) + (b * b)) < 160000) { switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; _root.weapon2(this._name, _root[d]._x, _root[d]._y); } else { this.weapons._rotation = 90; } if (this.weapon == 6) { _root.weapon5(this._name, _root[d]._x, _root[d]._y); } } } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 423 MovieClip "car3" in Frame 6
onClipEvent (load) { this.gotoAndStop(_root.opp3); var laps = 0; var place = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = _root.dif3; var decc = 0.95; var inc; var hits = new Array(); var node; var nodenum = 1; var noderot; var recharge = false; var weapon = 0; var ammo = 0; } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; var goalRotation = ((-Math.atan2(this._x - _root[this.node]._x, this._y - _root[this.node]._y)) * 57.2957795130823); if (goalRotation != this._rotation) { this.speed = this.speed * 0.97; if ((Math.abs(this.speed) * 0.5) > 35) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } var maxRotation = Math.abs(this.speed * _root.dif2); var ang2 = (goalRotation - _rotation); ang2 = ang2 + ((ang2 < -180) ? 360 : (((ang2 > 180) ? -360 : 0))); _rotation = (_rotation + Math.max(-maxRotation, Math.min(ang2, maxRotation))); } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } _root.speedometer.needle._rotation = 12 * this.speed; this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.skidspeed--; this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); } if (this.health <= 0) { this.health = 0; this.recharge = true; } if (this.recharge) { this.speed = -2; this.health++; if (this.health >= 100) { this.health = 100; this.recharge = false; } } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } for (d in _root) { if (d.slice(0, 3) == "car") { a = this._x - _root[d]._x; b = this._y - _root[d]._y; if (((a * a) + (b * b)) < 160000) { switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; _root.weapon2(this._name, _root[d]._x, _root[d]._y); } else { this.weapons._rotation = 90; } if (this.weapon == 6) { _root.weapon5(this._name, _root[d]._x, _root[d]._y); } } } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 517 MovieClip "cam" in Frame 6
onClipEvent (load) { this.trackf = 2; this.carwatch = ""; } onClipEvent (enterFrame) { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; }
Frame 7
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop3"); _root.bgm.start(0, 100); var opp0 = _root.carno; var maxlaps = _root.freeracelaps; players = []; players.push(_root.carno); i = 1; pickchars(); function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, widths, heights, ang) { var _local5 = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[3] = 1; } return(_local5); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; stop(); var pauser = true; var pauser2 = true; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var finished = []; onEnterFrame = function () { i = 1; while (i < 4) { if (_root["car" + i].laps >= _root.maxlaps) { if (!_root["car" + i].finishedrace) { _root.finished.push(i); _root["car" + i].finishedrace = true; } } i++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 0) { _root.gotoAndStop(1); } _root.places = []; for (d in _root) { if (d.slice(0, 3) == "car") { _root.places.push({nam:d, place:_root[d].place}); } } _root.places.sortOn("place", Array.DESCENDING | Array.NUMERIC); i = 0; while (i < 5) { if (_root.places[i].nam == "car") { _root.position = i + 1; } i++; } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 530 MovieClip "tracks" in Frame 7
onClipEvent (load) { this.cacheAsBitmap = true; }
Instance of Symbol 348 MovieClip in Frame 7
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._y > this._y) && (this["rem" + d] < this._y)) { _root[d].laps++; } if ((_root[d]._y < this._y) && (this["rem" + d] > this._y)) { _root[d].laps--; } } this["rem" + d] = _root[d]._y; } } } }
Instance of Symbol 423 MovieClip "car" in Frame 7
onClipEvent (load) { this.gotoAndStop(_root.opp0); var place = 0; var laps = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = 2; var decc = 0.95; var inc; var hits = new Array(); var weapon = 0; var ammo = 100; var currkey = 1; var node; var nodenum = 1; } onClipEvent (mouseDown) { if (!_root.pauser) { this.mosD = true; switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name, _root._xmouse, _root._ymouse); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } } } onClipEvent (mouseUp) { if (!_root.pauser) { this.mosD = false; } } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { _root.position = 4; for (d in _root) { if (_root[d].place < this.place) { _root.position--; _root.cam.posi.text = _root.position; } } this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (Key.isDown(38) || (Key.isDown(87))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; } else if (Key.isDown(40) || (Key.isDown(83))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.speed = this.speed - this.acc; } else { this.cars.gotoAndStop(1); } if (Key.isDown(37) || (Key.isDown(65))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation - Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (Key.isDown(39) || (Key.isDown(68))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation + Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); this.skidspeed = this.skidspeed - 3; } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; if (this.mosD) { _root.weapon2(this._name, _root._xmouse, _root._ymouse); } } else { this.weapons._rotation = 90; } if (this.weapon == 6) { if (this.mosD) { _root.weapon5(this._name); } } if (this.health <= 0) { this.health = 0; this.speed = 0; } if (this.health >= 100) { this.health = 100; } if (Key.isDown(32) == this.currkey) { this.health = this.health + 3; if (this.currkey == 0) { this.currkey = 1; } else { this.currkey = 0; } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 517 MovieClip "cam" in Frame 7
onClipEvent (load) { this.trackf = 3; this.carwatch = ""; } onClipEvent (enterFrame) { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; }
Frame 8
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop8"); _root.bgm.start(0, 100); var opp0 = _root.carno; var maxlaps = _root.freeracelaps; players = []; players.push(_root.carno); i = 1; pickchars(); function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, widths, heights, ang) { var _local5 = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[3] = 1; } return(_local5); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 8; stop(); var pauser = true; var pauser2 = true; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var finished = []; onEnterFrame = function () { i = 1; while (i < 4) { if (_root["car" + i].laps >= _root.maxlaps) { if (!_root["car" + i].finishedrace) { _root.finished.push(i); _root["car" + i].finishedrace = true; } } i++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 0) { _root.gotoAndStop(1); } _root.places = []; for (d in _root) { if (d.slice(0, 3) == "car") { _root.places.push({nam:d, place:_root[d].place}); } } _root.places.sortOn("place", Array.DESCENDING | Array.NUMERIC); i = 0; while (i < 5) { if (_root.places[i].nam == "car") { _root.position = i + 1; } i++; } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 535 MovieClip "tracks" in Frame 8
onClipEvent (load) { this.cacheAsBitmap = true; }
Instance of Symbol 348 MovieClip in Frame 8
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._x > this._x) && (this["rem" + d] < this._x)) { _root[d].laps--; } if ((_root[d]._x < this._x) && (this["rem" + d] > this._x)) { _root[d].laps++; } } this["rem" + d] = _root[d]._x; } } } }
Instance of Symbol 354 MovieClip in Frame 8
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 354 MovieClip in Frame 8
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 517 MovieClip "cam" in Frame 8
onClipEvent (load) { this.trackf = 4; this.carwatch = ""; } onClipEvent (enterFrame) { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; }
Frame 9
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop6"); _root.bgm.start(0, 100); var opp0 = _root.carno; var maxlaps = _root.freeracelaps; players = []; players.push(_root.carno); i = 1; pickchars(); function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, widths, heights, ang) { var _local5 = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[3] = 1; } return(_local5); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; stop(); var pauser = true; var pauser2 = true; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var finished = []; onEnterFrame = function () { i = 1; while (i < 4) { if (_root["car" + i].laps >= _root.maxlaps) { if (!_root["car" + i].finishedrace) { _root.finished.push(i); _root["car" + i].finishedrace = true; } } i++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 0) { _root.gotoAndStop(1); } _root.places = []; for (d in _root) { if (d.slice(0, 3) == "car") { _root.places.push({nam:d, place:_root[d].place}); } } _root.places.sortOn("place", Array.DESCENDING | Array.NUMERIC); i = 0; while (i < 5) { if (_root.places[i].nam == "car") { _root.position = i + 1; } i++; } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 540 MovieClip "tracks" in Frame 9
onClipEvent (load) { this.cacheAsBitmap = true; }
Instance of Symbol 348 MovieClip "yea" in Frame 9
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._y > this._y) && (this["rem" + d] < this._y)) { _root[d].laps--; } if ((_root[d]._y < this._y) && (this["rem" + d] > this._y)) { _root[d].laps++; } } this["rem" + d] = _root[d]._y; } } } }
Instance of Symbol 143 MovieClip "tele1" in Frame 9
onClipEvent (load) { this.parent = 4; this.timed = 0; } onClipEvent (enterFrame) { if (this.teleported) { this.timed++; if (this.timed >= 30) { this.timed = 0; this.teleported = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root[car]._x, _root.car._y, 1)) { if (!this._parent["tele" + this.parent].teleported) { _root[car]._x = this._parent["tele" + this.parent]._x; _root[car]._y = this._parent["tele" + this.parent]._y; } this._parent["tele" + this.parent].teleported = true; } } } } }
Instance of Symbol 143 MovieClip "tele2" in Frame 9
onClipEvent (load) { this.parent = 3; this.timed = 0; } onClipEvent (enterFrame) { if (this.teleported) { this.timed++; if (this.timed >= 30) { this.timed = 0; this.teleported = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root[car]._x, _root.car._y, 1)) { if (!this._parent["tele" + this.parent].teleported) { _root[car]._x = this._parent["tele" + this.parent]._x; _root[car]._y = this._parent["tele" + this.parent]._y; } this._parent["tele" + this.parent].teleported = true; } } } } }
Instance of Symbol 143 MovieClip "tele3" in Frame 9
onClipEvent (load) { this.parent = 2; this.timed = 0; } onClipEvent (enterFrame) { if (this.teleported) { this.timed++; if (this.timed >= 30) { this.timed = 0; this.teleported = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root[car]._x, _root.car._y, 1)) { if (!this._parent["tele" + this.parent].teleported) { _root[car]._x = this._parent["tele" + this.parent]._x; _root[car]._y = this._parent["tele" + this.parent]._y; } this._parent["tele" + this.parent].teleported = true; } } } } }
Instance of Symbol 143 MovieClip "tele4" in Frame 9
onClipEvent (load) { this.parent = 1; this.timed = 0; } onClipEvent (enterFrame) { if (this.teleported) { this.timed++; if (this.timed >= 30) { this.timed = 0; this.teleported = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root[car]._x, _root.car._y, 1)) { if (!this._parent["tele" + this.parent].teleported) { _root[car]._x = this._parent["tele" + this.parent]._x; _root[car]._y = this._parent["tele" + this.parent]._y; } this._parent["tele" + this.parent].teleported = true; } } } } }
Instance of Symbol 143 MovieClip "tele5" in Frame 9
onClipEvent (load) { this.parent = 3; this.timed = 0; } onClipEvent (enterFrame) { if (this.teleported) { this.timed++; if (this.timed >= 30) { this.timed = 0; this.teleported = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root[car]._x, _root.car._y, 1)) { if (!this._parent["tele" + this.parent].teleported) { _root[car]._x = this._parent["tele" + this.parent]._x; _root[car]._y = this._parent["tele" + this.parent]._y; } this._parent["tele" + this.parent].teleported = true; } } } } }
Instance of Symbol 517 MovieClip "cam" in Frame 9
onClipEvent (load) { this.trackf = 5; this.carwatch = ""; } onClipEvent (enterFrame) { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; }
Frame 10
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop3"); _root.bgm.start(0, 100); var opp0 = _root.carno; var maxlaps = _root.freeracelaps; players = []; players.push(_root.carno); i = 1; pickchars(); function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, widths, heights, ang) { var _local5 = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[3] = 1; } return(_local5); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; stop(); var pauser = true; var pauser2 = true; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var finished = []; onEnterFrame = function () { i = 1; while (i < 4) { if (_root["car" + i].laps >= _root.maxlaps) { if (!_root["car" + i].finishedrace) { _root.finished.push(i); _root["car" + i].finishedrace = true; } } i++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 0) { _root.gotoAndStop(1); } _root.places = []; for (d in _root) { if (d.slice(0, 3) == "car") { _root.places.push({nam:d, place:_root[d].place}); } } _root.places.sortOn("place", Array.DESCENDING | Array.NUMERIC); i = 0; while (i < 5) { if (_root.places[i].nam == "car") { _root.position = i + 1; } i++; } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 545 MovieClip "tracks" in Frame 10
onClipEvent (load) { this.cacheAsBitmap = true; }
Instance of Symbol 354 MovieClip in Frame 10
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 354 MovieClip in Frame 10
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 549 MovieClip in Frame 10
onClipEvent (load) { var ond = false; var timer = 0; } onClipEvent (enterFrame) { if (this.ond) { timer++; if (this.timer > 100) { this.timer = 0; this.ond = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root.car._x, _root.car._y, 1)) { this.ond = true; _root.weapon3("m1l", _root.car._x, _root.car._y); } } } } }
Instance of Symbol 549 MovieClip in Frame 10
onClipEvent (load) { var ond = false; var timer = 0; } onClipEvent (enterFrame) { if (this.ond) { timer++; if (this.timer > 100) { this.timer = 0; this.ond = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root.car._x, _root.car._y, 1)) { this.ond = true; _root.weapon3("m2l", _root.car._x, _root.car._y); } } } } }
Instance of Symbol 517 MovieClip "cam" in Frame 10
onClipEvent (load) { this.trackf = 6; this.carwatch = ""; } onClipEvent (enterFrame) { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; }
Frame 11
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop5"); _root.bgm.start(0, 100); var opp0 = _root.carno; var maxlaps = _root.freeracelaps; players = []; players.push(_root.carno); i = 1; pickchars(); function weapon2o(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root.tracks[target]._x - xa, _root.tracks[target]._y - ya), _x:_root.tracks[target]._x, _y:_root.tracks[target]._y, par:target, _rotation:(-Math.atan2(_root.tracks[target]._x - _root._xmouse, _root.tracks[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._alpha--; if (this._alpha < 80) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.play(); this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, widths, heights, ang) { var _local5 = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[3] = 1; } return(_local5); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; stop(); var pauser = true; var pauser2 = true; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var finished = []; onEnterFrame = function () { i = 1; while (i < 4) { if (_root["car" + i].laps >= _root.maxlaps) { if (!_root["car" + i].finishedrace) { _root.finished.push(i); _root["car" + i].finishedrace = true; } } i++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 0) { _root.gotoAndStop(1); } _root.places = []; for (d in _root) { if (d.slice(0, 3) == "car") { _root.places.push({nam:d, place:_root[d].place}); } } _root.places.sortOn("place", Array.DESCENDING | Array.NUMERIC); i = 0; while (i < 5) { if (_root.places[i].nam == "car") { _root.position = i + 1; } i++; } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 348 MovieClip in Frame 11
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._x > this._x) && (this["rem" + d] < this._x)) { _root[d].laps--; } if ((_root[d]._x < this._x) && (this["rem" + d] > this._x)) { _root[d].laps++; } } this["rem" + d] = _root[d]._x; } } } }
Instance of Symbol 517 MovieClip "cam" in Frame 11
onClipEvent (load) { this.trackf = 7; this.carwatch = ""; } onClipEvent (enterFrame) { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; }
Frame 12
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop7"); _root.bgm.start(0, 100); var opp0 = _root.carno; var maxlaps = _root.freeracelaps; players = []; players.push(_root.carno); i = 1; pickchars(); function weapon2o(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root.tracks[target]._x - xa, _root.tracks[target]._y - ya), _x:_root.tracks[target]._x, _y:_root.tracks[target]._y, par:target, _rotation:(-Math.atan2(_root.tracks[target]._x - _root._xmouse, _root.tracks[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._alpha--; if (this._alpha < 80) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.play(); this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, widths, heights, ang) { var _local5 = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[3] = 1; } return(_local5); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 22; stop(); var pauser = true; var pauser2 = true; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var finished = []; onEnterFrame = function () { i = 1; while (i < 4) { if (_root["car" + i].laps >= _root.maxlaps) { if (!_root["car" + i].finishedrace) { _root.finished.push(i); _root["car" + i].finishedrace = true; } } i++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 0) { _root.gotoAndStop(1); } _root.places = []; for (d in _root) { if (d.slice(0, 3) == "car") { _root.places.push({nam:d, place:_root[d].place}); } } _root.places.sortOn("place", Array.DESCENDING | Array.NUMERIC); i = 0; while (i < 5) { if (_root.places[i].nam == "car") { _root.position = i + 1; } i++; } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 348 MovieClip in Frame 12
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._y > this._y) && (this["rem" + d] < this._y)) { _root[d].laps--; } if ((_root[d]._y < this._y) && (this["rem" + d] > this._y)) { _root[d].laps++; } } this["rem" + d] = _root[d]._x; } } } }
Instance of Symbol 549 MovieClip in Frame 12
onClipEvent (load) { var ond = false; var timer = 0; } onClipEvent (enterFrame) { if (this.ond) { timer++; if (this.timer > 100) { this.timer = 0; this.ond = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root.car._x, _root.car._y, 1)) { this.ond = true; _root.weapon3("m2l", _root.car._x, _root.car._y); } } } } }
Instance of Symbol 549 MovieClip in Frame 12
onClipEvent (load) { var ond = false; var timer = 0; } onClipEvent (enterFrame) { if (this.ond) { timer++; if (this.timer > 100) { this.timer = 0; this.ond = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root.car._x, _root.car._y, 1)) { this.ond = true; _root.weapon3("m1l", _root.car._x, _root.car._y); } } } } }
Instance of Symbol 517 MovieClip "cam" in Frame 12
onClipEvent (load) { this.trackf = 8; this.carwatch = ""; } onClipEvent (enterFrame) { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; }
Frame 13
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop1"); _root.bgm.start(0, 100); var opp0 = _root.carno; var maxlaps = 3; players = []; players.push(_root.carno); i = 1; pickchars(); function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, heights, widths, ang) { var arr = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root.debug1) { _root.createEmptyMovieClip("dd", 100000); with (_root.dd) { lineStyle(1, 16711680, 100); moveTo(xs, ys); lineTo((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); } _root.createEmptyMovieClip("tt", 100001); with (_root.tt) { lineStyle(1, 255, 100); moveTo(xs, ys); lineTo(xs + (Math.sin(ang - (Math.PI/2)) * widths), ys + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs - (Math.sin(ang - (Math.PI/2)) * widths), ys - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs + (Math.sin(ang) * heights), ys + (Math.cos(ang) * heights)); lineTo(xs - (Math.sin(ang) * heights), ys - (Math.cos(ang) * heights)); } } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[3] = 1; } return(arr); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; stop(); var pauser = true; var pauser2 = true; var currentgptrack = 1; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var totalpoints1 = 0; var totalpoints2 = 0; var totalpoints3 = 0; var totalpoints4 = 0; var finished = []; onEnterFrame = function () { i = 1; while (i < 4) { if (_root["car" + i].laps >= _root.maxlaps) { if (!_root["car" + i].finishedrace) { _root.finished.push(i); _root["car" + i].finishedrace = true; } } i++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 3) { _root.gotoAndStop("gppoints"); } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 346 MovieClip "tracks" in Frame 13
onClipEvent (load) { this.cacheAsBitmap = true; }
Instance of Symbol 348 MovieClip in Frame 13
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._x < this._x) && (this["rem" + d] > this._x)) { _root[d].laps++; } if ((_root[d]._x > this._x) && (this["rem" + d] < this._x)) { _root[d].laps--; } } this["rem" + d] = _root[d]._x; } } } }
Instance of Symbol 354 MovieClip in Frame 13
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 354 MovieClip in Frame 13
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 354 MovieClip in Frame 13
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 354 MovieClip in Frame 13
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 354 MovieClip in Frame 13
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 354 MovieClip in Frame 13
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 423 MovieClip "car" in Frame 13
onClipEvent (load) { this.gotoAndStop(_root.opp0); var place = 0; var laps = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = 2; var decc = 0.95; var inc; var hits = new Array(); var weapon = 0; var ammo = 100; var currkey = 1; var node; var nodenum = 1; } onClipEvent (mouseDown) { if (!_root.pauser) { this.mosD = true; switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name, _root._xmouse, _root._ymouse); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } } } onClipEvent (mouseUp) { if (!_root.pauser) { this.mosD = false; } } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { _root.position = 4; for (d in _root) { if (_root[d].place < this.place) { _root.position--; _root.cam.posi.text = _root.position; } } this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (Key.isDown(38) || (Key.isDown(87))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; } else if (Key.isDown(40) || (Key.isDown(83))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.speed = this.speed - this.acc; } else { this.cars.gotoAndStop(1); } if (Key.isDown(37) || (Key.isDown(65))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation - Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (Key.isDown(39) || (Key.isDown(68))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation + Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); this.skidspeed = this.skidspeed - 3; } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; if (this.mosD) { _root.weapon2(this._name, _root._xmouse, _root._ymouse); } } else { this.weapons._rotation = 90; } if (this.weapon == 6) { if (this.mosD) { _root.weapon5(this._name); } } if (this.health <= 0) { this.health = 0; this.speed = 0; } if (this.health >= 100) { this.health = 100; } if (Key.isDown(32) == this.currkey) { this.health = this.health + 3; if (this.currkey == 0) { this.currkey = 1; } else { this.currkey = 0; } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 423 MovieClip "car1" in Frame 13
onClipEvent (load) { this.gotoAndStop(_root.opp1); var laps = 0; var place = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = _root.dif3; var decc = 0.95; var inc; var hits = new Array(); var node; var nodenum = 1; var noderot; var recharge = false; var weapon = 0; var ammo = 0; } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; var goalRotation = ((-Math.atan2(this._x - _root[this.node]._x, this._y - _root[this.node]._y)) * 57.2957795130823); if (goalRotation != this._rotation) { this.speed = this.speed * 0.97; if ((Math.abs(this.speed) * 0.5) > 35) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } var maxRotation = Math.abs(this.speed * _root.dif2); var ang2 = (goalRotation - _rotation); ang2 = ang2 + ((ang2 < -180) ? 360 : (((ang2 > 180) ? -360 : 0))); _rotation = (_rotation + Math.max(-maxRotation, Math.min(ang2, maxRotation))); } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } _root.speedometer.needle._rotation = 12 * this.speed; this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.skidspeed--; this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); } if (this.health <= 0) { this.health = 0; this.recharge = true; } if (this.recharge) { this.speed = -2; this.health++; if (this.health >= 100) { this.health = 100; this.recharge = false; } } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } for (d in _root) { if (d.slice(0, 3) == "car") { a = this._x - _root[d]._x; b = this._y - _root[d]._y; if (((a * a) + (b * b)) < 160000) { switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; _root.weapon2(this._name, _root[d]._x, _root[d]._y); } else { this.weapons._rotation = 90; } if (this.weapon == 6) { _root.weapon5(this._name, _root[d]._x, _root[d]._y); } } } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 423 MovieClip "car2" in Frame 13
onClipEvent (load) { this.gotoAndStop(_root.opp2); var laps = 0; var place = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = _root.dif3; var decc = 0.95; var inc; var hits = new Array(); var node; var nodenum = 1; var noderot; var recharge = false; var weapon = 0; var ammo = 0; } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; var goalRotation = ((-Math.atan2(this._x - _root[this.node]._x, this._y - _root[this.node]._y)) * 57.2957795130823); if (goalRotation != this._rotation) { this.speed = this.speed * 0.97; if ((Math.abs(this.speed) * 0.5) > 35) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } var maxRotation = Math.abs(this.speed * _root.dif2); var ang2 = (goalRotation - _rotation); ang2 = ang2 + ((ang2 < -180) ? 360 : (((ang2 > 180) ? -360 : 0))); _rotation = (_rotation + Math.max(-maxRotation, Math.min(ang2, maxRotation))); } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } _root.speedometer.needle._rotation = 12 * this.speed; this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.skidspeed--; this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); } if (this.health <= 0) { this.health = 0; this.recharge = true; } if (this.recharge) { this.speed = -2; this.health++; if (this.health >= 100) { this.health = 100; this.recharge = false; } } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } for (d in _root) { if (d.slice(0, 3) == "car") { a = this._x - _root[d]._x; b = this._y - _root[d]._y; if (((a * a) + (b * b)) < 160000) { switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; _root.weapon2(this._name, _root[d]._x, _root[d]._y); } else { this.weapons._rotation = 90; } if (this.weapon == 6) { _root.weapon5(this._name, _root[d]._x, _root[d]._y); } } } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 423 MovieClip "car3" in Frame 13
onClipEvent (load) { this.gotoAndStop(_root.opp3); var laps = 0; var place = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = _root.dif3; var decc = 0.95; var inc; var hits = new Array(); var node; var nodenum = 1; var noderot; var recharge = false; var weapon = 0; var ammo = 0; } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; var goalRotation = ((-Math.atan2(this._x - _root[this.node]._x, this._y - _root[this.node]._y)) * 57.2957795130823); if (goalRotation != this._rotation) { this.speed = this.speed * 0.97; if ((Math.abs(this.speed) * 0.5) > 35) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } var maxRotation = Math.abs(this.speed * _root.dif2); var ang2 = (goalRotation - _rotation); ang2 = ang2 + ((ang2 < -180) ? 360 : (((ang2 > 180) ? -360 : 0))); _rotation = (_rotation + Math.max(-maxRotation, Math.min(ang2, maxRotation))); } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } _root.speedometer.needle._rotation = 12 * this.speed; this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.skidspeed--; this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); } if (this.health <= 0) { this.health = 0; this.recharge = true; } if (this.recharge) { this.speed = -2; this.health++; if (this.health >= 100) { this.health = 100; this.recharge = false; } } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } for (d in _root) { if (d.slice(0, 3) == "car") { a = this._x - _root[d]._x; b = this._y - _root[d]._y; if (((a * a) + (b * b)) < 160000) { switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; _root.weapon2(this._name, _root[d]._x, _root[d]._y); } else { this.weapons._rotation = 90; } if (this.weapon == 6) { _root.weapon5(this._name, _root[d]._x, _root[d]._y); } } } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 517 MovieClip "cam" in Frame 13
onClipEvent (load) { this.trackf = 1; this.carwatch = ""; }
Frame 14
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop2"); _root.bgm.start(0, 100); var opp0 = _root.carno; var maxlaps = 3; function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, widths, heights, ang) { var _local5 = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[3] = 1; } return(_local5); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; stop(); var pauser = true; var pauser2 = true; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var finished = []; onEnterFrame = function () { i = 1; while (i < 4) { if (_root["car" + i].laps >= _root.maxlaps) { if (!_root["car" + i].finishedrace) { _root.finished.push(i); _root["car" + i].finishedrace = true; } } i++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 3) { _root.gotoAndStop("gppoints"); } _root.places = []; for (d in _root) { if (d.slice(0, 3) == "car") { _root.places.push({nam:d, place:_root[d].place}); } } _root.places.sortOn("place", Array.DESCENDING | Array.NUMERIC); i = 0; while (i < 5) { if (_root.places[i].nam == "car") { _root.position = i + 1; } i++; } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 522 MovieClip "tracks" in Frame 14
onClipEvent (load) { this.cacheAsBitmap = true; }
Instance of Symbol 348 MovieClip in Frame 14
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._y < this._y) && (this["rem" + d] > this._y)) { _root[d].laps++; } if ((_root[d]._y > this._y) && (this["rem" + d] < this._y)) { _root[d].laps--; } } this["rem" + d] = _root[d]._y; } } } }
Instance of Symbol 423 MovieClip "car" in Frame 14
onClipEvent (load) { this.gotoAndStop(_root.opp0); var place = 0; var laps = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = 2; var decc = 0.95; var inc; var hits = new Array(); var weapon = 0; var ammo = 100; var currkey = 1; var node; var nodenum = 1; } onClipEvent (mouseDown) { if (!_root.pauser) { this.mosD = true; switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name, _root._xmouse, _root._ymouse); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } } } onClipEvent (mouseUp) { if (!_root.pauser) { this.mosD = false; } } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { _root.position = 4; for (d in _root) { if (_root[d].place < this.place) { _root.position--; _root.cam.posi.text = _root.position; } } this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (Key.isDown(38) || (Key.isDown(87))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; } else if (Key.isDown(40) || (Key.isDown(83))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.speed = this.speed - this.acc; } else { this.cars.gotoAndStop(1); } if (Key.isDown(37) || (Key.isDown(65))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation - Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (Key.isDown(39) || (Key.isDown(68))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation + Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); this.skidspeed = this.skidspeed - 3; } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; if (this.mosD) { _root.weapon2(this._name, _root._xmouse, _root._ymouse); } } else { this.weapons._rotation = 90; } if (this.weapon == 6) { if (this.mosD) { _root.weapon5(this._name); } } if (this.health <= 0) { this.health = 0; this.speed = 0; } if (this.health >= 100) { this.health = 100; } if (Key.isDown(32) == this.currkey) { this.health = this.health + 3; if (this.currkey == 0) { this.currkey = 1; } else { this.currkey = 0; } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 423 MovieClip "car1" in Frame 14
onClipEvent (load) { this.gotoAndStop(_root.opp1); var laps = 0; var place = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = _root.dif3; var decc = 0.95; var inc; var hits = new Array(); var node; var nodenum = 1; var noderot; var recharge = false; var weapon = 0; var ammo = 0; } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; var goalRotation = ((-Math.atan2(this._x - _root[this.node]._x, this._y - _root[this.node]._y)) * 57.2957795130823); if (goalRotation != this._rotation) { this.speed = this.speed * 0.97; if ((Math.abs(this.speed) * 0.5) > 35) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } var maxRotation = Math.abs(this.speed * _root.dif2); var ang2 = (goalRotation - _rotation); ang2 = ang2 + ((ang2 < -180) ? 360 : (((ang2 > 180) ? -360 : 0))); _rotation = (_rotation + Math.max(-maxRotation, Math.min(ang2, maxRotation))); } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } _root.speedometer.needle._rotation = 12 * this.speed; this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.skidspeed--; this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); } if (this.health <= 0) { this.health = 0; this.recharge = true; } if (this.recharge) { this.speed = -2; this.health++; if (this.health >= 100) { this.health = 100; this.recharge = false; } } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } for (d in _root) { if (d.slice(0, 3) == "car") { a = this._x - _root[d]._x; b = this._y - _root[d]._y; if (((a * a) + (b * b)) < 160000) { switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; _root.weapon2(this._name, _root[d]._x, _root[d]._y); } else { this.weapons._rotation = 90; } if (this.weapon == 6) { _root.weapon5(this._name, _root[d]._x, _root[d]._y); } } } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 423 MovieClip "car2" in Frame 14
onClipEvent (load) { this.gotoAndStop(_root.opp2); var laps = 0; var place = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = _root.dif3; var decc = 0.95; var inc; var hits = new Array(); var node; var nodenum = 1; var noderot; var recharge = false; var weapon = 0; var ammo = 0; } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; var goalRotation = ((-Math.atan2(this._x - _root[this.node]._x, this._y - _root[this.node]._y)) * 57.2957795130823); if (goalRotation != this._rotation) { this.speed = this.speed * 0.97; if ((Math.abs(this.speed) * 0.5) > 35) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } var maxRotation = Math.abs(this.speed * _root.dif2); var ang2 = (goalRotation - _rotation); ang2 = ang2 + ((ang2 < -180) ? 360 : (((ang2 > 180) ? -360 : 0))); _rotation = (_rotation + Math.max(-maxRotation, Math.min(ang2, maxRotation))); } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } _root.speedometer.needle._rotation = 12 * this.speed; this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.skidspeed--; this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); } if (this.health <= 0) { this.health = 0; this.recharge = true; } if (this.recharge) { this.speed = -2; this.health++; if (this.health >= 100) { this.health = 100; this.recharge = false; } } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } for (d in _root) { if (d.slice(0, 3) == "car") { a = this._x - _root[d]._x; b = this._y - _root[d]._y; if (((a * a) + (b * b)) < 160000) { switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; _root.weapon2(this._name, _root[d]._x, _root[d]._y); } else { this.weapons._rotation = 90; } if (this.weapon == 6) { _root.weapon5(this._name, _root[d]._x, _root[d]._y); } } } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 423 MovieClip "car3" in Frame 14
onClipEvent (load) { this.gotoAndStop(_root.opp3); var laps = 0; var place = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = _root.dif3; var decc = 0.95; var inc; var hits = new Array(); var node; var nodenum = 1; var noderot; var recharge = false; var weapon = 0; var ammo = 0; } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; var goalRotation = ((-Math.atan2(this._x - _root[this.node]._x, this._y - _root[this.node]._y)) * 57.2957795130823); if (goalRotation != this._rotation) { this.speed = this.speed * 0.97; if ((Math.abs(this.speed) * 0.5) > 35) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } var maxRotation = Math.abs(this.speed * _root.dif2); var ang2 = (goalRotation - _rotation); ang2 = ang2 + ((ang2 < -180) ? 360 : (((ang2 > 180) ? -360 : 0))); _rotation = (_rotation + Math.max(-maxRotation, Math.min(ang2, maxRotation))); } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } _root.speedometer.needle._rotation = 12 * this.speed; this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.skidspeed--; this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); } if (this.health <= 0) { this.health = 0; this.recharge = true; } if (this.recharge) { this.speed = -2; this.health++; if (this.health >= 100) { this.health = 100; this.recharge = false; } } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } for (d in _root) { if (d.slice(0, 3) == "car") { a = this._x - _root[d]._x; b = this._y - _root[d]._y; if (((a * a) + (b * b)) < 160000) { switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; _root.weapon2(this._name, _root[d]._x, _root[d]._y); } else { this.weapons._rotation = 90; } if (this.weapon == 6) { _root.weapon5(this._name, _root[d]._x, _root[d]._y); } } } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 517 MovieClip "cam" in Frame 14
onClipEvent (load) { this.trackf = 2; this.carwatch = ""; } onClipEvent (enterFrame) { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; }
Frame 15
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop3"); _root.bgm.start(0, 100); var opp0 = _root.carno; var maxlaps = 3; function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, widths, heights, ang) { var _local5 = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[3] = 1; } return(_local5); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; stop(); var pauser = true; var pauser2 = true; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var finished = []; onEnterFrame = function () { i = 1; while (i < 4) { if (_root["car" + i].laps >= _root.maxlaps) { if (!_root["car" + i].finishedrace) { _root.finished.push(i); _root["car" + i].finishedrace = true; } } i++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 3) { _root.gotoAndStop("gppoints"); } _root.places = []; for (d in _root) { if (d.slice(0, 3) == "car") { _root.places.push({nam:d, place:_root[d].place}); } } _root.places.sortOn("place", Array.DESCENDING | Array.NUMERIC); i = 0; while (i < 5) { if (_root.places[i].nam == "car") { _root.position = i + 1; } i++; } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 530 MovieClip "tracks" in Frame 15
onClipEvent (load) { this.cacheAsBitmap = true; }
Instance of Symbol 348 MovieClip in Frame 15
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._y > this._y) && (this["rem" + d] < this._y)) { _root[d].laps++; } if ((_root[d]._y < this._y) && (this["rem" + d] > this._y)) { _root[d].laps--; } } this["rem" + d] = _root[d]._y; } } } }
Instance of Symbol 423 MovieClip "car" in Frame 15
onClipEvent (load) { this.gotoAndStop(_root.opp0); var place = 0; var laps = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = 2; var decc = 0.95; var inc; var hits = new Array(); var weapon = 0; var ammo = 100; var currkey = 1; var node; var nodenum = 1; } onClipEvent (mouseDown) { if (!_root.pauser) { this.mosD = true; switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name, _root._xmouse, _root._ymouse); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } } } onClipEvent (mouseUp) { if (!_root.pauser) { this.mosD = false; } } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { _root.position = 4; for (d in _root) { if (_root[d].place < this.place) { _root.position--; _root.cam.posi.text = _root.position; } } this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (Key.isDown(38) || (Key.isDown(87))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; } else if (Key.isDown(40) || (Key.isDown(83))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.speed = this.speed - this.acc; } else { this.cars.gotoAndStop(1); } if (Key.isDown(37) || (Key.isDown(65))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation - Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (Key.isDown(39) || (Key.isDown(68))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation + Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); this.skidspeed = this.skidspeed - 3; } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; if (this.mosD) { _root.weapon2(this._name, _root._xmouse, _root._ymouse); } } else { this.weapons._rotation = 90; } if (this.weapon == 6) { if (this.mosD) { _root.weapon5(this._name); } } if (this.health <= 0) { this.health = 0; this.speed = 0; } if (this.health >= 100) { this.health = 100; } if (Key.isDown(32) == this.currkey) { this.health = this.health + 3; if (this.currkey == 0) { this.currkey = 1; } else { this.currkey = 0; } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 517 MovieClip "cam" in Frame 15
onClipEvent (load) { this.trackf = 3; this.carwatch = ""; } onClipEvent (enterFrame) { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; }
Frame 16
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop8"); _root.bgm.start(0, 100); var opp0 = _root.carno; var maxlaps = 3; function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, widths, heights, ang) { var _local5 = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[3] = 1; } return(_local5); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 8; stop(); var pauser = true; var pauser2 = true; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var finished = []; onEnterFrame = function () { i = 1; while (i < 4) { if (_root["car" + i].laps >= _root.maxlaps) { if (!_root["car" + i].finishedrace) { _root.finished.push(i); _root["car" + i].finishedrace = true; } } i++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 3) { _root.gotoAndStop("gppoints"); } _root.places = []; for (d in _root) { if (d.slice(0, 3) == "car") { _root.places.push({nam:d, place:_root[d].place}); } } _root.places.sortOn("place", Array.DESCENDING | Array.NUMERIC); i = 0; while (i < 5) { if (_root.places[i].nam == "car") { _root.position = i + 1; } i++; } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 535 MovieClip "tracks" in Frame 16
onClipEvent (load) { this.cacheAsBitmap = true; }
Instance of Symbol 348 MovieClip in Frame 16
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._x > this._x) && (this["rem" + d] < this._x)) { _root[d].laps--; } if ((_root[d]._x < this._x) && (this["rem" + d] > this._x)) { _root[d].laps++; } } this["rem" + d] = _root[d]._x; } } } }
Instance of Symbol 354 MovieClip in Frame 16
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 354 MovieClip in Frame 16
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 517 MovieClip "cam" in Frame 16
onClipEvent (load) { this.trackf = 4; this.carwatch = ""; } onClipEvent (enterFrame) { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; }
Frame 17
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop6"); _root.bgm.start(0, 100); var opp0 = _root.carno; var maxlaps = 3; function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, widths, heights, ang) { var _local5 = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[3] = 1; } return(_local5); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; stop(); var pauser = true; var pauser2 = true; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var finished = []; onEnterFrame = function () { i = 1; while (i < 4) { if (_root["car" + i].laps >= _root.maxlaps) { if (!_root["car" + i].finishedrace) { _root.finished.push(i); _root["car" + i].finishedrace = true; } } i++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 3) { _root.gotoAndStop("gppoints"); } _root.places = []; for (d in _root) { if (d.slice(0, 3) == "car") { _root.places.push({nam:d, place:_root[d].place}); } } _root.places.sortOn("place", Array.DESCENDING | Array.NUMERIC); i = 0; while (i < 5) { if (_root.places[i].nam == "car") { _root.position = i + 1; } i++; } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 540 MovieClip "tracks" in Frame 17
onClipEvent (load) { this.cacheAsBitmap = true; }
Instance of Symbol 348 MovieClip "yea" in Frame 17
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._y > this._y) && (this["rem" + d] < this._y)) { _root[d].laps--; } if ((_root[d]._y < this._y) && (this["rem" + d] > this._y)) { _root[d].laps++; } } this["rem" + d] = _root[d]._y; } } } }
Instance of Symbol 143 MovieClip "tele1" in Frame 17
onClipEvent (load) { this.parent = 4; this.timed = 0; } onClipEvent (enterFrame) { if (this.teleported) { this.timed++; if (this.timed >= 30) { this.timed = 0; this.teleported = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root[car]._x, _root.car._y, 1)) { if (!this._parent["tele" + this.parent].teleported) { _root[car]._x = this._parent["tele" + this.parent]._x; _root[car]._y = this._parent["tele" + this.parent]._y; } this._parent["tele" + this.parent].teleported = true; } } } } }
Instance of Symbol 143 MovieClip "tele2" in Frame 17
onClipEvent (load) { this.parent = 3; this.timed = 0; } onClipEvent (enterFrame) { if (this.teleported) { this.timed++; if (this.timed >= 30) { this.timed = 0; this.teleported = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root[car]._x, _root.car._y, 1)) { if (!this._parent["tele" + this.parent].teleported) { _root[car]._x = this._parent["tele" + this.parent]._x; _root[car]._y = this._parent["tele" + this.parent]._y; } this._parent["tele" + this.parent].teleported = true; } } } } }
Instance of Symbol 143 MovieClip "tele3" in Frame 17
onClipEvent (load) { this.parent = 2; this.timed = 0; } onClipEvent (enterFrame) { if (this.teleported) { this.timed++; if (this.timed >= 30) { this.timed = 0; this.teleported = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root[car]._x, _root.car._y, 1)) { if (!this._parent["tele" + this.parent].teleported) { _root[car]._x = this._parent["tele" + this.parent]._x; _root[car]._y = this._parent["tele" + this.parent]._y; } this._parent["tele" + this.parent].teleported = true; } } } } }
Instance of Symbol 143 MovieClip "tele4" in Frame 17
onClipEvent (load) { this.parent = 1; this.timed = 0; } onClipEvent (enterFrame) { if (this.teleported) { this.timed++; if (this.timed >= 30) { this.timed = 0; this.teleported = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root[car]._x, _root.car._y, 1)) { if (!this._parent["tele" + this.parent].teleported) { _root[car]._x = this._parent["tele" + this.parent]._x; _root[car]._y = this._parent["tele" + this.parent]._y; } this._parent["tele" + this.parent].teleported = true; } } } } }
Instance of Symbol 143 MovieClip "tele5" in Frame 17
onClipEvent (load) { this.parent = 3; this.timed = 0; } onClipEvent (enterFrame) { if (this.teleported) { this.timed++; if (this.timed >= 30) { this.timed = 0; this.teleported = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root[car]._x, _root.car._y, 1)) { if (!this._parent["tele" + this.parent].teleported) { _root[car]._x = this._parent["tele" + this.parent]._x; _root[car]._y = this._parent["tele" + this.parent]._y; } this._parent["tele" + this.parent].teleported = true; } } } } }
Instance of Symbol 517 MovieClip "cam" in Frame 17
onClipEvent (load) { this.trackf = 5; this.carwatch = ""; } onClipEvent (enterFrame) { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; }
Frame 18
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop3"); _root.bgm.start(0, 100); var opp0 = _root.carno; var maxlaps = 4; function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, widths, heights, ang) { var _local5 = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[3] = 1; } return(_local5); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; stop(); var pauser = true; var pauser2 = true; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var finished = []; onEnterFrame = function () { i = 1; while (i < 4) { if (_root["car" + i].laps >= _root.maxlaps) { if (!_root["car" + i].finishedrace) { _root.finished.push(i); _root["car" + i].finishedrace = true; } } i++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 3) { _root.gotoAndStop("gppoints"); } _root.places = []; for (d in _root) { if (d.slice(0, 3) == "car") { _root.places.push({nam:d, place:_root[d].place}); } } _root.places.sortOn("place", Array.DESCENDING | Array.NUMERIC); i = 0; while (i < 5) { if (_root.places[i].nam == "car") { _root.position = i + 1; } i++; } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 545 MovieClip "tracks" in Frame 18
onClipEvent (load) { this.cacheAsBitmap = true; }
Instance of Symbol 354 MovieClip in Frame 18
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 354 MovieClip in Frame 18
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 549 MovieClip in Frame 18
onClipEvent (load) { var ond = false; var timer = 0; } onClipEvent (enterFrame) { if (this.ond) { timer++; if (this.timer > 100) { this.timer = 0; this.ond = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root.car._x, _root.car._y, 1)) { this.ond = true; _root.weapon3("m1l", _root.car._x, _root.car._y); } } } } }
Instance of Symbol 549 MovieClip in Frame 18
onClipEvent (load) { var ond = false; var timer = 0; } onClipEvent (enterFrame) { if (this.ond) { timer++; if (this.timer > 100) { this.timer = 0; this.ond = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root.car._x, _root.car._y, 1)) { this.ond = true; _root.weapon3("m2l", _root.car._x, _root.car._y); } } } } }
Instance of Symbol 517 MovieClip "cam" in Frame 18
onClipEvent (load) { this.trackf = 6; this.carwatch = ""; } onClipEvent (enterFrame) { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; }
Frame 19
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop5"); _root.bgm.start(0, 100); var opp0 = _root.carno; var maxlaps = 4; function weapon2o(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root.tracks[target]._x - xa, _root.tracks[target]._y - ya), _x:_root.tracks[target]._x, _y:_root.tracks[target]._y, par:target, _rotation:(-Math.atan2(_root.tracks[target]._x - _root._xmouse, _root.tracks[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._alpha--; if (this._alpha < 80) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.play(); this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, widths, heights, ang) { var _local5 = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[3] = 1; } return(_local5); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; stop(); var pauser = true; var pauser2 = true; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var finished = []; onEnterFrame = function () { i = 1; while (i < 4) { if (_root["car" + i].laps >= _root.maxlaps) { if (!_root["car" + i].finishedrace) { _root.finished.push(i); _root["car" + i].finishedrace = true; } } i++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 3) { _root.gotoAndStop("gppoints"); } _root.places = []; for (d in _root) { if (d.slice(0, 3) == "car") { _root.places.push({nam:d, place:_root[d].place}); } } _root.places.sortOn("place", Array.DESCENDING | Array.NUMERIC); i = 0; while (i < 5) { if (_root.places[i].nam == "car") { _root.position = i + 1; } i++; } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 348 MovieClip in Frame 19
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._x > this._x) && (this["rem" + d] < this._x)) { _root[d].laps--; } if ((_root[d]._x < this._x) && (this["rem" + d] > this._x)) { _root[d].laps++; } } this["rem" + d] = _root[d]._x; } } } }
Instance of Symbol 517 MovieClip "cam" in Frame 19
onClipEvent (load) { this.trackf = 7; this.carwatch = ""; } onClipEvent (enterFrame) { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; }
Frame 20
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop7"); _root.bgm.start(0, 100); var opp0 = _root.carno; var maxlaps = 3; function weapon2o(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root.tracks[target]._x - xa, _root.tracks[target]._y - ya), _x:_root.tracks[target]._x, _y:_root.tracks[target]._y, par:target, _rotation:(-Math.atan2(_root.tracks[target]._x - _root._xmouse, _root.tracks[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._alpha--; if (this._alpha < 80) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.play(); this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, widths, heights, ang) { var _local5 = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { _local5[3] = 1; } return(_local5); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 22; stop(); var pauser = true; var pauser2 = true; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var finished = []; onEnterFrame = function () { i = 1; while (i < 4) { if (_root["car" + i].laps >= _root.maxlaps) { if (!_root["car" + i].finishedrace) { _root.finished.push(i); _root["car" + i].finishedrace = true; } } i++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 3) { _root.gotoAndStop("gppoints"); } _root.places = []; for (d in _root) { if (d.slice(0, 3) == "car") { _root.places.push({nam:d, place:_root[d].place}); } } _root.places.sortOn("place", Array.DESCENDING | Array.NUMERIC); i = 0; while (i < 5) { if (_root.places[i].nam == "car") { _root.position = i + 1; } i++; } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 348 MovieClip in Frame 20
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._y > this._y) && (this["rem" + d] < this._y)) { _root[d].laps--; } if ((_root[d]._y < this._y) && (this["rem" + d] > this._y)) { _root[d].laps++; } } this["rem" + d] = _root[d]._x; } } } }
Instance of Symbol 549 MovieClip in Frame 20
onClipEvent (load) { var ond = false; var timer = 0; } onClipEvent (enterFrame) { if (this.ond) { timer++; if (this.timer > 100) { this.timer = 0; this.ond = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root.car._x, _root.car._y, 1)) { this.ond = true; _root.weapon3("m2l", _root.car._x, _root.car._y); } } } } }
Instance of Symbol 549 MovieClip in Frame 20
onClipEvent (load) { var ond = false; var timer = 0; } onClipEvent (enterFrame) { if (this.ond) { timer++; if (this.timer > 100) { this.timer = 0; this.ond = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root.car._x, _root.car._y, 1)) { this.ond = true; _root.weapon3("m1l", _root.car._x, _root.car._y); } } } } }
Instance of Symbol 517 MovieClip "cam" in Frame 20
onClipEvent (load) { this.trackf = 8; this.carwatch = ""; } onClipEvent (enterFrame) { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; }
Frame 21
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop1"); _root.bgm.start(0, 100); var opp0 = 8; var opp1 = 6; var opp2 = 3; var opp3 = 1; var maxlaps = 4; players = []; players.push(_root.opp0); players.push(_root.opp1); players.push(_root.opp2); players.push(_root.opp3); function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, heights, widths, ang) { var arr = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root.debug1) { _root.createEmptyMovieClip("dd", 100000); with (_root.dd) { lineStyle(1, 16711680, 100); moveTo(xs, ys); lineTo((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); } _root.createEmptyMovieClip("tt", 100001); with (_root.tt) { lineStyle(1, 255, 100); moveTo(xs, ys); lineTo(xs + (Math.sin(ang - (Math.PI/2)) * widths), ys + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs - (Math.sin(ang - (Math.PI/2)) * widths), ys - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs + (Math.sin(ang) * heights), ys + (Math.cos(ang) * heights)); lineTo(xs - (Math.sin(ang) * heights), ys - (Math.cos(ang) * heights)); } } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[3] = 1; } return(arr); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; stop(); var pauser = true; var pauser2 = true; var currentgptrack = 1; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var totalpoints1 = 0; var totalpoints2 = 0; var totalpoints3 = 0; var totalpoints4 = 0; var finished = []; onEnterFrame = function () { i = 1; while (i < 4) { if (_root["car" + i].laps >= _root.maxlaps) { if (!_root["car" + i].finishedrace) { _root.finished.push(i); _root["car" + i].finishedrace = true; } } i++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 0) { if (_root.finished[0] == 0) { _root.nextleveltrack = _root.currentgptrack; _root.currentgptrack++; _root.gameover = 0; _root.gotoAndStop("levelfinished"); } else { _root.nextleveltrack = _root.currentgptrack; _root.currentgptrack++; _root.gameover = 1; _root.gotoAndStop("levelfinished"); } this.onEnterFrame = null; } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 346 MovieClip "tracks" in Frame 21
onClipEvent (load) { this.cacheAsBitmap = true; }
Instance of Symbol 348 MovieClip in Frame 21
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._x < this._x) && (this["rem" + d] > this._x)) { _root[d].laps++; } if ((_root[d]._x > this._x) && (this["rem" + d] < this._x)) { _root[d].laps--; } } this["rem" + d] = _root[d]._x; } } } }
Instance of Symbol 354 MovieClip in Frame 21
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 354 MovieClip in Frame 21
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 354 MovieClip in Frame 21
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 354 MovieClip in Frame 21
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 354 MovieClip in Frame 21
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 354 MovieClip in Frame 21
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 423 MovieClip "car" in Frame 21
onClipEvent (load) { this.gotoAndStop(_root.opp0); var place = 0; var laps = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = 2; var decc = 0.95; var inc; var hits = new Array(); var weapon = 0; var ammo = 100; var currkey = 1; var node; var nodenum = 1; } onClipEvent (mouseDown) { if (!_root.pauser) { this.mosD = true; switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name, _root._xmouse, _root._ymouse); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } } } onClipEvent (mouseUp) { if (!_root.pauser) { this.mosD = false; } } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { _root.position = 4; for (d in _root) { if (_root[d].place < this.place) { _root.position--; _root.cam.posi.text = _root.position; } } this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (Key.isDown(38) || (Key.isDown(87))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; } else if (Key.isDown(40) || (Key.isDown(83))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.speed = this.speed - this.acc; } else { this.cars.gotoAndStop(1); } if (Key.isDown(37) || (Key.isDown(65))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation - Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (Key.isDown(39) || (Key.isDown(68))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation + Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); this.skidspeed = this.skidspeed - 3; } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; if (this.mosD) { _root.weapon2(this._name, _root._xmouse, _root._ymouse); } } else { this.weapons._rotation = 90; } if (this.weapon == 6) { if (this.mosD) { _root.weapon5(this._name); } } if (this.health <= 0) { this.health = 0; this.speed = 0; } if (this.health >= 100) { this.health = 100; } if (Key.isDown(32) == this.currkey) { this.health = this.health + 3; if (this.currkey == 0) { this.currkey = 1; } else { this.currkey = 0; } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 423 MovieClip "car1" in Frame 21
onClipEvent (load) { this.gotoAndStop(_root.opp1); var laps = 0; var place = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = _root.dif3; var decc = 0.95; var inc; var hits = new Array(); var node; var nodenum = 1; var noderot; var recharge = false; var weapon = 0; var ammo = 0; } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; var goalRotation = ((-Math.atan2(this._x - _root[this.node]._x, this._y - _root[this.node]._y)) * 57.2957795130823); if (goalRotation != this._rotation) { this.speed = this.speed * 0.97; if ((Math.abs(this.speed) * 0.5) > 35) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } var maxRotation = Math.abs(this.speed * _root.dif2); var ang2 = (goalRotation - _rotation); ang2 = ang2 + ((ang2 < -180) ? 360 : (((ang2 > 180) ? -360 : 0))); _rotation = (_rotation + Math.max(-maxRotation, Math.min(ang2, maxRotation))); } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } _root.speedometer.needle._rotation = 12 * this.speed; this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.skidspeed--; this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); } if (this.health <= 0) { this.health = 0; this.recharge = true; } if (this.recharge) { this.speed = -2; this.health++; if (this.health >= 100) { this.health = 100; this.recharge = false; } } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } for (d in _root) { if (d.slice(0, 3) == "car") { a = this._x - _root[d]._x; b = this._y - _root[d]._y; if (((a * a) + (b * b)) < 160000) { switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; _root.weapon2(this._name, _root[d]._x, _root[d]._y); } else { this.weapons._rotation = 90; } if (this.weapon == 6) { _root.weapon5(this._name, _root[d]._x, _root[d]._y); } } } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 423 MovieClip "car2" in Frame 21
onClipEvent (load) { this.gotoAndStop(_root.opp2); var laps = 0; var place = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = _root.dif3; var decc = 0.95; var inc; var hits = new Array(); var node; var nodenum = 1; var noderot; var recharge = false; var weapon = 0; var ammo = 0; } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; var goalRotation = ((-Math.atan2(this._x - _root[this.node]._x, this._y - _root[this.node]._y)) * 57.2957795130823); if (goalRotation != this._rotation) { this.speed = this.speed * 0.97; if ((Math.abs(this.speed) * 0.5) > 35) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } var maxRotation = Math.abs(this.speed * _root.dif2); var ang2 = (goalRotation - _rotation); ang2 = ang2 + ((ang2 < -180) ? 360 : (((ang2 > 180) ? -360 : 0))); _rotation = (_rotation + Math.max(-maxRotation, Math.min(ang2, maxRotation))); } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } _root.speedometer.needle._rotation = 12 * this.speed; this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.skidspeed--; this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); } if (this.health <= 0) { this.health = 0; this.recharge = true; } if (this.recharge) { this.speed = -2; this.health++; if (this.health >= 100) { this.health = 100; this.recharge = false; } } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } for (d in _root) { if (d.slice(0, 3) == "car") { a = this._x - _root[d]._x; b = this._y - _root[d]._y; if (((a * a) + (b * b)) < 160000) { switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; _root.weapon2(this._name, _root[d]._x, _root[d]._y); } else { this.weapons._rotation = 90; } if (this.weapon == 6) { _root.weapon5(this._name, _root[d]._x, _root[d]._y); } } } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 423 MovieClip "car3" in Frame 21
onClipEvent (load) { this.gotoAndStop(_root.opp3); var laps = 0; var place = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = _root.dif3; var decc = 0.95; var inc; var hits = new Array(); var node; var nodenum = 1; var noderot; var recharge = false; var weapon = 0; var ammo = 0; } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; var goalRotation = ((-Math.atan2(this._x - _root[this.node]._x, this._y - _root[this.node]._y)) * 57.2957795130823); if (goalRotation != this._rotation) { this.speed = this.speed * 0.97; if ((Math.abs(this.speed) * 0.5) > 35) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } var maxRotation = Math.abs(this.speed * _root.dif2); var ang2 = (goalRotation - _rotation); ang2 = ang2 + ((ang2 < -180) ? 360 : (((ang2 > 180) ? -360 : 0))); _rotation = (_rotation + Math.max(-maxRotation, Math.min(ang2, maxRotation))); } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } _root.speedometer.needle._rotation = 12 * this.speed; this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.skidspeed--; this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); } if (this.health <= 0) { this.health = 0; this.recharge = true; } if (this.recharge) { this.speed = -2; this.health++; if (this.health >= 100) { this.health = 100; this.recharge = false; } } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } for (d in _root) { if (d.slice(0, 3) == "car") { a = this._x - _root[d]._x; b = this._y - _root[d]._y; if (((a * a) + (b * b)) < 160000) { switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; _root.weapon2(this._name, _root[d]._x, _root[d]._y); } else { this.weapons._rotation = 90; } if (this.weapon == 6) { _root.weapon5(this._name, _root[d]._x, _root[d]._y); } } } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 517 MovieClip "cam" in Frame 21
onClipEvent (load) { this.trackf = 1; this.carwatch = ""; }
Frame 22
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop8"); _root.bgm.start(0, 100); var opp0 = 8; var opp1 = 3; var opp2 = 5; var opp3 = 6; var maxlaps = 4; players = []; players.push(_root.opp0); players.push(_root.opp1); players.push(_root.opp2); players.push(_root.opp3); function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, heights, widths, ang) { var arr = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root.debug1) { _root.createEmptyMovieClip("dd", 100000); with (_root.dd) { lineStyle(1, 16711680, 100); moveTo(xs, ys); lineTo((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); } _root.createEmptyMovieClip("tt", 100001); with (_root.tt) { lineStyle(1, 255, 100); moveTo(xs, ys); lineTo(xs + (Math.sin(ang - (Math.PI/2)) * widths), ys + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs - (Math.sin(ang - (Math.PI/2)) * widths), ys - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs + (Math.sin(ang) * heights), ys + (Math.cos(ang) * heights)); lineTo(xs - (Math.sin(ang) * heights), ys - (Math.cos(ang) * heights)); } } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[3] = 1; } return(arr); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 8; stop(); var pauser = true; var pauser2 = true; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var totalpoints1 = 0; var totalpoints2 = 0; var totalpoints3 = 0; var totalpoints4 = 0; var finished = []; onEnterFrame = function () { i = 1; while (i < 4) { if (_root["car" + i].laps >= _root.maxlaps) { if (!_root["car" + i].finishedrace) { _root.finished.push(i); _root["car" + i].finishedrace = true; } } i++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 0) { if (_root.finished[0] == 0) { _root.nextleveltrack = _root.currentgptrack; _root.currentgptrack++; _root.gameover = 0; _root.gotoAndStop("levelfinished"); } else { _root.nextleveltrack = _root.currentgptrack; _root.currentgptrack++; _root.gameover = 1; _root.gotoAndStop("levelfinished"); } this.onEnterFrame = null; } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 535 MovieClip "tracks" in Frame 22
onClipEvent (load) { this.cacheAsBitmap = true; }
Instance of Symbol 348 MovieClip in Frame 22
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._x > this._x) && (this["rem" + d] < this._x)) { _root[d].laps--; } if ((_root[d]._x < this._x) && (this["rem" + d] > this._x)) { _root[d].laps++; } } this["rem" + d] = _root[d]._x; } } } }
Instance of Symbol 354 MovieClip in Frame 22
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 354 MovieClip in Frame 22
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 423 MovieClip "car1" in Frame 22
onClipEvent (load) { this.gotoAndStop(_root.opp1); var laps = 0; var place = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = _root.dif3; var decc = 0.95; var inc; var hits = new Array(); var node; var nodenum = 1; var noderot; var recharge = false; var weapon = 0; var ammo = 0; } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; var goalRotation = ((-Math.atan2(this._x - _root[this.node]._x, this._y - _root[this.node]._y)) * 57.2957795130823); if (goalRotation != this._rotation) { this.speed = this.speed * 0.97; if ((Math.abs(this.speed) * 0.5) > 35) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } var maxRotation = Math.abs(this.speed * _root.dif2); var ang2 = (goalRotation - _rotation); ang2 = ang2 + ((ang2 < -180) ? 360 : (((ang2 > 180) ? -360 : 0))); _rotation = (_rotation + Math.max(-maxRotation, Math.min(ang2, maxRotation))); } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } _root.speedometer.needle._rotation = 12 * this.speed; this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.skidspeed--; this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); } if (this.health <= 0) { this.health = 0; this.recharge = true; } if (this.recharge) { this.speed = -2; this.health++; if (this.health >= 100) { this.health = 100; this.recharge = false; } } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } for (d in _root) { if (d.slice(0, 3) == "car") { a = this._x - _root[d]._x; b = this._y - _root[d]._y; if (((a * a) + (b * b)) < 160000) { switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; _root.weapon2(this._name, _root[d]._x, _root[d]._y); } else { this.weapons._rotation = 90; } if (this.weapon == 6) { _root.weapon5(this._name, _root[d]._x, _root[d]._y); } } } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 423 MovieClip "car2" in Frame 22
onClipEvent (load) { this.gotoAndStop(_root.opp2); var laps = 0; var place = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = _root.dif3; var decc = 0.95; var inc; var hits = new Array(); var node; var nodenum = 1; var noderot; var recharge = false; var weapon = 0; var ammo = 0; } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; var goalRotation = ((-Math.atan2(this._x - _root[this.node]._x, this._y - _root[this.node]._y)) * 57.2957795130823); if (goalRotation != this._rotation) { this.speed = this.speed * 0.97; if ((Math.abs(this.speed) * 0.5) > 35) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } var maxRotation = Math.abs(this.speed * _root.dif2); var ang2 = (goalRotation - _rotation); ang2 = ang2 + ((ang2 < -180) ? 360 : (((ang2 > 180) ? -360 : 0))); _rotation = (_rotation + Math.max(-maxRotation, Math.min(ang2, maxRotation))); } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } _root.speedometer.needle._rotation = 12 * this.speed; this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.skidspeed--; this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); } if (this.health <= 0) { this.health = 0; this.recharge = true; } if (this.recharge) { this.speed = -2; this.health++; if (this.health >= 100) { this.health = 100; this.recharge = false; } } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } for (d in _root) { if (d.slice(0, 3) == "car") { a = this._x - _root[d]._x; b = this._y - _root[d]._y; if (((a * a) + (b * b)) < 160000) { switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; _root.weapon2(this._name, _root[d]._x, _root[d]._y); } else { this.weapons._rotation = 90; } if (this.weapon == 6) { _root.weapon5(this._name, _root[d]._x, _root[d]._y); } } } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 423 MovieClip "car3" in Frame 22
onClipEvent (load) { this.gotoAndStop(_root.opp3); var laps = 0; var place = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = _root.dif3; var decc = 0.95; var inc; var hits = new Array(); var node; var nodenum = 1; var noderot; var recharge = false; var weapon = 0; var ammo = 0; } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; var goalRotation = ((-Math.atan2(this._x - _root[this.node]._x, this._y - _root[this.node]._y)) * 57.2957795130823); if (goalRotation != this._rotation) { this.speed = this.speed * 0.97; if ((Math.abs(this.speed) * 0.5) > 35) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } var maxRotation = Math.abs(this.speed * _root.dif2); var ang2 = (goalRotation - _rotation); ang2 = ang2 + ((ang2 < -180) ? 360 : (((ang2 > 180) ? -360 : 0))); _rotation = (_rotation + Math.max(-maxRotation, Math.min(ang2, maxRotation))); } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } _root.speedometer.needle._rotation = 12 * this.speed; this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.skidspeed--; this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); } if (this.health <= 0) { this.health = 0; this.recharge = true; } if (this.recharge) { this.speed = -2; this.health++; if (this.health >= 100) { this.health = 100; this.recharge = false; } } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } for (d in _root) { if (d.slice(0, 3) == "car") { a = this._x - _root[d]._x; b = this._y - _root[d]._y; if (((a * a) + (b * b)) < 160000) { switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; _root.weapon2(this._name, _root[d]._x, _root[d]._y); } else { this.weapons._rotation = 90; } if (this.weapon == 6) { _root.weapon5(this._name, _root[d]._x, _root[d]._y); } } } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 517 MovieClip "cam" in Frame 22
onClipEvent (load) { this.trackf = 4; this.carwatch = ""; }
Frame 23
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop3"); _root.bgm.start(0, 100); var opp0 = 8; var opp1 = 5; var opp2 = 3; var opp3 = 1; var maxlaps = 3; players = []; players.push(_root.opp0); players.push(_root.opp1); players.push(_root.opp2); players.push(_root.opp3); function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, heights, widths, ang) { var arr = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root.debug1) { _root.createEmptyMovieClip("dd", 100000); with (_root.dd) { lineStyle(1, 16711680, 100); moveTo(xs, ys); lineTo((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); } _root.createEmptyMovieClip("tt", 100001); with (_root.tt) { lineStyle(1, 255, 100); moveTo(xs, ys); lineTo(xs + (Math.sin(ang - (Math.PI/2)) * widths), ys + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs - (Math.sin(ang - (Math.PI/2)) * widths), ys - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs + (Math.sin(ang) * heights), ys + (Math.cos(ang) * heights)); lineTo(xs - (Math.sin(ang) * heights), ys - (Math.cos(ang) * heights)); } } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[3] = 1; } return(arr); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; stop(); var pauser = true; var pauser2 = true; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var totalpoints1 = 0; var totalpoints2 = 0; var totalpoints3 = 0; var totalpoints4 = 0; var finished = []; onEnterFrame = function () { i = 1; while (i < 4) { if (_root["car" + i].laps >= _root.maxlaps) { if (!_root["car" + i].finishedrace) { _root.finished.push(i); _root["car" + i].finishedrace = true; } } i++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 0) { if (_root.finished[0] == 0) { _root.nextleveltrack = _root.currentgptrack; _root.currentgptrack++; _root.gameover = 0; _root.gotoAndStop("levelfinished"); } else { _root.nextleveltrack = _root.currentgptrack; _root.currentgptrack++; _root.gameover = 1; _root.gotoAndStop("levelfinished"); } this.onEnterFrame = null; } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 530 MovieClip "tracks" in Frame 23
onClipEvent (load) { this.cacheAsBitmap = true; }
Instance of Symbol 348 MovieClip in Frame 23
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._y > this._y) && (this["rem" + d] < this._y)) { _root[d].laps++; } if ((_root[d]._y < this._y) && (this["rem" + d] > this._y)) { _root[d].laps--; } } this["rem" + d] = _root[d]._y; } } } }
Instance of Symbol 517 MovieClip "cam" in Frame 23
onClipEvent (load) { this.trackf = 3; this.carwatch = ""; } onClipEvent (enterFrame) { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; }
Frame 24
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop2"); _root.bgm.start(0, 100); var opp0 = 8; var opp1 = 1; var opp2 = 6; var opp3 = 4; var maxlaps = 4; players = []; players.push(_root.opp0); players.push(_root.opp1); players.push(_root.opp2); players.push(_root.opp3); function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, heights, widths, ang) { var arr = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root.debug1) { _root.createEmptyMovieClip("dd", 100000); with (_root.dd) { lineStyle(1, 16711680, 100); moveTo(xs, ys); lineTo((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); } _root.createEmptyMovieClip("tt", 100001); with (_root.tt) { lineStyle(1, 255, 100); moveTo(xs, ys); lineTo(xs + (Math.sin(ang - (Math.PI/2)) * widths), ys + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs - (Math.sin(ang - (Math.PI/2)) * widths), ys - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs + (Math.sin(ang) * heights), ys + (Math.cos(ang) * heights)); lineTo(xs - (Math.sin(ang) * heights), ys - (Math.cos(ang) * heights)); } } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[3] = 1; } return(arr); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; stop(); var pauser = true; var pauser2 = true; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var totalpoints1 = 0; var totalpoints2 = 0; var totalpoints3 = 0; var totalpoints4 = 0; var finished = []; onEnterFrame = function () { i = 1; while (i < 4) { if (_root["car" + i].laps >= _root.maxlaps) { if (!_root["car" + i].finishedrace) { _root.finished.push(i); _root["car" + i].finishedrace = true; } } i++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 0) { if (_root.finished[0] == 0) { _root.nextleveltrack = _root.currentgptrack; _root.currentgptrack++; _root.gameover = 0; _root.gotoAndStop("levelfinished"); } else { _root.nextleveltrack = _root.currentgptrack; _root.currentgptrack++; _root.gameover = 1; _root.gotoAndStop("levelfinished"); } this.onEnterFrame = null; } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 522 MovieClip "tracks" in Frame 24
onClipEvent (load) { this.cacheAsBitmap = true; }
Instance of Symbol 348 MovieClip in Frame 24
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._y < this._y) && (this["rem" + d] > this._y)) { _root[d].laps++; } if ((_root[d]._y > this._y) && (this["rem" + d] < this._y)) { _root[d].laps--; } } this["rem" + d] = _root[d]._y; } } } }
Instance of Symbol 423 MovieClip "car" in Frame 24
onClipEvent (load) { this.gotoAndStop(_root.opp0); var place = 0; var laps = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = 2; var decc = 0.95; var inc; var hits = new Array(); var weapon = 0; var ammo = 100; var currkey = 1; var node; var nodenum = 1; } onClipEvent (mouseDown) { if (!_root.pauser) { this.mosD = true; switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name, _root._xmouse, _root._ymouse); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } } } onClipEvent (mouseUp) { if (!_root.pauser) { this.mosD = false; } } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { _root.position = 4; for (d in _root) { if (_root[d].place < this.place) { _root.position--; _root.cam.posi.text = _root.position; } } this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (Key.isDown(38) || (Key.isDown(87))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; } else if (Key.isDown(40) || (Key.isDown(83))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.speed = this.speed - this.acc; } else { this.cars.gotoAndStop(1); } if (Key.isDown(37) || (Key.isDown(65))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation - Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (Key.isDown(39) || (Key.isDown(68))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation + Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); this.skidspeed = this.skidspeed - 3; } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; if (this.mosD) { _root.weapon2(this._name, _root._xmouse, _root._ymouse); } } else { this.weapons._rotation = 90; } if (this.weapon == 6) { if (this.mosD) { _root.weapon5(this._name); } } if (this.health <= 0) { this.health = 0; this.speed = 0; } if (this.health >= 100) { this.health = 100; } if (Key.isDown(32) == this.currkey) { this.health = this.health + 3; if (this.currkey == 0) { this.currkey = 1; } else { this.currkey = 0; } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 517 MovieClip "cam" in Frame 24
onClipEvent (load) { this.trackf = 2; this.carwatch = ""; } onClipEvent (enterFrame) { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; }
Frame 25
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop6"); _root.bgm.start(0, 100); var opp0 = 8; var opp1 = 4; var opp2 = 6; var opp3 = 2; var maxlaps = 3; players = []; players.push(_root.opp0); players.push(_root.opp1); players.push(_root.opp2); players.push(_root.opp3); function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, heights, widths, ang) { var arr = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root.debug1) { _root.createEmptyMovieClip("dd", 100000); with (_root.dd) { lineStyle(1, 16711680, 100); moveTo(xs, ys); lineTo((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); } _root.createEmptyMovieClip("tt", 100001); with (_root.tt) { lineStyle(1, 255, 100); moveTo(xs, ys); lineTo(xs + (Math.sin(ang - (Math.PI/2)) * widths), ys + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs - (Math.sin(ang - (Math.PI/2)) * widths), ys - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs + (Math.sin(ang) * heights), ys + (Math.cos(ang) * heights)); lineTo(xs - (Math.sin(ang) * heights), ys - (Math.cos(ang) * heights)); } } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[3] = 1; } return(arr); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; stop(); var pauser = true; var pauser2 = true; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var totalpoints1 = 0; var totalpoints2 = 0; var totalpoints3 = 0; var totalpoints4 = 0; var finished = []; onEnterFrame = function () { i = 1; while (i < 4) { if (_root["car" + i].laps >= _root.maxlaps) { if (!_root["car" + i].finishedrace) { _root.finished.push(i); _root["car" + i].finishedrace = true; } } i++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 0) { if (_root.finished[0] == 0) { _root.nextleveltrack = _root.currentgptrack; _root.currentgptrack++; _root.gameover = 0; _root.gotoAndStop("levelfinished"); } else { _root.nextleveltrack = _root.currentgptrack; _root.currentgptrack++; _root.gameover = 1; _root.gotoAndStop("levelfinished"); } this.onEnterFrame = null; } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 540 MovieClip "tracks" in Frame 25
onClipEvent (load) { this.cacheAsBitmap = true; }
Instance of Symbol 348 MovieClip "yea" in Frame 25
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._y > this._y) && (this["rem" + d] < this._y)) { _root[d].laps--; } if ((_root[d]._y < this._y) && (this["rem" + d] > this._y)) { _root[d].laps++; } } this["rem" + d] = _root[d]._y; } } } }
Instance of Symbol 423 MovieClip "car" in Frame 25
onClipEvent (load) { this.gotoAndStop(_root.opp0); var place = 0; var laps = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = 2; var decc = 0.95; var inc; var hits = new Array(); var weapon = 0; var ammo = 100; var currkey = 1; var node; var nodenum = 1; } onClipEvent (mouseDown) { if (!_root.pauser) { this.mosD = true; switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name, _root._xmouse, _root._ymouse); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } } } onClipEvent (mouseUp) { if (!_root.pauser) { this.mosD = false; } } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { _root.position = 4; for (d in _root) { if (_root[d].place < this.place) { _root.position--; _root.cam.posi.text = _root.position; } } this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (Key.isDown(38) || (Key.isDown(87))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; } else if (Key.isDown(40) || (Key.isDown(83))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.speed = this.speed - this.acc; } else { this.cars.gotoAndStop(1); } if (Key.isDown(37) || (Key.isDown(65))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation - Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (Key.isDown(39) || (Key.isDown(68))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation + Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); this.skidspeed = this.skidspeed - 3; } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; if (this.mosD) { _root.weapon2(this._name, _root._xmouse, _root._ymouse); } } else { this.weapons._rotation = 90; } if (this.weapon == 6) { if (this.mosD) { _root.weapon5(this._name); } } if (this.health <= 0) { this.health = 0; this.speed = 0; } if (this.health >= 100) { this.health = 100; } if (Key.isDown(32) == this.currkey) { this.health = this.health + 3; if (this.currkey == 0) { this.currkey = 1; } else { this.currkey = 0; } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 143 MovieClip "tele1" in Frame 25
onClipEvent (load) { this.parent = 4; this.timed = 0; } onClipEvent (enterFrame) { if (this.teleported) { this.timed++; if (this.timed >= 30) { this.timed = 0; this.teleported = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root[car]._x, _root.car._y, 1)) { if (!this._parent["tele" + this.parent].teleported) { _root[car]._x = this._parent["tele" + this.parent]._x; _root[car]._y = this._parent["tele" + this.parent]._y; } this._parent["tele" + this.parent].teleported = true; } } } } }
Instance of Symbol 143 MovieClip "tele2" in Frame 25
onClipEvent (load) { this.parent = 3; this.timed = 0; } onClipEvent (enterFrame) { if (this.teleported) { this.timed++; if (this.timed >= 30) { this.timed = 0; this.teleported = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root[car]._x, _root.car._y, 1)) { if (!this._parent["tele" + this.parent].teleported) { _root[car]._x = this._parent["tele" + this.parent]._x; _root[car]._y = this._parent["tele" + this.parent]._y; } this._parent["tele" + this.parent].teleported = true; } } } } }
Instance of Symbol 143 MovieClip "tele3" in Frame 25
onClipEvent (load) { this.parent = 2; this.timed = 0; } onClipEvent (enterFrame) { if (this.teleported) { this.timed++; if (this.timed >= 30) { this.timed = 0; this.teleported = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root[car]._x, _root.car._y, 1)) { if (!this._parent["tele" + this.parent].teleported) { _root[car]._x = this._parent["tele" + this.parent]._x; _root[car]._y = this._parent["tele" + this.parent]._y; } this._parent["tele" + this.parent].teleported = true; } } } } }
Instance of Symbol 143 MovieClip "tele4" in Frame 25
onClipEvent (load) { this.parent = 1; this.timed = 0; } onClipEvent (enterFrame) { if (this.teleported) { this.timed++; if (this.timed >= 30) { this.timed = 0; this.teleported = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root[car]._x, _root.car._y, 1)) { if (!this._parent["tele" + this.parent].teleported) { _root[car]._x = this._parent["tele" + this.parent]._x; _root[car]._y = this._parent["tele" + this.parent]._y; } this._parent["tele" + this.parent].teleported = true; } } } } }
Instance of Symbol 143 MovieClip "tele5" in Frame 25
onClipEvent (load) { this.parent = 3; this.timed = 0; } onClipEvent (enterFrame) { if (this.teleported) { this.timed++; if (this.timed >= 30) { this.timed = 0; this.teleported = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root[car]._x, _root.car._y, 1)) { if (!this._parent["tele" + this.parent].teleported) { _root[car]._x = this._parent["tele" + this.parent]._x; _root[car]._y = this._parent["tele" + this.parent]._y; } this._parent["tele" + this.parent].teleported = true; } } } } }
Instance of Symbol 517 MovieClip "cam" in Frame 25
onClipEvent (load) { this.trackf = 5; this.carwatch = ""; } onClipEvent (enterFrame) { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; }
Frame 26
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop3"); _root.bgm.start(0, 100); var opp0 = 8; var opp1 = 2; var opp2 = 1; var opp3 = 7; var maxlaps = 4; players = []; players.push(_root.opp0); players.push(_root.opp1); players.push(_root.opp2); players.push(_root.opp3); function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, heights, widths, ang) { var arr = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root.debug1) { _root.createEmptyMovieClip("dd", 100000); with (_root.dd) { lineStyle(1, 16711680, 100); moveTo(xs, ys); lineTo((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); } _root.createEmptyMovieClip("tt", 100001); with (_root.tt) { lineStyle(1, 255, 100); moveTo(xs, ys); lineTo(xs + (Math.sin(ang - (Math.PI/2)) * widths), ys + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs - (Math.sin(ang - (Math.PI/2)) * widths), ys - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs + (Math.sin(ang) * heights), ys + (Math.cos(ang) * heights)); lineTo(xs - (Math.sin(ang) * heights), ys - (Math.cos(ang) * heights)); } } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[3] = 1; } return(arr); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; stop(); var pauser = true; var pauser2 = true; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var totalpoints1 = 0; var totalpoints2 = 0; var totalpoints3 = 0; var totalpoints4 = 0; var finished = []; onEnterFrame = function () { i = 1; while (i < 4) { if (_root["car" + i].laps >= _root.maxlaps) { if (!_root["car" + i].finishedrace) { _root.finished.push(i); _root["car" + i].finishedrace = true; } } i++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 0) { if (_root.finished[0] == 0) { _root.nextleveltrack = _root.currentgptrack; _root.currentgptrack++; _root.gameover = 0; _root.gotoAndStop("levelfinished"); } else { _root.nextleveltrack = _root.currentgptrack; _root.currentgptrack++; _root.gameover = 1; _root.gotoAndStop("levelfinished"); } this.onEnterFrame = null; } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 545 MovieClip "tracks" in Frame 26
onClipEvent (load) { this.cacheAsBitmap = true; }
Instance of Symbol 354 MovieClip in Frame 26
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 354 MovieClip in Frame 26
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 549 MovieClip in Frame 26
onClipEvent (load) { var ond = false; var timer = 0; } onClipEvent (enterFrame) { if (this.ond) { timer++; if (this.timer > 100) { this.timer = 0; this.ond = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root.car._x, _root.car._y, 1)) { this.ond = true; _root.weapon3("m1l", _root.car._x, _root.car._y); } } } } }
Instance of Symbol 549 MovieClip in Frame 26
onClipEvent (load) { var ond = false; var timer = 0; } onClipEvent (enterFrame) { if (this.ond) { timer++; if (this.timer > 100) { this.timer = 0; this.ond = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root.car._x, _root.car._y, 1)) { this.ond = true; _root.weapon3("m2l", _root.car._x, _root.car._y); } } } } }
Instance of Symbol 517 MovieClip "cam" in Frame 26
onClipEvent (load) { this.trackf = 6; this.carwatch = ""; } onClipEvent (enterFrame) { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; }
Frame 27
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop5"); _root.bgm.start(0, 100); var opp0 = 8; var opp1 = 7; var opp2 = 6; var opp3 = 4; var maxlaps = 4; players = []; players.push(_root.opp0); players.push(_root.opp1); players.push(_root.opp2); players.push(_root.opp3); function weapon2o(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root.tracks[target]._x - xa, _root.tracks[target]._y - ya), _x:_root.tracks[target]._x, _y:_root.tracks[target]._y, par:target, _rotation:(-Math.atan2(_root.tracks[target]._x - _root._xmouse, _root.tracks[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._alpha--; if (this._alpha < 80) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.play(); this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, heights, widths, ang) { var arr = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root.debug1) { _root.createEmptyMovieClip("dd", 100000); with (_root.dd) { lineStyle(1, 16711680, 100); moveTo(xs, ys); lineTo((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); } _root.createEmptyMovieClip("tt", 100001); with (_root.tt) { lineStyle(1, 255, 100); moveTo(xs, ys); lineTo(xs + (Math.sin(ang - (Math.PI/2)) * widths), ys + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs - (Math.sin(ang - (Math.PI/2)) * widths), ys - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs + (Math.sin(ang) * heights), ys + (Math.cos(ang) * heights)); lineTo(xs - (Math.sin(ang) * heights), ys - (Math.cos(ang) * heights)); } } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[3] = 1; } return(arr); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; stop(); var pauser = true; var pauser2 = true; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var totalpoints1 = 0; var totalpoints2 = 0; var totalpoints3 = 0; var totalpoints4 = 0; var finished = []; onEnterFrame = function () { i = 1; while (i < 4) { if (_root["car" + i].laps >= _root.maxlaps) { if (!_root["car" + i].finishedrace) { _root.finished.push(i); _root["car" + i].finishedrace = true; } } i++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 0) { if (_root.finished[0] == 0) { _root.nextleveltrack = _root.currentgptrack; _root.currentgptrack++; _root.gameover = 0; _root.gotoAndStop("levelfinished"); } else { _root.nextleveltrack = _root.currentgptrack; _root.currentgptrack++; _root.gameover = 1; _root.gotoAndStop("levelfinished"); } this.onEnterFrame = null; } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 348 MovieClip in Frame 27
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._x > this._x) && (this["rem" + d] < this._x)) { _root[d].laps--; } if ((_root[d]._x < this._x) && (this["rem" + d] > this._x)) { _root[d].laps++; } } this["rem" + d] = _root[d]._x; } } } }
Instance of Symbol 517 MovieClip "cam" in Frame 27
onClipEvent (load) { this.trackf = 7; this.carwatch = ""; } onClipEvent (enterFrame) { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; }
Frame 28
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop7"); _root.bgm.start(0, 100); var opp0 = 8; var opp1 = 5; var opp2 = 1; var opp3 = 7; var maxlaps = 3; players = []; players.push(_root.opp0); players.push(_root.opp1); players.push(_root.opp2); players.push(_root.opp3); function weapon2o(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root.tracks[target]._x - xa, _root.tracks[target]._y - ya), _x:_root.tracks[target]._x, _y:_root.tracks[target]._y, par:target, _rotation:(-Math.atan2(_root.tracks[target]._x - _root._xmouse, _root.tracks[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._alpha--; if (this._alpha < 80) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.play(); this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, widths, heights, ang) { var arr = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root.debug1) { _root.createEmptyMovieClip("dd", 100000); with (_root.dd) { lineStyle(1, 16711680, 100); moveTo(xs, ys); lineTo((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); } _root.createEmptyMovieClip("tt", 100001); with (_root.tt) { lineStyle(1, 255, 100); moveTo(xs, ys); lineTo(xs + (Math.sin(ang - (Math.PI/2)) * widths), ys + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs - (Math.sin(ang - (Math.PI/2)) * widths), ys - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs + (Math.sin(ang) * heights), ys + (Math.cos(ang) * heights)); lineTo(xs - (Math.sin(ang) * heights), ys - (Math.cos(ang) * heights)); } } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[3] = 1; } return(arr); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 22; stop(); var pauser = true; var pauser2 = true; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var totalpoints1 = 0; var totalpoints2 = 0; var totalpoints3 = 0; var totalpoints4 = 0; var finished = []; onEnterFrame = function () { i = 1; while (i < 4) { if (_root["car" + i].laps >= _root.maxlaps) { if (!_root["car" + i].finishedrace) { _root.finished.push(i); _root["car" + i].finishedrace = true; } } i++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 0) { if (_root.finished[0] == 0) { _root.nextleveltrack = _root.currentgptrack; _root.currentgptrack++; _root.gameover = 0; _root.gotoAndStop("levelfinished"); } else { _root.nextleveltrack = _root.currentgptrack; _root.currentgptrack++; _root.gameover = 1; _root.gotoAndStop("levelfinished"); } this.onEnterFrame = null; } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 348 MovieClip in Frame 28
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._y > this._y) && (this["rem" + d] < this._y)) { _root[d].laps--; } if ((_root[d]._y < this._y) && (this["rem" + d] > this._y)) { _root[d].laps++; } } this["rem" + d] = _root[d]._x; } } } }
Instance of Symbol 549 MovieClip in Frame 28
onClipEvent (load) { var ond = false; var timer = 0; } onClipEvent (enterFrame) { if (this.ond) { timer++; if (this.timer > 100) { this.timer = 0; this.ond = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root.car._x, _root.car._y, 1)) { this.ond = true; _root.weapon3("m2l", _root.car._x, _root.car._y); } } } } }
Instance of Symbol 549 MovieClip in Frame 28
onClipEvent (load) { var ond = false; var timer = 0; } onClipEvent (enterFrame) { if (this.ond) { timer++; if (this.timer > 100) { this.timer = 0; this.ond = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root.car._x, _root.car._y, 1)) { this.ond = true; _root.weapon3("m1l", _root.car._x, _root.car._y); } } } } }
Instance of Symbol 517 MovieClip "cam" in Frame 28
onClipEvent (load) { this.trackf = 8; this.carwatch = ""; } onClipEvent (enterFrame) { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; }
Instance of Symbol 565 MovieClip in Frame 29
on (press) { _root.gotoAndPlay(1); }
Instance of Symbol 570 MovieClip in Frame 29
onClipEvent (load) { this.gotoAndStop(_root.opp0); }
Frame 30
clearALL(); _root.currentgptrack = 1; _root.gameover = false; stop();
Instance of Symbol 602 MovieClip in Frame 30
on (press) { _root.gotoAndPlay(1); }
Frame 31
stop(); _root.clearAll(); _root.gotoAndStop(((this._currentframe - 1) + ((_root.currentgptrack * 2) - 1)) - _root.gameover);
Instance of Symbol 602 MovieClip in Frame 31
on (press) { _root.gotoAndPlay(1); }
Frame 47
play();
Frame 226
stop();
Frame 227
_root.clearAll(); _root.play();
Frame 228
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop4"); _root.bgm.start(0, 100); stop(); i = 0; while (i < 4) { if (_root.finished[i] == 0) { _root.finishedposition1 = i; } if (_root.finished[i] == 1) { _root.finishedposition2 = i; } if (_root.finished[i] == 2) { _root.finishedposition3 = i; } if (_root.finished[i] == 3) { _root.finishedposition4 = i; } i++; } _root.gppoints1 = 3 - _root.finishedposition1; _root.finishedst = _root.finishedposition1 + 1; switch (_root.finishedposition1) { case 0 : _root.stplace = "st!"; break; case 1 : _root.stplace = "nd!"; break; case 2 : _root.stplace = "rd!"; break; case 3 : _root.stplace = "th!"; } _root.gppoints2 = 3 - _root.finishedposition2; _root.gppoints3 = 3 - _root.finishedposition3; _root.gppoints4 = 3 - _root.finishedposition4; _root.totalpoints1 = _root.totalpoints1 + _root.gppoints1; _root.totalpoints2 = _root.totalpoints2 + _root.gppoints2; _root.totalpoints3 = _root.totalpoints3 + _root.gppoints3; _root.totalpoints4 = _root.totalpoints4 + _root.gppoints4; var sortGpArray = new Array(); i = 1; while (i < 5) { _root.sortGpArray.push({name:i, points:_root["totalpoints" + i]}); i++; } _root.sortGpArray.sortOn("points", Array.DESCENDING | Array.NUMERIC); _root.currentgptrack++; _root.opp0;
Instance of Symbol 457 MovieClip in Frame 228
onClipEvent (enterFrame) { this.gotoAndStop(_root["opp" + (_root.sortGpArray[0].name - 1)]); switch (_root["opp" + (_root.sortGpArray[0].name - 1)]) { case 1 : _root.tableGp1 = "Dashing Dan"; break; case 2 : _root.tableGp1 = "Mad-Dog Murphey"; break; case 3 : _root.tableGp1 = "The Real McCoy"; break; case 4 : _root.tableGp1 = "Woody"; break; case 5 : _root.tableGp1 = "Krazy Kenny"; break; case 6 : _root.tableGp1 = "J-zinger"; break; case 7 : _root.tableGp1 = "Terrible Timmy"; } _root.tableGp1b = _root["gppoints" + _root.sortGpArray[0].name]; _root.tableGp1c = _root.sortGpArray[0].points; }
Instance of Symbol 457 MovieClip in Frame 228
onClipEvent (enterFrame) { this.gotoAndStop(_root["opp" + (_root.sortGpArray[1].name - 1)]); switch (_root["opp" + (_root.sortGpArray[1].name - 1)]) { case 1 : _root.tableGp2 = "Dashing Dan"; break; case 2 : _root.tableGp2 = "Mad-Dog Murphey"; break; case 3 : _root.tableGp2 = "The Real McCoy"; break; case 4 : _root.tableGp2 = "Woody"; break; case 5 : _root.tableGp2 = "Krazy Kenny"; break; case 6 : _root.tableGp2 = "J-zinger"; break; case 7 : _root.tableGp2 = "Terrible Timmy"; } _root.tableGp2b = _root["gppoints" + _root.sortGpArray[1].name]; _root.tableGp2c = _root.sortGpArray[1].points; }
Instance of Symbol 457 MovieClip in Frame 228
onClipEvent (enterFrame) { this.gotoAndStop(_root["opp" + (_root.sortGpArray[2].name - 1)]); switch (_root["opp" + (_root.sortGpArray[2].name - 1)]) { case 1 : _root.tableGp3 = "Dashing Dan"; break; case 2 : _root.tableGp3 = "Mad-Dog Murphey"; break; case 3 : _root.tableGp3 = "The Real McCoy"; break; case 4 : _root.tableGp3 = "Woody"; break; case 5 : _root.tableGp3 = "Krazy Kenny"; break; case 6 : _root.tableGp3 = "J-zinger"; break; case 7 : _root.tableGp3 = "Terrible Timmy"; } _root.tableGp3b = _root["gppoints" + _root.sortGpArray[2].name]; _root.tableGp3c = _root.sortGpArray[2].points; }
Instance of Symbol 457 MovieClip in Frame 228
onClipEvent (enterFrame) { this.gotoAndStop(_root["opp" + (_root.sortGpArray[3].name - 1)]); switch (_root["opp" + (_root.sortGpArray[3].name - 1)]) { case 1 : _root.tableGp4 = "Dashing Dan"; break; case 2 : _root.tableGp4 = "Mad-Dog Murphey"; break; case 3 : _root.tableGp4 = "The Real McCoy"; break; case 4 : _root.tableGp4 = "Woody"; break; case 5 : _root.tableGp4 = "Krazy Kenny"; break; case 6 : _root.tableGp4 = "J-zinger"; break; case 7 : _root.tableGp4 = "Terrible Timmy"; } _root.tableGp4b = _root["gppoints" + _root.sortGpArray[3].name]; _root.tableGp4c = _root.sortGpArray[3].points; }
Frame 229
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop1"); _root.bgm.start(0, 100); var trackno = 1; var opp0 = _root.carno; var maxlaps = 3; players = []; players.push(_root.carno); i = 1; pickchars(); function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, heights, widths, ang) { var arr = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root.debug1) { _root.createEmptyMovieClip("dd", 100000); with (_root.dd) { lineStyle(1, 16711680, 100); moveTo(xs, ys); lineTo((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); } _root.createEmptyMovieClip("tt", 100001); with (_root.tt) { lineStyle(1, 255, 100); moveTo(xs, ys); lineTo(xs + (Math.sin(ang - (Math.PI/2)) * widths), ys + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs - (Math.sin(ang - (Math.PI/2)) * widths), ys - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs + (Math.sin(ang) * heights), ys + (Math.cos(ang) * heights)); lineTo(xs - (Math.sin(ang) * heights), ys - (Math.cos(ang) * heights)); } } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[3] = 1; } return(arr); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; stop(); var pauser = true; var pauser2 = true; var currentgptrack = 1; var timer = 0; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var totalpoints1 = 0; var totalpoints2 = 0; var totalpoints3 = 0; var totalpoints4 = 0; var finished = []; onEnterFrame = function () { if (!_root.pauser) { _root.timer++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 0) { _root.gotoAndStop("submit"); } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 346 MovieClip "tracks" in Frame 229
onClipEvent (load) { this.cacheAsBitmap = true; }
Instance of Symbol 348 MovieClip in Frame 229
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._x < this._x) && (this["rem" + d] > this._x)) { _root[d].laps++; } if ((_root[d]._x > this._x) && (this["rem" + d] < this._x)) { _root[d].laps--; } } this["rem" + d] = _root[d]._x; } } } }
Instance of Symbol 423 MovieClip "car" in Frame 229
onClipEvent (load) { this.gotoAndStop(_root.opp0); var place = 0; var laps = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = 2; var decc = 0.95; var inc; var hits = new Array(); var weapon = 0; var ammo = 100; var currkey = 1; var node; var nodenum = 1; } onClipEvent (mouseDown) { if (!_root.pauser) { this.mosD = true; switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name, _root._xmouse, _root._ymouse); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } } } onClipEvent (mouseUp) { if (!_root.pauser) { this.mosD = false; } } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { _root.position = 4; for (d in _root) { if (_root[d].place < this.place) { _root.position--; _root.cam.posi.text = _root.position; } } this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (Key.isDown(38) || (Key.isDown(87))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; } else if (Key.isDown(40) || (Key.isDown(83))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.speed = this.speed - this.acc; } else { this.cars.gotoAndStop(1); } if (Key.isDown(37) || (Key.isDown(65))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation - Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (Key.isDown(39) || (Key.isDown(68))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation + Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); this.skidspeed = this.skidspeed - 3; } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; if (this.mosD) { _root.weapon2(this._name, _root._xmouse, _root._ymouse); } } else { this.weapons._rotation = 90; } if (this.weapon == 6) { if (this.mosD) { _root.weapon5(this._name); } } if (this.health <= 0) { this.health = 0; this.speed = 0; } if (this.health >= 100) { this.health = 100; } if (Key.isDown(32) == this.currkey) { this.health = this.health + 3; if (this.currkey == 0) { this.currkey = 1; } else { this.currkey = 0; } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 517 MovieClip "cam" in Frame 229
onClipEvent (load) { this.trackf = 1; this.carwatch = ""; }
Frame 230
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop2"); _root.bgm.start(0, 100); var trackno = 3; var opp0 = _root.carno; var maxlaps = 2; function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, heights, widths, ang) { var arr = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root.debug1) { _root.createEmptyMovieClip("dd", 100000); with (_root.dd) { lineStyle(1, 16711680, 100); moveTo(xs, ys); lineTo((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); } _root.createEmptyMovieClip("tt", 100001); with (_root.tt) { lineStyle(1, 255, 100); moveTo(xs, ys); lineTo(xs + (Math.sin(ang - (Math.PI/2)) * widths), ys + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs - (Math.sin(ang - (Math.PI/2)) * widths), ys - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs + (Math.sin(ang) * heights), ys + (Math.cos(ang) * heights)); lineTo(xs - (Math.sin(ang) * heights), ys - (Math.cos(ang) * heights)); } } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[3] = 1; } return(arr); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; stop(); var pauser = true; var pauser2 = true; var currentgptrack = 1; var timer = 0; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var totalpoints1 = 0; var totalpoints2 = 0; var totalpoints3 = 0; var totalpoints4 = 0; var finished = []; onEnterFrame = function () { if (!_root.pauser) { _root.timer++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 0) { _root.gotoAndStop("submit"); } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 522 MovieClip "tracks" in Frame 230
onClipEvent (load) { this.cacheAsBitmap = true; }
Instance of Symbol 348 MovieClip in Frame 230
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._y < this._y) && (this["rem" + d] > this._y)) { _root[d].laps++; } if ((_root[d]._y > this._y) && (this["rem" + d] < this._y)) { _root[d].laps--; } } this["rem" + d] = _root[d]._y; } } } }
Instance of Symbol 423 MovieClip "car" in Frame 230
onClipEvent (load) { this.gotoAndStop(_root.opp0); var place = 0; var laps = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = 2; var decc = 0.95; var inc; var hits = new Array(); var weapon = 0; var ammo = 100; var currkey = 1; var node; var nodenum = 1; } onClipEvent (mouseDown) { if (!_root.pauser) { this.mosD = true; switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name, _root._xmouse, _root._ymouse); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } } } onClipEvent (mouseUp) { if (!_root.pauser) { this.mosD = false; } } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { _root.position = 4; for (d in _root) { if (_root[d].place < this.place) { _root.position--; _root.cam.posi.text = _root.position; } } this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (Key.isDown(38) || (Key.isDown(87))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; } else if (Key.isDown(40) || (Key.isDown(83))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.speed = this.speed - this.acc; } else { this.cars.gotoAndStop(1); } if (Key.isDown(37) || (Key.isDown(65))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation - Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (Key.isDown(39) || (Key.isDown(68))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation + Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); this.skidspeed = this.skidspeed - 3; } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; if (this.mosD) { _root.weapon2(this._name, _root._xmouse, _root._ymouse); } } else { this.weapons._rotation = 90; } if (this.weapon == 6) { if (this.mosD) { _root.weapon5(this._name); } } if (this.health <= 0) { this.health = 0; this.speed = 0; } if (this.health >= 100) { this.health = 100; } if (Key.isDown(32) == this.currkey) { this.health = this.health + 3; if (this.currkey == 0) { this.currkey = 1; } else { this.currkey = 0; } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 517 MovieClip "cam" in Frame 230
onClipEvent (load) { this.trackf = 2; this.carwatch = ""; } onClipEvent (enterFrame) { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; }
Frame 231
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop3"); _root.bgm.start(0, 100); var trackno = 3; var opp0 = _root.carno; var maxlaps = 3; function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, heights, widths, ang) { var arr = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root.debug1) { _root.createEmptyMovieClip("dd", 100000); with (_root.dd) { lineStyle(1, 16711680, 100); moveTo(xs, ys); lineTo((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); } _root.createEmptyMovieClip("tt", 100001); with (_root.tt) { lineStyle(1, 255, 100); moveTo(xs, ys); lineTo(xs + (Math.sin(ang - (Math.PI/2)) * widths), ys + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs - (Math.sin(ang - (Math.PI/2)) * widths), ys - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs + (Math.sin(ang) * heights), ys + (Math.cos(ang) * heights)); lineTo(xs - (Math.sin(ang) * heights), ys - (Math.cos(ang) * heights)); } } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[3] = 1; } return(arr); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; stop(); var pauser = true; var pauser2 = true; var currentgptrack = 1; var timer = 0; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var totalpoints1 = 0; var totalpoints2 = 0; var totalpoints3 = 0; var totalpoints4 = 0; var finished = []; onEnterFrame = function () { if (!_root.pauser) { _root.timer++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 0) { _root.gotoAndStop("submit"); } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 530 MovieClip "tracks" in Frame 231
onClipEvent (load) { this.cacheAsBitmap = true; }
Instance of Symbol 348 MovieClip in Frame 231
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._y > this._y) && (this["rem" + d] < this._y)) { _root[d].laps++; } if ((_root[d]._y < this._y) && (this["rem" + d] > this._y)) { _root[d].laps--; } } this["rem" + d] = _root[d]._y; } } } }
Instance of Symbol 423 MovieClip "car" in Frame 231
onClipEvent (load) { this.gotoAndStop(_root.opp0); var place = 0; var laps = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = 2; var decc = 0.95; var inc; var hits = new Array(); var weapon = 0; var ammo = 100; var currkey = 1; var node; var nodenum = 1; } onClipEvent (mouseDown) { if (!_root.pauser) { this.mosD = true; switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name, _root._xmouse, _root._ymouse); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } } } onClipEvent (mouseUp) { if (!_root.pauser) { this.mosD = false; } } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { _root.position = 4; for (d in _root) { if (_root[d].place < this.place) { _root.position--; _root.cam.posi.text = _root.position; } } this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (Key.isDown(38) || (Key.isDown(87))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; } else if (Key.isDown(40) || (Key.isDown(83))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.speed = this.speed - this.acc; } else { this.cars.gotoAndStop(1); } if (Key.isDown(37) || (Key.isDown(65))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation - Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (Key.isDown(39) || (Key.isDown(68))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation + Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); this.skidspeed = this.skidspeed - 3; } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; if (this.mosD) { _root.weapon2(this._name, _root._xmouse, _root._ymouse); } } else { this.weapons._rotation = 90; } if (this.weapon == 6) { if (this.mosD) { _root.weapon5(this._name); } } if (this.health <= 0) { this.health = 0; this.speed = 0; } if (this.health >= 100) { this.health = 100; } if (Key.isDown(32) == this.currkey) { this.health = this.health + 3; if (this.currkey == 0) { this.currkey = 1; } else { this.currkey = 0; } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 517 MovieClip "cam" in Frame 231
onClipEvent (load) { this.trackf = 3; this.carwatch = ""; } onClipEvent (enterFrame) { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; }
Frame 232
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop8"); _root.bgm.start(0, 100); var trackno = 4; var opp0 = _root.carno; var maxlaps = 3; function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, heights, widths, ang) { var arr = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root.debug1) { _root.createEmptyMovieClip("dd", 100000); with (_root.dd) { lineStyle(1, 16711680, 100); moveTo(xs, ys); lineTo((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); } _root.createEmptyMovieClip("tt", 100001); with (_root.tt) { lineStyle(1, 255, 100); moveTo(xs, ys); lineTo(xs + (Math.sin(ang - (Math.PI/2)) * widths), ys + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs - (Math.sin(ang - (Math.PI/2)) * widths), ys - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs + (Math.sin(ang) * heights), ys + (Math.cos(ang) * heights)); lineTo(xs - (Math.sin(ang) * heights), ys - (Math.cos(ang) * heights)); } } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[3] = 1; } return(arr); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 8; stop(); var pauser = true; var pauser2 = true; var currentgptrack = 1; var timer = 0; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var totalpoints1 = 0; var totalpoints2 = 0; var totalpoints3 = 0; var totalpoints4 = 0; var finished = []; onEnterFrame = function () { if (!_root.pauser) { _root.timer++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 0) { _root.gotoAndStop("submit"); } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 535 MovieClip "tracks" in Frame 232
onClipEvent (load) { this.cacheAsBitmap = true; }
Instance of Symbol 348 MovieClip in Frame 232
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._x > this._x) && (this["rem" + d] < this._x)) { _root[d].laps--; } if ((_root[d]._x < this._x) && (this["rem" + d] > this._x)) { _root[d].laps++; } } this["rem" + d] = _root[d]._x; } } } }
Instance of Symbol 517 MovieClip "cam" in Frame 232
onClipEvent (load) { this.trackf = 4; this.carwatch = ""; } onClipEvent (enterFrame) { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; }
Frame 233
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop6"); _root.bgm.start(0, 100); var trackno = 5; var opp0 = _root.carno; var maxlaps = 2; function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, heights, widths, ang) { var arr = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root.debug1) { _root.createEmptyMovieClip("dd", 100000); with (_root.dd) { lineStyle(1, 16711680, 100); moveTo(xs, ys); lineTo((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); } _root.createEmptyMovieClip("tt", 100001); with (_root.tt) { lineStyle(1, 255, 100); moveTo(xs, ys); lineTo(xs + (Math.sin(ang - (Math.PI/2)) * widths), ys + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs - (Math.sin(ang - (Math.PI/2)) * widths), ys - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs + (Math.sin(ang) * heights), ys + (Math.cos(ang) * heights)); lineTo(xs - (Math.sin(ang) * heights), ys - (Math.cos(ang) * heights)); } } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[3] = 1; } return(arr); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; stop(); var pauser = true; var pauser2 = true; var currentgptrack = 1; var timer = 0; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var totalpoints1 = 0; var totalpoints2 = 0; var totalpoints3 = 0; var totalpoints4 = 0; var finished = []; onEnterFrame = function () { if (!_root.pauser) { _root.timer++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 0) { _root.gotoAndStop("submit"); } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 540 MovieClip "tracks" in Frame 233
onClipEvent (load) { this.cacheAsBitmap = true; }
Instance of Symbol 348 MovieClip "yea" in Frame 233
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._y > this._y) && (this["rem" + d] < this._y)) { _root[d].laps--; } if ((_root[d]._y < this._y) && (this["rem" + d] > this._y)) { _root[d].laps++; } } this["rem" + d] = _root[d]._y; } } } }
Instance of Symbol 143 MovieClip "tele1" in Frame 233
onClipEvent (load) { this.parent = 4; this.timed = 0; } onClipEvent (enterFrame) { if (this.teleported) { this.timed++; if (this.timed >= 30) { this.timed = 0; this.teleported = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root[car]._x, _root.car._y, 1)) { if (!this._parent["tele" + this.parent].teleported) { _root[car]._x = this._parent["tele" + this.parent]._x; _root[car]._y = this._parent["tele" + this.parent]._y; } this._parent["tele" + this.parent].teleported = true; } } } } }
Instance of Symbol 143 MovieClip "tele2" in Frame 233
onClipEvent (load) { this.parent = 3; this.timed = 0; } onClipEvent (enterFrame) { if (this.teleported) { this.timed++; if (this.timed >= 30) { this.timed = 0; this.teleported = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root[car]._x, _root.car._y, 1)) { if (!this._parent["tele" + this.parent].teleported) { _root[car]._x = this._parent["tele" + this.parent]._x; _root[car]._y = this._parent["tele" + this.parent]._y; } this._parent["tele" + this.parent].teleported = true; } } } } }
Instance of Symbol 143 MovieClip "tele3" in Frame 233
onClipEvent (load) { this.parent = 2; this.timed = 0; } onClipEvent (enterFrame) { if (this.teleported) { this.timed++; if (this.timed >= 30) { this.timed = 0; this.teleported = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root[car]._x, _root.car._y, 1)) { if (!this._parent["tele" + this.parent].teleported) { _root[car]._x = this._parent["tele" + this.parent]._x; _root[car]._y = this._parent["tele" + this.parent]._y; } this._parent["tele" + this.parent].teleported = true; } } } } }
Instance of Symbol 143 MovieClip "tele4" in Frame 233
onClipEvent (load) { this.parent = 1; this.timed = 0; } onClipEvent (enterFrame) { if (this.teleported) { this.timed++; if (this.timed >= 30) { this.timed = 0; this.teleported = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root[car]._x, _root.car._y, 1)) { if (!this._parent["tele" + this.parent].teleported) { _root[car]._x = this._parent["tele" + this.parent]._x; _root[car]._y = this._parent["tele" + this.parent]._y; } this._parent["tele" + this.parent].teleported = true; } } } } }
Instance of Symbol 143 MovieClip "tele5" in Frame 233
onClipEvent (load) { this.parent = 3; this.timed = 0; } onClipEvent (enterFrame) { if (this.teleported) { this.timed++; if (this.timed >= 30) { this.timed = 0; this.teleported = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root[car]._x, _root.car._y, 1)) { if (!this._parent["tele" + this.parent].teleported) { _root[car]._x = this._parent["tele" + this.parent]._x; _root[car]._y = this._parent["tele" + this.parent]._y; } this._parent["tele" + this.parent].teleported = true; } } } } }
Instance of Symbol 517 MovieClip "cam" in Frame 233
onClipEvent (load) { this.trackf = 5; this.carwatch = ""; } onClipEvent (enterFrame) { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; }
Frame 234
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop3"); _root.bgm.start(0, 100); var trackno = 6; var opp0 = _root.carno; var maxlaps = 2; function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, heights, widths, ang) { var arr = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root.debug1) { _root.createEmptyMovieClip("dd", 100000); with (_root.dd) { lineStyle(1, 16711680, 100); moveTo(xs, ys); lineTo((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); } _root.createEmptyMovieClip("tt", 100001); with (_root.tt) { lineStyle(1, 255, 100); moveTo(xs, ys); lineTo(xs + (Math.sin(ang - (Math.PI/2)) * widths), ys + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs - (Math.sin(ang - (Math.PI/2)) * widths), ys - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs + (Math.sin(ang) * heights), ys + (Math.cos(ang) * heights)); lineTo(xs - (Math.sin(ang) * heights), ys - (Math.cos(ang) * heights)); } } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[3] = 1; } return(arr); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; stop(); var pauser = true; var pauser2 = true; var currentgptrack = 1; var timer = 0; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var totalpoints1 = 0; var totalpoints2 = 0; var totalpoints3 = 0; var totalpoints4 = 0; var finished = []; onEnterFrame = function () { if (!_root.pauser) { _root.timer++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 0) { _root.gotoAndStop("submit"); } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 545 MovieClip "tracks" in Frame 234
onClipEvent (load) { this.cacheAsBitmap = true; }
Instance of Symbol 549 MovieClip in Frame 234
onClipEvent (load) { var ond = false; var timer = 0; } onClipEvent (enterFrame) { if (this.ond) { timer++; if (this.timer > 100) { this.timer = 0; this.ond = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root.car._x, _root.car._y, 1)) { this.ond = true; _root.weapon3("m1l", _root.car._x, _root.car._y); } } } } }
Instance of Symbol 549 MovieClip in Frame 234
onClipEvent (load) { var ond = false; var timer = 0; } onClipEvent (enterFrame) { if (this.ond) { timer++; if (this.timer > 100) { this.timer = 0; this.ond = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root.car._x, _root.car._y, 1)) { this.ond = true; _root.weapon3("m2l", _root.car._x, _root.car._y); } } } } }
Instance of Symbol 517 MovieClip "cam" in Frame 234
onClipEvent (load) { this.trackf = 6; this.carwatch = ""; } onClipEvent (enterFrame) { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; }
Frame 235
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop5"); _root.bgm.start(0, 100); var trackno = 7; var opp0 = _root.carno; var maxlaps = 2; function weapon2o(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root.tracks[target]._x - xa, _root.tracks[target]._y - ya), _x:_root.tracks[target]._x, _y:_root.tracks[target]._y, par:target, _rotation:(-Math.atan2(_root.tracks[target]._x - _root._xmouse, _root.tracks[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._alpha--; if (this._alpha < 80) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.play(); this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, heights, widths, ang) { var arr = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root.debug1) { _root.createEmptyMovieClip("dd", 100000); with (_root.dd) { lineStyle(1, 16711680, 100); moveTo(xs, ys); lineTo((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); } _root.createEmptyMovieClip("tt", 100001); with (_root.tt) { lineStyle(1, 255, 100); moveTo(xs, ys); lineTo(xs + (Math.sin(ang - (Math.PI/2)) * widths), ys + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs - (Math.sin(ang - (Math.PI/2)) * widths), ys - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs + (Math.sin(ang) * heights), ys + (Math.cos(ang) * heights)); lineTo(xs - (Math.sin(ang) * heights), ys - (Math.cos(ang) * heights)); } } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[3] = 1; } return(arr); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; stop(); var pauser = true; var pauser2 = true; var currentgptrack = 1; var timer = 0; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var totalpoints1 = 0; var totalpoints2 = 0; var totalpoints3 = 0; var totalpoints4 = 0; var finished = []; onEnterFrame = function () { if (!_root.pauser) { _root.timer++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 0) { _root.gotoAndStop("submit"); } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 348 MovieClip in Frame 235
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._x > this._x) && (this["rem" + d] < this._x)) { _root[d].laps--; } if ((_root[d]._x < this._x) && (this["rem" + d] > this._x)) { _root[d].laps++; } } this["rem" + d] = _root[d]._x; } } } }
Instance of Symbol 517 MovieClip "cam" in Frame 235
onClipEvent (load) { this.trackf = 7; this.carwatch = ""; } onClipEvent (enterFrame) { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; }
Frame 236
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop7"); _root.bgm.start(0, 100); var trackno = 8; var opp0 = _root.carno; var maxlaps = 3; function weapon2o(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root.tracks[target]._x - xa, _root.tracks[target]._y - ya), _x:_root.tracks[target]._x, _y:_root.tracks[target]._y, par:target, _rotation:(-Math.atan2(_root.tracks[target]._x - _root._xmouse, _root.tracks[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._alpha--; if (this._alpha < 80) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.play(); this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, heights, widths, ang) { var arr = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root.debug1) { _root.createEmptyMovieClip("dd", 100000); with (_root.dd) { lineStyle(1, 16711680, 100); moveTo(xs, ys); lineTo((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); } _root.createEmptyMovieClip("tt", 100001); with (_root.tt) { lineStyle(1, 255, 100); moveTo(xs, ys); lineTo(xs + (Math.sin(ang - (Math.PI/2)) * widths), ys + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs - (Math.sin(ang - (Math.PI/2)) * widths), ys - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs + (Math.sin(ang) * heights), ys + (Math.cos(ang) * heights)); lineTo(xs - (Math.sin(ang) * heights), ys - (Math.cos(ang) * heights)); } } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[3] = 1; } return(arr); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 22; stop(); var pauser = true; var pauser2 = true; var currentgptrack = 1; var timer = 0; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var totalpoints1 = 0; var totalpoints2 = 0; var totalpoints3 = 0; var totalpoints4 = 0; var finished = []; onEnterFrame = function () { if (!_root.pauser) { _root.timer++; } if (_root.car.laps >= _root.maxlaps) { if (!_root.car.finishedrace) { _root.finished.push(0); _root.car.finishedrace = true; _root.cam.carwatch = "1"; } else if (_root.car.speed > 0) { _root.car.speed--; } else { _root.car.speed = 0; } } if (_root.finished.length > 0) { _root.gotoAndStop("submit"); } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 348 MovieClip in Frame 236
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._y > this._y) && (this["rem" + d] < this._y)) { _root[d].laps--; } if ((_root[d]._y < this._y) && (this["rem" + d] > this._y)) { _root[d].laps++; } } this["rem" + d] = _root[d]._x; } } } }
Instance of Symbol 549 MovieClip in Frame 236
onClipEvent (load) { var ond = false; var timer = 0; } onClipEvent (enterFrame) { if (this.ond) { timer++; if (this.timer > 100) { this.timer = 0; this.ond = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root.car._x, _root.car._y, 1)) { this.ond = true; _root.weapon3("m2l", _root.car._x, _root.car._y); } } } } }
Instance of Symbol 549 MovieClip in Frame 236
onClipEvent (load) { var ond = false; var timer = 0; } onClipEvent (enterFrame) { if (this.ond) { timer++; if (this.timer > 100) { this.timer = 0; this.ond = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root.car._x, _root.car._y, 1)) { this.ond = true; _root.weapon3("m1l", _root.car._x, _root.car._y); } } } } }
Instance of Symbol 517 MovieClip "cam" in Frame 236
onClipEvent (load) { this.trackf = 8; this.carwatch = ""; } onClipEvent (enterFrame) { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; }
Frame 237
function submit() { if ((_root.score != 0) && (_root.username != "")) { pldm128948 = new LoadVars(); pldm128948.namevar = _root.username; pldm128948.scorevar = pldmcrypt.encodeNum(_root.score); pldm128948.mid = 62 + _root.trackno; pldm128948.pro = "2865b46663e6d9a9170acda5132157d0"; pldm128948.sendAndLoad("http://bot.armorstudios.com/hs.php", pldm128948, "POST"); getURL ("http://www.rustygames.com/highscores", "_blank"); _root.score = 0; _root.username = ""; _root.gotoAndStop(1); } } stop(); _root.onEnterFrame = null; var username = ""; _root.score = _root.timer;
Frame 238
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop1"); _root.bgm.start(0, 100); var opp0 = _root.carno; var maxlaps = 3; players = []; players.push(_root.carno); i = 1; pickchars(); function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, heights, widths, ang) { var arr = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root.debug1) { _root.createEmptyMovieClip("dd", 100000); with (_root.dd) { lineStyle(1, 16711680, 100); moveTo(xs, ys); lineTo((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); } _root.createEmptyMovieClip("tt", 100001); with (_root.tt) { lineStyle(1, 255, 100); moveTo(xs, ys); lineTo(xs + (Math.sin(ang - (Math.PI/2)) * widths), ys + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs - (Math.sin(ang - (Math.PI/2)) * widths), ys - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs + (Math.sin(ang) * heights), ys + (Math.cos(ang) * heights)); lineTo(xs - (Math.sin(ang) * heights), ys - (Math.cos(ang) * heights)); } } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[3] = 1; } return(arr); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; stop(); var pauser = true; var pauser2 = true; var currentgptrack = 1; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var totalpoints1 = 0; var totalpoints2 = 0; var totalpoints3 = 0; var totalpoints4 = 0; var finished = []; onEnterFrame = function () { if (_root.car.nodenum >= 10) { _root.gotoAndPlay(1); } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 346 MovieClip "tracks" in Frame 238
onClipEvent (load) { this.cacheAsBitmap = true; }
Instance of Symbol 348 MovieClip in Frame 238
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._x < this._x) && (this["rem" + d] > this._x)) { _root[d].laps++; } if ((_root[d]._x > this._x) && (this["rem" + d] < this._x)) { _root[d].laps--; } } this["rem" + d] = _root[d]._x; } } } }
Instance of Symbol 354 MovieClip in Frame 238
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 354 MovieClip in Frame 238
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 354 MovieClip in Frame 238
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 354 MovieClip in Frame 238
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 354 MovieClip in Frame 238
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 354 MovieClip in Frame 238
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 423 MovieClip "car" in Frame 238
onClipEvent (load) { this.gotoAndStop(_root.opp0); var place = 0; var laps = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 30; var acc = 1; var max_acc = 2; var decc = 0.95; var inc; var hits = new Array(); var weapon = 0; var ammo = 100; var currkey = 1; var node; var nodenum = 1; } onClipEvent (mouseDown) { if (!_root.pauser) { this.mosD = true; switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name, _root._xmouse, _root._ymouse); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } } } onClipEvent (mouseUp) { if (!_root.pauser) { this.mosD = false; } } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { _root.position = 4; for (d in _root) { if (_root[d].place < this.place) { _root.position--; _root.cam.posi.text = _root.position; } } this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (Key.isDown(38) || (Key.isDown(87))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; } else if (Key.isDown(40) || (Key.isDown(83))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.speed = this.speed - this.acc; } else { this.cars.gotoAndStop(1); } if (Key.isDown(37) || (Key.isDown(65))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation - Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (Key.isDown(39) || (Key.isDown(68))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation + Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); this.skidspeed = this.skidspeed - 3; } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; if (this.mosD) { _root.weapon2(this._name, _root._xmouse, _root._ymouse); } } else { this.weapons._rotation = 90; } if (this.weapon == 6) { if (this.mosD) { _root.weapon5(this._name); } } if (this.health <= 0) { this.health = 0; this.speed = 0; } if (this.health >= 100) { this.health = 100; } if (Key.isDown(32) == this.currkey) { this.health = this.health + 3; if (this.currkey == 0) { this.currkey = 1; } else { this.currkey = 0; } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 737 MovieClip "car2" in Frame 238
onClipEvent (load) { var health = 5; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.targetalive = true; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 747 MovieClip "cam" in Frame 238
onClipEvent (load) { this.trackf = 1; this.carwatch = ""; }
Frame 239
stop();
Instance of Symbol 755 MovieClip in Frame 239
on (rollOver) { _root.tropyex = "Bronze trophy. Aquired by completing Story mode on easy difficulty."; } on (rollOut) { _root.tropyex = ""; } onClipEvent (load) { if (_root.strop < 1) { this._visible = false; } }
Instance of Symbol 759 MovieClip in Frame 239
on (rollOver) { _root.tropyex = "Silver trophy. Aquired by completing Story mode on normal difficulty."; } on (rollOut) { _root.tropyex = ""; } onClipEvent (load) { if (_root.strop < 2) { this._visible = false; } }
Instance of Symbol 763 MovieClip in Frame 239
on (rollOver) { _root.tropyex = "Gold trophy. Aquired by completing Story mode on hard difficulty."; } on (rollOut) { _root.tropyex = ""; } onClipEvent (load) { if (_root.strop < 3) { this._visible = false; } }
Instance of Symbol 766 MovieClip in Frame 239
on (rollOver) { _root.tropyex = "Gold trophy. Aquired by completing Gran Prix mode on hard difficulty."; } on (rollOut) { _root.tropyex = ""; } onClipEvent (load) { if (_root.gptrop < 3) { this._visible = false; } }
Instance of Symbol 769 MovieClip in Frame 239
on (rollOver) { _root.tropyex = "Silver trophy. Aquired by completing Gran Prix mode on normal difficulty."; } on (rollOut) { _root.tropyex = ""; } onClipEvent (load) { if (_root.gptrop < 2) { this._visible = false; } }
Instance of Symbol 772 MovieClip in Frame 239
on (rollOver) { _root.tropyex = "Bronze trophy. Aquired by completing Gran Prix mode on easy difficulty."; } on (rollOut) { _root.tropyex = ""; } onClipEvent (load) { if (_root.gptrop < 1) { this._visible = false; } }
Instance of Symbol 775 MovieClip in Frame 239
on (rollOver) { _root.tropyex = "Platinum trophey. Aquired by watching the ending credits"; } on (rollOut) { _root.tropyex = ""; } onClipEvent (load) { if (!_root.cretrop) { this._visible = false; } }
Instance of Symbol 775 MovieClip in Frame 239
on (rollOver) { _root.tropyex = "Challenge trophey. Aquired by completing a challenge"; } on (rollOut) { _root.tropyex = ""; } onClipEvent (load) { if (!_root.ctrop4) { this._visible = false; } }
Instance of Symbol 775 MovieClip in Frame 239
on (rollOver) { _root.tropyex = "Challenge trophey. Aquired by completing a challenge"; } on (rollOut) { _root.tropyex = ""; } onClipEvent (load) { if (!_root.ctrop3) { this._visible = false; } }
Instance of Symbol 775 MovieClip in Frame 239
on (rollOver) { _root.tropyex = "Challenge trophey. Aquired by completing a challenge"; } on (rollOut) { _root.tropyex = ""; } onClipEvent (load) { if (!_root.ctrop2) { this._visible = false; } }
Instance of Symbol 775 MovieClip in Frame 239
on (rollOver) { _root.tropyex = "Challenge trophey. Aquired by completing a challenge"; } on (rollOut) { _root.tropyex = ""; } onClipEvent (load) { if (!_root.ctrop1) { this._visible = false; } }
Instance of Symbol 281 MovieClip in Frame 239
on (release) { _root.gotoAndStop(1); }
Frame 240
play();
Instance of Symbol 570 MovieClip in Frame 241
onClipEvent (enterFrame) { this.gotoAndStop(_root.opp1); }
Instance of Symbol 570 MovieClip in Frame 243
onClipEvent (enterFrame) { this.gotoAndStop(_root.opp2); }
Instance of Symbol 570 MovieClip in Frame 245
onClipEvent (enterFrame) { this.gotoAndStop(_root.opp0); }
Frame 287
stop();
Frame 288
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop1"); _root.bgm.start(0, 100); var opp0 = _root.carno; var maxlaps = 3; players = []; players.push(_root.carno); i = 1; pickchars(); function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, heights, widths, ang) { var arr = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root.debug1) { _root.createEmptyMovieClip("dd", 100000); with (_root.dd) { lineStyle(1, 16711680, 100); moveTo(xs, ys); lineTo((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); } _root.createEmptyMovieClip("tt", 100001); with (_root.tt) { lineStyle(1, 255, 100); moveTo(xs, ys); lineTo(xs + (Math.sin(ang - (Math.PI/2)) * widths), ys + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs - (Math.sin(ang - (Math.PI/2)) * widths), ys - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs + (Math.sin(ang) * heights), ys + (Math.cos(ang) * heights)); lineTo(xs - (Math.sin(ang) * heights), ys - (Math.cos(ang) * heights)); } } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[3] = 1; } return(arr); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; var boxes = 0; var chaltime = 450; stop(); var pauser = true; var pauser2 = true; var currentgptrack = 1; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var totalpoints1 = 0; var totalpoints2 = 0; var totalpoints3 = 0; var totalpoints4 = 0; var finished = []; onEnterFrame = function () { if (_root.boxes >= 27) { _root.ctrop1 = true; _root.gotoAndStop("chalcomp"); _root.onEnterFrame = null; } if (_root.chaltime <= 0) { _root.gotoAndStop("gameover"); } else if (!_root.pauser) { _root.chaltime--; } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 346 MovieClip "tracks" in Frame 288
onClipEvent (load) { this.cacheAsBitmap = true; }
Instance of Symbol 348 MovieClip in Frame 288
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._x < this._x) && (this["rem" + d] > this._x)) { _root[d].laps++; } if ((_root[d]._x > this._x) && (this["rem" + d] < this._x)) { _root[d].laps--; } } this["rem" + d] = _root[d]._x; } } } }
Instance of Symbol 354 MovieClip in Frame 288
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 354 MovieClip in Frame 288
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 354 MovieClip in Frame 288
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 354 MovieClip in Frame 288
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 354 MovieClip in Frame 288
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 354 MovieClip in Frame 288
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 354 MovieClip in Frame 288
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 354 MovieClip in Frame 288
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 354 MovieClip in Frame 288
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 354 MovieClip in Frame 288
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 354 MovieClip in Frame 288
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 354 MovieClip in Frame 288
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 354 MovieClip in Frame 288
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 354 MovieClip in Frame 288
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 354 MovieClip in Frame 288
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 354 MovieClip in Frame 288
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 354 MovieClip in Frame 288
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 354 MovieClip in Frame 288
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 354 MovieClip in Frame 288
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 354 MovieClip in Frame 288
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 354 MovieClip in Frame 288
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 354 MovieClip in Frame 288
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 354 MovieClip in Frame 288
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 354 MovieClip in Frame 288
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 354 MovieClip in Frame 288
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 354 MovieClip in Frame 288
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 354 MovieClip in Frame 288
onClipEvent (enterFrame) { if (this.hitTest(_root.car)) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 423 MovieClip "car" in Frame 288
onClipEvent (load) { this.gotoAndStop(_root.opp0); var place = 0; var laps = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = 2; var decc = 0.95; var inc; var hits = new Array(); var weapon = 0; var ammo = 100; var currkey = 1; var node; var nodenum = 1; } onClipEvent (mouseDown) { if (!_root.pauser) { this.mosD = true; switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name, _root._xmouse, _root._ymouse); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } } } onClipEvent (mouseUp) { if (!_root.pauser) { this.mosD = false; } } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { _root.position = 4; for (d in _root) { if (_root[d].place < this.place) { _root.position--; _root.cam.posi.text = _root.position; } } this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (Key.isDown(38) || (Key.isDown(87))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; } else if (Key.isDown(40) || (Key.isDown(83))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.speed = this.speed - this.acc; } else { this.cars.gotoAndStop(1); } if (Key.isDown(37) || (Key.isDown(65))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation - Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (Key.isDown(39) || (Key.isDown(68))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation + Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); this.skidspeed = this.skidspeed - 3; } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; if (this.mosD) { _root.weapon2(this._name, _root._xmouse, _root._ymouse); } } else { this.weapons._rotation = 90; } if (this.weapon == 6) { if (this.mosD) { _root.weapon5(this._name); } } if (this.health <= 0) { this.health = 0; this.speed = 0; } if (this.health >= 100) { this.health = 100; } if (Key.isDown(32) == this.currkey) { this.health = this.health + 3; if (this.currkey == 0) { this.currkey = 1; } else { this.currkey = 0; } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 792 MovieClip "cam" in Frame 288
onClipEvent (load) { this.trackf = 1; this.carwatch = ""; }
Frame 289
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop1"); _root.bgm.start(0, 100); var opp0 = _root.carno; var maxlaps = 3; players = []; players.push(_root.carno); i = 1; pickchars(); function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, heights, widths, ang) { var arr = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root.debug1) { _root.createEmptyMovieClip("dd", 100000); with (_root.dd) { lineStyle(1, 16711680, 100); moveTo(xs, ys); lineTo((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); } _root.createEmptyMovieClip("tt", 100001); with (_root.tt) { lineStyle(1, 255, 100); moveTo(xs, ys); lineTo(xs + (Math.sin(ang - (Math.PI/2)) * widths), ys + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs - (Math.sin(ang - (Math.PI/2)) * widths), ys - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs + (Math.sin(ang) * heights), ys + (Math.cos(ang) * heights)); lineTo(xs - (Math.sin(ang) * heights), ys - (Math.cos(ang) * heights)); } } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[3] = 1; } return(arr); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if ((d.slice(0, 2) == "ba") || (d == "tracks")) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; var boxes = 0; var chaltime = 600; stop(); var pauser = true; var pauser2 = true; var currentgptrack = 1; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var totalpoints1 = 0; var totalpoints2 = 0; var totalpoints3 = 0; var totalpoints4 = 0; var finished = []; onEnterFrame = function () { if (_root.boxes >= 29) { _root.ctrop3 = true; _root.gotoAndStop("chalcomp"); _root.onEnterFrame = null; } if (_root.chaltime <= 0) { _root.gotoAndStop("gameover"); } else if (!_root.pauser) { _root.chaltime--; } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 737 MovieClip "ba1" in Frame 289
onClipEvent (load) { var health = 1; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 737 MovieClip "ba2" in Frame 289
onClipEvent (load) { var health = 1; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 737 MovieClip "ba3" in Frame 289
onClipEvent (load) { var health = 1; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 737 MovieClip "ba5" in Frame 289
onClipEvent (load) { var health = 1; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 737 MovieClip "ba4" in Frame 289
onClipEvent (load) { var health = 1; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 737 MovieClip "ba6" in Frame 289
onClipEvent (load) { var health = 1; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 737 MovieClip "ba7" in Frame 289
onClipEvent (load) { var health = 1; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 737 MovieClip "ba8" in Frame 289
onClipEvent (load) { var health = 1; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 737 MovieClip "ba9" in Frame 289
onClipEvent (load) { var health = 1; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 737 MovieClip "ba10" in Frame 289
onClipEvent (load) { var health = 1; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 737 MovieClip "ba11" in Frame 289
onClipEvent (load) { var health = 1; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 737 MovieClip "ba12" in Frame 289
onClipEvent (load) { var health = 1; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 737 MovieClip "ba13" in Frame 289
onClipEvent (load) { var health = 1; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 737 MovieClip "ba14" in Frame 289
onClipEvent (load) { var health = 1; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 737 MovieClip "ba16" in Frame 289
onClipEvent (load) { var health = 1; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 737 MovieClip "ba17" in Frame 289
onClipEvent (load) { var health = 1; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 737 MovieClip "ba15" in Frame 289
onClipEvent (load) { var health = 1; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 737 MovieClip "ba18" in Frame 289
onClipEvent (load) { var health = 1; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 737 MovieClip "ba19" in Frame 289
onClipEvent (load) { var health = 1; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 737 MovieClip "ba20" in Frame 289
onClipEvent (load) { var health = 1; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 737 MovieClip "ba21" in Frame 289
onClipEvent (load) { var health = 1; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 737 MovieClip "ba22" in Frame 289
onClipEvent (load) { var health = 1; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 737 MovieClip "ba24" in Frame 289
onClipEvent (load) { var health = 1; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 737 MovieClip "ba26" in Frame 289
onClipEvent (load) { var health = 1; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 737 MovieClip "ba25" in Frame 289
onClipEvent (load) { var health = 1; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 737 MovieClip "ba23" in Frame 289
onClipEvent (load) { var health = 1; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 737 MovieClip "ba27" in Frame 289
onClipEvent (load) { var health = 1; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 737 MovieClip "ba29" in Frame 289
onClipEvent (load) { var health = 1; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 737 MovieClip "ba28" in Frame 289
onClipEvent (load) { var health = 1; } onClipEvent (enterFrame) { if (this.health <= 0) { _root.boxes++; this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } }
Instance of Symbol 423 MovieClip "car" in Frame 289
onClipEvent (load) { this.gotoAndStop(_root.opp0); var place = 0; var laps = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = 2; var decc = 0.95; var inc; var hits = new Array(); var weapon = 2; var ammo = 100; var currkey = 1; var node; var nodenum = 1; } onClipEvent (mouseDown) { if (!_root.pauser) { this.mosD = true; switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name, _root._xmouse, _root._ymouse); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } } } onClipEvent (mouseUp) { if (!_root.pauser) { this.mosD = false; } } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { _root.position = 4; for (d in _root) { if (_root[d].place < this.place) { _root.position--; _root.cam.posi.text = _root.position; } } this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (Key.isDown(38) || (Key.isDown(87))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; } else if (Key.isDown(40) || (Key.isDown(83))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.speed = this.speed - this.acc; } else { this.cars.gotoAndStop(1); } if (Key.isDown(37) || (Key.isDown(65))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation - Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (Key.isDown(39) || (Key.isDown(68))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation + Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); this.skidspeed = this.skidspeed - 3; } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; if (this.mosD) { _root.weapon2(this._name, _root._xmouse, _root._ymouse); } } else { this.weapons._rotation = 90; } if (this.weapon == 6) { if (this.mosD) { _root.weapon5(this._name); } } if (this.health <= 0) { this.health = 0; this.speed = 0; } if (this.health >= 100) { this.health = 100; } if (Key.isDown(32) == this.currkey) { this.health = this.health + 3; if (this.currkey == 0) { this.currkey = 1; } else { this.currkey = 0; } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 801 MovieClip "cam" in Frame 289
onClipEvent (load) { this.trackf = 1; this.carwatch = ""; }
Frame 290
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop6"); _root.bgm.start(0, 100); var opp0 = 8; var opp1 = 4; var opp2 = 6; var opp3 = 2; var maxlaps = 3; players = []; players.push(_root.opp0); players.push(_root.opp1); players.push(_root.opp2); players.push(_root.opp3); function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, heights, widths, ang) { var arr = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root.debug1) { _root.createEmptyMovieClip("dd", 100000); with (_root.dd) { lineStyle(1, 16711680, 100); moveTo(xs, ys); lineTo((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); } _root.createEmptyMovieClip("tt", 100001); with (_root.tt) { lineStyle(1, 255, 100); moveTo(xs, ys); lineTo(xs + (Math.sin(ang - (Math.PI/2)) * widths), ys + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs - (Math.sin(ang - (Math.PI/2)) * widths), ys - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs + (Math.sin(ang) * heights), ys + (Math.cos(ang) * heights)); lineTo(xs - (Math.sin(ang) * heights), ys - (Math.cos(ang) * heights)); } } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[3] = 1; } return(arr); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; var boxes = 0; var chaltime = 400; stop(); var pauser = true; var pauser2 = true; var currentgptrack = 1; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var totalpoints1 = 0; var totalpoints2 = 0; var totalpoints3 = 0; var totalpoints4 = 0; var finished = []; onEnterFrame = function () { if (_root.car.laps >= 3) { _root.ctrop2 = true; _root.gotoAndStop("chalcomp"); _root.onEnterFrame = null; } if (_root.chaltime <= 0) { _root.gotoAndStop("gameover"); } else if (!_root.pauser) { _root.chaltime--; } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 540 MovieClip "tracks" in Frame 290
onClipEvent (load) { this.cacheAsBitmap = true; }
Instance of Symbol 348 MovieClip "yea" in Frame 290
onClipEvent (enterFrame) { for (d in _root) { if (d.slice(0, 3) == "car") { if (this.hitTest(_root[d]._x, _root[d]._y, 0)) { this["hits" + d] = true; } else { if (this["hits" + d]) { this["hits" + d] = false; if ((_root[d]._y > this._y) && (this["rem" + d] < this._y)) { _root[d].laps--; } if ((_root[d]._y < this._y) && (this["rem" + d] > this._y)) { _root[d].laps++; } } this["rem" + d] = _root[d]._y; } } } }
Instance of Symbol 354 MovieClip in Frame 290
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = 5; } } } } } }
Instance of Symbol 354 MovieClip in Frame 290
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = 5; } } } } } }
Instance of Symbol 354 MovieClip in Frame 290
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = 5; } } } } } }
Instance of Symbol 423 MovieClip "car" in Frame 290
onClipEvent (load) { this.gotoAndStop(_root.opp0); var place = 0; var laps = 0; var health = 100; var wid = (this._width * 0.5); var hei = (this._height * 0.5); var speed = 1; var max_speed = 70; var acc = 1; var max_acc = 2; var decc = 0.95; var inc; var hits = new Array(); var weapon = 0; var ammo = 100; var currkey = 1; var node; var nodenum = 1; } onClipEvent (mouseDown) { if (!_root.pauser) { this.mosD = true; switch (this.weapon) { case 5 : _root.weapon1(this._name); break; case 7 : _root.weapon3(this._name, _root._xmouse, _root._ymouse); break; case 1 : _root.weapon4(this._name); break; case 3 : _root.weapon6(this._name); break; case 4 : _root.weapon7(this._name); } } } onClipEvent (mouseUp) { if (!_root.pauser) { this.mosD = false; } } onClipEvent (enterFrame) { if (!_root.pauser) { this.place = (this.laps * (_root.maxnodes + 1)) + this.nodenum; this.node = "n" + this.nodenum; if (_root[this.node].hitTest(this._x, this._y, 1)) { _root.position = 4; for (d in _root) { if (_root[d].place < this.place) { _root.position--; _root.cam.posi.text = _root.position; } } this.nodenum++; } if (this.nodenum > _root.maxnodes) { this.nodenum = 1; } this.ang = (-this._rotation) * (Math.PI/180); if (!this.hitwall) { if (Key.isDown(38) || (Key.isDown(87))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.inc = (this.max_speed - this.speed) * 0.1; ((this.inc < this.acc) ? ((this.inc = this.acc)) : ((this.inc = this.inc))); ((this.inc > this.max_acc) ? ((this.inc = this.max_acc)) : ((this.inc = this.inc))); this.speed = this.speed + this.inc; } else if (Key.isDown(40) || (Key.isDown(83))) { if (this.cars._currentframe != 3) { this.cars.gotoAndStop(2); } this.speed = this.speed - this.acc; } else { this.cars.gotoAndStop(1); } if (Key.isDown(37) || (Key.isDown(65))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation - Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (Key.isDown(39) || (Key.isDown(68))) { if ((Math.abs(this.speed) * 0.5) > 13) { if (_root._quality == "HIGH") { this.cars.gotoAndStop(3); _root.skid(this._x + (Math.sin(this.ang) * this.speed), this._y + (Math.cos(this.ang) * this.speed), this._rotation); } } this._rotation = this._rotation + Math.abs(this.speed * 0.3); this.speed = this.speed * 0.96; } else if (this.cars._currentframe == 3) { this.cars.gotoAndStop(2); } this.ang = (-this._rotation) * (Math.PI/180); this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); this.speed = this.speed * this.decc; if (this.speed < ((-this.max_speed) * 0.5)) { this.speed = (-this.max_speed) * 0.5; } if (this.speed > this.max_speed) { this.speed = this.max_speed; } } this.hits = _root.boxTest("tracks", this._x, this._y, this.wid, this.hei, this.ang); if ((((this.hits[0] + this.hits[1]) + this.hits[2]) + this.hits[3]) > 0) { if (this.speed < 0) { if ((this.hits[0] + this.hits[1]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; } } else if ((this.hits[2] + this.hits[3]) > 0) { } else if (!this.hitwall) { this.speed = -this.speed; this.hitwall = true; setTimeout(function () { if (_root.car.hitwall) { _root.car.speed = -_root.car.speed; _root.car.hitwall = false; } }, 3000); } if ((this.speed < 0) && (this.speed > -1)) { this.speed = -2; } if ((this.speed > 0) && (this.speed < 1)) { this.speed = 2; } this._x = this._x - (Math.sin(this.ang) * this.speed); this._y = this._y - (Math.cos(this.ang) * this.speed); } else { this.hitwall = false; } if (this.speed > 30) { _root.myBlur.blurX = (Math.sin(this.ang) * this.speed) - 30; _root.myBlur.blurY = (Math.cos(this.ang) * this.speed) - 30; this.filters = [_root.myBlur]; } else { _root.myBlur.blurY = 0; _root.myBlur.blurX = 0; this.filters = [_root.myBlur]; } if (this.skidspeed > 0) { this.speed = this.speed * 0.5; this._x = this._x + (Math.sin(this.skidang) * this.skidspeed); this._y = this._y + (Math.cos(this.skidang) * this.skidspeed); this.skidspeed = this.skidspeed - 3; } this.weapons.gotoAndStop(this.weapon); if (this.ammo <= 0) { this.ammo = 0; this.weapon = 0; } if (this.weapon == 2) { this.weapons._rotation = (90 - (Math.atan2(this._x - _root._xmouse, this._y - _root._ymouse) * 57.2957795130823)) - this._rotation; if (this.mosD) { _root.weapon2(this._name, _root._xmouse, _root._ymouse); } } else { this.weapons._rotation = 90; } if (this.weapon == 6) { if (this.mosD) { _root.weapon5(this._name); } } if (this.health <= 0) { this.health = 0; this.speed = 0; } if (this.health >= 100) { this.health = 100; } if (Key.isDown(32) == this.currkey) { this.health = this.health + 3; if (this.currkey == 0) { this.currkey = 1; } else { this.currkey = 0; } } } else { this.mosD = false; } if (this.weapon == 0) { this.weapons.gotoAndStop(1); this.weapons._visible = false; } else { this.weapons._visible = true; } }
Instance of Symbol 810 MovieClip "cam" in Frame 290
onClipEvent (load) { this.trackf = 1; this.carwatch = ""; }
Frame 291
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop3"); _root.bgm.start(0, 100); var opp0 = _root.carno; var maxlaps = 2; players = []; players.push(_root.carno); i = 1; pickchars(); function qualfunction() { setTimeout(function () { _root.qualfunction(); switch (_root.qual) { case 0 : _root._quality = "LOW"; break; case 1 : _root._quality = "MEDIUM"; break; case 2 : _root._quality = "HIGH"; break; case 3 : if (_root.avefps > 15) { if (_root._quality == "MEDIUM") { _root._quality = "HIGH"; } if (_root._quality == "LOW") { _root._quality = "MEDIUM"; } } if (_root.avefps >= 13) { break; } if (_root._quality == "MEDIUM") { _root._quality = "LOW"; } if (_root._quality != "HIGH") { break; } _root._quality = "MEDIUM"; } }, 1000); } function skid(x, y, a) { j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("skid", "skid" + j, j, {_x:x, _y:y, _rotation:a}); } function boxTest(obj, xs, ys, heights, widths, ang) { var arr = [0, 0, 0, 0, 0, 0, 0, 0]; if (_root.debug1) { _root.createEmptyMovieClip("dd", 100000); with (_root.dd) { lineStyle(1, 16711680, 100); moveTo(xs, ys); lineTo((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths)); } _root.createEmptyMovieClip("tt", 100001); with (_root.tt) { lineStyle(1, 255, 100); moveTo(xs, ys); lineTo(xs + (Math.sin(ang - (Math.PI/2)) * widths), ys + (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs - (Math.sin(ang - (Math.PI/2)) * widths), ys - (Math.cos(ang - (Math.PI/2)) * widths)); lineTo(xs + (Math.sin(ang) * heights), ys + (Math.cos(ang) * heights)); lineTo(xs - (Math.sin(ang) * heights), ys - (Math.cos(ang) * heights)); } } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[0] = 1; } if (_root[obj].hitTest((xs - (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys - (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[1] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) - (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) - (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[2] = 1; } if (_root[obj].hitTest((xs + (Math.sin(ang) * heights)) + (Math.sin(ang - (Math.PI/2)) * widths), (ys + (Math.cos(ang) * heights)) + (Math.cos(ang - (Math.PI/2)) * widths), 1)) { arr[3] = 1; } return(arr); } function weapon1(target) { if (!_root.pauser) { _root[target].speed = _root[target].speed + 5; _root[target].ammo = _root[target].ammo - 5; _root[target].weapons.wep.gotoAndStop(2); } if (_root[target].ammo >= 0) { setTimeout(function () { weapon1(target); }, 100); } } function weapon2(target, xa, ya) { _root[target].ammo = _root[target].ammo - 2; j = _root.getNextHighestDepth(); _root[target].weapons.wep.play(); _root.attachMovie("bullet", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target, _rotation:(-Math.atan2(_root[target]._x - _root._xmouse, _root[target]._y - _root._ymouse)) * 57.2957795130823}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } this._alpha--; if (this._alpha < 90) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 50); this._y = this._y - (Math.cos(this.ang) * 50); for (d in _root) { if (_root[d].hitTest(this._x, this._y, 1)) { if (d.slice(0, 3) == "car") { if (d != this.par) { _root[d].health = _root[d].health - 2; j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360), _xscale:30, _yscale:30}); this._alpha = this._alpha - 10; } } } } } } }; } function weapon3(target, xa, ya) { _root[target].ammo = _root[target].ammo - 100; j = _root.getNextHighestDepth(); _root.attachMovie("homing", "b" + j, j, {ang:Math.atan2(_root[target]._x - xa, _root[target]._y - ya), _x:_root[target]._x, _y:_root[target]._y, par:target}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { j = _root.getNextHighestDepth(); _root.attachMovie("Smoke", "b" + j, j, {_x:this._x, _y:this._y, _rotation:random(360)}); if (_root.tracks.hitTest(this._x, this._y, 1)) { this._alpha = this._alpha - 100; } if (this._alpha < 50) { this._alpha = this._alpha - 50; if (this._alpha <= 0) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } } else { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x - (Math.sin(this.ang) * 30); this._y = this._y - (Math.cos(this.ang) * 30); for (d in _root) { if ((Math.pow(_root[d]._x - _root[this.par]._x, 2) + Math.pow(_root[d]._y - _root[this.par]._y, 2)) < 1000000000000) { if (d.slice(0, 3) == "car") { if (d != this.par) { this.ang = Math.atan2(this._x - _root[d]._x, this._y - _root[d]._y); if (_root[d].hitTest(this._x, this._y, 1)) { _root[d].health = _root[d].health - 70; this._alpha = this._alpha - 50; } } } } } } } }; } function weapon4(target) { _root[target].ammo = _root[target].ammo - 35; j = _root.getNextHighestDepth(); _root.attachMovie("mine", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target, speed:20, ang:_root[target].ang - ((Math.PI/2) - random(Math.PI))}); _root["b" + j].onEnterFrame = function () { if (!_root.pauser) { this._rotation = (-this.ang) * 57.2957795130823; this._x = this._x + (Math.sin(this.ang) * this.speed); this._y = this._y + (Math.cos(this.ang) * this.speed); if (_root.tracks.hitTest(this._x, this._y, 1)) { this.speed = -this.speed; } this.speed = this.speed * 0.98; if ((this.speed < 5) && (this.speed > 0)) { this.speed = 5; } if ((this.speed > -5) && (this.speed < 0)) { this.speed = -5; } if (this.speed < 15) { for (d in _root) { if (d.slice(0, 3) == "car") { if (_root[d].hitTest(this)) { _root[d].health = _root[d].health - 20; this.play(); this.onEnterFrame = null; } } } } } }; } function weapon5(par) { _root[par].ammo--; j = _root.getNextHighestDepth(); _root.createEmptyMovieClip(("w" + par) + "laser", j); _root[("w" + par) + "laser"].par = par; _root[("w" + par) + "laser"].maxdis = 1000000000000; _root[("w" + par) + "laser"].dip = false; _root[("w" + par) + "laser"].onEnterFrame = function () { if (!_root.pauser) { wep5arr = []; if (this.dip) { this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { a = _root[this.par]._x - _root[d]._x; b = _root[this.par]._y - _root[d]._y; dist = (a * a) + (b * b); if (d == this.targets) { this.maxdis = dist; } wep5arr.push([d, dist]); } } } i = 0; while (i < wep5arr.length) { if (wep5arr[i][1] < this.maxdis) { this.dist2 = Math.sqrt(wep5arr[i][1]) * 0.5; this.maxdis = wep5arr[i][1]; this.targets = wep5arr[i][0]; break; } i++; } _root[this.targets].health = _root[this.targets].health - 0.7; this.clear(); this.lineStyle(2 + random(4), 16711680, 50); this.moveTo(_root[this.par]._x, _root[this.par]._y); this.ang4 = Math.atan2(_root[this.par]._x - _root[this.targets]._x, _root[this.par]._y - _root[this.targets]._y); this.ang4 = this.ang4 + (-1.5707963267949 + random(Math.PI)); this.curveTo(_root[this.par]._x - (Math.sin(this.ang4) * this.dist2), _root[this.par]._y - (Math.cos(this.ang4) * this.dist2), _root[this.targets]._x, _root[this.targets]._y); this.dip = true; } }; } function weapon6(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("oil", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].rand = 3 - (random(2) * 6); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d]._rotation = _root[d]._rotation + this.rand; this._alpha = this._alpha - 5; } } } } } } }; } function weapon7(target) { _root[target].ammo = _root[target].ammo - 50; j = _root.skider.getNextHighestDepth(); _root.skider.attachMovie("glue", "b" + j, j, {_x:_root[target]._x, _y:_root[target]._y, par:target}); _root.skider["b" + j].onEnterFrame = function () { if (!_root.pauser) { if (this._alpha <= 0) { this.swapDepths(_root.skider.getNextHighestDepth()); this.removeMovieClip(); } for (d in _root) { if (d.slice(0, 3) == "car") { if (d != this.par) { if (this.hitTest(_root[d]._x, _root[d]._y)) { if (_root[d].speed > 2) { _root[d].speed = 2; this._alpha = this._alpha - 5; } } } } } } }; } var maxnodes = 10; var boxes = 0; var chaltime = 600; stop(); var pauser = true; var pauser2 = true; var currentgptrack = 1; _root.qualfunction(); switch (_root.difficulty) { case 0 : var dif2 = 0.3; var dif3 = 2; break; case 1 : var dif2 = 0.4; var dif3 = 2.5; break; case 2 : var dif2 = 0.5; var dif3 = 3; } var myBlur = (new flash.filters.BlurFilter(0, 0, 100)); _root.myBlur.blurX = 0; var avefps = 30; var fpsarr = [30, 30, 30]; var fps = 30; var dt = getTimer(); var totalpoints1 = 0; var totalpoints2 = 0; var totalpoints3 = 0; var totalpoints4 = 0; var finished = []; onEnterFrame = function () { if (_root.car.laps >= 2) { _root.ctrop4 = true; _root.nextFrame(); _root.onEnterFrame = null; } if ((_root.chaltime <= 0) || (_root.car.health <= 0)) { _root.gotoAndPlay(1); } else if (!_root.pauser) { _root.chaltime--; } k = 0; while (k < 4) { r = 0; while (r < 4) { j = r; if (j == 0) { j = ""; } i = k; if (i == 0) { i = ""; } if (("car" + j) != ("car" + i)) { _root["car" + i].hits = _root.boxTest("car" + j, _root["car" + i]._x, _root["car" + i]._y, _root["car" + i].wid, _root["car" + i].hei, _root["car" + i].ang); if ((((_root["car" + i].hits[0] + _root["car" + i].hits[1]) + _root["car" + i].hits[2]) + _root["car" + i].hits[3]) > 0) { _root["car" + i].skidang = Math.atan2(_root["car" + i]._x - _root["car" + j]._x, _root["car" + i]._y - _root["car" + j]._y); _root["car" + j].skidang = Math.atan2(_root["car" + j]._x - _root["car" + i]._x, _root["car" + j]._y - _root["car" + i]._y); _root["car" + i].skidspeed = (_root["car" + j].skidspeed = 10); } } r++; } k++; } fps = (1 / (getTimer() - dt)) * 1000; dt = getTimer(); fpsarr.push(fps); avefps = Math.round(((fpsarr[0] + fpsarr[1]) + fpsarr[2]) / 3); fpsarr.splice(0, 1); };
Instance of Symbol 545 MovieClip "tracks" in Frame 291
onClipEvent (load) { this.cacheAsBitmap = true; }
Instance of Symbol 354 MovieClip in Frame 291
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 354 MovieClip in Frame 291
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 354 MovieClip in Frame 291
onClipEvent (enterFrame) { if (this._currentframe == 1) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car])) { if (_root[car].weapon == 0) { this.play(); _root[car].ammo = 100; _root[car].weapon = random(7) + 1; } } } } } }
Instance of Symbol 549 MovieClip in Frame 291
onClipEvent (load) { var ond = false; var timer = 0; } onClipEvent (enterFrame) { if (this.ond) { timer++; if (this.timer > 100) { this.timer = 0; this.ond = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root.car._x, _root.car._y, 1)) { this.ond = true; _root.weapon3("m1l", _root.car._x, _root.car._y); } } } } }
Instance of Symbol 549 MovieClip in Frame 291
onClipEvent (load) { var ond = false; var timer = 0; } onClipEvent (enterFrame) { if (this.ond) { timer++; if (this.timer > 100) { this.timer = 0; this.ond = false; } } else { for (car in _root) { if (car == "car") { if (this.hitTest(_root.car._x, _root.car._y, 1)) { this.ond = true; _root.weapon3("m2l", _root.car._x, _root.car._y); } } } } }
Instance of Symbol 810 MovieClip "cam" in Frame 291
onClipEvent (load) { this.trackf = 6; this.carwatch = ""; } onClipEvent (enterFrame) { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; }
Frame 292
stop(); _root.saveTrops(); _root.onEnterFrame = null;
Frame 293
_root.saveTrops(); _root.stopAllSounds(); _root.bgm.stop(); onEnterFrame = null; play();
Instance of Symbol 820 MovieClip in Frame 293
on (release) { getURL ("http://www.armorgames.com", "_blank"); }
Instance of Symbol 820 MovieClip in Frame 442
on (release) { getURL ("http://www.rustygames.com", "_blank"); }
Instance of Symbol 820 MovieClip in Frame 894
on (release) { _root.gotoAndPlay(1); }
Frame 1792
_root.cretrop = true; _root.saveTrops(); _root.gotoAndPlay(1);
Frame 1793
stop();
Frame 1794
stop();
Frame 1795
stop();
Instance of Symbol 924 MovieClip in Frame 1795
on (release) { _root.pre.bitch.gotoAndStop(5); _root.nimpo.info.text = "Avoid the missile until you complete all the laps. Good luck!"; }
Instance of Symbol 926 MovieClip in Frame 1795
on (release) { _root.pre.bitch.gotoAndStop(3); _root.nimpo.info.text = "Speed your way through the track within the time limit"; }
Instance of Symbol 928 MovieClip in Frame 1795
on (release) { _root.pre.bitch.gotoAndStop(4); _root.nimpo.info.text = "Shoot all the barrels within the time limit"; }
Instance of Symbol 930 MovieClip in Frame 1795
on (release) { _root.pre.bitch.gotoAndStop(2); _root.nimpo.info.text = "Grab every box within the time limit"; }
Frame 1796
stop();
Frame 1797
var bgm = new Sound(); _root.bgm.stop(); _root.bgm.attachSound("loop1"); _root.bgm.start(0, 100);
Instance of Symbol 956 MovieClip in Frame 1892
on (release) { _root.gotoAndStop("endintro"); }
Frame 2442
_root.gotoAndPlay(1);
Symbol 20 MovieClip [Smoke] Frame 16
this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip();
Symbol 28 MovieClip [glue] Frame 6
stop();
Symbol 28 MovieClip [glue] Frame 7
stop();
Symbol 36 MovieClip [oil] Frame 6
stop();
Symbol 36 MovieClip [oil] Frame 7
stop();
Symbol 39 MovieClip [skid] Frame 60
stop(); this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip();
Symbol 59 MovieClip [mine] Frame 1
stop();
Symbol 59 MovieClip [mine] Frame 10
this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip();
Symbol 70 MovieClip Frame 12
stop();
Symbol 117 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 1
stop(); onEnterFrame = function () { this.loadbar._xscale = (this.getBytesLoaded() / this.getBytesTotal()) * 100; if ((this.getBytesLoaded() / this.getBytesTotal()) == 1) { this.nextFrame(); this.onEnterFrame = null; } };
Instance of Symbol 92 MovieClip in Symbol 170 MovieClip Frame 2
on (press) { if (this._parent._currentframe == 17) { this._parent.gotoAndStop(2); } else { this._parent.nextFrame(); } }
Instance of Symbol 92 MovieClip in Symbol 170 MovieClip Frame 2
on (press) { if (this._parent._currentframe == 2) { this._parent.gotoAndStop(17); } else { this._parent.prevFrame(); } }
Symbol 174 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 2
stop();
Symbol 998 MovieClip [__Packages.pldmcrypt] Frame 0
class pldmcrypt { function pldmcrypt () { } static function fr(str, find, replace, limit) { var _local2 = str; var _local3; var _local4; var _local9; if (!(typeof(find) === "string")) { if (replace === undefined) { replace = [""]; } else if (typeof(replace) === "string") { replace = [replace]; } } else { find = [find]; replace = [replace]; } _local9 = find.length; var _local1 = 0; var _local5 = 0; while (_local1 < _local9) { while (_local4 = _local2.indexOf(find[_local1]) , !(_local4 === -1)) { if ((!(limit === undefined)) && (_local5 >= limit)) { break; } _local3 = new Array(_local2.substring(0, _local4), _local2.substr(_local4, find[_local1].length), _local2.substr(_local4 + find[_local1].length)); _local3[1] = ((replace[_local1] === undefined) ? "" : (replace[_local1])); _local2 = (_local3[0] + _local3[1]) + _local3[2]; _local5++; } _local1++; _local5 = 0; } return(_local2); } static function encodeNum(num) { var _local11 = getTimer(); var _local6 = ["aZ", "Zy", "Zx"]; var _local7 = ["zH", "jY", "uH"]; var _local4 = ["Ah", "Xh", "hO"]; var _local5 = ["Ub", "Bu", "Cb"]; var _local8 = ["Qc", "Pc", "Pe"]; var _local9 = ["Ei", "Ie", "Ef"]; var _local3 = ["Fk", "kG", "Kg"]; var _local13 = ["Jl", "Lm", "Mn"]; var _local12 = ["No", "Np", "Qp"]; var _local2 = ["Rs", "St", "Sw"]; var _local14 = random(3); num = String(num); num = fr(num, "9", _local6[random(3)], 1); num = fr(num, "9", _local6[random(3)], 1); num = fr(num, "9", _local6[random(3)], 1); num = fr(num, "9", _local6[random(3)], 1); num = fr(num, "9", _local6[random(3)], 1); num = fr(num, "9", _local6[random(3)], 1); num = fr(num, "8", _local7[random(3)], 1); num = fr(num, "8", _local7[random(3)], 1); num = fr(num, "8", _local7[random(3)], 1); num = fr(num, "8", _local7[random(3)], 1); num = fr(num, "8", _local7[random(3)], 1); num = fr(num, "7", _local4[random(3)], 1); num = fr(num, "7", _local4[random(3)], 1); num = fr(num, "7", _local4[random(3)], 1); num = fr(num, "7", _local4[random(3)], 1); num = fr(num, "7", _local4[random(3)], 1); num = fr(num, "7", _local4[random(3)], 1); num = fr(num, "7", _local4[random(3)], 1); num = fr(num, "7", _local4[random(3)], 1); num = fr(num, "6", _local5[random(3)], 1); num = fr(num, "6", _local5[random(3)], 1); num = fr(num, "6", _local5[random(3)], 1); num = fr(num, "6", _local5[random(3)], 1); num = fr(num, "6", _local5[random(3)], 1); num = fr(num, "6", _local5[random(3)], 1); if (_local14 == 1) { num = fr(num, "5", _local8[0]); } else { num = fr(num, "5", _local8[random(3)]); } num = fr(num, "4", _local9[random(3)]); num = fr(num, "3", _local3[random(3)], 1); num = fr(num, "3", _local3[random(3)], 1); num = fr(num, "3", _local3[random(3)], 1); num = fr(num, "3", _local3[random(3)], 1); num = fr(num, "3", _local3[random(3)], 1); num = fr(num, "3", _local3[random(3)], 1); num = fr(num, "3", _local3[random(3)], 1); num = fr(num, "3", _local3[random(3)], 1); num = fr(num, "2", _local13[random(3)]); num = fr(num, "1", _local12[random(3)]); num = fr(num, "0", _local2[random(3)], 1); num = fr(num, "0", _local2[random(3)], 1); num = fr(num, "0", _local2[random(3)], 1); num = fr(num, "0", _local2[random(3)], 1); num = fr(num, "0", _local2[random(3)], 1); num = fr(num, "0", _local2[random(3)], 1); num = fr(num, "0", _local2[random(3)], 1); num = fr(num, "0", _local2[random(3)], 1); num = fr(num, "0", _local2[random(3)], 1); var _local10 = getTimer() - _local11; num = (num + "Dd") + _local10; return(num); } static function encodeStr8bytes(str) { var _local1 = 0; var _local4 = str.length; var _local3 = "%"; var _local2 = ["%", "$", "#", "@"]; while (_local1 < _local4) { _local3 = _local3 + (str.charCodeAt(_local1) + _local2[random(_local2.length)]); _local1++; } return(_local3); } static function decodeStr8bytes(str) { str = ("PIE" + str) + "PIE"; str = fr(str, "%", "D"); str = fr(str, "$", "D"); str = fr(str, "#", "D"); str = fr(str, "@", "D"); str = fr(str, "PIED", ""); str = fr(str, "DPIE", ""); var _local3 = str.split("D"); var _local4 = ""; var _local1 = 0; var _local5 = _local3.length; while (_local1 < _local5) { _local4 = _local4 + String(String.fromCharCode(_local3[_local1])); _local1++; } return(_local4); } static function decodeNum(str) { var _local2 = ["aZ", "Zy", "Zx", "zH", "jY", "uH", "Ah", "Xh", "hO", "Ub", "Bu", "Cb", "Qc", "Pc", "Pe", "Ei", "Ie", "Ef", "Fk", "kG", "Kg", "Jl", "Lm", "Mn", "No", "Np", "Qp", "Rs", "St", "Sw"]; str = String(str); str = str.split("Dd"); str = str[0]; str = fr(str, _local2[0], "9"); str = fr(str, _local2[1], "9"); str = fr(str, _local2[2], "9"); str = fr(str, _local2[3], "8"); str = fr(str, _local2[4], "8"); str = fr(str, _local2[5], "8"); str = fr(str, _local2[6], "7"); str = fr(str, _local2[7], "7"); str = fr(str, _local2[8], "7"); str = fr(str, _local2[9], "6"); str = fr(str, _local2[10], "6"); str = fr(str, _local2[11], "6"); str = fr(str, _local2[12], "5"); str = fr(str, _local2[13], "5"); str = fr(str, _local2[14], "5"); str = fr(str, _local2[15], "4"); str = fr(str, _local2[16], "4"); str = fr(str, _local2[17], "4"); str = fr(str, _local2[18], "3"); str = fr(str, _local2[19], "3"); str = fr(str, _local2[20], "3"); str = fr(str, _local2[21], "2"); str = fr(str, _local2[22], "2"); str = fr(str, _local2[23], "2"); str = fr(str, _local2[24], "1"); str = fr(str, _local2[25], "1"); str = fr(str, _local2[26], "1"); str = fr(str, _local2[27], "0"); str = fr(str, _local2[28], "0"); str = fr(str, _local2[29], "0"); var _local3 = Number(str); return(_local3); } }
Symbol 177 Button
on (press) { _root.carno--; if (_root.carno < 1) { _root.carno = 7; } _root.changetext(); }
Symbol 178 Button
on (press) { _root.carno++; if (_root.carno > 7) { _root.carno = 1; } _root.changetext(); }
Symbol 210 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 2
stop();
Symbol 210 MovieClip Frame 3
stop();
Symbol 223 Button
on (press) { _root.play(); _root.characterselected = true; }
Symbol 273 MovieClip Frame 1
stop();
Instance of Symbol 264 MovieClip in Symbol 273 MovieClip Frame 1
on (release) { if (this._parent._alpha == 100) { this._parent.play(); _root.difficulty = 0; } }
Instance of Symbol 266 MovieClip in Symbol 273 MovieClip Frame 1
on (release) { if (this._parent._alpha == 100) { this._parent.play(); _root.difficulty = 1; } }
Instance of Symbol 268 MovieClip in Symbol 273 MovieClip Frame 1
on (release) { if (this._parent._alpha == 100) { this._parent.play(); _root.difficulty = 2; } }
Symbol 273 MovieClip Frame 2
stop();
Instance of Symbol 271 MovieClip in Symbol 273 MovieClip Frame 2
on (release) { _root.gotoAndStop(this._parent.modes); }
Symbol 290 MovieClip Frame 1
stop();
Symbol 290 MovieClip Frame 2
stop();
Symbol 290 MovieClip Frame 3
stop();
Symbol 290 MovieClip Frame 4
stop();
Symbol 290 MovieClip Frame 5
stop();
Symbol 290 MovieClip Frame 6
stop();
Symbol 290 MovieClip Frame 7
stop();
Symbol 310 MovieClip Frame 1
stop();
Instance of Symbol 298 MovieClip in Symbol 310 MovieClip Frame 1
on (press) { this._parent.startDrag(); } onClipEvent (mouseUp) { this._parent.stopDrag(); }
Instance of Symbol 305 MovieClip in Symbol 310 MovieClip Frame 1
on (press) { this._parent.play(); }
Symbol 310 MovieClip Frame 2
stop();
Instance of Symbol 309 MovieClip in Symbol 310 MovieClip Frame 2
on (press) { this._parent.play(); }
Symbol 311 MovieClip Frame 1
function camControl() { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; while (!_root.tracks.hitTest(0, this._y - (this._height / 2))) { this._y++; } while (!_root.tracks.hitTest(this._x - (this._width / 2), 0)) { this._x++; } while (!_root.tracks.hitTest(0, this._y + (this._height / 2))) { this._y--; } while (!_root.tracks.hitTest(this._x + (this._width / 2), 0)) { this._x--; } parentColor.setTransform(camColor.getTransform()); var _local5 = sX / this._width; var _local4 = sY / this._height; _parent._x = cX - (this._x * _local5); _parent._y = cY - (this._y * _local4); _parent._xscale = 100 * _local5; _parent._yscale = 100 * _local4; if (!this.hitTest(_root._xmouse, _root._ymouse, 0)) { _root.pauser = true; } this._yscale = (this._xscale = 100); } function resetStage() { var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0}; parentColor.setTransform(_local2); _parent._xscale = 100; _parent._yscale = 100; _parent._x = 0; _parent._y = 0; } var oldMode = Stage.scaleMode; Stage.scaleMode = "exactFit"; var cX = (Stage.width / 2); var cY = (Stage.height / 2); var sX = Stage.width; var sY = Stage.height; Stage.scaleMode = oldMode; var camColor = new Color(this); var parentColor = new Color(_parent); this.onEnterFrame = camControl; camControl(); this.onUnload = resetStage;
Instance of Symbol 281 MovieClip in Symbol 311 MovieClip Frame 1
on (release) { _root.clearAll2(); _root.prevFrame(); }
Instance of Symbol 314 MovieClip in Symbol 341 MovieClip Frame 1
on (release) { for (all in this._parent) { if (this._parent[all]._visible) { this._parent[all]._visible = false; } else { this._parent[all]._visible = true; } } this._visible = true; }
Instance of Symbol 316 MovieClip in Symbol 341 MovieClip Frame 1
onClipEvent (enterFrame) { this.ang = Math.atan2(this._parent._x - _root.bn11._x, this._parent._y - _root.bn11._y); this._x = Math.sin(this.ang) * -150; this._y = Math.cos(this.ang) * -150; } on (press) { _root.car._x = _root.bn11._x; _root.car._y = _root.bn11._y; }
Instance of Symbol 318 MovieClip in Symbol 341 MovieClip Frame 1
onClipEvent (enterFrame) { this.ang = Math.atan2(this._parent._x - _root.bn1._x, this._parent._y - _root.bn1._y); this._x = Math.sin(this.ang) * -150; this._y = Math.cos(this.ang) * -150; } on (press) { _root.car._x = _root.bn1._x; _root.car._y = _root.bn1._y; }
Instance of Symbol 320 MovieClip in Symbol 341 MovieClip Frame 1
onClipEvent (enterFrame) { this.ang = Math.atan2(this._parent._x - _root.bn2._x, this._parent._y - _root.bn2._y); this._x = Math.sin(this.ang) * -150; this._y = Math.cos(this.ang) * -150; } on (press) { _root.car._x = _root.bn2._x; _root.car._y = _root.bn2._y; }
Instance of Symbol 322 MovieClip in Symbol 341 MovieClip Frame 1
onClipEvent (enterFrame) { this.ang = Math.atan2(this._parent._x - _root.bn3._x, this._parent._y - _root.bn3._y); this._x = Math.sin(this.ang) * -150; this._y = Math.cos(this.ang) * -150; } on (press) { _root.car._x = _root.bn3._x; _root.car._y = _root.bn3._y; }
Instance of Symbol 324 MovieClip in Symbol 341 MovieClip Frame 1
onClipEvent (enterFrame) { this.ang = Math.atan2(this._parent._x - _root.bn5._x, this._parent._y - _root.bn5._y); this._x = Math.sin(this.ang) * -150; this._y = Math.cos(this.ang) * -150; } on (press) { _root.car._x = _root.bn5._x; _root.car._y = _root.bn5._y; }
Instance of Symbol 326 MovieClip in Symbol 341 MovieClip Frame 1
onClipEvent (enterFrame) { this.ang = Math.atan2(this._parent._x - _root.bn6._x, this._parent._y - _root.bn6._y); this._x = Math.sin(this.ang) * -150; this._y = Math.cos(this.ang) * -150; } on (press) { _root.car._x = _root.bn6._x; _root.car._y = _root.bn6._y; }
Instance of Symbol 328 MovieClip in Symbol 341 MovieClip Frame 1
onClipEvent (enterFrame) { this.ang = Math.atan2(this._parent._x - _root.bn7._x, this._parent._y - _root.bn7._y); this._x = Math.sin(this.ang) * -150; this._y = Math.cos(this.ang) * -150; } on (press) { _root.car._x = _root.bn7._x; _root.car._y = _root.bn7._y; }
Instance of Symbol 330 MovieClip in Symbol 341 MovieClip Frame 1
onClipEvent (enterFrame) { this.ang = Math.atan2(this._parent._x - _root.bn10._x, this._parent._y - _root.bn10._y); this._x = Math.sin(this.ang) * -150; this._y = Math.cos(this.ang) * -150; } on (press) { _root.car._x = _root.bn10._x; _root.car._y = _root.bn10._y; }
Instance of Symbol 334 MovieClip in Symbol 341 MovieClip Frame 1
onClipEvent (enterFrame) { this.ang = Math.atan2(this._parent._x - _root.bn4._x, this._parent._y - _root.bn4._y); this._x = Math.sin(this.ang) * -150; this._y = Math.cos(this.ang) * -150; } on (press) { _root.car._x = _root.bn4._x; _root.car._y = _root.bn4._y; }
Instance of Symbol 336 MovieClip in Symbol 341 MovieClip Frame 1
onClipEvent (enterFrame) { this.ang = Math.atan2(this._parent._x - _root.bn8._x, this._parent._y - _root.bn8._y); this._x = Math.sin(this.ang) * -150; this._y = Math.cos(this.ang) * -150; } on (press) { _root.car._x = _root.bn8._x; _root.car._y = _root.bn8._y; }
Instance of Symbol 338 MovieClip in Symbol 341 MovieClip Frame 1
onClipEvent (enterFrame) { this.ang = Math.atan2(this._parent._x - _root.bn9._x, this._parent._y - _root.bn9._y); this._x = Math.sin(this.ang) * -150; this._y = Math.cos(this.ang) * -150; } on (press) { _root.car._x = _root.bn9._x; _root.car._y = _root.bn9._y; }
Instance of Symbol 340 MovieClip in Symbol 341 MovieClip Frame 1
onClipEvent (enterFrame) { this.ang = Math.atan2(this._parent._x - _root.bn12._x, this._parent._y - _root.bn12._y); this._x = Math.sin(this.ang) * -150; this._y = Math.cos(this.ang) * -150; } on (press) { _root.car._x = _root.bn12._x; _root.car._y = _root.bn12._y; }
Symbol 354 MovieClip Frame 1
stop();
Symbol 365 MovieClip Frame 1
stop();
Symbol 365 MovieClip Frame 2
stop();
Symbol 365 MovieClip Frame 3
stop();
Symbol 371 MovieClip Frame 1
stop();
Symbol 375 MovieClip Frame 1
stop();
Symbol 376 MovieClip Frame 1
stop();
Symbol 388 MovieClip Frame 1
stop();
Symbol 388 MovieClip Frame 2
stop();
Symbol 388 MovieClip Frame 3
stop();
Symbol 396 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 2
stop();
Symbol 403 MovieClip Frame 3
stop();
Symbol 410 MovieClip Frame 1
stop();
Symbol 410 MovieClip Frame 2
stop();
Symbol 410 MovieClip Frame 3
stop();
Symbol 419 MovieClip Frame 1
stop();
Symbol 419 MovieClip Frame 2
stop();
Symbol 419 MovieClip Frame 3
stop();
Symbol 422 MovieClip Frame 1
stop();
Symbol 423 MovieClip Frame 1
stop();
Instance of Symbol 378 MovieClip in Symbol 423 MovieClip Frame 1
onClipEvent (enterFrame) { if (this._parent._name == "car") { this._visible = false; } else { this._visible = true; } this._xscale = this._parent.health; this._rotation = -this._parent._rotation; }
Symbol 423 MovieClip Frame 2
stop();
Symbol 423 MovieClip Frame 3
stop();
Symbol 423 MovieClip Frame 4
stop();
Symbol 423 MovieClip Frame 5
stop();
Symbol 423 MovieClip Frame 6
stop();
Symbol 423 MovieClip Frame 7
stop();
Symbol 423 MovieClip Frame 8
stop();
Symbol 436 MovieClip Frame 1
stop();
Symbol 436 MovieClip Frame 2
stop();
Symbol 436 MovieClip Frame 3
stop();
Symbol 436 MovieClip Frame 4
stop();
Symbol 436 MovieClip Frame 5
stop();
Symbol 436 MovieClip Frame 6
stop();
Symbol 436 MovieClip Frame 7
stop();
Instance of Symbol 434 MovieClip in Symbol 437 MovieClip Frame 1
on (press) { i = 1; while (i < 4) { if (!_root["car" + i].finishedrace) { _root.finished.push(i); _root["car" + i].finishedrace = true; } i++; } } on (rollOver) { _root.pauser = false; }
Instance of Symbol 436 MovieClip in Symbol 437 MovieClip Frame 1
onClipEvent (enterFrame) { this.gotoAndStop(_root.opp1); } on (press) { _root.cam.carwatch = "1"; } on (rollOver) { _root.pauser = false; }
Instance of Symbol 436 MovieClip in Symbol 437 MovieClip Frame 1
onClipEvent (enterFrame) { this.gotoAndStop(_root.opp2); } on (press) { _root.cam.carwatch = "2"; } on (rollOver) { _root.pauser = false; }
Instance of Symbol 436 MovieClip in Symbol 437 MovieClip Frame 1
onClipEvent (enterFrame) { this.gotoAndStop(_root.opp3); } on (press) { _root.cam.carwatch = "3"; } on (rollOver) { _root.pauser = false; }
Symbol 473 MovieClip Frame 1
stop(); onEnterFrame = function () { if (_root.pauser - _root.pauser2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } };
Instance of Symbol 281 MovieClip in Symbol 473 MovieClip Frame 1
on (release) { _root.pauser = true; } on (rollOver) { if (!_root.pauser2) { _root.pauser = false; } }
Symbol 473 MovieClip Frame 2
stop();
Instance of Symbol 281 MovieClip in Symbol 473 MovieClip Frame 2
on (release) { _root.qual = 0; }
Instance of Symbol 281 MovieClip in Symbol 473 MovieClip Frame 2
on (release) { _root.qual = 1; }
Instance of Symbol 281 MovieClip in Symbol 473 MovieClip Frame 2
on (release) { _root.qual = 2; }
Instance of Symbol 281 MovieClip in Symbol 473 MovieClip Frame 2
on (release) { _root.qual = 3; }
Instance of Symbol 281 MovieClip in Symbol 473 MovieClip Frame 2
on (release) { getURL ("http://www.armorgames.com", "_blank"); }
Instance of Symbol 281 MovieClip in Symbol 473 MovieClip Frame 2
on (release) { _root.pauser = false; }
Instance of Symbol 281 MovieClip in Symbol 473 MovieClip Frame 2
on (release) { getURL ("http://www.rustygames.com", "_blank"); }
Instance of Symbol 281 MovieClip in Symbol 473 MovieClip Frame 2
on (release) { getURL ("http://www.newgrounds.com", "_blank"); }
Instance of Symbol 281 MovieClip in Symbol 473 MovieClip Frame 2
on (release) { _root.gotoAndPlay(1); }
Instance of Symbol 478 MovieClip in Symbol 489 MovieClip Frame 1
onClipEvent (enterFrame) { xf = 80 / _root.tracks._width; yf = 80 / _root.tracks._height; this._x = _root.car._x * xf; this._y = _root.car._y * yf; }
Instance of Symbol 481 MovieClip in Symbol 489 MovieClip Frame 1
onClipEvent (enterFrame) { xf = 80 / _root.tracks._width; yf = 80 / _root.tracks._height; this._x = _root.car1._x * xf; this._y = _root.car1._y * yf; }
Instance of Symbol 481 MovieClip in Symbol 489 MovieClip Frame 1
onClipEvent (enterFrame) { xf = 80 / _root.tracks._width; yf = 80 / _root.tracks._height; this._x = _root.car2._x * xf; this._y = _root.car2._y * yf; }
Instance of Symbol 481 MovieClip in Symbol 489 MovieClip Frame 1
onClipEvent (enterFrame) { xf = 80 / _root.tracks._width; yf = 80 / _root.tracks._height; this._x = _root.car3._x * xf; this._y = _root.car3._y * yf; }
Symbol 503 MovieClip Frame 88
_root.pauser = false; _root.pauser2 = false;
Symbol 503 MovieClip Frame 109
this.swapDepths(_root.getNextHighestDepth()); this.removeMovieClip();
Symbol 517 MovieClip Frame 1
function camControl() { this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; while (!_root.tracks.hitTest(this._x, this._y - (this._height / 2))) { this._y++; } while (!_root.tracks.hitTest(this._x - (this._width / 2), this._y)) { this._x++; } while (!_root.tracks.hitTest(this._x, this._y + (this._height / 2))) { this._y--; } while (!_root.tracks.hitTest(this._x + (this._width / 2), this._y)) { this._x--; } parentColor.setTransform(camColor.getTransform()); var _local5 = sX / this._width; var _local4 = sY / this._height; _parent._x = cX - (this._x * _local5); _parent._y = cY - (this._y * _local4); _parent._xscale = 100 * _local5; _parent._yscale = 100 * _local4; this._yscale = (this._xscale = 150); } function resetStage() { var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0}; parentColor.setTransform(_local2); _parent._xscale = 100; _parent._yscale = 100; _parent._x = 0; _parent._y = 0; } var oldMode = Stage.scaleMode; Stage.scaleMode = "exactFit"; var cX = (Stage.width / 2); var cY = (Stage.height / 2); var sX = Stage.width; var sY = Stage.height; Stage.scaleMode = oldMode; var camColor = new Color(this); var parentColor = new Color(_parent); this.onEnterFrame = camControl; camControl(); this.onUnload = resetStage;
Instance of Symbol 425 MovieClip in Symbol 517 MovieClip Frame 1
onClipEvent (load) { this.useHandCursor = false; } on (rollOut) { _root.pauser = true; }
Instance of Symbol 437 MovieClip in Symbol 517 MovieClip Frame 1
onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.car.finishedrace) { this._visible = true; } else { this._visible = false; } }
Instance of Symbol 107 MovieClip in Symbol 517 MovieClip Frame 1
onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.car.health < 20) { this._visible = true; } else { this._visible = false; } }
Instance of Symbol 461 MovieClip in Symbol 517 MovieClip Frame 1
onClipEvent (load) { this.dis = 100; this._visible = false; i = 0; while (i < 4) { if (i == 0) { this.health0 = _root.car.health; } else { this["health" + i] = _root["car" + i].health; } i++; } } onClipEvent (enterFrame) { this.dis++; if (this.dis > 100) { this._visible = false; } else { this._visible = true; } i = 0; while (i < 4) { if (i == 0) { this.health0 = _root.car.health; } else { this["health" + i] = _root["car" + i].health; } i++; } i = 0; while (i < 4) { if (i == 0) { if (((_root.car.health < 50) && (this.oldhealth0 > 50)) || ((_root.car.health < 1) && (this.oldhealth0 > 0))) { this._visible = true; this.quote.text = _root.quotes1[random(_root.quotes1.length)]; this.head.gotoAndStop(_root["opp" + (random(3) + 1)]); this.dis = 0; } } else if (((_root["car" + i].health < 50) && (this["oldhealth" + i] > 50)) || ((_root["car" + i].health < 1) && (this["oldhealth" + i] > 0))) { this._visible = true; this.quote.text = _root.quotes2[random(_root.quotes1.length)]; this.head.gotoAndStop(_root["opp" + i]); this.dis = 0; } i++; } i = 0; while (i < 4) { if (i == 0) { this.oldhealth0 = _root.car.health; } else { this["oldhealth" + i] = _root["car" + i].health; } i++; } }
Instance of Symbol 489 MovieClip in Symbol 517 MovieClip Frame 1
onClipEvent (enterFrame) { this.gotoAndStop(this._parent.trackf); }
Instance of Symbol 510 MovieClip "needle" in Symbol 517 MovieClip Frame 1
onClipEvent (enterFrame) { this._rotation = 3 * _root.car.speed; if (_root.car.speed < 0) { this._rotation = 0; } if (this._rotation > 180) { this._rotation = 180; } if (this._rotation < -180) { this._rotation = -180; } }
Instance of Symbol 510 MovieClip "needle" in Symbol 517 MovieClip Frame 1
onClipEvent (enterFrame) { this._rotation = 4 * _root.car.speed; if (_root.car.speed < 0) { this._rotation = 0; } if (this._rotation > 180) { this._rotation = 180; } if (this._rotation < -180) { this._rotation = -180; } }
Instance of Symbol 513 MovieClip "needle" in Symbol 517 MovieClip Frame 1
onClipEvent (enterFrame) { this._rotation = _root.car.health; if (this._rotation > 90) { this._rotation = 90; } }
Instance of Symbol 527 MovieClip in Symbol 528 MovieClip Frame 1
onClipEvent (enterFrame) { if (!_root.pauser) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car]._x, _root.car._y, 1)) { _root[car].speed = _root[car].speed + 10; } } } } }
Instance of Symbol 527 MovieClip in Symbol 528 MovieClip Frame 1
onClipEvent (enterFrame) { if (!_root.pauser) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car]._x, _root.car._y, 1)) { _root[car].speed = _root[car].speed + 10; } } } } }
Instance of Symbol 527 MovieClip in Symbol 528 MovieClip Frame 1
onClipEvent (enterFrame) { if (!_root.pauser) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car]._x, _root.car._y, 1)) { _root[car].speed = _root[car].speed + 10; } } } } }
Instance of Symbol 527 MovieClip in Symbol 528 MovieClip Frame 1
onClipEvent (enterFrame) { if (!_root.pauser) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car]._x, _root.car._y, 1)) { _root[car].speed = _root[car].speed + 10; } } } } }
Instance of Symbol 527 MovieClip in Symbol 528 MovieClip Frame 1
onClipEvent (enterFrame) { if (!_root.pauser) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car]._x, _root.car._y, 1)) { _root[car].speed = _root[car].speed + 10; } } } } }
Instance of Symbol 150 MovieClip in Symbol 538 MovieClip Frame 1
onClipEvent (enterFrame) { if (!_root.pauser) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car]._x, _root.car._y, 1)) { _root[car].speed = _root[car].speed + 10; } } } } }
Instance of Symbol 150 MovieClip in Symbol 538 MovieClip Frame 1
onClipEvent (enterFrame) { if (!_root.pauser) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car]._x, _root.car._y, 1)) { _root[car].speed = _root[car].speed + 10; } } } } }
Instance of Symbol 527 MovieClip in Symbol 557 MovieClip Frame 1
onClipEvent (enterFrame) { if (!_root.pauser) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car]._x, _root.car._y, 1)) { _root[car].speed = _root[car].speed + 10; } } } } }
Instance of Symbol 527 MovieClip in Symbol 557 MovieClip Frame 1
onClipEvent (enterFrame) { if (!_root.pauser) { for (car in _root) { if (car.slice(0, 3) == "car") { if (this.hitTest(_root[car]._x, _root.car._y, 1)) { _root[car].speed = _root[car].speed + 10; } } } } }
Symbol 598 Button
on (release) { _root.play(); }
Symbol 607 Button
on (release) { if (_root.gameover == 1) { _root.gotoAndStop("gameOver"); } else { _root.gotoAndStop("ss" + _root.currentgptrack); } }
Symbol 694 Button
on (release) { if (_root.strop < (_root.difficulty + 1)) { _root.strop = _root.difficulty + 1; } _root.gotoAndStop("credits"); }
Instance of Symbol 706 MovieClip in Symbol 707 MovieClip Frame 1
on (press) { if (_root.currentgptrack == 9) { _root.GotoAndStop("gpEnd"); } else { _root.GotoAndStop(12 + _root.currentgptrack); } }
Symbol 735 MovieClip Frame 20
stop();
Instance of Symbol 734 MovieClip in Symbol 735 MovieClip Frame 20
on (press) { _root.submit(); }
Symbol 747 MovieClip Frame 1
function camControl() { switch (_root.car.nodenum) { case 1 : this.tutorial.text = "Hold the 'W' or 'Up Arrow' key to accelerate. Note your speed has been decreased for practice."; break; case 2 : this.tutorial.text = "To rotate in order to go around corners press 'A' or 'S'. Alternatively use the arrow keys."; break; case 3 : this.tutorial.text = "Grab a box to collect a powerup. The ammo and name of the weapon are displayed in bottom right corner of the HUD."; break; case 4 : this.tutorial.text = "Try another corner."; break; case 5 : this.tutorial.text = "Your speed has now been increased to the games standard. Try this peice of track with the real speed."; _root.car.max_speed = 70; break; case 6 : this.tutorial.text = "Your speed has now been increased to the games standard. Try this peice of track with the real speed."; _root.car.max_speed = 70; break; case 7 : this.tutorial.text = "Use your weapon to shoot the target!"; if (!_root.targetalive) { _root.car.max_speed = 0; _root.car.ammo = 100; _root.car.weapon = 2; } else { _root.car.max_speed = 70; } break; case 8 : this.tutorial.text = "Your health has reached 0! Tap space bar in order to replenish health!"; if (_root.car.health > 99) { _root.car.health = 0; } break; case 9 : this.tutorial.text = "Well done. You now know how to play the game. Please enjoy!"; break; case 10 : this.tutorial.text = "Well done. You now know how to play the game. Please enjoy!"; break; default : this.tutorial.text = "Hold the 'W' or 'Up Arrow' key to accelerate. Note your speed has been decreased for practice."; } this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; while (!_root.tracks.hitTest(this._x, this._y - (this._height / 2))) { this._y++; } while (!_root.tracks.hitTest(this._x - (this._width / 2), this._y)) { this._x++; } while (!_root.tracks.hitTest(this._x, this._y + (this._height / 2))) { this._y--; } while (!_root.tracks.hitTest(this._x + (this._width / 2), this._y)) { this._x--; } parentColor.setTransform(camColor.getTransform()); var _local5 = sX / this._width; var _local4 = sY / this._height; _parent._x = cX - (this._x * _local5); _parent._y = cY - (this._y * _local4); _parent._xscale = 100 * _local5; _parent._yscale = 100 * _local4; this._yscale = (this._xscale = 150); } function resetStage() { var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0}; parentColor.setTransform(_local2); _parent._xscale = 100; _parent._yscale = 100; _parent._x = 0; _parent._y = 0; } var oldMode = Stage.scaleMode; Stage.scaleMode = "exactFit"; var cX = (Stage.width / 2); var cY = (Stage.height / 2); var sX = Stage.width; var sY = Stage.height; Stage.scaleMode = oldMode; var camColor = new Color(this); var parentColor = new Color(_parent); this.onEnterFrame = camControl; camControl(); this.onUnload = resetStage;
Instance of Symbol 425 MovieClip in Symbol 747 MovieClip Frame 1
onClipEvent (load) { this.useHandCursor = false; } on (rollOut) { _root.pauser = true; }
Instance of Symbol 489 MovieClip in Symbol 747 MovieClip Frame 1
onClipEvent (enterFrame) { this.gotoAndStop(this._parent.trackf); }
Instance of Symbol 510 MovieClip "needle" in Symbol 747 MovieClip Frame 1
onClipEvent (enterFrame) { this._rotation = 3 * _root.car.speed; if (_root.car.speed < 0) { this._rotation = 0; } if (this._rotation > 180) { this._rotation = 180; } if (this._rotation < -180) { this._rotation = -180; } }
Instance of Symbol 510 MovieClip "needle" in Symbol 747 MovieClip Frame 1
onClipEvent (enterFrame) { this._rotation = 4 * _root.car.speed; if (_root.car.speed < 0) { this._rotation = 0; } if (this._rotation > 180) { this._rotation = 180; } if (this._rotation < -180) { this._rotation = -180; } }
Instance of Symbol 513 MovieClip "needle" in Symbol 747 MovieClip Frame 1
onClipEvent (enterFrame) { this._rotation = _root.car.health; if (this._rotation > 90) { this._rotation = 90; } }
Instance of Symbol 437 MovieClip in Symbol 747 MovieClip Frame 1
onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.car.finishedrace) { this._visible = true; } else { this._visible = false; } }
Instance of Symbol 107 MovieClip in Symbol 747 MovieClip Frame 1
onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.car.health < 20) { this._visible = true; } else { this._visible = false; } }
Instance of Symbol 570 MovieClip in Symbol 780 MovieClip Frame 1
onClipEvent (enterFrame) { this.gotoAndStop(_root.opp0); }
Instance of Symbol 570 MovieClip in Symbol 780 MovieClip Frame 1
onClipEvent (enterFrame) { this.gotoAndStop(_root.opp1); }
Instance of Symbol 570 MovieClip in Symbol 780 MovieClip Frame 1
onClipEvent (enterFrame) { this.gotoAndStop(_root.opp2); }
Symbol 782 Button
on (release) { if (_root.gptrop < (_root.difficulty + 1)) { _root.gptrop = _root.difficulty + 1; } _root.gotoAndStop("credits"); }
Symbol 792 MovieClip Frame 1
function camControl() { this.cctext.htmlText = (_root.boxes + "/27 boxes collected<br>Time:") + _root.chaltime; this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; while (!_root.tracks.hitTest(this._x, this._y - (this._height / 2))) { this._y++; } while (!_root.tracks.hitTest(this._x - (this._width / 2), this._y)) { this._x++; } while (!_root.tracks.hitTest(this._x, this._y + (this._height / 2))) { this._y--; } while (!_root.tracks.hitTest(this._x + (this._width / 2), this._y)) { this._x--; } parentColor.setTransform(camColor.getTransform()); var _local5 = sX / this._width; var _local4 = sY / this._height; _parent._x = cX - (this._x * _local5); _parent._y = cY - (this._y * _local4); _parent._xscale = 100 * _local5; _parent._yscale = 100 * _local4; this._yscale = (this._xscale = 150); } function resetStage() { var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0}; parentColor.setTransform(_local2); _parent._xscale = 100; _parent._yscale = 100; _parent._x = 0; _parent._y = 0; } var oldMode = Stage.scaleMode; Stage.scaleMode = "exactFit"; var cX = (Stage.width / 2); var cY = (Stage.height / 2); var sX = Stage.width; var sY = Stage.height; Stage.scaleMode = oldMode; var camColor = new Color(this); var parentColor = new Color(_parent); this.onEnterFrame = camControl; camControl(); this.onUnload = resetStage;
Instance of Symbol 425 MovieClip in Symbol 792 MovieClip Frame 1
onClipEvent (load) { this.useHandCursor = false; } on (rollOut) { _root.pauser = true; }
Instance of Symbol 489 MovieClip in Symbol 792 MovieClip Frame 1
onClipEvent (enterFrame) { this.gotoAndStop(this._parent.trackf); }
Instance of Symbol 510 MovieClip "needle" in Symbol 792 MovieClip Frame 1
onClipEvent (enterFrame) { this._rotation = 3 * _root.car.speed; if (_root.car.speed < 0) { this._rotation = 0; } if (this._rotation > 180) { this._rotation = 180; } if (this._rotation < -180) { this._rotation = -180; } }
Instance of Symbol 510 MovieClip "needle" in Symbol 792 MovieClip Frame 1
onClipEvent (enterFrame) { this._rotation = 4 * _root.car.speed; if (_root.car.speed < 0) { this._rotation = 0; } if (this._rotation > 180) { this._rotation = 180; } if (this._rotation < -180) { this._rotation = -180; } }
Instance of Symbol 513 MovieClip "needle" in Symbol 792 MovieClip Frame 1
onClipEvent (enterFrame) { this._rotation = _root.car.health; if (this._rotation > 90) { this._rotation = 90; } }
Instance of Symbol 107 MovieClip in Symbol 792 MovieClip Frame 1
onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.car.health < 20) { this._visible = true; } else { this._visible = false; } }
Symbol 801 MovieClip Frame 1
function camControl() { this.cctext.htmlText = (_root.boxes + "/29 barrels destroyed<br>Time:") + _root.chaltime; this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; while (!_root.tracks.hitTest(this._x, this._y - (this._height / 2))) { this._y++; } while (!_root.tracks.hitTest(this._x - (this._width / 2), this._y)) { this._x++; } while (!_root.tracks.hitTest(this._x, this._y + (this._height / 2))) { this._y--; } while (!_root.tracks.hitTest(this._x + (this._width / 2), this._y)) { this._x--; } parentColor.setTransform(camColor.getTransform()); var _local5 = sX / this._width; var _local4 = sY / this._height; _parent._x = cX - (this._x * _local5); _parent._y = cY - (this._y * _local4); _parent._xscale = 100 * _local5; _parent._yscale = 100 * _local4; this._yscale = (this._xscale = 150); } function resetStage() { var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0}; parentColor.setTransform(_local2); _parent._xscale = 100; _parent._yscale = 100; _parent._x = 0; _parent._y = 0; } var oldMode = Stage.scaleMode; Stage.scaleMode = "exactFit"; var cX = (Stage.width / 2); var cY = (Stage.height / 2); var sX = Stage.width; var sY = Stage.height; Stage.scaleMode = oldMode; var camColor = new Color(this); var parentColor = new Color(_parent); this.onEnterFrame = camControl; camControl(); this.onUnload = resetStage;
Instance of Symbol 425 MovieClip in Symbol 801 MovieClip Frame 1
onClipEvent (load) { this.useHandCursor = false; } on (rollOut) { _root.pauser = true; }
Instance of Symbol 489 MovieClip in Symbol 801 MovieClip Frame 1
onClipEvent (enterFrame) { this.gotoAndStop(this._parent.trackf); }
Instance of Symbol 510 MovieClip "needle" in Symbol 801 MovieClip Frame 1
onClipEvent (enterFrame) { this._rotation = 3 * _root.car.speed; if (_root.car.speed < 0) { this._rotation = 0; } if (this._rotation > 180) { this._rotation = 180; } if (this._rotation < -180) { this._rotation = -180; } }
Instance of Symbol 510 MovieClip "needle" in Symbol 801 MovieClip Frame 1
onClipEvent (enterFrame) { this._rotation = 4 * _root.car.speed; if (_root.car.speed < 0) { this._rotation = 0; } if (this._rotation > 180) { this._rotation = 180; } if (this._rotation < -180) { this._rotation = -180; } }
Instance of Symbol 513 MovieClip "needle" in Symbol 801 MovieClip Frame 1
onClipEvent (enterFrame) { this._rotation = _root.car.health; if (this._rotation > 90) { this._rotation = 90; } }
Instance of Symbol 107 MovieClip in Symbol 801 MovieClip Frame 1
onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.car.health < 20) { this._visible = true; } else { this._visible = false; } }
Symbol 810 MovieClip Frame 1
function camControl() { this.cctext.htmlText = "Time:" + _root.chaltime; this._x = _root["car" + this.carwatch]._x; this._y = _root["car" + this.carwatch]._y; while (!_root.tracks.hitTest(this._x, this._y - (this._height / 2))) { this._y++; } while (!_root.tracks.hitTest(this._x - (this._width / 2), this._y)) { this._x++; } while (!_root.tracks.hitTest(this._x, this._y + (this._height / 2))) { this._y--; } while (!_root.tracks.hitTest(this._x + (this._width / 2), this._y)) { this._x--; } parentColor.setTransform(camColor.getTransform()); var _local5 = sX / this._width; var _local4 = sY / this._height; _parent._x = cX - (this._x * _local5); _parent._y = cY - (this._y * _local4); _parent._xscale = 100 * _local5; _parent._yscale = 100 * _local4; this._yscale = (this._xscale = 150); } function resetStage() { var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0}; parentColor.setTransform(_local2); _parent._xscale = 100; _parent._yscale = 100; _parent._x = 0; _parent._y = 0; } var oldMode = Stage.scaleMode; Stage.scaleMode = "exactFit"; var cX = (Stage.width / 2); var cY = (Stage.height / 2); var sX = Stage.width; var sY = Stage.height; Stage.scaleMode = oldMode; var camColor = new Color(this); var parentColor = new Color(_parent); this.onEnterFrame = camControl; camControl(); this.onUnload = resetStage;
Instance of Symbol 425 MovieClip in Symbol 810 MovieClip Frame 1
onClipEvent (load) { this.useHandCursor = false; } on (rollOut) { _root.pauser = true; }
Instance of Symbol 489 MovieClip in Symbol 810 MovieClip Frame 1
onClipEvent (enterFrame) { this.gotoAndStop(this._parent.trackf); }
Instance of Symbol 510 MovieClip "needle" in Symbol 810 MovieClip Frame 1
onClipEvent (enterFrame) { this._rotation = 3 * _root.car.speed; if (_root.car.speed < 0) { this._rotation = 0; } if (this._rotation > 180) { this._rotation = 180; } if (this._rotation < -180) { this._rotation = -180; } }
Instance of Symbol 510 MovieClip "needle" in Symbol 810 MovieClip Frame 1
onClipEvent (enterFrame) { this._rotation = 4 * _root.car.speed; if (_root.car.speed < 0) { this._rotation = 0; } if (this._rotation > 180) { this._rotation = 180; } if (this._rotation < -180) { this._rotation = -180; } }
Instance of Symbol 513 MovieClip "needle" in Symbol 810 MovieClip Frame 1
onClipEvent (enterFrame) { this._rotation = _root.car.health; if (this._rotation > 90) { this._rotation = 90; } }
Instance of Symbol 107 MovieClip in Symbol 810 MovieClip Frame 1
onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.car.health < 20) { this._visible = true; } else { this._visible = false; } }
Symbol 817 Button
on (press) { _root.gotoAndPlay(1); }
Symbol 818 MovieClip Frame 25
stop();
Symbol 855 MovieClip Frame 1
stop();
Symbol 857 Button
on (release) { _root.gotoAndPlay(1); }
Symbol 858 Button
on (press) { if (tracks._currentframe == 8) { tracks.gotoAndStop(1); } else { tracks.nextFrame(); } box1.cc1.text = aa1[tracks._currentframe - 1]; box1.cc2.text = aa2[tracks._currentframe - 1]; box1.cc3.text = aa3[tracks._currentframe - 1]; box1.cc4.text = aa4[tracks._currentframe - 1]; }
Symbol 859 Button
on (press) { if (tracks._currentframe == 1) { tracks.gotoAndStop(8); } else { tracks.prevFrame(); } box1.cc1.text = aa1[tracks._currentframe - 1]; box1.cc2.text = aa2[tracks._currentframe - 1]; box1.cc3.text = aa3[tracks._currentframe - 1]; box1.cc4.text = aa4[tracks._currentframe - 1]; }
Instance of Symbol 870 MovieClip in Symbol 871 MovieClip Frame 1
on (press) { this._parent.startDrag(); } onClipEvent (mouseUp) { this._parent.stopDrag(); }
Instance of Symbol 870 MovieClip in Symbol 879 MovieClip Frame 1
on (press) { this._parent.startDrag(); } onClipEvent (mouseUp) { this._parent.stopDrag(); }
Instance of Symbol 875 MovieClip in Symbol 879 MovieClip Frame 1
onClipEvent (load) { var clicking = false; } on (press) { this.clicking = true; } onClipEvent (mouseUp) { this.clicking = false; } onClipEvent (enterFrame) { if (this.clicking) { if (this._parent._parent.tracks._xscale < 201) { this._parent._parent.tracks._xscale = (this._parent._parent.tracks._yscale = this._parent._parent.tracks._yscale + 10); } } }
Instance of Symbol 877 MovieClip in Symbol 879 MovieClip Frame 1
onClipEvent (load) { var clicking = false; } on (press) { this.clicking = true; } onClipEvent (mouseUp) { this.clicking = false; } onClipEvent (enterFrame) { if (this.clicking) { if (this._parent._parent.tracks._xscale > 101) { this._parent._parent.tracks._xscale = (this._parent._parent.tracks._yscale = this._parent._parent.tracks._yscale - 10); } } }
Symbol 880 MovieClip Frame 1
var aa1 = ["J-Zinger", "Dashing Dan", "The Real McCoy", "Krazy Kenny", "Woody", "Mad Dog Murphy", "Terrible Timmy", "Krazy Kenny"]; var aa2 = ["None", "None", "None", "Speed boosters", "Teleporters", "Missile towers", "None", "Missile towers"]; var aa3 = ["", "", "", "", "Speed boosters", "", "", "Speed boosters"]; var aa4 = ["J-zinger uses this course for practice. It is easy and should give you a good test drive", "Dan's faveroute track. This championship track can be tricky to navigate but is generaly easy", "The desert is where The Real McCoy likes to hang out. The narrow space is good for getting ahead of the other racers", "This track, constructed by Krazy Kenny, is extremely fast and furious!", "Woody and Kenny built this track together and features some 'Krazy' teleporters", "Area 51 is supposed to be off-limits however nothing is off-limits to Mad Dog Murphy!", "Terrible Timmy enjoys racing through the streets and leaving his mark", "The ultimate track with obsticles around every corner. Not for the faint hearted!"]; box1.cc1.text = aa1[tracks._currentframe - 1]; box1.cc2.text = aa2[tracks._currentframe - 1]; box1.cc3.text = aa3[tracks._currentframe - 1]; box1.cc4.text = aa4[tracks._currentframe - 1];
Instance of Symbol 855 MovieClip "tracks" in Symbol 880 MovieClip Frame 1
onClipEvent (load) { var dragging = false; this.useHandCursor = false; } on (press) { this.dragging = true; } onClipEvent (mouseUp) { this.dragging = false; } onClipEvent (mouseMove) { if (this.dragging) { this._x = this._x - (this.oldx - this._xmouse); this._y = this._y - (this.oldy - this._ymouse); } this.oldx = this._xmouse; this.oldy = this._ymouse; }
Symbol 882 Button
on (release) { _root.gotoAndStop("map" + _root.thingy.tracks._currentframe); }
Symbol 884 MovieClip Frame 1
var aa1 = ["J-Zinger", "Dashing Dan", "The Real McCoy", "Krazy Kenny", "Woody", "Mad Dog Murphy", "Terrible Timmy", "Krazy Kenny"]; var aa2 = ["None", "None", "None", "Speed boosters", "Teleporters", "Missile towers", "None", "Missile towers"]; var aa3 = ["", "", "", "", "Speed boosters", "", "", "Speed boosters"]; var aa4 = ["J-zinger uses this course for practice. It is easy and should give you a good test drive", "Dan's faveroute track. This championship track can be tricky to navigate but is generaly easy", "The desert is where The Real McCoy likes to hang out. The narrow space is good for getting ahead of the other racers", "This track, constructed by Krazy Kenny, is extremely fast and furious!", "Woody and Kenny built this track together and features some 'Krazy' teleporters", "Area 51 is supposed to be off-limits however nothing is off-limits to Mad Dog Murphy!", "Terrible Timmy enjoys racing through the streets and leaving his mark", "The ultimate track with obsticles around every corner. Not for the faint hearted!"]; box1.cc1.text = aa1[tracks._currentframe - 1]; box1.cc2.text = aa2[tracks._currentframe - 1]; box1.cc3.text = aa3[tracks._currentframe - 1]; box1.cc4.text = aa4[tracks._currentframe - 1];
Instance of Symbol 855 MovieClip "tracks" in Symbol 884 MovieClip Frame 1
onClipEvent (load) { var dragging = false; this.useHandCursor = false; } on (press) { this.dragging = true; } onClipEvent (mouseUp) { this.dragging = false; } onClipEvent (mouseMove) { if (this.dragging) { this._x = this._x - (this.oldx - this._xmouse); this._y = this._y - (this.oldy - this._ymouse); } this.oldx = this._xmouse; this.oldy = this._ymouse; }
Symbol 885 Button
on (release) { _root.gotoAndStop("ttmap" + _root.thingy.tracks._currentframe); }
Symbol 899 Button
on (release) { _root.gotoAndStop("challenge" + (this._currentframe - 1)); }
Symbol 916 MovieClip Frame 1
stop();
Symbol 922 Button
on (release) { _root.gotoAndStop(1); }
Symbol 933 Button
on (release) { getURL ("http://www.armorgames.com", "blank"); }
Symbol 940 MovieClip Frame 81
_root.play(); _root.play();

Library Items

Symbol 1 Sound [loop8]
Symbol 2 Sound [loop7]
Symbol 3 Sound [loop6]
Symbol 4 Sound [loop5]
Symbol 5 Sound [loop4]
Symbol 6 Sound [loop3]
Symbol 7 Sound [loop2]
Symbol 8 Sound [loop1]
Symbol 9 GraphicUsed by:20
Symbol 10 GraphicUsed by:20 578 591  Timeline
Symbol 11 GraphicUsed by:20
Symbol 12 GraphicUsed by:20
Symbol 13 GraphicUsed by:20
Symbol 14 GraphicUsed by:20
Symbol 15 GraphicUsed by:20
Symbol 16 GraphicUsed by:20
Symbol 17 GraphicUsed by:20
Symbol 18 GraphicUsed by:20 578 584 591  Timeline
Symbol 19 GraphicUsed by:20 578 584 591  Timeline
Symbol 20 MovieClip [Smoke]Uses:9 10 11 12 13 14 15 16 17 18 19
Symbol 21 GraphicUsed by:28
Symbol 22 GraphicUsed by:28
Symbol 23 GraphicUsed by:28
Symbol 24 GraphicUsed by:28
Symbol 25 GraphicUsed by:28
Symbol 26 GraphicUsed by:28
Symbol 27 GraphicUsed by:28
Symbol 28 MovieClip [glue]Uses:21 22 23 24 25 26 27
Symbol 29 GraphicUsed by:36
Symbol 30 GraphicUsed by:36
Symbol 31 GraphicUsed by:36
Symbol 32 GraphicUsed by:36
Symbol 33 GraphicUsed by:36
Symbol 34 GraphicUsed by:36
Symbol 35 GraphicUsed by:36
Symbol 36 MovieClip [oil]Uses:29 30 31 32 33 34 35
Symbol 37 ShapeTweeningUsed by:39
Symbol 38 GraphicUsed by:39
Symbol 39 MovieClip [skid]Uses:37 38
Symbol 40 GraphicUsed by:41
Symbol 41 MovieClip [bullet]Uses:40
Symbol 42 BitmapUsed by:43 126 366 736
Symbol 43 GraphicUses:42Used by:44
Symbol 44 MovieClipUses:43Used by:45
Symbol 45 MovieClipUses:44Used by:49
Symbol 46 GraphicUsed by:49
Symbol 47 GraphicUsed by:49
Symbol 48 GraphicUsed by:49
Symbol 49 MovieClipUses:45 46 47 48Used by:59 906  Timeline
Symbol 50 GraphicUsed by:51
Symbol 51 MovieClipUses:50Used by:58
Symbol 52 GraphicUsed by:58
Symbol 53 GraphicUsed by:58
Symbol 54 GraphicUsed by:58
Symbol 55 GraphicUsed by:58
Symbol 56 GraphicUsed by:58
Symbol 57 GraphicUsed by:58
Symbol 58 MovieClipUses:51 52 53 54 55 56 57Used by:59
Symbol 59 MovieClip [mine]Uses:49 58
Symbol 60 GraphicUsed by:61
Symbol 61 MovieClipUses:60Used by:70 904 914 974
Symbol 62 ShapeTweeningUsed by:70 904 914 974
Symbol 63 GraphicUsed by:70 904 914 974
Symbol 64 GraphicUsed by:70 904 974
Symbol 65 GraphicUsed by:70 904 974
Symbol 66 GraphicUsed by:70 904 974
Symbol 67 GraphicUsed by:70 904 974
Symbol 68 GraphicUsed by:70 904 974
Symbol 69 GraphicUsed by:70 904 974
Symbol 70 MovieClipUses:61 62 63 64 65 66 67 68 69Used by:73 130 674
Symbol 71 BitmapUsed by:72 373 652 913
Symbol 72 GraphicUses:71Used by:73
Symbol 73 MovieClip [homing]Uses:70 72Used by:137 375
Symbol 74 BitmapUsed by:75 561 748 777
Symbol 75 GraphicUses:74Used by:Timeline
Symbol 76 BitmapUsed by:77 79 203 205 206 207 208 285 567 661 941 983 985
Symbol 77 GraphicUses:76Used by:78 204
Symbol 78 MovieClipUses:77Used by:80
Symbol 79 GraphicUses:76Used by:80
Symbol 80 MovieClipUses:78 79Used by:Timeline
Symbol 81 GraphicUsed by:82
Symbol 82 MovieClipUses:81Used by:170  Timeline
Symbol 83 FontUsed by:84 246 247 248 249 250 251 293 294 295 296 301 302 304 729 731 746 791 800 809 876 878 920
Symbol 84 EditableTextUses:83Used by:Timeline
Symbol 85 GraphicUsed by:170
Symbol 86 GraphicUsed by:170
Symbol 87 FontUsed by:88 97 109 119 122 125 127 133 136 139 145 152 155 161 166 169
Symbol 88 TextUses:87Used by:170
Symbol 89 GraphicUsed by:170
Symbol 90 GraphicUsed by:91 177 178 223 598 607 858 859 899
Symbol 91 ButtonUses:90Used by:92 173
Symbol 92 MovieClipUses:91Used by:170
Symbol 93 GraphicUsed by:170
Symbol 94 GraphicUsed by:95
Symbol 95 MovieClipUses:94Used by:170
Symbol 96 GraphicUsed by:170
Symbol 97 TextUses:87Used by:170
Symbol 98 GraphicUsed by:107
Symbol 99 GraphicUsed by:107
Symbol 100 BitmapUsed by:101
Symbol 101 GraphicUses:100Used by:102
Symbol 102 MovieClipUses:101Used by:107
Symbol 103 GraphicUsed by:107
Symbol 104 FontUsed by:105 219 220 246 247 248 249 250 430 431 432 459 470 471 494 497 499 500 502 668 669 705 709 710 711 712 713 714 715 716 717 718 719 720 721 722 887 954
Symbol 105 EditableTextUses:104Used by:106
Symbol 106 MovieClipUses:105Used by:107
Symbol 107 MovieClipUses:98 99 102 103 106Used by:170 517 747 792 801 810
Symbol 108 GraphicUsed by:170
Symbol 109 TextUses:87Used by:170
Symbol 110 BitmapUsed by:111 112 115 116
Symbol 111 GraphicUses:110Used by:117
Symbol 112 GraphicUses:110Used by:117
Symbol 113 GraphicUsed by:114
Symbol 114 MovieClipUses:113Used by:117
Symbol 115 GraphicUses:110Used by:117
Symbol 116 GraphicUses:110Used by:117
Symbol 117 MovieClipUses:111 112 114 115 116Used by:170 376 906  Timeline
Symbol 118 GraphicUsed by:170
Symbol 119 TextUses:87Used by:170
Symbol 120 BitmapUsed by:121 368
Symbol 121 GraphicUses:120Used by:170
Symbol 122 TextUses:87Used by:170
Symbol 123 BitmapUsed by:124 367
Symbol 124 GraphicUses:123Used by:170
Symbol 125 TextUses:87Used by:170
Symbol 126 GraphicUses:42Used by:170
Symbol 127 TextUses:87Used by:170
Symbol 128 BitmapUsed by:129 369 903
Symbol 129 GraphicUses:128Used by:130
Symbol 130 MovieClipUses:70 129Used by:131 371
Symbol 131 MovieClipUses:130Used by:170
Symbol 132 GraphicUsed by:170
Symbol 133 TextUses:87Used by:170
Symbol 134 BitmapUsed by:135 372
Symbol 135 GraphicUses:134Used by:170
Symbol 136 TextUses:87Used by:170
Symbol 137 MovieClipUses:73Used by:170
Symbol 138 GraphicUsed by:170
Symbol 139 TextUses:87Used by:170
Symbol 140 GraphicUsed by:143
Symbol 141 ShapeTweeningUsed by:143
Symbol 142 GraphicUsed by:143
Symbol 143 MovieClipUses:140 141 142Used by:170  Timeline
Symbol 144 GraphicUsed by:170
Symbol 145 TextUses:87Used by:170
Symbol 146 GraphicUsed by:150 527
Symbol 147 GraphicUsed by:150
Symbol 148 ShapeTweeningUsed by:150
Symbol 149 GraphicUsed by:150 527
Symbol 150 MovieClipUses:146 147 148 149Used by:170 538
Symbol 151 GraphicUsed by:170
Symbol 152 TextUses:87Used by:170
Symbol 153 BitmapUsed by:154 195 282 355 356 357 358 360 361 362 363 655 910
Symbol 154 GraphicUses:153Used by:170
Symbol 155 TextUses:87Used by:170
Symbol 156 GraphicUsed by:159
Symbol 157 BitmapUsed by:158 455
Symbol 158 GraphicUses:157Used by:159
Symbol 159 MovieClipUses:156 158Used by:170
Symbol 160 GraphicUsed by:170
Symbol 161 TextUses:87Used by:170
Symbol 162 BitmapUsed by:163 217 568 665
Symbol 163 GraphicUses:162Used by:164 170
Symbol 164 MovieClipUses:163Used by:170
Symbol 165 GraphicUsed by:170
Symbol 166 TextUses:87Used by:170
Symbol 167 BitmapUsed by:168 211 286 398 399 400 401 654 981
Symbol 168 GraphicUses:167Used by:170
Symbol 169 TextUses:87Used by:170
Symbol 170 MovieClipUses:85 82 86 88 89 92 93 95 96 97 107 108 109 117 118 119 121 122 124 125 126 127 131 132 133 135 136 137 138 139 143 144 145 150 151 152 154 155 159 160 161 163 164 165 166 168 169Used by:Timeline
Symbol 171 GraphicUsed by:174
Symbol 172 GraphicUsed by:173
Symbol 173 MovieClipUses:172 91Used by:174
Symbol 174 MovieClipUses:171 173Used by:Timeline
Symbol 175 GraphicUsed by:Timeline
Symbol 998 MovieClip [__Packages.pldmcrypt]
Symbol 176 GraphicUsed by:Timeline
Symbol 177 ButtonUses:90Used by:Timeline
Symbol 178 ButtonUses:90Used by:Timeline
Symbol 179 GraphicUsed by:Timeline
Symbol 180 BitmapUsed by:181 622 626 827 886
Symbol 181 GraphicUses:180Used by:194
Symbol 182 BitmapUsed by:183 635 637 831
Symbol 183 GraphicUses:182Used by:194
Symbol 184 BitmapUsed by:185 224 611 614 835
Symbol 185 GraphicUses:184Used by:194
Symbol 186 BitmapUsed by:187 628 631 839
Symbol 187 GraphicUses:186Used by:194
Symbol 188 BitmapUsed by:189 619 621 643 647 843
Symbol 189 GraphicUses:188Used by:194
Symbol 190 BitmapUsed by:191 605 610 847
Symbol 191 GraphicUses:190Used by:194
Symbol 192 BitmapUsed by:193 465 639 641 851
Symbol 193 GraphicUses:192Used by:194
Symbol 194 MovieClipUses:181 183 185 187 189 191 193Used by:Timeline
Symbol 195 GraphicUses:153Used by:196 698
Symbol 196 MovieClipUses:195Used by:218 365 570
Symbol 197 BitmapUsed by:198 283 380 381 383 384 385 386 657 905 979
Symbol 198 GraphicUses:197Used by:199 379 699
Symbol 199 MovieClipUses:198Used by:218 570
Symbol 200 BitmapUsed by:201 225 284 391 392 393 394 659 900
Symbol 201 GraphicUses:200Used by:202 389 390
Symbol 202 MovieClipUses:201Used by:218 570
Symbol 203 GraphicUses:76Used by:210 700
Symbol 204 MovieClipUses:77Used by:210
Symbol 205 GraphicUses:76Used by:209
Symbol 206 GraphicUses:76Used by:209
Symbol 207 GraphicUses:76Used by:209
Symbol 208 GraphicUses:76Used by:209
Symbol 209 MovieClipUses:205 206 207 208Used by:210
Symbol 210 MovieClipUses:203 204 209Used by:218 423
Symbol 211 GraphicUses:167Used by:212 397
Symbol 212 MovieClipUses:211Used by:213 403 949
Symbol 213 MovieClipUses:212Used by:218 570
Symbol 214 BitmapUsed by:215 287 405 406 407 408 663 895 983 984
Symbol 215 GraphicUses:214Used by:216 404 410 701
Symbol 216 MovieClipUses:215Used by:218 570
Symbol 217 GraphicUses:162Used by:218
Symbol 218 MovieClipUses:196 199 202 210 213 216 217Used by:Timeline
Symbol 219 EditableTextUses:104Used by:Timeline
Symbol 220 EditableTextUses:104Used by:Timeline
Symbol 221 FontUsed by:222 246 247 248 249 250 428 462 472 490 505 506 507 508 511 514 515 516 564 599 601 608 616 646 738 739 740 741 742 743 744 784 785 786 787 788 789 790 793 794 795 796 797 798 799 802 803 804 805 806 807 808
Symbol 222 EditableTextUses:221Used by:Timeline
Symbol 223 ButtonUses:90Used by:Timeline
Symbol 224 GraphicUses:184Used by:Timeline
Symbol 225 GraphicUses:200Used by:226
Symbol 226 MovieClipUses:225Used by:Timeline
Symbol 227 GraphicUsed by:Timeline
Symbol 228 GraphicUsed by:229
Symbol 229 MovieClipUses:228Used by:Timeline
Symbol 230 GraphicUsed by:231
Symbol 231 MovieClipUses:230Used by:Timeline
Symbol 232 GraphicUsed by:233
Symbol 233 MovieClipUses:232Used by:Timeline
Symbol 234 GraphicUsed by:235
Symbol 235 MovieClipUses:234Used by:Timeline
Symbol 236 GraphicUsed by:237
Symbol 237 MovieClipUses:236Used by:Timeline
Symbol 238 GraphicUsed by:239
Symbol 239 MovieClipUses:238Used by:Timeline
Symbol 240 GraphicUsed by:241
Symbol 241 MovieClipUses:240Used by:Timeline
Symbol 242 GraphicUsed by:243
Symbol 243 MovieClipUses:242Used by:Timeline
Symbol 244 GraphicUsed by:245
Symbol 245 MovieClipUses:244Used by:Timeline
Symbol 246 EditableTextUses:83 104 221 252 256 292 749Used by:Timeline
Symbol 247 EditableTextUses:83 104 221 252 256 292 749Used by:Timeline
Symbol 248 EditableTextUses:83 104 221 252 256 292 749Used by:Timeline
Symbol 249 EditableTextUses:83 104 221 252 256 292 749Used by:Timeline
Symbol 250 EditableTextUses:83 104 221 252 256 292 749Used by:Timeline
Symbol 251 EditableTextUses:83Used by:Timeline
Symbol 252 FontUsed by:246 247 248 249 250 253
Symbol 253 TextUses:252Used by:255
Symbol 254 GraphicUsed by:255 258 260 424 706
Symbol 255 MovieClipUses:253 254Used by:Timeline
Symbol 256 FontUsed by:246 247 248 249 250 257 259 262 869 873 917
Symbol 257 TextUses:256Used by:258
Symbol 258 MovieClipUses:254 257Used by:Timeline
Symbol 259 TextUses:256Used by:260
Symbol 260 MovieClipUses:254 259Used by:Timeline
Symbol 261 GraphicUsed by:273
Symbol 262 TextUses:256Used by:273
Symbol 263 GraphicUsed by:264
Symbol 264 MovieClipUses:263Used by:273
Symbol 265 GraphicUsed by:266
Symbol 266 MovieClipUses:265Used by:273
Symbol 267 GraphicUsed by:268
Symbol 268 MovieClipUses:267Used by:273
Symbol 269 GraphicUsed by:273
Symbol 270 GraphicUsed by:271
Symbol 271 MovieClipUses:270Used by:273
Symbol 272 GraphicUsed by:273
Symbol 273 MovieClipUses:261 262 264 266 268 269 271 272Used by:Timeline
Symbol 274 GraphicUsed by:Timeline
Symbol 275 MovieClipUsed by:Timeline
Symbol 276 BitmapUsed by:277
Symbol 277 GraphicUses:276Used by:Timeline
Symbol 278 GraphicUsed by:279
Symbol 279 MovieClipUses:278Used by:Timeline
Symbol 280 GraphicUsed by:281 425 820
Symbol 281 MovieClipUses:280Used by:311 473  Timeline
Symbol 282 GraphicUses:153Used by:290 436
Symbol 283 GraphicUses:197Used by:290 436
Symbol 284 GraphicUses:200Used by:290 436
Symbol 285 GraphicUses:76Used by:290 436
Symbol 286 GraphicUses:167Used by:290 436
Symbol 287 GraphicUses:214Used by:290 436
Symbol 288 BitmapUsed by:289 411 412 414 415 416 417 435
Symbol 289 GraphicUses:288Used by:290
Symbol 290 MovieClipUses:282 283 284 285 286 287 289Used by:Timeline
Symbol 291 GraphicUsed by:311
Symbol 292 FontUsed by:246 247 248 249 250 293 294 295 296 300 307 313 315 317 319 321 323 325 327 329 333 335 337 339 819 821 822 823 824 825 828 829 832 833 836 837 840 841 844 845 848 849 852
Symbol 293 TextUses:83 292Used by:311
Symbol 294 TextUses:83 292Used by:311
Symbol 295 TextUses:83 292Used by:311
Symbol 296 TextUses:83 292Used by:311
Symbol 297 GraphicUsed by:298
Symbol 298 MovieClipUses:297Used by:310
Symbol 299 GraphicUsed by:310
Symbol 300 TextUses:292Used by:310
Symbol 301 EditableTextUses:83Used by:310
Symbol 302 EditableTextUses:83Used by:310
Symbol 303 GraphicUsed by:305
Symbol 304 TextUses:83Used by:305 310
Symbol 305 MovieClipUses:303 304Used by:310
Symbol 306 GraphicUsed by:310
Symbol 307 TextUses:292Used by:310
Symbol 308 GraphicUsed by:309
Symbol 309 MovieClipUses:308Used by:310
Symbol 310 MovieClipUses:298 299 300 301 302 305 306 304 307 309Used by:311
Symbol 311 MovieClipUses:291 293 294 295 296 281 310Used by:Timeline
Symbol 312 GraphicUsed by:314 316 318 320 322 324 326 328 330 334 336 338 340 880 884 940
Symbol 313 EditableTextUses:292Used by:314
Symbol 314 MovieClipUses:312 313Used by:341
Symbol 315 TextUses:292Used by:316
Symbol 316 MovieClipUses:312 315Used by:341
Symbol 317 TextUses:292Used by:318
Symbol 318 MovieClipUses:312 317Used by:341
Symbol 319 TextUses:292Used by:320
Symbol 320 MovieClipUses:312 319Used by:341
Symbol 321 TextUses:292Used by:322
Symbol 322 MovieClipUses:312 321Used by:341
Symbol 323 TextUses:292Used by:324
Symbol 324 MovieClipUses:312 323Used by:341
Symbol 325 TextUses:292Used by:326
Symbol 326 MovieClipUses:312 325Used by:341
Symbol 327 TextUses:292Used by:328
Symbol 328 MovieClipUses:312 327Used by:341
Symbol 329 TextUses:292Used by:330
Symbol 330 MovieClipUses:312 329Used by:341
Symbol 331 GraphicUsed by:332
Symbol 332 MovieClipUses:331Used by:341
Symbol 333 TextUses:292Used by:334
Symbol 334 MovieClipUses:312 333Used by:341
Symbol 335 TextUses:292Used by:336
Symbol 336 MovieClipUses:312 335Used by:341
Symbol 337 TextUses:292Used by:338
Symbol 338 MovieClipUses:312 337Used by:341
Symbol 339 TextUses:292Used by:340
Symbol 340 MovieClipUses:312 339Used by:341
Symbol 341 MovieClipUses:314 316 318 320 322 324 326 328 330 332 334 336 338 340Used by:Timeline
Symbol 342 BitmapUsed by:343
Symbol 343 GraphicUses:342Used by:344
Symbol 344 MovieClipUses:343Used by:855  Timeline
Symbol 345 GraphicUsed by:346
Symbol 346 MovieClipUses:345Used by:Timeline
Symbol 347 GraphicUsed by:348
Symbol 348 MovieClipUses:347Used by:Timeline
Symbol 349 GraphicUsed by:354
Symbol 350 GraphicUsed by:354
Symbol 351 GraphicUsed by:354
Symbol 352 GraphicUsed by:354
Symbol 353 GraphicUsed by:354
Symbol 354 MovieClipUses:349 350 351 352 353Used by:Timeline
Symbol 355 GraphicUses:153Used by:359
Symbol 356 GraphicUses:153Used by:359
Symbol 357 GraphicUses:153Used by:359
Symbol 358 GraphicUses:153Used by:359
Symbol 359 MovieClipUses:355 356 357 358Used by:365
Symbol 360 GraphicUses:153Used by:364
Symbol 361 GraphicUses:153Used by:364
Symbol 362 GraphicUses:153Used by:364
Symbol 363 GraphicUses:153Used by:364
Symbol 364 MovieClipUses:360 361 362 363Used by:365
Symbol 365 MovieClipUses:196 359 364Used by:423
Symbol 366 GraphicUses:42Used by:376
Symbol 367 GraphicUses:123Used by:376
Symbol 368 GraphicUses:120Used by:376
Symbol 369 GraphicUses:128Used by:370
Symbol 370 MovieClipUses:369Used by:371
Symbol 371 MovieClipUses:370 130Used by:376
Symbol 372 GraphicUses:134Used by:376
Symbol 373 GraphicUses:71Used by:374 674
Symbol 374 MovieClipUses:373Used by:375  Timeline
Symbol 375 MovieClipUses:374 73Used by:376 547 994
Symbol 376 MovieClipUses:366 117 367 368 371 372 375Used by:423
Symbol 377 GraphicUsed by:378
Symbol 378 MovieClipUses:377Used by:423
Symbol 379 MovieClipUses:198Used by:388
Symbol 380 GraphicUses:197Used by:382
Symbol 381 GraphicUses:197Used by:382
Symbol 382 MovieClipUses:380 381Used by:388
Symbol 383 GraphicUses:197Used by:387
Symbol 384 GraphicUses:197Used by:387
Symbol 385 GraphicUses:197Used by:387
Symbol 386 GraphicUses:197Used by:387
Symbol 387 MovieClipUses:383 384 385 386Used by:388
Symbol 388 MovieClipUses:379 382 387Used by:423
Symbol 389 MovieClipUses:201Used by:396
Symbol 390 MovieClipUses:201Used by:396
Symbol 391 GraphicUses:200Used by:395
Symbol 392 GraphicUses:200Used by:395
Symbol 393 GraphicUses:200Used by:395
Symbol 394 GraphicUses:200Used by:395
Symbol 395 MovieClipUses:391 392 393 394Used by:396
Symbol 396 MovieClipUses:389 390 395Used by:423
Symbol 397 MovieClipUses:211Used by:403
Symbol 398 GraphicUses:167Used by:402
Symbol 399 GraphicUses:167Used by:402
Symbol 400 GraphicUses:167Used by:402
Symbol 401 GraphicUses:167Used by:402
Symbol 402 MovieClipUses:398 399 400 401Used by:403
Symbol 403 MovieClipUses:212 397 402Used by:423
Symbol 404 MovieClipUses:215Used by:410
Symbol 405 GraphicUses:214Used by:409
Symbol 406 GraphicUses:214Used by:409
Symbol 407 GraphicUses:214Used by:409
Symbol 408 GraphicUses:214Used by:409
Symbol 409 MovieClipUses:405 406 407 408Used by:410
Symbol 410 MovieClipUses:215 404 409Used by:423
Symbol 411 GraphicUses:288Used by:419
Symbol 412 GraphicUses:288Used by:413
Symbol 413 MovieClipUses:412Used by:419
Symbol 414 GraphicUses:288Used by:418
Symbol 415 GraphicUses:288Used by:418
Symbol 416 GraphicUses:288Used by:418
Symbol 417 GraphicUses:288Used by:418
Symbol 418 MovieClipUses:414 415 416 417Used by:419
Symbol 419 MovieClipUses:411 413 418Used by:423
Symbol 420 BitmapUsed by:421 569 595 597 652 673 675 951
Symbol 421 GraphicUses:420Used by:422
Symbol 422 MovieClipUses:421Used by:423
Symbol 423 MovieClipUses:365 376 378 388 396 210 403 410 419 422Used by:Timeline
Symbol 424 MovieClipUses:254Used by:Timeline
Symbol 425 MovieClipUses:280Used by:517 747 792 801 810
Symbol 426 BitmapUsed by:427
Symbol 427 GraphicUses:426Used by:517 747 792 801 810
Symbol 428 TextUses:221Used by:517 747 792 801 810
Symbol 429 GraphicUsed by:437
Symbol 430 EditableTextUses:104Used by:437
Symbol 431 EditableTextUses:104Used by:437
Symbol 432 EditableTextUses:104Used by:434
Symbol 433 GraphicUsed by:434
Symbol 434 MovieClipUses:432 433Used by:437
Symbol 435 GraphicUses:288Used by:436
Symbol 436 MovieClipUses:282 283 284 285 286 287 435Used by:437
Symbol 437 MovieClipUses:429 430 431 434 436Used by:517 747
Symbol 438 GraphicUsed by:457 671 728
Symbol 439 GraphicUsed by:457
Symbol 440 BitmapUsed by:441
Symbol 441 GraphicUses:440Used by:457
Symbol 442 GraphicUsed by:457 671 728
Symbol 443 BitmapUsed by:444 634
Symbol 444 GraphicUses:443Used by:457
Symbol 445 BitmapUsed by:446 612
Symbol 446 GraphicUses:445Used by:457
Symbol 447 BitmapUsed by:448 629
Symbol 448 GraphicUses:447Used by:449
Symbol 449 MovieClipUses:448Used by:457
Symbol 450 BitmapUsed by:451 618 670
Symbol 451 GraphicUses:450Used by:457
Symbol 452 BitmapUsed by:453 604
Symbol 453 GraphicUses:452Used by:454
Symbol 454 MovieClipUses:453Used by:457
Symbol 455 GraphicUses:157Used by:456
Symbol 456 MovieClipUses:455Used by:457  Timeline
Symbol 457 MovieClipUses:438 439 441 442 444 446 449 451 454 456Used by:461  Timeline
Symbol 458 GraphicUsed by:461
Symbol 459 EditableTextUses:104Used by:461
Symbol 460 GraphicUsed by:461
Symbol 461 MovieClipUses:457 458 459 460Used by:517
Symbol 462 TextUses:221Used by:517 747 792 801 810
Symbol 463 GraphicUsed by:473
Symbol 464 GraphicUsed by:473
Symbol 465 GraphicUses:192Used by:466
Symbol 466 MovieClipUses:465Used by:473
Symbol 467 GraphicUsed by:473
Symbol 468 GraphicUsed by:469 694 782 817 857 922
Symbol 469 ButtonUses:468Used by:473 818
Symbol 470 EditableTextUses:104Used by:473
Symbol 471 EditableTextUses:104Used by:473
Symbol 472 EditableTextUses:221Used by:473
Symbol 473 MovieClipUses:463 281 464 466 467 469 470 471 472Used by:517 747 792 801 810
Symbol 474 GraphicUsed by:489
Symbol 475 GraphicUsed by:489
Symbol 476 ShapeTweeningUsed by:478
Symbol 477 GraphicUsed by:478
Symbol 478 MovieClipUses:476 477Used by:489
Symbol 479 ShapeTweeningUsed by:481
Symbol 480 GraphicUsed by:481
Symbol 481 MovieClipUses:479 480Used by:489
Symbol 482 GraphicUsed by:489
Symbol 483 GraphicUsed by:489
Symbol 484 GraphicUsed by:489
Symbol 485 GraphicUsed by:489
Symbol 486 GraphicUsed by:489
Symbol 487 GraphicUsed by:489
Symbol 488 GraphicUsed by:489
Symbol 489 MovieClipUses:474 475 478 481 482 483 484 485 486 487 488Used by:517 747 792 801 810
Symbol 490 EditableTextUses:221Used by:517
Symbol 491 BitmapUsed by:492
Symbol 492 GraphicUses:491Used by:503
Symbol 493 GraphicUsed by:503
Symbol 494 EditableTextUses:104Used by:503
Symbol 495 SoundUsed by:503
Symbol 496 GraphicUsed by:503
Symbol 497 EditableTextUses:104Used by:503
Symbol 498 GraphicUsed by:503
Symbol 499 EditableTextUses:104Used by:503
Symbol 500 EditableTextUses:104Used by:503
Symbol 501 SoundUsed by:503
Symbol 502 EditableTextUses:104Used by:503
Symbol 503 MovieClipUses:492 493 494 495 496 497 498 499 500 501 502Used by:504
Symbol 504 MovieClipUses:503Used by:517 747 792 801 810
Symbol 505 TextUses:221Used by:517 747 792 801 810
Symbol 506 EditableTextUses:221Used by:517
Symbol 507 TextUses:221Used by:517 747 792 801 810
Symbol 508 EditableTextUses:221Used by:517
Symbol 509 GraphicUsed by:510
Symbol 510 MovieClipUses:509Used by:517 747 792 801 810
Symbol 511 EditableTextUses:221Used by:517
Symbol 512 GraphicUsed by:513
Symbol 513 MovieClipUses:512Used by:517 747 792 801 810
Symbol 514 EditableTextUses:221Used by:517
Symbol 515 EditableTextUses:221Used by:517
Symbol 516 EditableTextUses:221Used by:517
Symbol 517 MovieClipUses:425 427 428 437 107 461 462 473 489 490 504 505 506 507 508 510 511 513 514 515 516Used by:Timeline
Symbol 518 BitmapUsed by:519
Symbol 519 GraphicUses:518Used by:520
Symbol 520 MovieClipUses:519Used by:855  Timeline
Symbol 521 GraphicUsed by:522
Symbol 522 MovieClipUses:521Used by:Timeline
Symbol 523 BitmapUsed by:524
Symbol 524 GraphicUses:523Used by:528
Symbol 525 GraphicUsed by:527
Symbol 526 ShapeTweeningUsed by:527
Symbol 527 MovieClipUses:146 525 526 149Used by:528 557
Symbol 528 MovieClipUses:524 527Used by:855  Timeline
Symbol 529 GraphicUsed by:530
Symbol 530 MovieClipUses:529Used by:Timeline
Symbol 531 BitmapUsed by:532
Symbol 532 GraphicUses:531Used by:533
Symbol 533 MovieClipUses:532Used by:855  Timeline
Symbol 534 GraphicUsed by:535
Symbol 535 MovieClipUses:534Used by:Timeline
Symbol 536 BitmapUsed by:537 854
Symbol 537 GraphicUses:536Used by:538
Symbol 538 MovieClipUses:537 150Used by:Timeline
Symbol 539 GraphicUsed by:540
Symbol 540 MovieClipUses:539Used by:Timeline
Symbol 541 BitmapUsed by:542
Symbol 542 GraphicUses:541Used by:543
Symbol 543 MovieClipUses:542Used by:855  Timeline
Symbol 544 GraphicUsed by:545
Symbol 545 MovieClipUses:544Used by:Timeline
Symbol 546 GraphicUsed by:547
Symbol 547 MovieClipUses:375 546Used by:Timeline
Symbol 548 GraphicUsed by:549
Symbol 549 MovieClipUses:548Used by:Timeline
Symbol 550 BitmapUsed by:551
Symbol 551 GraphicUses:550Used by:552
Symbol 552 MovieClipUses:551Used by:855  Timeline
Symbol 553 GraphicUsed by:554
Symbol 554 MovieClipUses:553Used by:Timeline
Symbol 555 BitmapUsed by:556
Symbol 556 GraphicUses:555Used by:557
Symbol 557 MovieClipUses:556 527Used by:855  Timeline
Symbol 558 GraphicUsed by:559
Symbol 559 MovieClipUses:558Used by:Timeline
Symbol 560 GraphicUsed by:562
Symbol 561 GraphicUses:74Used by:562 897 904 948  Timeline
Symbol 562 MovieClipUses:560 561Used by:Timeline
Symbol 563 GraphicUsed by:565
Symbol 564 EditableTextUses:221Used by:565
Symbol 565 MovieClipUses:563 564Used by:Timeline
Symbol 566 GraphicUsed by:Timeline
Symbol 567 GraphicUses:76Used by:570
Symbol 568 GraphicUses:162Used by:570
Symbol 569 GraphicUses:420Used by:570
Symbol 570 MovieClipUses:196 199 202 567 213 216 568 569Used by:780  Timeline
Symbol 571 GraphicUsed by:578  Timeline
Symbol 572 GraphicUsed by:578  Timeline
Symbol 573 GraphicUsed by:578  Timeline
Symbol 574 GraphicUsed by:578  Timeline
Symbol 575 GraphicUsed by:578  Timeline
Symbol 576 GraphicUsed by:578 584  Timeline
Symbol 577 GraphicUsed by:578 584 591  Timeline
Symbol 578 MovieClipUses:571 10 572 573 574 575 576 577 18 19Used by:Timeline
Symbol 579 GraphicUsed by:584
Symbol 580 GraphicUsed by:584
Symbol 581 GraphicUsed by:584
Symbol 582 GraphicUsed by:584
Symbol 583 GraphicUsed by:584
Symbol 584 MovieClipUses:579 580 581 582 576 583 577 18 19Used by:Timeline
Symbol 585 GraphicUsed by:591
Symbol 586 GraphicUsed by:591
Symbol 587 GraphicUsed by:591
Symbol 588 GraphicUsed by:591
Symbol 589 GraphicUsed by:591
Symbol 590 GraphicUsed by:591
Symbol 591 MovieClipUses:10 585 586 587 588 577 589 590 18 19Used by:Timeline
Symbol 592 GraphicUsed by:Timeline
Symbol 593 BitmapUsed by:594
Symbol 594 GraphicUses:593Used by:Timeline
Symbol 595 GraphicUses:420Used by:596
Symbol 596 MovieClipUses:595Used by:Timeline
Symbol 597 GraphicUses:420Used by:Timeline
Symbol 598 ButtonUses:90Used by:Timeline
Symbol 599 EditableTextUses:221Used by:Timeline
Symbol 600 GraphicUsed by:602 933  Timeline
Symbol 601 EditableTextUses:221Used by:602
Symbol 602 MovieClipUses:600 601Used by:Timeline
Symbol 603 GraphicUsed by:Timeline
Symbol 604 GraphicUses:452Used by:Timeline
Symbol 605 GraphicUses:190Used by:Timeline
Symbol 606 GraphicUsed by:Timeline
Symbol 607 ButtonUses:90Used by:Timeline
Symbol 608 EditableTextUses:221Used by:Timeline
Symbol 609 GraphicUsed by:Timeline
Symbol 610 GraphicUses:190Used by:Timeline
Symbol 611 GraphicUses:184Used by:Timeline
Symbol 612 GraphicUses:445Used by:Timeline
Symbol 613 GraphicUsed by:Timeline
Symbol 614 GraphicUses:184Used by:Timeline
Symbol 615 GraphicUsed by:Timeline
Symbol 616 EditableTextUses:221Used by:Timeline
Symbol 617 GraphicUsed by:Timeline
Symbol 618 GraphicUses:450Used by:Timeline
Symbol 619 GraphicUses:188Used by:Timeline
Symbol 620 GraphicUsed by:Timeline
Symbol 621 GraphicUses:188Used by:Timeline
Symbol 622 GraphicUses:180Used by:Timeline
Symbol 623 BitmapUsed by:624
Symbol 624 GraphicUses:623Used by:Timeline
Symbol 625 GraphicUsed by:Timeline
Symbol 626 GraphicUses:180Used by:Timeline
Symbol 627 GraphicUsed by:Timeline
Symbol 628 GraphicUses:186Used by:Timeline
Symbol 629 GraphicUses:447Used by:Timeline
Symbol 630 GraphicUsed by:Timeline
Symbol 631 GraphicUses:186Used by:Timeline
Symbol 632 GraphicUsed by:Timeline
Symbol 633 GraphicUsed by:Timeline
Symbol 634 GraphicUses:443Used by:Timeline
Symbol 635 GraphicUses:182Used by:Timeline
Symbol 636 GraphicUsed by:Timeline
Symbol 637 GraphicUses:182Used by:Timeline
Symbol 638 GraphicUsed by:Timeline
Symbol 639 GraphicUses:192Used by:Timeline
Symbol 640 GraphicUsed by:Timeline
Symbol 641 GraphicUses:192Used by:Timeline
Symbol 642 GraphicUsed by:Timeline
Symbol 643 GraphicUses:188Used by:Timeline
Symbol 644 GraphicUsed by:Timeline
Symbol 645 GraphicUsed by:Timeline
Symbol 646 EditableTextUses:221Used by:Timeline
Symbol 647 GraphicUses:188Used by:Timeline
Symbol 648 GraphicUsed by:651
Symbol 649 BitmapUsed by:650 905 907 978
Symbol 650 GraphicUses:649Used by:651
Symbol 651 MovieClipUses:648 650Used by:Timeline
Symbol 652 GraphicUses:71 420Used by:653
Symbol 653 MovieClipUses:652Used by:Timeline
Symbol 654 GraphicUses:167Used by:Timeline
Symbol 655 GraphicUses:153Used by:656
Symbol 656 MovieClipUses:655Used by:Timeline
Symbol 657 GraphicUses:197Used by:658
Symbol 658 MovieClipUses:657Used by:Timeline
Symbol 659 GraphicUses:200Used by:660
Symbol 660 MovieClipUses:659Used by:Timeline
Symbol 661 GraphicUses:76Used by:662
Symbol 662 MovieClipUses:661Used by:Timeline
Symbol 663 GraphicUses:214Used by:664
Symbol 664 MovieClipUses:663Used by:Timeline
Symbol 665 GraphicUses:162Used by:666
Symbol 666 MovieClipUses:665Used by:Timeline
Symbol 667 GraphicUsed by:Timeline
Symbol 668 EditableTextUses:104Used by:Timeline
Symbol 669 EditableTextUses:104Used by:Timeline
Symbol 670 GraphicUses:450Used by:671 728
Symbol 671 MovieClipUses:438 670 442Used by:Timeline
Symbol 672 GraphicUsed by:Timeline
Symbol 673 GraphicUses:420Used by:Timeline
Symbol 674 MovieClipUses:70 373Used by:Timeline
Symbol 675 GraphicUses:420Used by:Timeline
Symbol 676 GraphicUsed by:677
Symbol 677 MovieClipUses:676Used by:Timeline
Symbol 678 GraphicUsed by:679
Symbol 679 MovieClipUses:678Used by:Timeline
Symbol 680 GraphicUsed by:Timeline
Symbol 681 GraphicUsed by:Timeline
Symbol 682 GraphicUsed by:Timeline
Symbol 683 GraphicUsed by:Timeline
Symbol 684 GraphicUsed by:Timeline
Symbol 685 GraphicUsed by:Timeline
Symbol 686 GraphicUsed by:Timeline
Symbol 687 GraphicUsed by:Timeline
Symbol 688 GraphicUsed by:Timeline
Symbol 689 GraphicUsed by:Timeline
Symbol 690 GraphicUsed by:Timeline
Symbol 691 GraphicUsed by:Timeline
Symbol 692 GraphicUsed by:Timeline
Symbol 693 GraphicUsed by:695
Symbol 694 ButtonUses:468Used by:695
Symbol 695 MovieClipUses:693 694Used by:Timeline
Symbol 696 GraphicUsed by:703
Symbol 697 GraphicUsed by:703
Symbol 698 MovieClipUses:195Used by:703
Symbol 699 MovieClipUses:198Used by:703
Symbol 700 MovieClipUses:203Used by:703
Symbol 701 MovieClipUses:215Used by:703
Symbol 702 GraphicUsed by:703
Symbol 703 MovieClipUses:696 697 698 699 700 701 702Used by:Timeline
Symbol 704 GraphicUsed by:707
Symbol 705 EditableTextUses:104Used by:706
Symbol 706 MovieClipUses:254 705Used by:707
Symbol 707 MovieClipUses:704 706Used by:Timeline
Symbol 708 GraphicUsed by:Timeline
Symbol 709 EditableTextUses:104Used by:Timeline
Symbol 710 EditableTextUses:104Used by:Timeline
Symbol 711 EditableTextUses:104Used by:Timeline
Symbol 712 EditableTextUses:104Used by:Timeline
Symbol 713 EditableTextUses:104Used by:Timeline
Symbol 714 EditableTextUses:104Used by:Timeline
Symbol 715 EditableTextUses:104Used by:Timeline
Symbol 716 EditableTextUses:104Used by:Timeline
Symbol 717 EditableTextUses:104Used by:Timeline
Symbol 718 EditableTextUses:104Used by:Timeline
Symbol 719 EditableTextUses:104Used by:Timeline
Symbol 720 EditableTextUses:104Used by:Timeline
Symbol 721 EditableTextUses:104Used by:Timeline
Symbol 722 EditableTextUses:104Used by:Timeline
Symbol 723 GraphicUsed by:724
Symbol 724 MovieClipUses:723Used by:735
Symbol 725 FontUsed by:726
Symbol 726 EditableTextUses:725Used by:735
Symbol 727 GraphicUsed by:735
Symbol 728 MovieClipUses:438 670 442Used by:735
Symbol 729 EditableTextUses:83Used by:735
Symbol 730 GraphicUsed by:735
Symbol 731 EditableTextUses:83Used by:735
Symbol 732 GraphicUsed by:735
Symbol 733 GraphicUsed by:734
Symbol 734 MovieClipUses:733Used by:735
Symbol 735 MovieClipUses:724 726 727 728 729 730 731 732 734Used by:Timeline
Symbol 736 GraphicUses:42Used by:737
Symbol 737 MovieClipUses:736Used by:Timeline
Symbol 738 EditableTextUses:221Used by:747
Symbol 739 EditableTextUses:221Used by:747
Symbol 740 EditableTextUses:221Used by:747
Symbol 741 EditableTextUses:221Used by:747
Symbol 742 EditableTextUses:221Used by:747
Symbol 743 EditableTextUses:221Used by:747
Symbol 744 EditableTextUses:221Used by:747
Symbol 745 GraphicUsed by:747
Symbol 746 EditableTextUses:83Used by:747
Symbol 747 MovieClipUses:425 427 428 462 473 489 738 504 505 739 507 740 510 741 513 742 743 744 437 107 745 746Used by:Timeline
Symbol 748 GraphicUses:74Used by:Timeline
Symbol 749 FontUsed by:246 247 248 249 250 750 861 862 863 864 865 866 867
Symbol 750 EditableTextUses:749Used by:Timeline
Symbol 751 GraphicUsed by:Timeline
Symbol 752 GraphicUsed by:755
Symbol 753 BitmapUsed by:754
Symbol 754 GraphicUses:753Used by:755
Symbol 755 MovieClipUses:752 754Used by:Timeline
Symbol 756 GraphicUsed by:759
Symbol 757 BitmapUsed by:758
Symbol 758 GraphicUses:757Used by:759
Symbol 759 MovieClipUses:756 758Used by:Timeline
Symbol 760 GraphicUsed by:763
Symbol 761 BitmapUsed by:762
Symbol 762 GraphicUses:761Used by:763
Symbol 763 MovieClipUses:760 762Used by:Timeline
Symbol 764 BitmapUsed by:765
Symbol 765 GraphicUses:764Used by:766
Symbol 766 MovieClipUses:765Used by:Timeline
Symbol 767 BitmapUsed by:768
Symbol 768 GraphicUses:767Used by:769
Symbol 769 MovieClipUses:768Used by:Timeline
Symbol 770 BitmapUsed by:771
Symbol 771 GraphicUses:770Used by:772
Symbol 772 MovieClipUses:771Used by:Timeline
Symbol 773 BitmapUsed by:774 811
Symbol 774 GraphicUses:773Used by:775
Symbol 775 MovieClipUses:774Used by:Timeline
Symbol 776 GraphicUsed by:Timeline
Symbol 777 GraphicUses:74Used by:780  Timeline
Symbol 778 GraphicUsed by:779
Symbol 779 MovieClipUses:778Used by:780  Timeline
Symbol 780 MovieClipUses:777 779 570Used by:Timeline
Symbol 781 GraphicUsed by:783
Symbol 782 ButtonUses:468Used by:783
Symbol 783 MovieClipUses:781 782Used by:Timeline
Symbol 784 EditableTextUses:221Used by:792
Symbol 785 EditableTextUses:221Used by:792
Symbol 786 EditableTextUses:221Used by:792
Symbol 787 EditableTextUses:221Used by:792
Symbol 788 EditableTextUses:221Used by:792
Symbol 789 EditableTextUses:221Used by:792
Symbol 790 EditableTextUses:221Used by:792
Symbol 791 EditableTextUses:83Used by:792
Symbol 792 MovieClipUses:425 427 428 462 473 489 784 504 505 785 507 786 510 787 513 788 789 790 107 791Used by:Timeline
Symbol 793 EditableTextUses:221Used by:801
Symbol 794 EditableTextUses:221Used by:801
Symbol 795 EditableTextUses:221Used by:801
Symbol 796 EditableTextUses:221Used by:801
Symbol 797 EditableTextUses:221Used by:801
Symbol 798 EditableTextUses:221Used by:801
Symbol 799 EditableTextUses:221Used by:801
Symbol 800 EditableTextUses:83Used by:801
Symbol 801 MovieClipUses:425 427 428 462 473 489 793 504 505 794 507 795 510 796 513 797 798 799 107 800Used by:Timeline
Symbol 802 EditableTextUses:221Used by:810
Symbol 803 EditableTextUses:221Used by:810
Symbol 804 EditableTextUses:221Used by:810
Symbol 805 EditableTextUses:221Used by:810
Symbol 806 EditableTextUses:221Used by:810
Symbol 807 EditableTextUses:221Used by:810
Symbol 808 EditableTextUses:221Used by:810
Symbol 809 EditableTextUses:83Used by:810
Symbol 810 MovieClipUses:425 427 428 462 473 489 802 504 505 803 507 804 510 805 513 806 807 808 107 809Used by:Timeline
Symbol 811 GraphicUses:773Used by:812
Symbol 812 MovieClipUses:811Used by:818
Symbol 813 GraphicUsed by:814
Symbol 814 MovieClipUses:813Used by:818
Symbol 815 GraphicUsed by:816
Symbol 816 MovieClipUses:815Used by:818
Symbol 817 ButtonUses:468Used by:818
Symbol 818 MovieClipUses:812 814 816 469 817Used by:Timeline
Symbol 819 TextUses:292Used by:Timeline
Symbol 820 MovieClipUses:280Used by:Timeline
Symbol 821 TextUses:292Used by:Timeline
Symbol 822 TextUses:292Used by:Timeline
Symbol 823 TextUses:292Used by:Timeline
Symbol 824 TextUses:292Used by:Timeline
Symbol 825 TextUses:292Used by:Timeline
Symbol 826 BitmapUsed by:827
Symbol 827 GraphicUses:826 180Used by:Timeline
Symbol 828 TextUses:292Used by:Timeline
Symbol 829 TextUses:292Used by:Timeline
Symbol 830 BitmapUsed by:831
Symbol 831 GraphicUses:830 182Used by:Timeline
Symbol 832 TextUses:292Used by:Timeline
Symbol 833 TextUses:292Used by:Timeline
Symbol 834 BitmapUsed by:835
Symbol 835 GraphicUses:834 184Used by:Timeline
Symbol 836 TextUses:292Used by:Timeline
Symbol 837 TextUses:292Used by:Timeline
Symbol 838 BitmapUsed by:839
Symbol 839 GraphicUses:838 186Used by:Timeline
Symbol 840 TextUses:292Used by:Timeline
Symbol 841 TextUses:292Used by:Timeline
Symbol 842 BitmapUsed by:843
Symbol 843 GraphicUses:842 188Used by:Timeline
Symbol 844 TextUses:292Used by:Timeline
Symbol 845 TextUses:292Used by:Timeline
Symbol 846 BitmapUsed by:847
Symbol 847 GraphicUses:846 190Used by:Timeline
Symbol 848 TextUses:292Used by:Timeline
Symbol 849 TextUses:292Used by:Timeline
Symbol 850 BitmapUsed by:851
Symbol 851 GraphicUses:850 192Used by:Timeline
Symbol 852 TextUses:292Used by:Timeline
Symbol 853 GraphicUsed by:880 884
Symbol 854 GraphicUses:536Used by:855
Symbol 855 MovieClipUses:344 520 533 528 854 543 552 557Used by:880 884
Symbol 856 GraphicUsed by:880
Symbol 857 ButtonUses:468Used by:880 884
Symbol 858 ButtonUses:90Used by:880 884
Symbol 859 ButtonUses:90Used by:880 884
Symbol 860 GraphicUsed by:871
Symbol 861 TextUses:749Used by:871
Symbol 862 TextUses:749Used by:871
Symbol 863 TextUses:749Used by:871
Symbol 864 EditableTextUses:749Used by:871
Symbol 865 EditableTextUses:749Used by:871
Symbol 866 EditableTextUses:749Used by:871
Symbol 867 EditableTextUses:749Used by:871
Symbol 868 GraphicUsed by:870
Symbol 869 TextUses:256Used by:870
Symbol 870 MovieClipUses:868 869Used by:871 879
Symbol 871 MovieClipUses:860 861 862 863 864 865 866 867 870Used by:880 884
Symbol 872 GraphicUsed by:879
Symbol 873 TextUses:256Used by:879
Symbol 874 GraphicUsed by:875 877
Symbol 875 MovieClipUses:874Used by:879
Symbol 876 EditableTextUses:83Used by:879
Symbol 877 MovieClipUses:874Used by:879
Symbol 878 EditableTextUses:83Used by:879
Symbol 879 MovieClipUses:872 873 870 875 876 877 878Used by:880 884
Symbol 880 MovieClipUses:312 853 855 856 857 858 859 871 879Used by:Timeline
Symbol 881 GraphicUsed by:882 885
Symbol 882 ButtonUses:881Used by:Timeline
Symbol 883 GraphicUsed by:884
Symbol 884 MovieClipUses:312 853 855 883 857 858 859 871 879Used by:Timeline
Symbol 885 ButtonUses:881Used by:Timeline
Symbol 886 GraphicUses:180Used by:Timeline
Symbol 887 EditableTextUses:104Used by:Timeline
Symbol 888 GraphicUsed by:918
Symbol 889 GraphicUsed by:906 915 916
Symbol 890 ShapeTweeningUsed by:892
Symbol 891 GraphicUsed by:892
Symbol 892 MovieClipUses:890 891Used by:916
Symbol 893 GraphicUsed by:894
Symbol 894 MovieClipUses:893Used by:897
Symbol 895 GraphicUses:214Used by:896
Symbol 896 MovieClipUses:895Used by:897
Symbol 897 MovieClipUses:561 894 896Used by:916
Symbol 898 GraphicUsed by:916
Symbol 899 ButtonUses:90Used by:916
Symbol 900 GraphicUses:200Used by:901
Symbol 901 MovieClipUses:900Used by:904 944 974
Symbol 902 GraphicUsed by:904 974
Symbol 903 GraphicUses:128Used by:904 974
Symbol 904 MovieClipUses:561 901 902 61 62 63 903 64 65 66 67 68 69Used by:916
Symbol 905 GraphicUses:197 649Used by:906
Symbol 906 MovieClipUses:889 905 49 117Used by:916
Symbol 907 GraphicUses:649Used by:908
Symbol 908 MovieClipUses:907Used by:909
Symbol 909 MovieClipUses:908Used by:915  Timeline
Symbol 910 GraphicUses:153Used by:911
Symbol 911 MovieClipUses:910Used by:912
Symbol 912 MovieClipUses:911Used by:915  Timeline
Symbol 913 GraphicUses:71Used by:914
Symbol 914 MovieClipUses:61 62 63 913Used by:915
Symbol 915 MovieClipUses:889 909 912 914Used by:916
Symbol 916 MovieClipUses:889 892 897 898 899 904 906 915Used by:918
Symbol 917 TextUses:256Used by:918
Symbol 918 MovieClipUses:888 916 917Used by:Timeline
Symbol 919 GraphicUsed by:921
Symbol 920 EditableTextUses:83Used by:921
Symbol 921 MovieClipUses:919 920Used by:Timeline
Symbol 922 ButtonUses:468Used by:Timeline
Symbol 923 GraphicUsed by:924
Symbol 924 MovieClipUses:923Used by:Timeline
Symbol 925 GraphicUsed by:926
Symbol 926 MovieClipUses:925Used by:Timeline
Symbol 927 GraphicUsed by:928
Symbol 928 MovieClipUses:927Used by:Timeline
Symbol 929 GraphicUsed by:930
Symbol 930 MovieClipUses:929Used by:Timeline
Symbol 931 GraphicUsed by:932
Symbol 932 MovieClipUses:931Used by:940
Symbol 933 ButtonUses:600Used by:940
Symbol 934 GraphicUsed by:935
Symbol 935 MovieClipUses:934Used by:940
Symbol 936 GraphicUsed by:937
Symbol 937 MovieClipUses:936Used by:940
Symbol 938 GraphicUsed by:939
Symbol 939 MovieClipUses:938Used by:940
Symbol 940 MovieClipUses:312 932 933 935 937 939 SS2Used by:Timeline
Symbol 941 GraphicUses:76Used by:942
Symbol 942 MovieClipUses:941Used by:943
Symbol 943 MovieClipUses:942Used by:Timeline
Symbol 944 MovieClipUses:901Used by:Timeline
Symbol 945 ShapeTweeningUsed by:Timeline
Symbol 946 GraphicUsed by:Timeline
Symbol 947 GraphicUsed by:Timeline
Symbol 948 MovieClipUses:561Used by:Timeline
Symbol 949 MovieClipUses:212Used by:950  Timeline
Symbol 950 MovieClipUses:949Used by:Timeline
Symbol 951 GraphicUses:420Used by:952
Symbol 952 MovieClipUses:951Used by:953
Symbol 953 MovieClipUses:952Used by:Timeline
Symbol 954 EditableTextUses:104Used by:956
Symbol 955 GraphicUsed by:956
Symbol 956 MovieClipUses:954 955Used by:Timeline
Symbol 957 GraphicUsed by:Timeline
Symbol 958 GraphicUsed by:Timeline
Symbol 959 GraphicUsed by:Timeline
Symbol 960 GraphicUsed by:Timeline
Symbol 961 ShapeTweeningUsed by:Timeline
Symbol 962 GraphicUsed by:Timeline
Symbol 963 GraphicUsed by:Timeline
Symbol 964 GraphicUsed by:Timeline
Symbol 965 GraphicUsed by:Timeline
Symbol 966 GraphicUsed by:Timeline
Symbol 967 GraphicUsed by:973
Symbol 968 GraphicUsed by:972
Symbol 969 GraphicUsed by:972
Symbol 970 GraphicUsed by:972
Symbol 971 GraphicUsed by:972
Symbol 972 MovieClipUses:968 969 970 971Used by:973
Symbol 973 MovieClipUses:967 972Used by:Timeline
Symbol 974 MovieClipUses:901 902 61 62 63 903 64 65 66 67 68 69Used by:Timeline
Symbol 975 ShapeTweeningUsed by:Timeline
Symbol 976 GraphicUsed by:Timeline
Symbol 977 GraphicUsed by:Timeline
Symbol 978 GraphicUses:649Used by:Timeline
Symbol 979 GraphicUses:197Used by:980
Symbol 980 MovieClipUses:979Used by:Timeline
Symbol 981 GraphicUses:167Used by:982
Symbol 982 MovieClipUses:981Used by:Timeline
Symbol 983 GraphicUses:76 214Used by:Timeline
Symbol 984 GraphicUses:214Used by:993  Timeline
Symbol 985 GraphicUses:76Used by:990  Timeline
Symbol 986 GraphicUsed by:Timeline
Symbol 987 GraphicUsed by:Timeline
Symbol 988 GraphicUsed by:Timeline
Symbol 989 GraphicUsed by:Timeline
Symbol 990 MovieClipUses:985Used by:Timeline
Symbol 991 GraphicUsed by:992
Symbol 992 MovieClipUses:991Used by:Timeline
Symbol 993 MovieClipUses:984Used by:994  Timeline
Symbol 994 MovieClipUses:993 375Used by:Timeline
Symbol 995 ShapeTweeningUsed by:Timeline
Symbol 996 GraphicUsed by:Timeline
Symbol 997 GraphicUsed by:Timeline
Streaming Sound 1Used by:Timeline
Streaming Sound 2Used by:Symbol 940 MovieClip

Instance Names

"loadstat"Frame 1Symbol 84 EditableText
"begin"Frame 1Symbol 174 MovieClip
"desc"Frame 3Symbol 251 EditableText
"difis"Frame 3Symbol 273 MovieClip
"skider"Frame 4Symbol 275 MovieClip
"tracks"Frame 4Symbol 279 MovieClip
"bn12"Frame 4Symbol 281 MovieClip
"bn1"Frame 4Symbol 281 MovieClip
"bn2"Frame 4Symbol 281 MovieClip
"bn3"Frame 4Symbol 281 MovieClip
"bn5"Frame 4Symbol 281 MovieClip
"bn6"Frame 4Symbol 281 MovieClip
"bn7"Frame 4Symbol 281 MovieClip
"bn11"Frame 4Symbol 281 MovieClip
"bn10"Frame 4Symbol 281 MovieClip
"bn4"Frame 4Symbol 281 MovieClip
"bn9"Frame 4Symbol 281 MovieClip
"bn8"Frame 4Symbol 281 MovieClip
"car"Frame 4Symbol 290 MovieClip
"cam"Frame 4Symbol 311 MovieClip
"tracks"Frame 5Symbol 346 MovieClip
"skider"Frame 5Symbol 275 MovieClip
"car1"Frame 5Symbol 423 MovieClip
"car2"Frame 5Symbol 423 MovieClip
"car3"Frame 5Symbol 423 MovieClip
"car"Frame 5Symbol 423 MovieClip
"n1"Frame 5Symbol 424 MovieClip
"n2"Frame 5Symbol 424 MovieClip
"n3"Frame 5Symbol 424 MovieClip
"n7"Frame 5Symbol 424 MovieClip
"n6"Frame 5Symbol 424 MovieClip
"n5"Frame 5Symbol 424 MovieClip
"n8"Frame 5Symbol 424 MovieClip
"n4"Frame 5Symbol 424 MovieClip
"n9"Frame 5Symbol 424 MovieClip
"n10"Frame 5Symbol 424 MovieClip
"cam"Frame 5Symbol 517 MovieClip
"tracks"Frame 6Symbol 522 MovieClip
"car"Frame 6Symbol 423 MovieClip
"car1"Frame 6Symbol 423 MovieClip
"car2"Frame 6Symbol 423 MovieClip
"car3"Frame 6Symbol 423 MovieClip
"cam"Frame 6Symbol 517 MovieClip
"tracks"Frame 7Symbol 530 MovieClip
"car"Frame 7Symbol 423 MovieClip
"cam"Frame 7Symbol 517 MovieClip
"tracks"Frame 8Symbol 535 MovieClip
"cam"Frame 8Symbol 517 MovieClip
"tracks"Frame 9Symbol 540 MovieClip
"yea"Frame 9Symbol 348 MovieClip
"tele1"Frame 9Symbol 143 MovieClip
"tele2"Frame 9Symbol 143 MovieClip
"tele3"Frame 9Symbol 143 MovieClip
"tele4"Frame 9Symbol 143 MovieClip
"tele5"Frame 9Symbol 143 MovieClip
"n2"Frame 9Symbol 424 MovieClip
"n3"Frame 9Symbol 424 MovieClip
"n4"Frame 9Symbol 424 MovieClip
"n8"Frame 9Symbol 424 MovieClip
"n7"Frame 9Symbol 424 MovieClip
"n6"Frame 9Symbol 424 MovieClip
"n9"Frame 9Symbol 424 MovieClip
"n5"Frame 9Symbol 424 MovieClip
"n10"Frame 9Symbol 424 MovieClip
"cam"Frame 9Symbol 517 MovieClip
"tracks"Frame 10Symbol 545 MovieClip
"m2l"Frame 10Symbol 547 MovieClip
"m1l"Frame 10Symbol 547 MovieClip
"n1"Frame 10Symbol 424 MovieClip
"n7"Frame 10Symbol 424 MovieClip
"n6"Frame 10Symbol 424 MovieClip
"n5"Frame 10Symbol 424 MovieClip
"n8"Frame 10Symbol 424 MovieClip
"cam"Frame 10Symbol 517 MovieClip
"tracks"Frame 11Symbol 554 MovieClip
"cam"Frame 11Symbol 517 MovieClip
"tracks"Frame 12Symbol 559 MovieClip
"m2l"Frame 12Symbol 549 MovieClip
"m1l"Frame 12Symbol 549 MovieClip
"n4"Frame 12Symbol 424 MovieClip
"n5"Frame 12Symbol 424 MovieClip
"n6"Frame 12Symbol 424 MovieClip
"n11"Frame 12Symbol 424 MovieClip
"n12"Frame 12Symbol 424 MovieClip
"n13"Frame 12Symbol 424 MovieClip
"n14"Frame 12Symbol 424 MovieClip
"n15"Frame 12Symbol 424 MovieClip
"n16"Frame 12Symbol 424 MovieClip
"n17"Frame 12Symbol 424 MovieClip
"n18"Frame 12Symbol 424 MovieClip
"n19"Frame 12Symbol 424 MovieClip
"n20"Frame 12Symbol 424 MovieClip
"n21"Frame 12Symbol 424 MovieClip
"n22"Frame 12Symbol 424 MovieClip
"cam"Frame 12Symbol 517 MovieClip
"tracks"Frame 13Symbol 346 MovieClip
"skider"Frame 13Symbol 275 MovieClip
"car"Frame 13Symbol 423 MovieClip
"car1"Frame 13Symbol 423 MovieClip
"car2"Frame 13Symbol 423 MovieClip
"car3"Frame 13Symbol 423 MovieClip
"n1"Frame 13Symbol 424 MovieClip
"n2"Frame 13Symbol 424 MovieClip
"n3"Frame 13Symbol 424 MovieClip
"n7"Frame 13Symbol 424 MovieClip
"n6"Frame 13Symbol 424 MovieClip
"n5"Frame 13Symbol 424 MovieClip
"n8"Frame 13Symbol 424 MovieClip
"n4"Frame 13Symbol 424 MovieClip
"n9"Frame 13Symbol 424 MovieClip
"n10"Frame 13Symbol 424 MovieClip
"cam"Frame 13Symbol 517 MovieClip
"tracks"Frame 14Symbol 522 MovieClip
"car"Frame 14Symbol 423 MovieClip
"car1"Frame 14Symbol 423 MovieClip
"car2"Frame 14Symbol 423 MovieClip
"car3"Frame 14Symbol 423 MovieClip
"cam"Frame 14Symbol 517 MovieClip
"tracks"Frame 15Symbol 530 MovieClip
"car"Frame 15Symbol 423 MovieClip
"cam"Frame 15Symbol 517 MovieClip
"tracks"Frame 16Symbol 535 MovieClip
"cam"Frame 16Symbol 517 MovieClip
"tracks"Frame 17Symbol 540 MovieClip
"yea"Frame 17Symbol 348 MovieClip
"tele1"Frame 17Symbol 143 MovieClip
"tele2"Frame 17Symbol 143 MovieClip
"tele3"Frame 17Symbol 143 MovieClip
"tele4"Frame 17Symbol 143 MovieClip
"tele5"Frame 17Symbol 143 MovieClip
"n2"Frame 17Symbol 424 MovieClip
"n3"Frame 17Symbol 424 MovieClip
"n4"Frame 17Symbol 424 MovieClip
"n8"Frame 17Symbol 424 MovieClip
"n7"Frame 17Symbol 424 MovieClip
"n6"Frame 17Symbol 424 MovieClip
"n9"Frame 17Symbol 424 MovieClip
"n5"Frame 17Symbol 424 MovieClip
"n10"Frame 17Symbol 424 MovieClip
"cam"Frame 17Symbol 517 MovieClip
"tracks"Frame 18Symbol 545 MovieClip
"m2l"Frame 18Symbol 547 MovieClip
"m1l"Frame 18Symbol 547 MovieClip
"n1"Frame 18Symbol 424 MovieClip
"n7"Frame 18Symbol 424 MovieClip
"n6"Frame 18Symbol 424 MovieClip
"n5"Frame 18Symbol 424 MovieClip
"n8"Frame 18Symbol 424 MovieClip
"cam"Frame 18Symbol 517 MovieClip
"tracks"Frame 19Symbol 554 MovieClip
"cam"Frame 19Symbol 517 MovieClip
"tracks"Frame 20Symbol 559 MovieClip
"m2l"Frame 20Symbol 549 MovieClip
"m1l"Frame 20Symbol 549 MovieClip
"n4"Frame 20Symbol 424 MovieClip
"n5"Frame 20Symbol 424 MovieClip
"n6"Frame 20Symbol 424 MovieClip
"n11"Frame 20Symbol 424 MovieClip
"n12"Frame 20Symbol 424 MovieClip
"n13"Frame 20Symbol 424 MovieClip
"n14"Frame 20Symbol 424 MovieClip
"n15"Frame 20Symbol 424 MovieClip
"n16"Frame 20Symbol 424 MovieClip
"n17"Frame 20Symbol 424 MovieClip
"n18"Frame 20Symbol 424 MovieClip
"n19"Frame 20Symbol 424 MovieClip
"n20"Frame 20Symbol 424 MovieClip
"n21"Frame 20Symbol 424 MovieClip
"n22"Frame 20Symbol 424 MovieClip
"cam"Frame 20Symbol 517 MovieClip
"tracks"Frame 21Symbol 346 MovieClip
"skider"Frame 21Symbol 275 MovieClip
"car"Frame 21Symbol 423 MovieClip
"car1"Frame 21Symbol 423 MovieClip
"car2"Frame 21Symbol 423 MovieClip
"car3"Frame 21Symbol 423 MovieClip
"n1"Frame 21Symbol 424 MovieClip
"n2"Frame 21Symbol 424 MovieClip
"n3"Frame 21Symbol 424 MovieClip
"n7"Frame 21Symbol 424 MovieClip
"n6"Frame 21Symbol 424 MovieClip
"n5"Frame 21Symbol 424 MovieClip
"n8"Frame 21Symbol 424 MovieClip
"n4"Frame 21Symbol 424 MovieClip
"n9"Frame 21Symbol 424 MovieClip
"n10"Frame 21Symbol 424 MovieClip
"cam"Frame 21Symbol 517 MovieClip
"tracks"Frame 22Symbol 535 MovieClip
"car1"Frame 22Symbol 423 MovieClip
"car2"Frame 22Symbol 423 MovieClip
"car3"Frame 22Symbol 423 MovieClip
"cam"Frame 22Symbol 517 MovieClip
"tracks"Frame 23Symbol 530 MovieClip
"n9"Frame 23Symbol 424 MovieClip
"n10"Frame 23Symbol 424 MovieClip
"cam"Frame 23Symbol 517 MovieClip
"tracks"Frame 24Symbol 522 MovieClip
"car"Frame 24Symbol 423 MovieClip
"cam"Frame 24Symbol 517 MovieClip
"tracks"Frame 25Symbol 540 MovieClip
"yea"Frame 25Symbol 348 MovieClip
"car"Frame 25Symbol 423 MovieClip
"tele1"Frame 25Symbol 143 MovieClip
"tele2"Frame 25Symbol 143 MovieClip
"tele3"Frame 25Symbol 143 MovieClip
"tele4"Frame 25Symbol 143 MovieClip
"tele5"Frame 25Symbol 143 MovieClip
"n2"Frame 25Symbol 424 MovieClip
"n3"Frame 25Symbol 424 MovieClip
"n4"Frame 25Symbol 424 MovieClip
"n8"Frame 25Symbol 424 MovieClip
"n7"Frame 25Symbol 424 MovieClip
"n6"Frame 25Symbol 424 MovieClip
"n9"Frame 25Symbol 424 MovieClip
"n5"Frame 25Symbol 424 MovieClip
"n10"Frame 25Symbol 424 MovieClip
"cam"Frame 25Symbol 517 MovieClip
"tracks"Frame 26Symbol 545 MovieClip
"m2l"Frame 26Symbol 547 MovieClip
"m1l"Frame 26Symbol 547 MovieClip
"n1"Frame 26Symbol 424 MovieClip
"n7"Frame 26Symbol 424 MovieClip
"n6"Frame 26Symbol 424 MovieClip
"n5"Frame 26Symbol 424 MovieClip
"n8"Frame 26Symbol 424 MovieClip
"cam"Frame 26Symbol 517 MovieClip
"tracks"Frame 27Symbol 554 MovieClip
"cam"Frame 27Symbol 517 MovieClip
"tracks"Frame 28Symbol 559 MovieClip
"m2l"Frame 28Symbol 549 MovieClip
"m1l"Frame 28Symbol 549 MovieClip
"n4"Frame 28Symbol 424 MovieClip
"n5"Frame 28Symbol 424 MovieClip
"n6"Frame 28Symbol 424 MovieClip
"n11"Frame 28Symbol 424 MovieClip
"n12"Frame 28Symbol 424 MovieClip
"n13"Frame 28Symbol 424 MovieClip
"n14"Frame 28Symbol 424 MovieClip
"n15"Frame 28Symbol 424 MovieClip
"n16"Frame 28Symbol 424 MovieClip
"n17"Frame 28Symbol 424 MovieClip
"n18"Frame 28Symbol 424 MovieClip
"n19"Frame 28Symbol 424 MovieClip
"n20"Frame 28Symbol 424 MovieClip
"n21"Frame 28Symbol 424 MovieClip
"n22"Frame 28Symbol 424 MovieClip
"cam"Frame 28Symbol 517 MovieClip
"tracks"Frame 229Symbol 346 MovieClip
"skider"Frame 229Symbol 275 MovieClip
"car"Frame 229Symbol 423 MovieClip
"n1"Frame 229Symbol 424 MovieClip
"n2"Frame 229Symbol 424 MovieClip
"n3"Frame 229Symbol 424 MovieClip
"n7"Frame 229Symbol 424 MovieClip
"n6"Frame 229Symbol 424 MovieClip
"n5"Frame 229Symbol 424 MovieClip
"n8"Frame 229Symbol 424 MovieClip
"n4"Frame 229Symbol 424 MovieClip
"n9"Frame 229Symbol 424 MovieClip
"n10"Frame 229Symbol 424 MovieClip
"cam"Frame 229Symbol 517 MovieClip
"tracks"Frame 230Symbol 522 MovieClip
"car"Frame 230Symbol 423 MovieClip
"cam"Frame 230Symbol 517 MovieClip
"tracks"Frame 231Symbol 530 MovieClip
"car"Frame 231Symbol 423 MovieClip
"cam"Frame 231Symbol 517 MovieClip
"tracks"Frame 232Symbol 535 MovieClip
"n1"Frame 232Symbol 424 MovieClip
"n2"Frame 232Symbol 424 MovieClip
"n3"Frame 232Symbol 424 MovieClip
"n7"Frame 232Symbol 424 MovieClip
"n6"Frame 232Symbol 424 MovieClip
"n5"Frame 232Symbol 424 MovieClip
"n8"Frame 232Symbol 424 MovieClip
"n4"Frame 232Symbol 424 MovieClip
"cam"Frame 232Symbol 517 MovieClip
"tracks"Frame 233Symbol 540 MovieClip
"yea"Frame 233Symbol 348 MovieClip
"tele1"Frame 233Symbol 143 MovieClip
"tele2"Frame 233Symbol 143 MovieClip
"tele3"Frame 233Symbol 143 MovieClip
"tele4"Frame 233Symbol 143 MovieClip
"tele5"Frame 233Symbol 143 MovieClip
"n2"Frame 233Symbol 424 MovieClip
"n3"Frame 233Symbol 424 MovieClip
"n4"Frame 233Symbol 424 MovieClip
"n8"Frame 233Symbol 424 MovieClip
"n7"Frame 233Symbol 424 MovieClip
"n6"Frame 233Symbol 424 MovieClip
"n9"Frame 233Symbol 424 MovieClip
"n5"Frame 233Symbol 424 MovieClip
"n10"Frame 233Symbol 424 MovieClip
"cam"Frame 233Symbol 517 MovieClip
"tracks"Frame 234Symbol 545 MovieClip
"m2l"Frame 234Symbol 547 MovieClip
"m1l"Frame 234Symbol 547 MovieClip
"n1"Frame 234Symbol 424 MovieClip
"n7"Frame 234Symbol 424 MovieClip
"n6"Frame 234Symbol 424 MovieClip
"n5"Frame 234Symbol 424 MovieClip
"n8"Frame 234Symbol 424 MovieClip
"cam"Frame 234Symbol 517 MovieClip
"tracks"Frame 235Symbol 554 MovieClip
"n10"Frame 235Symbol 424 MovieClip
"cam"Frame 235Symbol 517 MovieClip
"tracks"Frame 236Symbol 559 MovieClip
"m2l"Frame 236Symbol 549 MovieClip
"m1l"Frame 236Symbol 549 MovieClip
"n4"Frame 236Symbol 424 MovieClip
"n5"Frame 236Symbol 424 MovieClip
"n6"Frame 236Symbol 424 MovieClip
"n11"Frame 236Symbol 424 MovieClip
"n12"Frame 236Symbol 424 MovieClip
"n13"Frame 236Symbol 424 MovieClip
"n14"Frame 236Symbol 424 MovieClip
"n15"Frame 236Symbol 424 MovieClip
"n16"Frame 236Symbol 424 MovieClip
"n17"Frame 236Symbol 424 MovieClip
"n18"Frame 236Symbol 424 MovieClip
"n19"Frame 236Symbol 424 MovieClip
"n20"Frame 236Symbol 424 MovieClip
"n21"Frame 236Symbol 424 MovieClip
"n22"Frame 236Symbol 424 MovieClip
"cam"Frame 236Symbol 517 MovieClip
"tracks"Frame 238Symbol 346 MovieClip
"skider"Frame 238Symbol 275 MovieClip
"car"Frame 238Symbol 423 MovieClip
"car2"Frame 238Symbol 737 MovieClip
"n1"Frame 238Symbol 424 MovieClip
"n2"Frame 238Symbol 424 MovieClip
"n3"Frame 238Symbol 424 MovieClip
"n7"Frame 238Symbol 424 MovieClip
"n6"Frame 238Symbol 424 MovieClip
"n5"Frame 238Symbol 424 MovieClip
"n8"Frame 238Symbol 424 MovieClip
"n4"Frame 238Symbol 424 MovieClip
"n9"Frame 238Symbol 424 MovieClip
"n10"Frame 238Symbol 424 MovieClip
"cam"Frame 238Symbol 747 MovieClip
"tracks"Frame 288Symbol 346 MovieClip
"skider"Frame 288Symbol 275 MovieClip
"car"Frame 288Symbol 423 MovieClip
"n1"Frame 288Symbol 424 MovieClip
"n7"Frame 288Symbol 424 MovieClip
"n8"Frame 288Symbol 424 MovieClip
"n9"Frame 288Symbol 424 MovieClip
"cam"Frame 288Symbol 792 MovieClip
"ba1"Frame 289Symbol 737 MovieClip
"ba2"Frame 289Symbol 737 MovieClip
"ba3"Frame 289Symbol 737 MovieClip
"ba5"Frame 289Symbol 737 MovieClip
"ba4"Frame 289Symbol 737 MovieClip
"ba6"Frame 289Symbol 737 MovieClip
"ba7"Frame 289Symbol 737 MovieClip
"ba8"Frame 289Symbol 737 MovieClip
"ba9"Frame 289Symbol 737 MovieClip
"ba10"Frame 289Symbol 737 MovieClip
"ba11"Frame 289Symbol 737 MovieClip
"ba12"Frame 289Symbol 737 MovieClip
"ba13"Frame 289Symbol 737 MovieClip
"ba14"Frame 289Symbol 737 MovieClip
"ba16"Frame 289Symbol 737 MovieClip
"ba17"Frame 289Symbol 737 MovieClip
"ba15"Frame 289Symbol 737 MovieClip
"ba18"Frame 289Symbol 737 MovieClip
"ba19"Frame 289Symbol 737 MovieClip
"ba20"Frame 289Symbol 737 MovieClip
"ba21"Frame 289Symbol 737 MovieClip
"ba22"Frame 289Symbol 737 MovieClip
"ba24"Frame 289Symbol 737 MovieClip
"ba26"Frame 289Symbol 737 MovieClip
"ba25"Frame 289Symbol 737 MovieClip
"ba23"Frame 289Symbol 737 MovieClip
"ba27"Frame 289Symbol 737 MovieClip
"ba29"Frame 289Symbol 737 MovieClip
"ba28"Frame 289Symbol 737 MovieClip
"car"Frame 289Symbol 423 MovieClip
"cam"Frame 289Symbol 801 MovieClip
"tracks"Frame 290Symbol 540 MovieClip
"yea"Frame 290Symbol 348 MovieClip
"car"Frame 290Symbol 423 MovieClip
"n3"Frame 290Symbol 424 MovieClip
"n4"Frame 290Symbol 424 MovieClip
"n7"Frame 290Symbol 424 MovieClip
"n6"Frame 290Symbol 424 MovieClip
"n5"Frame 290Symbol 424 MovieClip
"n10"Frame 290Symbol 424 MovieClip
"n1"Frame 290Symbol 424 MovieClip
"cam"Frame 290Symbol 810 MovieClip
"tracks"Frame 291Symbol 545 MovieClip
"m2l"Frame 291Symbol 547 MovieClip
"m1l"Frame 291Symbol 547 MovieClip
"n6"Frame 291Symbol 424 MovieClip
"n5"Frame 291Symbol 424 MovieClip
"n8"Frame 291Symbol 424 MovieClip
"cam"Frame 291Symbol 810 MovieClip
"thingy"Frame 1793Symbol 880 MovieClip
"thingy"Frame 1794Symbol 884 MovieClip
"pre"Frame 1795Symbol 918 MovieClip
"nimpo"Frame 1795Symbol 921 MovieClip
"loadbar"Symbol 170 MovieClip Frame 1Symbol 82 MovieClip
"desc"Symbol 310 MovieClip Frame 1Symbol 301 EditableText
"pressd"Symbol 310 MovieClip Frame 1Symbol 302 EditableText
"action"Symbol 311 MovieClip Frame 1Symbol 310 MovieClip
"wep"Symbol 376 MovieClip Frame 2Symbol 117 MovieClip
"wep"Symbol 376 MovieClip Frame 5Symbol 371 MovieClip
"car"Symbol 423 MovieClip Frame 1Symbol 365 MovieClip
"weapons"Symbol 423 MovieClip Frame 1Symbol 376 MovieClip
"car"Symbol 423 MovieClip Frame 2Symbol 388 MovieClip
"car"Symbol 423 MovieClip Frame 3Symbol 396 MovieClip
"head"Symbol 461 MovieClip Frame 1Symbol 457 MovieClip
"quote"Symbol 461 MovieClip Frame 1Symbol 459 EditableText
"posi"Symbol 517 MovieClip Frame 1Symbol 490 EditableText
"needle"Symbol 517 MovieClip Frame 1Symbol 510 MovieClip
"needle"Symbol 517 MovieClip Frame 1Symbol 510 MovieClip
"needle"Symbol 517 MovieClip Frame 1Symbol 513 MovieClip
"posi"Symbol 747 MovieClip Frame 1Symbol 738 EditableText
"needle"Symbol 747 MovieClip Frame 1Symbol 510 MovieClip
"needle"Symbol 747 MovieClip Frame 1Symbol 510 MovieClip
"needle"Symbol 747 MovieClip Frame 1Symbol 513 MovieClip
"tutorial"Symbol 747 MovieClip Frame 1Symbol 746 EditableText
"posi"Symbol 792 MovieClip Frame 1Symbol 784 EditableText
"needle"Symbol 792 MovieClip Frame 1Symbol 510 MovieClip
"needle"Symbol 792 MovieClip Frame 1Symbol 510 MovieClip
"needle"Symbol 792 MovieClip Frame 1Symbol 513 MovieClip
"cctext"Symbol 792 MovieClip Frame 1Symbol 791 EditableText
"posi"Symbol 801 MovieClip Frame 1Symbol 793 EditableText
"needle"Symbol 801 MovieClip Frame 1Symbol 510 MovieClip
"needle"Symbol 801 MovieClip Frame 1Symbol 510 MovieClip
"needle"Symbol 801 MovieClip Frame 1Symbol 513 MovieClip
"cctext"Symbol 801 MovieClip Frame 1Symbol 800 EditableText
"posi"Symbol 810 MovieClip Frame 1Symbol 802 EditableText
"needle"Symbol 810 MovieClip Frame 1Symbol 510 MovieClip
"needle"Symbol 810 MovieClip Frame 1Symbol 510 MovieClip
"needle"Symbol 810 MovieClip Frame 1Symbol 513 MovieClip
"cctext"Symbol 810 MovieClip Frame 1Symbol 809 EditableText
"cc1"Symbol 871 MovieClip Frame 1Symbol 864 EditableText
"cc2"Symbol 871 MovieClip Frame 1Symbol 865 EditableText
"cc3"Symbol 871 MovieClip Frame 1Symbol 866 EditableText
"cc4"Symbol 871 MovieClip Frame 1Symbol 867 EditableText
"tracks"Symbol 880 MovieClip Frame 1Symbol 855 MovieClip
"box1"Symbol 880 MovieClip Frame 1Symbol 871 MovieClip
"box2"Symbol 880 MovieClip Frame 1Symbol 879 MovieClip
"tracks"Symbol 884 MovieClip Frame 1Symbol 855 MovieClip
"box1"Symbol 884 MovieClip Frame 1Symbol 871 MovieClip
"box2"Symbol 884 MovieClip Frame 1Symbol 879 MovieClip
"bitch"Symbol 918 MovieClip Frame 1Symbol 916 MovieClip
"info"Symbol 921 MovieClip Frame 1Symbol 920 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "loop8"
ExportAssets (56)Timeline Frame 1Symbol 2 as "loop7"
ExportAssets (56)Timeline Frame 1Symbol 3 as "loop6"
ExportAssets (56)Timeline Frame 1Symbol 4 as "loop5"
ExportAssets (56)Timeline Frame 1Symbol 5 as "loop4"
ExportAssets (56)Timeline Frame 1Symbol 6 as "loop3"
ExportAssets (56)Timeline Frame 1Symbol 7 as "loop2"
ExportAssets (56)Timeline Frame 1Symbol 8 as "loop1"
ExportAssets (56)Timeline Frame 1Symbol 20 as "Smoke"
ExportAssets (56)Timeline Frame 1Symbol 28 as "glue"
ExportAssets (56)Timeline Frame 1Symbol 36 as "oil"
ExportAssets (56)Timeline Frame 1Symbol 39 as "skid"
ExportAssets (56)Timeline Frame 1Symbol 41 as "bullet"
ExportAssets (56)Timeline Frame 1Symbol 59 as "mine"
ExportAssets (56)Timeline Frame 1Symbol 73 as "homing"
ExportAssets (56)Timeline Frame 1Symbol 998 as "__Packages.pldmcrypt"

Labels

"map1"Frame 5
"map2"Frame 6
"map4"Frame 7
"map3"Frame 8
"map5"Frame 9
"map6"Frame 10
"map7"Frame 11
"map8"Frame 12
"gpmap1"Frame 13
"gpmap2"Frame 14
"gpmap3"Frame 15
"gpmap4"Frame 16
"gpmap5"Frame 17
"gpmap6"Frame 18
"gpmap7"Frame 19
"gpmap8"Frame 20
"ss1"Frame 21
"ss2"Frame 22
"ss3"Frame 23
"ss4"Frame 24
"ss5"Frame 25
"ss6"Frame 26
"ss7"Frame 27
"ss8"Frame 28
"gameover"Frame 29
"storyBegin"Frame 30
"levelfinished"Frame 31
"gppoints"Frame 227
"ttmap1"Frame 229
"ttmap2"Frame 230
"ttmap4"Frame 231
"ttmap3"Frame 232
"ttmap5"Frame 233
"ttmap6"Frame 234
"ttmap7"Frame 235
"ttmap8"Frame 236
"submit"Frame 237
"tutorial"Frame 238
"trophies"Frame 239
"gpEnd"Frame 240
"challenge1"Frame 288
"challenge3"Frame 289
"challenge2"Frame 290
"challenge4"Frame 291
"chalcomp"Frame 292
"credits"Frame 293
"selectfr"Frame 1793
"selecttt"Frame 1794
"selectch"Frame 1795
"intro"Frame 1796
"endintro"Frame 2442

Dynamic Text Variables

_root.cartext3Symbol 219 EditableText"Car name"
_root.cartext2Symbol 220 EditableText"Name"
_root.cartextSymbol 222 EditableText""
_root.car.lapsSymbol 506 EditableText"lap"
_root.maxlapsSymbol 508 EditableText"lap"
_root.avefpsSymbol 511 EditableText"fps"
_root.RealTimeSymbol 514 EditableText"12345"
_root.hudwepSymbol 515 EditableText""
_root.hudammSymbol 516 EditableText""
_root.finishedstSymbol 709 EditableText""
_root.tableGp1Symbol 710 EditableText""
_root.tableGp1bSymbol 711 EditableText""
_root.tableGp1cSymbol 712 EditableText""
_root.tableGp2Symbol 713 EditableText""
_root.tableGp2bSymbol 714 EditableText""
_root.tableGp2cSymbol 715 EditableText""
_root.tableGp3Symbol 716 EditableText""
_root.tableGp3bSymbol 717 EditableText""
_root.tableGp3cSymbol 718 EditableText""
_root.tableGp4Symbol 719 EditableText""
_root.tableGp4bSymbol 720 EditableText""
_root.tableGp4cSymbol 721 EditableText""
_root.stplaceSymbol 722 EditableText""
_root.scoreSymbol 726 EditableText"67.3 seg"
_root.usernameSymbol 731 EditableText"Cicla"
_root.car.lapsSymbol 739 EditableText"lap"
_root.maxlapsSymbol 740 EditableText"lap"
_root.avefpsSymbol 741 EditableText"fps"
_root.RealTimeSymbol 742 EditableText"12345"
_root.hudwepSymbol 743 EditableText""
_root.hudammSymbol 744 EditableText""
tropyexSymbol 750 EditableText""
_root.car.lapsSymbol 785 EditableText"lap"
_root.maxlapsSymbol 786 EditableText"lap"
_root.avefpsSymbol 787 EditableText"fps"
_root.RealTimeSymbol 788 EditableText"12345"
_root.hudwepSymbol 789 EditableText""
_root.hudammSymbol 790 EditableText""
_root.car.lapsSymbol 794 EditableText"lap"
_root.maxlapsSymbol 795 EditableText"lap"
_root.avefpsSymbol 796 EditableText"fps"
_root.RealTimeSymbol 797 EditableText"12345"
_root.hudwepSymbol 798 EditableText""
_root.hudammSymbol 799 EditableText""
_root.car.lapsSymbol 803 EditableText"lap"
_root.maxlapsSymbol 804 EditableText"lap"
_root.avefpsSymbol 805 EditableText"fps"
_root.RealTimeSymbol 806 EditableText"12345"
_root.hudwepSymbol 807 EditableText""
_root.hudammSymbol 808 EditableText""




http://swfchan.com/6/27791/info.shtml
Created: 21/5 -2019 04:38:15 Last modified: 21/5 -2019 04:38:15 Server time: 05/11 -2024 04:19:18