Frame 1
fscommand ("trapallkeys", 1);
fscommand ("allowscale", 0);
Stage.showMenu = false;
duplicateMovieClip ("fr", "frame", 100010);
_global.r = this;
_global.ipb_get_gname = function () {
var _loc4 = _root._url;
var _loc5 = "";
var _loc2 = "";
var _loc6 = (_loc4.lastIndexOf("\\") + 1);
if ((_loc6 == -1) || (_loc6 == 0)) {
_loc6 = _loc4.lastIndexOf("/") + 1;
}
var _loc3 = _loc6;
var _loc7 = String(_loc4).length;
while (_loc3 < String(_loc4).length) {
_loc2 = _loc4.charAt(_loc3);
if (_loc2 == ".") {
break;
}
_loc5 = _loc5 + _loc2;
_loc3++;
}
return(_loc5);
};
ipb_gname = _global.ipb_get_gname();
xx = new LoadVars();
xx.onLoad = function (success) {
if (success) {
_global.ipb_scoreVar = this.scoreVar;
}
};
fname = ((("arcade/gamedata/" + ipb_gname) + "/") + ipb_gname) + ".txt";
xx.load(fname);
Frame 2
var loadAmount = _totalframes;
onEnterFrame = function () {
if (_framesloaded == loadAmount) {
delete onEnterFrame;
r.music = 1;
r.extreme = 0;
gotoAndPlay (15);
} else {
loaded = Math.round(getBytesLoaded() / 1024);
total = Math.round(getBytesTotal() / 1024);
percent = Math.round((loaded / total) * 100);
}
};
stop();
Frame 8
MovieClip.prototype.make = function (tipe, y) {
if (!tipe) {
item = "car";
var tp = getrandom("cartipe");
var x = getrandom("slot");
if (x < 50) {
resetrandom();
x = r.slot[random(r.slot.length)];
}
if (!y) {
y = -40;
}
var ok = 1;
if (r.posnow > (r.track - 100)) {
if (p2._visible) {
var dis = Math.abs(x - p2._x);
} else {
var dis = Math.abs(x - p._x);
}
if (dis < 100) {
ok = 0;
}
}
if (r.fly > 0) {
if (r.fly < 20) {
var dis = Math.abs(x - p._x);
if (dis < 100) {
ok = 0;
}
}
}
if (ok) {
m.attachMovie(item, item + r.cd, r.cd, {_x:x, _y:y, tipe:tp});
r.cd++;
}
} else {
if (tipe == 1) {
item = "barrel";
} else if (tipe == 2) {
item = "spikesbonus";
} else if (tipe == 3) {
item = "dynamitebonus";
} else if (tipe == 6) {
item = "gunbonus";
} else if (tipe == 7) {
item = "grenadebonus";
} else if (tipe == 8) {
item = "missilebonus";
} else if (tipe == 11) {
item = "energybonus";
}
var x = getrandom("slot");
if (x < 50) {
resetrandom();
x = r.slot[random(r.slot.length)];
}
m2.attachMovie(item, "bonus", r.sd, {_x:x, _y:y});
r.sd++;
}
};
MovieClip.prototype.makeramp = function () {
var x = 330;
m.attachMovie("ramp", "ramp", r.cd, {_x:x, _y:-50});
r.cd++;
};
MovieClip.prototype.switchweapon = function (no) {
r.weapon = no;
r.wtotal = r.weaponmax[r.weapon];
r.weaponbar.play();
r.ang = r.ang + (5 * r.nil);
r.zgot.start();
};
MovieClip.prototype.oiled = function (car) {
if (!car) {
var car = p;
var o = "oil";
} else {
var o = "oil2";
}
m2.attachMovie(o, "oil" + r.sd, r.sd, {_x:car._x, _y:car._y});
r.sd++;
r.zoil.start();
};
MovieClip.prototype.shoot = function (car, tipe) {
if (!car) {
var xspeed = 30;
var ang = rad(p.a.car._rotation - 90);
} else {
var xspeed = (30 + car.xs);
var ang = rad(car.a.car._rotation - 90);
}
var yspeed = 20;
var jarak = 60;
var ang1 = (ang - 0.2);
var ang2 = (ang + 0.2);
var xs = (Math.cos(ang) * xspeed);
var ys = (Math.sin(ang) * yspeed);
if (car == p) {
if (tipe == undefined) {
var tipe = "bullet2";
r.zshotgun.start();
}
var y1 = (Math.sin(ang) * 35);
m.attachMovie(tipe, "bullet" + r.cd, r.cd, {_x:p._x + (3 * xs), _y:p._y + y1, xs:xs, ys:ys, _rotation:p.a.car._rotation - 90});
r.cd++;
} else {
var x1 = (Math.cos(ang1) * jarak);
var y1 = (Math.sin(ang1) * jarak);
var x2 = (Math.cos(ang2) * jarak);
var y2 = (Math.sin(ang2) * jarak);
m.attachMovie("bullet", "bullet" + r.cd, r.cd, {_x:car._x + x1, _y:car._y + y1, xs:xs, ys:ys, _rotation:car.a.car._rotation - 90});
r.cd++;
m.attachMovie("bullet", "bullet" + r.cd, r.cd, {_x:car._x + x2, _y:car._y + y2, xs:xs, ys:ys, _rotation:car.a.car._rotation - 90});
r.cd++;
r.zgun.start();
}
};
MovieClip.prototype.cekout = function () {
if (this._y > 570) {
r.cars.removevalue(this);
this.removeMovieClip();
}
};
MovieClip.prototype.cekoffroad = function (t) {
if ((t._x < r.xsand1) or (t._x > r.xsand2)) {
if (t.ysnormal < 20) {
t.ys = (t.ysnormal = t.ys + 5);
}
if (t.a.car._rotation > 0) {
t.a.car._rotation = -0.2;
} else {
t.a.car._rotation = 0.2;
}
t.a.car._x = -2 + random(4);
if (!t.nosfx) {
r.zsand.start();
t.nosfx = 10;
}
if (t.cop) {
if (t._x < r.xsand1) {
t.xs = t.xs + 7;
} else {
t.xs = t.xs - 7;
}
}
} else {
t.a.car._x = 0;
}
};
MovieClip.prototype.resetxs = function () {
var t = this;
if (t.xs != 0) {
t.xs = t.xs * 0.85;
if (Math.abs(t.xs) < 0.1) {
t.xs = 0;
}
}
};
MovieClip.prototype.resetys = function () {
var t = this;
if (t.ys != t.ysnormal) {
if (t.ys > t.ysnormal) {
t.ys--;
if (t.ys < t.ysnormal) {
t.ys = t.ysnormal;
}
} else {
t.ys++;
if (t.ys > t.ysnormal) {
t.ys = t.ysnormal;
}
}
}
};
MovieClip.prototype.resetrotate = function () {
var t = this;
if (t.a.car._rotation != 0) {
t.a.car._rotation = t.a.car._rotation * 0.8;
if (Math.abs(t.a.car._rotation) < 0.1) {
t.a.car._rotation = 0;
}
}
};
MovieClip.prototype.cekfront = function (me) {
var t = this;
var car = false;
var i = (r.cars.length - 1);
while (i >= 0) {
var it = r.cars[i];
if (it != t) {
if (it._y < t._y) {
if (t.z.hitTest(it.a.c)) {
car = it;
break;
}
}
}
i--;
}
if (car) {
t.ys = (t.ysnormal = t.ys + 2);
} else if (t.ysnormal > t.ysnormalstart) {
t.ysnormal = t.ysnormal - 1;
}
};
MovieClip.prototype.cekcoll = function () {
var t = this;
var car = false;
var i = (r.cars.length - 1);
while (i >= 0) {
var it = r.cars[i];
if (it != t) {
if (t.a.c.hitTest(it.a.c)) {
car = it;
break;
}
}
i--;
}
if (car) {
if (car._x < t._x) {
t.nx = ((car._x - t.halfwid) - car.halfwid) - 10;
} else {
t.nx = ((car._x + t.halfwid) + car.halfwid) + 10;
}
t.xs = Math.max(t.xsbounce, Math.abs(0.5 * car.xs));
if (t.nx > t._x) {
t.xs = -t.xs;
}
car.xs = -0.3 * car.xs;
if (car._y > t._y) {
car.ys = 5;
t.xs = t.xs * 1.6;
if (car == p) {
t.ys = -2;
}
}
t.nx = t._x + t.xs;
if (car._y > t._y) {
t.a.car._rotation = -1.5 * t.xs;
} else {
t.a.car._rotation = 1.5 * t.xs;
}
if (r.music) {
if (!t.nosfx) {
t.zcrash.start();
if (random(100) > 50) {
t.zhorn.start();
}
t.nosfx = 5;
}
}
if (car == p) {
car.lasthit = t;
car.hitdelay = 6;
if (!r.inv) {
r.inv = r.invhitdelay;
r.energy = r.energy - r.energyless;
}
}
}
return(car);
};
MovieClip.prototype.skidding = function () {
r.skidtime++;
if (p.a.car._rotation < 0) {
var xska = -100;
var skidtonow = 2;
} else {
var xska = 100;
var skidtonow = 1;
}
if (r.skidto > 0) {
if (r.skidto != skidtonow) {
r.skidtime = -2;
r.skidto = 0;
}
} else {
r.skidto = skidtonow;
}
if (r.skidtime > 2) {
m2.attachMovie("skid", "skid" + r.sd, r.sd, {_y:p._y, _x:p._x, _xscale:xska});
r.sd++;
if (!this.nosfx) {
r.zskid.start();
this.nosfx = 10;
}
}
};
MovieClip.prototype.copcekzone = function (zone) {
var t = this;
var i = (r.cars.length - 1);
while (i >= 1) {
var it = r.cars[i];
if (it != t) {
if (it._y < t._y) {
if (zone.hitTest(it.a.c)) {
return(it);
}
}
}
i--;
}
return(0);
};
MovieClip.prototype.findmove = function (n) {
var z = this["z" + n];
var move = n;
var i = (r.cars.length - 1);
while (i >= 1) {
if (it != t) {
var it = r.cars[i];
if (it.a.c.hitTest(z)) {
return(0);
}
}
i--;
}
return(move);
};
movieclip.prototype.getrandom = function (aray) {
if (r.randomlisting.length > 0) {
var reg = 0;
var i = 0;
while (i < r.randomlisting.length) {
if (r.randomlisting[i] == aray) {
reg = 1;
break;
}
i++;
}
if (!reg) {
r.randomlisting.push(aray);
}
} else {
r.randomlisting = [];
r.randomlisting.push(aray);
}
if (r[aray + "getrandom"].length <= 0) {
r[aray + "getrandom"] = [];
r[aray + "getrandom"] = r[aray].copy();
r[aray + "getrandom"].randomize();
if (r[aray + "getrandom"].length > 1) {
if (r[aray + "lastpop"] == r[aray + "getrandom"][r[aray + "getrandom"].length - 1]) {
r[aray + "getrandom"].pop();
}
}
}
var value = r[aray + "getrandom"].pop();
r[aray + "lastpop"] = value;
return(value);
};
MovieClip.prototype.resetrandom = function () {
if (r.randomlisting.length > 0) {
var i = 0;
while (i < r.randomlisting.length) {
r[r.randomlisting[i] + "getrandom"] = [];
r[r.randomlisting[i] + "lastpop"] = undefined;
i++;
}
}
};
movieclip.prototype.ceklimits = function () {
this.nx = Math.max(this.nx, r.xmin);
this.nx = Math.min(this.nx, r.xmax);
this.ny = Math.max(this.ny, r.ymin);
this.ny = Math.min(this.ny, r.ymax);
};
MovieClip.prototype.jiggle = function (beginska) {
var t = this;
if (!beginska) {
beginska = 150;
}
t._xscale = (t._yscale = beginska);
t.ska = 100;
t.dx = 0;
t.dy = 0;
t.dv = 0.9;
t.dvstep = 0.6;
t.onenterframe = function () {
t.dx = (t.dx * t.dvstep) + ((t.ska - t._xscale) * t.dv);
t.dy = (t.dy * t.dvstep) + ((t.ska - t._yscale) * t.dv);
t._xscale = t._xscale + t.dx;
t._yscale = t._yscale + (t.dy * 1.5);
};
};
Array.prototype.removeElement = function (i) {
if (i == null) {
i = 0;
}
var r = this[i];
var j = i;
while (j < (this.length - 1)) {
this[j] = this[j + 1];
j++;
}
this.pop();
return(r);
};
Array.prototype.removeValue = function (a) {
var i = 0;
while (i < this.length) {
if (a == this[i]) {
this.removeElement(i);
}
i++;
}
};
Array.prototype.randomize = function () {
return(this.sort(function (a, b) {
return(((Math.floor(Math.random() * 2) == 0) ? 1 : -1));
}));
};
Array.prototype.copy = Array.prototype.slice;
Object.prototype.clone = function () {
if (this instanceof Array) {
var to = [];
var i = 0;
while (i < this.length) {
to[i] = ((typeof(this[i]) == "object") ? (this[i].clone()) : (this[i]));
i++;
}
} else if ((this instanceof XML) || (this instanceof MovieClip)) {
var to = null;
trace("Warning! Object.clone can not be used on MovieClip or XML objects");
} else {
var to = {};
for (var i in this) {
to[i] = ((typeof(this[i]) == "object") ? (this[i].clone()) : (this[i]));
}
}
return(to);
};
ASSetPropFlags(Object.prototype, ["clone"], 1);
Movieclip.prototype.fadescreen = function (speed) {
if (!speed) {
var speed = 5;
}
r.createEmptyMovieClip("dark", 100001);
var d = r.dark;
with (d) {
lineStyle(1, 0, 100);
beginfill(16777215, 100);
moveto(-5000, -5000);
lineto(5000, -5000);
lineto(5000, 5000);
lineto(-5000, 5000);
endfill();
d.onEnterFrame = function () {
_alpha = _alpha - speed;
if (_alpha <= 0) {
removeMovieClip("");
stop();
}
};
}
};
Movieclip.prototype.findang = function (dx, dy) {
return(deg(math.atan2(dy, dx)));
};
Movieclip.prototype.rad = function (qdeg) {
return(qdeg * (Math.PI/180));
};
Movieclip.prototype.deg = function (qrad) {
return(qrad * 57.2957795130823);
};
Color.prototype.setBrightness = function (value) {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0});
var trans = this.getTransform();
var percent = (Math.abs(value) / 100);
var brightnessColor = ((value > 0) ? 255 : 0);
with (trans) {
ra = ra - (ra * percent);
ga = ga - (ga * percent);
ba = ba - (ba * percent);
rb = rb + ((brightnessColor - rb) * percent);
gb = gb + ((brightnessColor - gb) * percent);
bb = bb + ((brightnessColor - bb) * percent);
}
this.setTransform(trans);
};
Color.prototype.resetcolor = function () {
this.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0});
};
Sound.prototype.fade = function (fadeType, fadeDuration) {
this.fadeDuration = (fadeDuration * 1000) / 100;
this.fadeType = fadeType;
this.currentVolume = this.getVolume();
this.intID = setInterval(function (thisObj) {
thisObj.doFade(thisObj.fadeType);
}, this.fadeDuration, this);
this.doFade = function (fadeType) {
if (fadeType == "out") {
this.setVolume(this.currentVolume--);
if (this.getVolume() <= 0) {
clearInterval(this.intID);
}
} else if (fadetype == "in") {
this.setVolume(this.currentVolume++);
if (this.getVolume() >= 100) {
clearInterval(this.intID);
}
}
};
};
movieclip.prototype.wait = function (delay) {
this.createEmptyMovieClip("wdl", 55555);
this.wdl.delay = delay;
this.wdl.onenterframe = function () {
this.delay--;
if (!this.delay) {
delete this.onenterframe;
this._parent.play();
this.removeMovieClip();
}
};
this.stop();
};
MovieClip.prototype.savecookie = function (vari, value) {
var so = SharedObject.getLocal("lazcookie", "/");
so.data[vari] = value;
so.flush();
};
MovieClip.prototype.loadcookie = function (vari) {
var so = SharedObject.getLocal("lazcookie", "/");
if (so.data[vari] != null) {
return(so.data[vari]);
}
return(false);
};
Frame 15
call("pro");
fadescreen(8);
stopAllSounds();
stop();
Frame 22
call("pro");
fadescreen(8);
stop();
Frame 28
delete onEnterFrame;
call("pro");
fadescreen(10);
_global.m = this.map;
_global.m2 = this.map2;
_global.p = m.player;
if (!level) {
level = 1;
ang = 0;
}
cars = [];
cop = [];
cars.push(p);
levelmax = 10;
oildamage = 25;
fly = 0;
flytime = 40;
rampnext = 400;
rampspacing = 250;
udafly = 0;
if ((((level == 1) or (level == 3)) or (level == 5)) or (level == 7)) {
yesramp = 1;
} else {
yesramp = 0;
}
tracklen = [0, 1250, 1250, 1300, 1300, 1500, 1500, 1650, 1650, 1750, 1750];
track = tracklen[level];
coptop = [0, 1, 0, 1, 0, 2, 0, 2, 0, 3, 0];
copbottom = [0, 0, 1, 0, 1, 0, 2, 0, 2, 0, 3];
if ((level / 2) != Math.floor(level / 2)) {
weapon = (weaponstandard = 6);
} else {
weapon = (weaponstandard = 1);
}
if ((level == 1) or (level == 2)) {
bottomcopshootdelay = [75];
topcopshootdelay = [40];
trafficardelay = 20;
} else if ((level == 3) or (level == 4)) {
bottomcopshootdelay = [50];
topcopshootdelay = [28];
trafficardelay = 20;
} else if ((level == 5) or (level == 6)) {
bottomcopshootdelay = [80, 170];
topcopshootdelay = [50, 85];
trafficardelay = 24;
} else if ((level == 7) or (level == 8)) {
bottomcopshootdelay = [71, 151];
topcopshootdelay = [40, 70];
trafficardelay = 24;
} else if ((level == 9) or (level == 10)) {
bottomcopshootdelay = [71, 151, 45];
topcopshootdelay = [35, 70, 90];
trafficardelay = 28;
}
totalcops = coptop[level];
if (totalcops == 1) {
m.attachMovie("coptop", "coptop1", 101, {_x:-1000, _y:-500, shootdelay:topcopshootdelay[0]});
} else if (totalcops == 2) {
m.attachMovie("coptop", "coptop1", 101, {_x:-1000, _y:-500, shootdelay:topcopshootdelay[0]});
m.attachMovie("coptop", "coptop2", 102, {_x:1000, _y:-500, shootdelay:topcopshootdelay[1], waitdelay:70});
} else if (totalcops == 3) {
m.attachMovie("coptop", "coptop1", 101, {_x:-1000, _y:-500, shootdelay:topcopshootdelay[0]});
m.attachMovie("coptop", "coptop2", 102, {_x:1000, _y:-500, shootdelay:topcopshootdelay[1], waitdelay:70});
m.attachMovie("coptop", "coptop3", 103, {_x:2000, _y:-500, shootdelay:topcopshootdelay[2], waitdelay:110});
}
totalcops = copbottom[level];
if (totalcops == 1) {
m.attachMovie("copbottom", "copbottom1", 101, {_x:327, _y:800, shootdelay:bottomcopshootdelay[0]});
} else if (totalcops == 2) {
m.attachMovie("copbottom", "copbottom1", 101, {_x:280, _y:800, shootdelay:bottomcopshootdelay[0]});
m.attachMovie("copbottom", "copbottom2", 102, {_x:380, _y:900, shootdelay:bottomcopshootdelay[1], waitdelay:80});
} else if (totalcops == 3) {
m.attachMovie("copbottom", "copbottom1", 101, {_x:270, _y:800, shootdelay:bottomcopshootdelay[0]});
m.attachMovie("copbottom", "copbottom2", 102, {_x:390, _y:900, shootdelay:bottomcopshootdelay[1], waitdelay:80});
m.attachMovie("copbottom", "copbottom3", 103, {_x:330, _y:1000, shootdelay:bottomcopshootdelay[2], waitdelay:160});
}
if (level < 3) {
bonusweapon = [weaponstandard];
m.copbottom1.ysmax = -8;
} else if (level == 3) {
bonusweapon = [7];
} else if (level == 4) {
bonusweapon = [2];
m.copbottom1.ysmax = -12;
} else if (level == 5) {
bonusweapon = [7];
m.coptop1.yn = 50;
m.coptop2.yn = 100;
m.coptop2.range = 3;
m.coptop2.speed = 0.2;
} else if (level == 6) {
bonusweapon = [2];
m.copbottom1.ysmax = -4;
m.copbottom2.ysmax = -12;
} else if (level == 7) {
bonusweapon = [8];
m.coptop1.yn = 50;
m.coptop2.yn = 100;
m.coptop2.range = 3;
m.coptop2.speed = 0.2;
} else if (level == 8) {
bonusweapon = [3];
m.copbottom1.ysmax = -6;
m.copbottom2.ysmax = -16;
} else if (level == 9) {
bonusweapon = [7, 8];
m.coptop1.yn = 50;
m.coptop2.yn = 90;
m.coptop2.yn = 120;
m.coptop2.range = 3;
m.coptop2.speed = 0.2;
m.coptop3.range = 2.5;
m.coptop3.speed = 0.5;
} else if (level == 10) {
bonusweapon = [2, 3];
m.copbottom1.ysmax = -4;
m.copbottom2.ysmax = -12;
m.copbottom3.ysmax = -20;
}
if (r.extreme) {
track = Math.floor(1.25 * track);
m.copbottom1.ysmax = m.copbottom1.ysmax * 2;
m.copbottom2.ysmax = m.copbottom2.ysmax * 2;
m.copbottom3.ysmax = m.copbottom3.ysmax * 2;
if (r.level > 4) {
var i = 1;
while (i <= 3) {
m["copbottom" + i].shootdelay = Math.floor(0.3 * m["copbottom" + i].shootdelay);
m["coptop" + i].shootdelay = Math.floor(0.5 * m["coptop" + i].shootdelay);
i++;
}
} else {
m.copbottom1.shootdelay = Math.floor(0.1 * m.copbottom1.shootdelay);
m.coptop1.shootdelay = Math.floor(0.3 * m.coptop1.shootdelay);
}
oildamage = Math.floor(0.8 * oildamage);
}
weaponmax = [0, 5, 3, 3, 0, 0, 5, 3, 3];
wtotal = weaponmax[weapon];
energyless = 3;
cartipe = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18];
carhitsfx = ["", "zcrash1", "zcrash1", "zcrash1", "zcrash1", "zcrash1", "zcrash1", "zcrash4", "zcrash3", "zcrash2", "zcrash1", "zcrash2", "zcrash4", "zcrash3", "zcrash3", "zcrash1", "zcrash1", "zcrash1", "zcrash1"];
carhorn = ["", "zhorn1", "zhorn1", "zhorn1", "zhorn1", "zhorn1", "zhorn1", "zhorn2", "zhorn4", "zhorn5", "zhorn3", "zhorn4", "zhorn2", "zhorn4", "zhorn4", "zhorn1", "zhorn5", "zhorn5", "zhorn1"];
slot = [174, 226, 278, 330, 382, 434, 486];
bgspeed = (bgspeednormal = 33);
posnow = 0;
carspeed = 8;
nil = 100;
hit = 0;
ymin = 150;
ymax = 500;
xmin = 150;
xmax = 510;
xsand1 = 140;
xsand2 = 520;
skidto = 0;
skidtime = 0;
energy = (energymax = 100);
inv = 0;
invhitdelay = 20;
cd = 1000;
od = (odelay = 70);
dd = (ddelay = 2);
ed = (edelay = 3);
sd = 100;
d = 10;
finish = 0;
win = 0;
bullets = [];
if (!beginx) {
beginx = 330;
}
resetrandom();
r.attachMovie("levelinfo", "levelinfo", 100, {_x:330, _y:250});
if (!udamusic) {
udamusic = 1;
r.createEmptyMovieClip("sfx", 60001);
allsfx = ["zrocket", "zgrenade", "zspikes", "zshotgun", "zramp", "zbomb", "zdynamite", "zgot", "zbonus", "znone", "zoil", "zexplode", "zgun", "zhit", "zhorn1", "zhorn2", "zhorn3", "zhorn4", "zhorn5", "zbullet1", "zbullet2", "zbullet3", "zbullet4", "zbonus", "zcrash1", "zcrash2", "zcrash3", "zcrash4", "zcrash5", "zengine", "zhit2", "zhole", "zhorn1", "zhorn2", "zsand", "zskid", "zskid2"];
var i = 0;
while (i < allsfx.length) {
r[allsfx[i]] = new sound(sfx);
r[allsfx[i]].attachsound(allsfx[i]);
i++;
}
r.createEmptyMovieClip("sfx2", 60002);
r.zloop = new sound(sfx2);
r.zloop.attachsound("zloop");
r.zloop.setVolume(100);
r.zloop.start(0, 99999);
}
if (!music) {
r.zloop.setVolume(0);
r.zbonus.setVolume(0);
}
onEnterFrame = function () {
d--;
if (d < 0) {
d = trafficardelay;
make(0);
if (random(100) > 50) {
make(0, -100);
}
}
od--;
if (!od) {
od = odelay;
if (r.posnow < (r.track - 50)) {
ed--;
if (!ed) {
edelay++;
ed = edelay;
make(11);
} else if ((r.weapon == r.weaponstandard) or (r.wtotal <= 0)) {
dd--;
if (!dd) {
dd = ddelay + random(2);
bweapon = getrandom("bonusweapon");
make(bweapon);
} else {
make(weaponstandard);
}
}
}
}
if (r.inv > 0) {
r.inv--;
}
r.posnow++;
if (r.posnow >= r.track) {
r.win = 1;
}
if (r.yesramp) {
if (!r.udafly) {
if (r.posnow < (r.track - 200)) {
if (r.posnow > r.rampnext) {
r.rampnext = r.rampnext + r.rampspacing;
makeramp();
}
}
}
}
if (r.fly > 0) {
r.fly--;
r.posnow++;
if (r.fly > 20) {
r.d = r.d - 2;
}
}
};
stop();
Frame 29
delete onEnterFrame;
fadescreen(8);
stop();
Frame 35
delete onEnterFrame;
r.ang = r.ang + 1000;
r.level++;
if (r.level > r.levelmax) {
gotoAndPlay (41);
} else {
gotoAndPlay (28);
}
Frame 41
delete onEnterFrame;
fadescreen(8);
stop();
Frame 47
delete onEnterFrame;
fadescreen(8);
stop();
Symbol 4 MovieClip Frame 1
onenterframe = function () {
_xscale = _parent.percent;
};
stop();
Symbol 589 MovieClip Frame 1
if (yy.savescore == 1) {
if (ipb_score == undefined) {
ipb_score = eval (_global.ipb_scoreVar);
}
xx = new LoadVars();
xx.arcadegid = _root.ibpro_gameid;
xx.gscore = ipb_score;
xx.gname = _global.ipb_get_gname();
xx.enscore = (ipb_score * yy.randchar) ^ yy.randchar2;
xx.send("index.php?autocom=arcade&do=savescore", "_self", "POST");
stop();
}
_global.ipbSend = function (ipb_score) {
_root._visible = false;
_root.enabled = false;
xx = new LoadVars();
yy = new LoadVars();
xx.sendAndLoad("index.php?autocom=arcade&do=verifyscore", yy, "POST");
};
Symbol 1 MovieClip [fadeout] Frame 1
vs = 5;
vol = r.zloop.getVolume();
if (vol > 0) {
onenterframe = function () {
vol = vol - vs;
if (vs > 0.5) {
vs = 0.95 * vs;
}
r.zloop.setVolume(vol);
if (vol <= 0) {
r.zloop.stop();
delete onenterframe;
}
};
}
Symbol 54 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 1
_visible = 0;
Symbol 58 MovieClip Frame 1
_visible = 0;
Symbol 64 MovieClip Frame 1
gotoAndStop(1 + random(_totalframes));
Symbol 72 MovieClip Frame 1
gotoAndStop(1 + random(_totalframes));
Symbol 81 MovieClip Frame 1
gotoAndStop(1 + random(_totalframes));
Symbol 89 MovieClip Frame 1
gotoAndStop(1 + random(_totalframes));
Symbol 95 MovieClip Frame 1
gotoAndStop(1 + random(_totalframes));
Symbol 100 MovieClip Frame 1
gotoAndStop(1 + random(_totalframes));
Symbol 107 MovieClip Frame 1
gotoAndStop(1 + random(_totalframes));
Symbol 117 MovieClip Frame 1
gotoAndStop(1 + random(_totalframes));
Symbol 125 MovieClip Frame 1
gotoAndStop(1 + random(_totalframes));
Symbol 133 MovieClip Frame 1
gotoAndStop(1 + random(_totalframes));
Symbol 141 MovieClip Frame 1
gotoAndStop(1 + random(_totalframes));
Symbol 150 MovieClip Frame 1
gotoAndStop(1 + random(_totalframes));
Symbol 153 MovieClip Frame 1
gotoAndStop(_parent.tipe);
Symbol 154 MovieClip [car] Frame 1
r.cars.push(this);
zcrash = new sound();
zcrash.attachsound(r.carhitsfx[tipe]);
zhorn = new sound();
zhorn.attachsound(r.carhorn[tipe]);
if ((r.cars.length / 2) == Math.round(r.cars.length / 2)) {
cektime = 1;
} else {
cektime = 0;
}
cekfr = 1;
xsbounce = 5;
halfwid = _width / 2;
halfhei = _height / 2;
xs = 0;
ys = (ysnormal = (ysnormalstart = r.carspeed + (random(60) / 10)));
onEnterFrame = function () {
ny = _y + ys;
nx = _x + xs;
cekfr = !cekfr;
if (cekfr == cektime) {
cekfront();
}
cekcoll();
_y = ny;
_x = nx;
resetxs();
resetys();
resetrotate();
cekoffroad(this);
cekout();
if (nosfx > 0) {
nosfx--;
}
};
stop();
Symbol 156 MovieClip [skid] Frame 1
onEnterFrame = function () {
_y = (_y + r.bgspeed);
if (_y > 520) {
this.removeMovieClip();
}
};
stop();
Symbol 161 MovieClip [bullet] Frame 1
r.bullets.push(this);
xmin = 0;
xmax = 660;
ymin = 0;
onEnterFrame = function () {
_x = (_x + xs);
_y = (_y + ys);
var i = 0;
while (i < r.cars.length) {
var it = r.cars[i];
if (it != cop) {
if (it.a.c.hitTest(this)) {
if (it == p) {
r.energy = r.energy - (r.energyless * 2);
}
delete onEnterFrame;
gotoAndPlay (2);
break;
}
}
i++;
}
if (((_x < xmin) or (_x > xmax)) or (_y < ymin)) {
r.bullets.removevalue(this);
this.removeMovieClip();
}
};
stop();
Symbol 161 MovieClip [bullet] Frame 2
_rotation = random(360);
if (r.music) {
r["zbullet" + (1 + random(4))].start();
}
Symbol 161 MovieClip [bullet] Frame 3
_rotation = random(360);
Symbol 161 MovieClip [bullet] Frame 4
r.bullets.removevalue(this);
this.removeMovieClip();
Symbol 164 MovieClip Frame 1
_visible = 0;
Symbol 165 MovieClip [oil] Frame 1
cophit = [0];
var i = 1;
while (i <= r.totalcops) {
cophit.push(0);
i++;
}
onEnterFrame = function () {
_y = (_y + r.bgspeed);
var i = 0;
while (i < r.cop.length) {
var it = r.cop[i];
if ((!cophit[i]) and (!it.zigzag)) {
if (z.hitTest(it.a.c)) {
it.energy = it.energy - r.oildamage;
cophit[i] = 1;
r.ang = r.ang + r.nil;
}
}
i++;
}
if (_y > 550) {
this.removeMovieClip();
}
};
stop();
Symbol 169 MovieClip [billboard] Frame 1
onEnterFrame = function () {
_y = (_y + r.bgspeed);
if (_y > 660) {
this.removeMovieClip();
}
};
gotoAndStop(1 + random(_totalframes));
Symbol 173 MovieClip [explight] Frame 1
onEnterFrame = function () {
_alpha = (40 + random(60));
ska = 70 + random(30);
_yscale = ska;
_xscale = ska;
_y = (_y + 10);
};
Symbol 173 MovieClip [explight] Frame 7
this.removeMovieClip();
Symbol 180 MovieClip [barrel] Frame 1
onEnterFrame = function () {
_y = (_y + (r.bgspeed / 3));
if (z.hitTest(p.a.c)) {
switchweapon(1);
this.removeMovieClip();
}
if (_y > 550) {
this.removeMovieClip();
}
};
stop();
Symbol 185 MovieClip [energybonus] Frame 1
onEnterFrame = function () {
_y = (_y + (r.bgspeed / 3));
if (r.energy > 0) {
if (z.hitTest(p.a.c)) {
r.energy = r.energymax;
r.ang = r.ang + (5 * r.nil);
r.zbonus.start();
r.energybar.frame.gotoAndPlay(2);
this.removeMovieClip();
}
}
if (_y > 550) {
this.removeMovieClip();
}
};
stop();
Symbol 189 MovieClip Frame 1
_visible = 0;
Symbol 189 MovieClip Frame 7
stop();
Symbol 198 MovieClip Frame 13
stop();
Symbol 199 MovieClip [explosion] Frame 1
cophit = [0];
var i = 1;
while (i <= r.totalcops) {
cophit.push(0);
i++;
}
power = 20;
d = 12;
onEnterFrame = function () {
_y = (_y + r.bgspeed);
var i = 0;
while (i < r.cop.length) {
var it = r.cop[i];
if ((!cophit[i]) and (!it.zigzag)) {
if (z.hitTest(it._x, it._y, 1)) {
it.energy = it.energy - damage;
cophit[i] = 1;
r.ang = r.ang + (3 * r.nil);
}
}
i++;
}
d--;
if ((d > 7) and (d < 10)) {
var i = 1;
while (i < r.cars.length) {
var it = r.cars[i];
if (z.hitTest(it._x, it._y, 1)) {
radius = (z._width / 2) + 5;
dx = it._x - _x;
dy = it._y - _y;
ang = Math.atan2(dy, dx);
dis = Math.sqrt((dx * dx) + (dy * dy));
power = Math.min(radius - dis, 15);
vx = Math.cos(ang) * power;
vy = Math.sin(ang) * power;
if (vx < 0) {
vx = Math.min(vx, -10);
} else {
vx = Math.max(vx, 10);
}
it.xs = it.xs + vx;
it.ys = it.ys + (vy / 2);
it.a.car._rotation = vx * 3;
}
i++;
}
}
if (!d) {
this.removeMovieClip();
}
};
stop();
Symbol 210 MovieClip [dynamite] Frame 1
_rotation = random(360);
ro = 10;
onEnterFrame = function () {
_rotation = (_rotation + ro);
ro = ro * 0.8;
_y = (_y + r.bgspeed);
};
Symbol 210 MovieClip [dynamite] Frame 4
r.zbomb.start();
m.attachMovie("explosion", "explosion" + r.cd, r.cd, {_x:_x, _y:_y, damage:4 * r.oildamage});
r.cd++;
stop();
Symbol 217 MovieClip [spikesbonus] Frame 1
onEnterFrame = function () {
_y = (_y + (r.bgspeed / 3));
if (z.hitTest(p.a.c)) {
switchweapon(2);
this.removeMovieClip();
}
if (_y > 550) {
this.removeMovieClip();
}
};
stop();
Symbol 219 MovieClip Frame 1
_visible = 0;
Symbol 225 MovieClip Frame 1
onEnterFrame = function () {
if (_parent._parent._parent.brake) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 228 MovieClip [copbottom] Frame 1
cop = 1;
r.cars.push(this);
r.cop.push(this);
gotoAndPlay (20);
Symbol 228 MovieClip [copbottom] Frame 2
var t = this;
_y = 600;
_x = getrandom("slot");
zcrash = new sound();
zcrash.attachsound("zcrash5");
halfwid = _width / 2;
halfhei = _height / 2;
xs = 0;
ys = -2;
ysa = 0.3;
nxs = xs;
nobrake = 0;
xsbounce = 5;
xsmax = 14;
if (!ysmax) {
ysmax = -2;
}
ymin = 0;
ymax = 540;
xsd1 = r.xsand1 - 60;
xsd2 = r.xsand2 + 60;
energy = (energynow = 100);
if (!shootdelay) {
shootdelay = 50;
}
sd = shootdelay;
onEnterFrame = function () {
col = cekcoll();
if (col == p) {
if (p._x > _x) {
p.xs = p.xs + 8;
} else {
p.xs = p.xs - 8;
}
p.hitdelay = 9;
r.energy = r.energy - r.energyless;
}
ys = Math.max(ys - 0.5, -5);
_y = (_y + ys);
_x = (_x + xs);
a.car._rotation = xs;
resetxs();
cekoffroad(this);
if (_y < 540) {
delete onEnterFrame;
gotoAndPlay (7);
}
};
stop();
Symbol 228 MovieClip [copbottom] Frame 7
zigzag = 0;
onEnterFrame = function () {
sd--;
if (((sd == 9) or (sd == 6)) or (sd == 3)) {
if (p._y < (_y - 80)) {
if (r.bullets.length < 3) {
if (!r.win) {
shoot(this);
}
}
}
}
if (!sd) {
sd = shootdelay + random(20);
}
var car = false;
car = copcekzone(z);
if (car) {
t.ys = (t.ysnormal = car.ys - 2);
if (p._x < _x) {
move = findmove(1);
if (!move) {
move = findmove(2);
}
} else {
move = findmove(2);
if (!move) {
move = findmove(1);
}
}
if (move == 1) {
xs = -5;
} else if (move == 2) {
xs = 5;
} else {
t.ys = (t.ysnormal = car.ys);
}
} else {
if (_y > (p._y + 200)) {
ys = ys - (0.1 + (random(10) / 10));
} else {
ys = ys + ysa;
}
dx = p._x - _x;
dx = Math.min(100, dx);
dx = Math.max(-100, dx);
dxs = dx / 20;
xs = xs + dxs;
if (xs < 0) {
xs = Math.max(-xsmax, xs);
} else {
xs = Math.min(xsmax, xs);
}
ys = Math.max(ysmax, ys);
}
col = cekcoll();
if (col == p) {
if (p._x > _x) {
p.xs = p.xs + 8;
} else {
p.xs = p.xs - 8;
}
p.hitdelay = 9;
r.energy = r.energy - r.energyless;
}
if (xs < -5) {
car = copcekzone(z3);
if (car) {
xs = xs + 7;
}
} else if (xs > 5) {
car = copcekzone(z4);
if (car) {
xs = xs + -7;
}
}
if (_y > (p._y + 60)) {
nxs = xs + ((nxs - xs) / 1.5);
} else {
nxs = xs;
}
if (ys > 5) {
brake = 1;
} else {
brake = 0;
}
ny = _y + ys;
nx = _x + nxs;
nx = Math.max(xsd1, nx);
nx = Math.min(xsd2, nx);
_y = ny;
_x = nx;
a.car._rotation = a.car._rotation + ((nxs - a.car._rotation) / 1.2);
resetxs();
cekoffroad(this);
if (_y > ymax) {
_y = ymax;
ys = (ysnormal = -1);
} else if (_y < ymin) {
_y = ymin;
ys = (ysnormal = 1);
}
if (nosfx > 0) {
nosfx--;
}
if (nobrake > 0) {
nobrake--;
}
if (energy != energynow) {
energynow = energy;
delete onEnterFrame;
gotoAndPlay (14);
}
};
stop();
Symbol 228 MovieClip [copbottom] Frame 14
d = (delay = 6);
dx = 100;
if (random(100) > 50) {
dx = -100;
}
sx = _x;
x = sx + dx;
ys = 0;
vy = 0.05;
if (energy > 0) {
ym = 540;
} else {
ym = 600;
}
zigzag = 1;
r.zskid2.start();
wait = 30;
onEnterFrame = function () {
d--;
if (!d) {
d = delay;
dx = -dx;
dx = dx * 0.75;
x = sx + dx;
}
dx = x - _x;
dxs = dx / 20;
xs = xs + dxs;
if (vy < 1) {
vy = vy + 0.1;
}
ys = Math.max(ys + vy, 10);
col = cekcoll();
if (col == p) {
if (p._x > _x) {
p.xs = p.xs + 8;
} else {
p.xs = p.xs - 8;
}
p.hitdelay = 9;
r.energy = r.energy - r.energyless;
}
_y = (_y + ys);
_x = (_x + xs);
a.car._rotation = xs * 2.5;
resetxs();
cekoffroad(this);
if (wait > 0) {
wait--;
}
if (_y > ym) {
_y = ym;
if (energy <= 0) {
r.ang = r.ang + (r.nil * 10);
r.zexplode.start();
m.attachMovie("explight", "explight", r.cd, {_x:_x, _y:528});
r.cd++;
zigzag = 0;
delete onEnterFrame;
gotoAndPlay (20);
} else if (!wait) {
zigzag = 0;
delete onEnterFrame;
gotoAndPlay (7);
}
}
};
stop();
Symbol 228 MovieClip [copbottom] Frame 20
if (!waitdelay) {
waitdelay = 30 + random(30);
}
onEnterFrame = function () {
waitdelay--;
if (!waitdelay) {
if (!r.win) {
delete onEnterFrame;
gotoAndPlay (2);
}
}
};
stop();
Symbol 232 MovieClip Frame 1
a = "LEVEL " + r.level;
Symbol 234 MovieClip [levelinfo] Frame 1
jiggle();
Symbol 234 MovieClip [levelinfo] Frame 50
this.removeMovieClip();
stop();
Symbol 241 MovieClip [gunbonus] Frame 1
onEnterFrame = function () {
_y = (_y + (r.bgspeed / 3));
if (z.hitTest(p.a.c)) {
switchweapon(6);
this.removeMovieClip();
}
if (_y > 550) {
this.removeMovieClip();
}
};
stop();
Symbol 248 MovieClip [bullet2] Frame 1
r.bullets.push(this);
xmin = 0;
xmax = 660;
ymin = 0;
onEnterFrame = function () {
_x = (_x + xs);
_y = (_y + ys);
var i = 1;
while (i < r.cars.length) {
var it = r.cars[i];
if (it.a.c.hitTest(this)) {
if (it.cop) {
it.energy = it.energy - r.oildamage;
r.ang = r.ang + r.nil;
}
delete onEnterFrame;
gotoAndPlay (2);
break;
}
i++;
}
if (((_x < xmin) or (_x > xmax)) or (_y < ymin)) {
r.bullets.removevalue(this);
this.removeMovieClip();
}
};
stop();
Symbol 248 MovieClip [bullet2] Frame 2
_rotation = random(360);
if (r.music) {
r["zbullet" + (1 + random(4))].start();
}
Symbol 248 MovieClip [bullet2] Frame 3
_rotation = random(360);
Symbol 248 MovieClip [bullet2] Frame 4
r.bullets.removevalue(this);
this.removeMovieClip();
Symbol 249 MovieClip [oil2] Frame 1
hitp = 0;
onEnterFrame = function () {
_y = (_y + r.bgspeed);
if (!hitp) {
if (z.hitTest(p.a.c)) {
hitp = 1;
r.energy = r.energy - (r.energyless * 5);
r.hit = 1;
}
}
if (_y > 550) {
this.removeMovieClip();
}
};
stop();
Symbol 250 MovieClip [coptop] Frame 1
cop = 1;
r.cars.push(this);
r.cop.push(this);
gotoAndPlay (20);
Symbol 250 MovieClip [coptop] Frame 2
var t = this;
_y = -60;
_x = getrandom("slot");
zcrash = new sound();
zcrash.attachsound("zcrash5");
halfwid = _width / 2;
halfhei = _height / 2;
xs = 0;
ys = 24;
grav = -1.5;
nxs = xs;
nobrake = 0;
xsbounce = 5;
xsmax = 14;
if (!yn) {
yn = 60;
}
if (!range) {
range = 4;
}
if (!speed) {
speed = 0.3;
}
ylimit = yn + 100;
ymax = 600;
xsd1 = r.xsand1;
xsd2 = r.xsand2;
energy = (energynow = 100);
if (!shootdelay) {
shootdelay = 30;
}
sd = shootdelay;
onEnterFrame = function () {
col = cekcoll();
if (col == p) {
if (p._x > _x) {
p.xs = p.xs + 8;
} else {
p.xs = p.xs - 8;
}
p.hitdelay = 9;
r.energy = r.energy - r.energyless;
}
ys = ys + grav;
_y = (_y + ys);
_x = (_x + xs);
a.car._rotation = xs;
resetxs();
if (ys > 5) {
brake = 1;
} else {
brake = 0;
}
if (ys < 0) {
if (_y < yn) {
_y = yn;
starty = _y;
ys = -range;
delete onEnterFrame;
gotoAndPlay (7);
}
}
};
stop();
Symbol 250 MovieClip [coptop] Frame 7
zigzag = 0;
ny = _y;
onEnterFrame = function () {
sd--;
if (!sd) {
if (p._y > (_y + 40)) {
if (!r.win) {
oiled(this);
}
}
}
if (!sd) {
sd = shootdelay + random(10);
}
dx = p._x - _x;
dx = Math.min(100, dx);
dx = Math.max(-100, dx);
dxs = dx / 20;
xs = xs + dxs;
if (xs < 0) {
xs = Math.max(-xsmax, xs);
} else {
xs = Math.min(xsmax, xs);
}
col = cekcoll();
if (col == p) {
if (p._x > _x) {
p.xs = p.xs + 8;
} else {
p.xs = p.xs - 8;
}
p.hitdelay = 9;
r.energy = r.energy - r.energyless;
}
if (xs < -5) {
car = copcekzone(z3);
if (car) {
xs = 0;
}
} else if (xs > 5) {
car = copcekzone(z4);
if (car) {
xs = 0;
}
}
if (_y < (p._y + 60)) {
nxs = xs + ((nxs - xs) / 1.5);
} else {
nxs = xs;
}
ny = ny + ys;
nx = _x + nxs;
nx = Math.max(xsd1, nx);
nx = Math.min(xsd2, nx);
if (_y > starty) {
ys = Math.max(ys - speed, -range);
} else {
ys = Math.min(ys + speed, range);
}
ny = Math.min(ylimit, ny);
_x = nx;
_y = ny;
a.car._rotation = a.car._rotation + ((nxs - a.car._rotation) / 1.2);
resetxs();
if (nosfx > 0) {
nosfx--;
}
if (energy != energynow) {
energynow = energy;
delete onEnterFrame;
gotoAndPlay (14);
}
};
stop();
Symbol 250 MovieClip [coptop] Frame 14
if (_y < starty) {
_y = (starty + 2);
}
d = (delay = 6);
dx = 100;
if (random(100) > 50) {
dx = -100;
}
sx = _x;
x = sx + dx;
zigzag = 1;
r.zskid2.start();
yys = 10;
if (energy > 0) {
grav = -1;
} else {
grav = 1.5;
}
onEnterFrame = function () {
d--;
if (!d) {
d = delay;
dx = -dx;
dx = dx * 0.75;
x = sx + dx;
}
dx = x - _x;
dxs = dx / 20;
xs = xs + dxs;
if (vy < 1) {
vy = vy + 0.1;
}
yys = yys + grav;
col = cekcoll();
if (col == p) {
if (p._x > _x) {
p.xs = p.xs + 8;
} else {
p.xs = p.xs - 8;
}
p.hitdelay = 9;
r.energy = r.energy - r.energyless;
}
_x = (_x + xs);
_y = (_y + yys);
a.car._rotation = xs * 2.5;
resetxs();
if (_y < starty) {
_y = starty;
ys = -range;
zigzag = 0;
delete onEnterFrame;
gotoAndPlay (7);
} else if (_y > ymax) {
r.ang = r.ang + (r.nil * 10);
r.zexplode.start();
m.attachMovie("explight", "explight", r.cd, {_x:_x, _y:528});
r.cd++;
zigzag = 0;
delete onEnterFrame;
gotoAndPlay (20);
}
};
stop();
Symbol 250 MovieClip [coptop] Frame 20
if (waitdelay <= 0) {
waitdelay = 40 + random(40);
}
onEnterFrame = function () {
waitdelay--;
if (waitdelay < 0) {
if ((!r.win) and (!r.fly)) {
delete onEnterFrame;
gotoAndPlay (2);
}
}
};
stop();
Symbol 257 MovieClip [missile] Frame 1
r.bullets.push(this);
xmin = 0;
xmax = 660;
ymin = 0;
onEnterFrame = function () {
_x = (_x + xs);
_y = (_y + ys);
var i = 1;
while (i < r.cars.length) {
var it = r.cars[i];
if (it.a.c.hitTest(this)) {
if (it.cop) {
r.zbomb.start();
m.attachMovie("explosion", "explosion" + r.cd, r.cd, {_x:_x + (3 * xs), _y:_y + (3 * ys), damage:4 * r.oildamage});
r.cd++;
r.bullets.removevalue(this);
this.removeMovieClip();
}
}
i++;
}
if (((_x < xmin) or (_x > xmax)) or (_y < ymin)) {
r.bullets.removevalue(this);
this.removeMovieClip();
}
};
stop();
Symbol 259 MovieClip [missilebonus] Frame 1
onEnterFrame = function () {
_y = (_y + (r.bgspeed / 3));
if (z.hitTest(p.a.c)) {
switchweapon(8);
this.removeMovieClip();
}
if (_y > 550) {
this.removeMovieClip();
}
};
stop();
Symbol 263 MovieClip [grenadebonus] Frame 1
onEnterFrame = function () {
_y = (_y + (r.bgspeed / 3));
if (z.hitTest(p.a.c)) {
switchweapon(7);
this.removeMovieClip();
}
if (_y > 550) {
this.removeMovieClip();
}
};
stop();
Symbol 264 MovieClip Frame 13
stop();
Symbol 265 MovieClip [grenade] Frame 1
r.bullets.push(this);
xmin = 0;
xmax = 660;
ymin = 0;
d = 13;
onEnterFrame = function () {
_x = (_x + xs);
_y = (_y + ys);
d--;
if (!d) {
r.zgrenade.start();
m.attachMovie("explosion", "explosion" + r.cd, r.cd, {_x:_x + (3 * xs), _y:_y + (3 * ys), damage:2 * r.oildamage});
r.cd++;
r.bullets.removevalue(this);
this.removeMovieClip();
}
};
stop();
Symbol 266 MovieClip Frame 1
_visible = 0;
Symbol 270 MovieClip Frame 1
gotoAndStop(1 + random(_totalframes));
Symbol 272 MovieClip [spikes] Frame 1
total = 20;
var i = 0;
while (i < total) {
a.duplicateMovieClip("a" + i, i + 100, {_x:-60 + random(120), _y:random(55), _rotation:random(360)});
i++;
}
cophit = [0];
var i = 1;
while (i <= r.totalcops) {
cophit.push(0);
i++;
}
onEnterFrame = function () {
_y = (_y + r.bgspeed);
var i = 0;
while (i < r.cop.length) {
var it = r.cop[i];
if ((!cophit[i]) and (!it.zigzag)) {
if (z.hitTest(it.a.c)) {
it.energy = it.energy - (2 * r.oildamage);
cophit[i] = 1;
r.ang = r.ang + r.nil;
}
}
i++;
}
if (_y > 550) {
this.removeMovieClip();
}
};
stop();
Symbol 274 MovieClip [dynamitebonus] Frame 1
onEnterFrame = function () {
_y = (_y + (r.bgspeed / 3));
if (z.hitTest(p.a.c)) {
switchweapon(3);
this.removeMovieClip();
}
if (_y > 550) {
this.removeMovieClip();
}
};
stop();
Symbol 276 MovieClip Frame 1
_visible = 0;
Symbol 285 MovieClip [ramp] Frame 1
poss = [188, 282, 376, 470];
this.swapDepths(2);
n = 0;
flip = 1;
d = 200;
onEnterFrame = function () {
_x = poss[n];
ok = 1;
if (z.hitTest(m2.bonus)) {
ok = 0;
}
var i = 1;
while (i < r.cars.length) {
if (z.hitTest(r.cars[i])) {
ok = 0;
break;
}
i++;
}
if (ok) {
r.d = r.d + 10;
nextFrame();
play();
} else {
n++;
if (n >= poss.length) {
n = 0;
}
if (flip) {
r.d++;
flip = !flip;
}
d--;
if (d < 0) {
this.removeMovieClip();
}
}
};
stop();
Symbol 285 MovieClip [ramp] Frame 2
onEnterFrame = function () {
_y = (_y + (0.7 * r.bgspeed));
if (!r.fly) {
if (z.hitTest(p.a.c)) {
r.fly = r.flytime;
r.udafly = 1;
r.ang = r.ang + (5 * r.nil);
}
}
var i = 1;
while (i < r.cars.length) {
if (ramp.hitTest(r.cars[i].a.car)) {
var car = r.cars[i];
if (car._x > _x) {
car.xs = car.xs + 8;
} else {
car.xs = car.xs + -8;
}
}
i++;
}
if (_y > 570) {
this.removeMovieClip();
}
};
stop();
Symbol 323 Button
on (release) {
r.gotoAndStop("ins");
}
Symbol 329 Button
on (release) {
nextFrame();
stop();
}
Symbol 344 Button
on (release) {
r.gotoAndPlay("start");
}
Symbol 347 MovieClip Frame 1
stop();
Symbol 357 MovieClip Frame 1
duplicateMovieClip ("pic", "pic2", 2);
hei = pic._height;
pic2._y = hei;
starty = _y;
onenterframe = function () {
ny = _y + r.bgspeed;
if (ny > starty) {
ny = ny - hei;
if (random(100) > 70) {
m2.attachMovie("billboard", "billboard" + r.sd, r.sd);
r.sd++;
}
}
_y = ny;
};
Symbol 360 MovieClip Frame 1
_visible = 0;
Symbol 364 MovieClip Frame 1
onEnterFrame = function () {
if (_parent._parent._parent.brake) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
Symbol 384 MovieClip Frame 40
stop();
Symbol 385 MovieClip Frame 38
stop();
Symbol 386 MovieClip Frame 1
stop();
Symbol 389 MovieClip Frame 1
p._x = r.beginx;
d = 20;
div = 8;
onEnterFrame = function () {
nx = r._xmouse;
ny = r._ymouse;
nx = Math.max(nx, r.xmin);
nx = Math.min(nx, r.xmax);
ny = Math.min(ny, r.ymax);
ny = Math.max(ny, r.ymin);
nx = p._x + ((nx - p._x) / div);
ny = p._y + ((ny - p._y) / div);
p.xs = nx - p._x;
p._x = nx;
p._y = ny;
p.a.car._rotation = p.xs;
d--;
if (!d) {
gotoAndPlay (5);
}
};
stop();
Symbol 389 MovieClip Frame 5
p.gotoAndStop("run");
p.swapDepths(11);
xspeed = 20;
yspeed = 8;
p.hitdelay = 0;
p.lasthit = "";
div = (divnormal = 4);
nosfx = 0;
noclick = 1;
onMouseDown = function () {
if ((!fly) and (!noclick)) {
noclick = 3;
if (r.wtotal > 0) {
r.wtotal--;
if (r.weapon == 1) {
oiled();
} else if (r.weapon == 6) {
shoot(p);
} else if (r.weapon == 7) {
shoot(p, "grenade");
} else if (r.weapon == 8) {
shoot(p, "missile");
r.zrocket.start();
} else if (r.weapon == 2) {
m2.attachMovie("spikes", "spikes" + r.sd, r.sd, {_x:p._x, _y:p._y});
r.sd++;
r.zspikes.start();
} else if (r.weapon == 3) {
m2.attachMovie("dynamite", "dynamite" + r.sd, r.sd, {_x:p._x, _y:p._y});
r.sd++;
r.zdynamite.start();
}
r.weaponbar.bar.bar.gotoAndPlay(1);
} else {
r.znone.start();
r.weaponbar.icon.gotoAndPlay(2);
}
}
};
onenterframe = function () {
nx = r._xmouse;
ny = r._ymouse;
nx = Math.max(nx, r.xmin);
nx = Math.min(nx, r.xmax);
ny = Math.min(ny, r.ymax);
ny = Math.max(ny, r.ymin);
nx = p._x + ((nx - p._x) / div);
ny = p._y + ((ny - p._y) / div);
if (!p.hitdelay) {
p.xs = nx - p._x;
p.ys = ny - p._y;
if (div > divnormal) {
div = div - 2;
}
} else {
r._xmouse = p._x;
r._ymouse = p._y;
div = 30;
}
if (p.xs > xspeed) {
p.xs = xspeed;
skidding();
} else if (p.xs < (-xspeed)) {
p.xs = -xspeed;
skidding();
} else {
r.skidtime = 0;
r.skidto = 0;
}
if (p.ys > (yspeed * 3)) {
p.ys = yspeed * 3;
} else if (p.ys < (-yspeed)) {
p.ys = -yspeed;
}
if (p.ys > 5) {
p.brake = 1;
} else {
p.brake = 0;
}
nx = p._x + p.xs;
ny = p._y + p.ys;
ny = Math.min(ny, 560);
p._x = nx;
p._y = ny;
p.a.car._rotation = p.xs;
if (p.hitdelay > 0) {
p.hitdelay = p.hitdelay - 2;
if (p.hitdelay <= 0) {
p.hitdelay = 0;
p.lasthit = "";
}
}
cekoffroad(p);
if (nosfx > 0) {
nosfx--;
}
if (noclick > 0) {
noclick--;
}
if (r.win) {
delete onEnterFrame;
gotoAndPlay (22);
} else if (r.hit or (r.energy <= 0)) {
delete onEnterFrame;
gotoAndPlay (11);
} else if (r.fly) {
delete onEnterFrame;
gotoAndPlay (27);
}
};
stop();
Symbol 389 MovieClip Frame 11
d = (delay = 6);
dx = 60;
if (random(100) > 50) {
dx = -60;
}
sx = _x;
x = sx + dx;
p.ys = 0;
vy = 0.05;
die = 0;
if (r.energy <= 0) {
die = 1;
ym = 600;
var i = 0;
while (i < r.cop.length) {
r.cop[i].sd = 9999;
i++;
}
} else {
ym = r.ymax;
}
r.zskid2.start();
onEnterFrame = function () {
d--;
if (!d) {
d = delay;
dx = -dx;
dx = dx * 0.9;
x = sx + dx;
}
dx = x - _x;
dxs = dx / 20;
p.xs = p.xs + dxs;
if (vy < 1) {
vy = vy + 0.1;
}
p.ys = Math.max(p.ys + vy, 10);
p._x = p._x + p.xs;
p._y = p._y + p.ys;
p.a.car._rotation = p.xs * 2;
if (p.xs != 0) {
p.xs = p.xs * 0.85;
if (Math.abs(p.xs) < 0.1) {
p.xs = 0;
}
}
if (r.fly) {
if (!die) {
delete onEnterFrame;
gotoAndPlay (27);
}
}
if (p._y > ym) {
if (die) {
p._visible = 0;
r.zexplode.start();
m.attachMovie("explight", "explight", r.cd, {_x:p._x, _y:528});
r.cd++;
delete onEnterFrame;
play();
} else {
r.hit = 0;
if (r.energy <= 0) {
r.energy = 1;
}
delete onEnterFrame;
gotoAndPlay (5);
}
}
};
stop();
Symbol 389 MovieClip Frame 21
m.attachMovie("dummy", "dummy", r.cd, {_x:264, _y:-300});
r.cd++;
_global.p = m.dummy;
var i = 0;
while (i < r.cop.length) {
r.cop[i].ymin = -500;
i++;
}
d = 60;
onEnterFrame = function () {
d--;
if (!d) {
r.gotoAndPlay("lose");
delete onEnterFrame;
}
};
stop();
Symbol 389 MovieClip Frame 22
delete onMouseDown;
if (p._x < 330) {
dx = p._x + 120;
} else {
dx = p._x - 120;
}
m.attachMovie("dummy", "dummy", r.cd, {_x:dx, _y:p._y + 100});
r.cd++;
_global.p = m.dummy;
_global.p2 = m.player;
var i = 0;
while (i < r.cop.length) {
r.cop[i].sd = 9999;
i++;
}
ys = -1;
p2.brake = 0;
onEnterFrame = function () {
ys = Math.max(ys - 0.5, -20);
p2._y = p2._y + ys;
p2._x = p2._x + xs;
p2.a.car._rotation = xs * 2;
resetxs();
if (p2._y < -200) {
r.beginx = p2._x;
delete onEnterFrame;
r.gotoAndPlay("win");
}
};
stop();
Symbol 389 MovieClip Frame 27
p.gotoAndStop("fly");
p.swapDepths(22000);
r.bgspeed = 3 * r.bgspeednormal;
r.zramp.start();
var i = 0;
while (i < r.cars.length) {
if (r.cars[i].cop) {
r.cars[i].gotoAndStop("wait");
}
i++;
}
onEnterFrame = function () {
if (p._y < 400) {
p._y = p._y + 3;
}
var i = 0;
while (i < r.cars.length) {
r.cars[i].ys = 3 * r.cars[i].ysnormal;
if (r.cars[i].cop) {
r.cars[i]._y = r.cars[i]._y + r.bgspeed;
}
i++;
}
if (!r.fly) {
r.bgspeed = r.bgspeednormal;
var i = 0;
while (i < r.cars.length) {
r.cars[i].ys = r.cars[i].ysnormal;
if (r.cars[i].cop) {
r.cars[i].waitdelay = 80;
}
i++;
}
r.zcrash2.start();
delete onEnterFrame;
gotoAndPlay (5);
}
};
stop();
Symbol 391 MovieClip Frame 1
stop();
Symbol 397 MovieClip Frame 1
stop();
Symbol 398 MovieClip Frame 1
accel = 0.7;
convert = 0.5;
bar._xscale = r.energy;
energynow = r.energy;
onenterframe = function () {
if (energynow != r.energy) {
frame.gotoAndPlay(2);
bg.gotoAndPlay(2);
energynow = r.energy;
}
xs = (xs * accel) + ((r.energy - bar._xscale) * convert);
bar._xscale = bar._xscale + xs;
if (r.energy <= 0) {
bar._xscale = 0;
}
};
gotoAndStop(r.energysize);
Symbol 403 Button
on (keyPress "m") {
r.music = 0;
r.zloop.setVolume(0);
r.zbonus.setVolume(0);
gotoAndStop (2);
}
on (keyPress "M") {
r.music = 0;
r.zloop.setVolume(0);
r.zbonus.setVolume(0);
gotoAndStop (2);
}
Symbol 407 Button
on (keyPress "m") {
r.music = 1;
r.zloop.setVolume(100);
r.zbonus.setVolume(100);
gotoAndStop (1);
}
on (keyPress "M") {
r.music = 1;
r.zloop.setVolume(100);
r.zbonus.setVolume(100);
gotoAndStop (1);
}
Symbol 408 MovieClip Frame 1
if (r.music) {
stop();
} else {
gotoAndStop (2);
}
Symbol 419 MovieClip Frame 1
wid = 240;
onEnterFrame = function () {
tic._x = Math.min(wid, (r.posnow / r.track) * wid);
};
stop();
Symbol 422 MovieClip Frame 4
stop();
Symbol 425 MovieClip Frame 1
gotoAndStop(7 - r.wtotal);
Symbol 428 MovieClip Frame 1
gotoAndStop(5 - r.wtotal);
Symbol 429 MovieClip Frame 1
gotoAndStop(r.weapon);
Symbol 437 MovieClip Frame 1
gotoAndStop(r.weapon);
Symbol 438 MovieClip Frame 1
stop();
Symbol 438 MovieClip Frame 6
gotoAndStop (1);
Symbol 439 MovieClip Frame 1
stop();
Symbol 593 Button
on (release) {
_global.ipbSend();
}
Symbol 478 MovieClip Frame 58
stop();
Symbol 485 MovieClip Frame 135
stop();
Symbol 519 MovieClip Frame 1
d = 120;
onEnterFrame = function () {
d--;
if (!d) {
play();
}
};
stop();
Symbol 519 MovieClip Frame 82
stop();
Symbol 548 MovieClip Frame 181
stop();
Symbol 561 MovieClip Frame 41
stop();
Symbol 566 MovieClip Frame 96
stop();
Symbol 571 MovieClip Frame 55
stop();
Symbol 575 MovieClip Frame 1
d = 120;
onEnterFrame = function () {
d--;
if (!d) {
nextFrame();
}
};
stop();
Symbol 577 MovieClip Frame 1
d = 65;
onEnterFrame = function () {
d--;
if (!d) {
delete onEnterFrame;
nextFrame();
}
};
stop();
Symbol 577 MovieClip Frame 2
d = 125;
onEnterFrame = function () {
d--;
if (!d) {
delete onEnterFrame;
nextFrame();
}
};
stop();
Symbol 577 MovieClip Frame 3
d = 260;
onEnterFrame = function () {
d--;
if (!d) {
delete onEnterFrame;
nextFrame();
}
};
stop();
Symbol 577 MovieClip Frame 4
d = 160;
onEnterFrame = function () {
d--;
if (!d) {
delete onEnterFrame;
r.gotoAndPlay("win3");
}
};
stop();