Frame 2
function sitelock(url_to_lock) {
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
domain.text = real_domain[0];
if (real_domain[0] != url_to_lock) {
_root._alpha = 0;
}
}
mochi.as2.MochiServices.connect("3fb8ece4e1ac47fd");
Stage.showMenu = false;
Mouse.hide();
_root.fireline = 5;
var CPMStarContentSpotID = "2052QD1DEAC8B";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + CPMStarContentSpotID);
titleMusicSound = new Sound(this);
titleMusicSound.attachSound("titlemusic.mp3");
titleMusicSound.start(0, 1);
stop();
Instance of Symbol 335 MovieClip "shopactions" in Frame 2
onClipEvent (load) {
function buygun(s) {
if (_root[_root.itemtopurchase] == false) {
if (_root.grandtotal > _root.itemprice) {
if (_root.sfx) {
_root.cashSound.start(0, 0);
}
_root[_root.itemtopurchase] = true;
_root.grandtotal = _root.grandtotal - _root.itemprice;
_root.shopmc.shopmc.description = "Gun Purchased!";
_root.gun = _root.itemtopurchase;
_root.loadsave.savegame();
} else {
_root.soundholder.playBuzzerSound();
writenotice("You can't afford this, hippie! Come back when you've got some money!");
}
} else {
_root.soundholder.playBuzzerSound();
writenotice("Pay me if you want, but you already own this item.");
}
_root.shopmc.shopmc.cashlabel = "Cash: $" + _root.grandtotal;
}
function equip() {
if (_root[_root.itemtopurchase]) {
_root.gun = _root.itemtopurchase;
writenotice("Gun Equipped!");
} else {
_root.soundholder.playBuzzerSound();
writenotice("Yeah, um, you can't really equip it if you haven't bought it yet.");
}
}
function buyarmour() {
if (_root[_root.itemtopurchase] == false) {
if (_root.grandtotal > _root.itemprice) {
if (_root.sfx) {
_root.cashSound.start(0, 0);
}
_root[_root.itemtopurchase] = true;
_root.grandtotal = _root.grandtotal - _root.itemprice;
_root.shopmc.shopmc.description = "Armour Purchased!";
if (_root.itemtopurchase == "chainmail") {
if (!_root.bulletproofsuit) {
_root.maxHealth = 400;
} else {
_root.maxHealth = 600;
}
} else if (_root.itemtopurchase == "bulletproofsuit") {
_root.maxHealth = 600;
}
_root.loadsave.savegame();
} else {
_root.soundholder.playBuzzerSound();
writenotice("Armour don't grow on trees buddy, come back when you've got more cash.");
}
} else {
_root.soundholder.playBuzzerSound();
writenotice("You want another suit for weekends? You've already got this armour!");
}
_root.shopmc.shopmc.cashlabel = "Cash: $" + _root.grandtotal;
}
function buyexplosives() {
if (_root.c4enabled == false) {
if (_root.grandtotal > _root.itemprice) {
if (_root.sfx) {
_root.cashSound.start(0, 0);
}
_root.c4enabled = true;
_root.grandtotal = _root.grandtotal - _root.itemprice;
_root.shopmc.shopmc.description = "C4 Purchased!\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + "Remember, press <Enter> to make boom-boom.";
_root.loadsave.savegame();
} else {
_root.soundholder.playBuzzerSound();
writenotice("No discounts on my explosives. Get some more money. Or a job or something.");
}
} else {
_root.soundholder.playBuzzerSound();
writenotice("Sorry buddy, you can only hold one at a time.");
}
_root.shopmc.shopmc.cashlabel = "Cash: $" + _root.grandtotal;
}
function buyaccessories() {
if (_root[_root.itemtopurchase] == false) {
if (_root.grandtotal > _root.itemprice) {
if (_root.sfx) {
_root.cashSound.start(0, 0);
}
_root.grandtotal = _root.grandtotal - _root.itemprice;
_root.shopmc.shopmc.description = "Accessory Purchased!";
_root[_root.itemtopurchase] = true;
_root.ham = false;
if (_root.itemtopurchase == "nikeair") {
_root.actions.maxspeed = 7;
} else if (_root.itemtopurchase == "upgrade1") {
if (!_root.upgrade2) {
_root.cashupgrade = 1.5;
} else {
_root.cashupgrade = 2;
}
} else if (_root.itemtopurchase == "upgrade2") {
_root.cashupgrade = 2;
} else if (_root.itemtopurchase == "ham") {
writenotice("Ham Get!");
}
_root.loadsave.savegame();
} else {
_root.soundholder.playBuzzerSound();
writenotice("This ain't no stocktake sale. Get some more cash and come back when you can afford this.");
}
} else {
_root.soundholder.playBuzzerSound();
writenotice("Yo! You've already got this item!");
}
_root.shopmc.shopmc.cashlabel = "Cash: $" + _root.grandtotal;
}
function writenotice(messagetext) {
_root.attachMovie("notice", "notice", 2100);
_root.notice.noticebox.noticetext = messagetext;
_root.notice._x = 320;
_root.notice._y = 240;
}
_root.revolver = true;
_root.deserteagle = false;
_root.uzi = false;
_root.shotgun = false;
_root.ak47 = false;
_root.electricitygun = false;
_root.chainmail = false;
_root.bulletproofsuit = false;
_root.kokiri = true;
_root.nikeair = false;
_root.upgrade1 = false;
_root.upgrade2 = false;
_root.ham = false;
}
Instance of Symbol 337 MovieClip "soundholder" in Frame 2
onClipEvent (load) {
function playHoverSound() {
if (_root.sfx) {
hoverSound = new Sound(_root);
hoverSound.attachSound("hover.wav");
hoverSound.start(0, 1);
}
}
function playBuzzerSound() {
if (_root.sfx) {
buzzerSound = new Sound(_root);
buzzerSound.attachSound("buzzer.wav");
buzzerSound.start(0, 1);
}
}
function playHover2Sound() {
if (_root.sfx) {
hover2Sound = new Sound(_root);
hover2Sound.attachSound("hover2.wav");
hover2Sound.start(0, 1);
}
}
function playClickSound() {
if (_root.sfx) {
clickSound = new Sound(_root);
clickSound.attachSound("reloaded.wav");
clickSound.start(0, 1);
}
}
function playJohnnySound() {
if (_root.sfx) {
if (_root.johnnytalk <= 5) {
johnnySound = new Sound(_root);
johnnySound.attachSound("johnny" + _root.johnnytalk);
johnnySound.start(0, 1);
_root.johnnytalk++;
} else {
johnnySound = new Sound(_root);
johnnySound.attachSound("johnny6");
johnnySound.start(0, 1);
_root.johnnytalk = 1;
}
}
}
function playDeathSound() {
if (_root.sfx) {
if (_root.johnnydeathtalk <= 7) {
johnnySound = new Sound(_root);
johnnySound.attachSound(("johnnydeath" + _root.johnnydeathtalk) + ".mp3");
johnnySound.start(0, 1);
_root.johnnydeathtalk++;
} else {
johnnySound = new Sound(_root);
johnnySound.attachSound("johnnydeath8.mp3");
johnnySound.start(0, 1);
_root.johnnydeathtalk = 1;
}
}
}
}
Instance of Symbol 339 MovieClip "actions" in Frame 2
onClipEvent (load) {
_root.sfx = true;
_root.music = true;
reloadedSound = new Sound(this);
reloadedSound.attachSound("reloaded.wav");
enemySound = new Sound(this);
enemySound.attachSound("enemyguns.wav");
}
onClipEvent (enterFrame) {
function doFollow(enemy, cpuspeed) {
if (_root.alive) {
xvector = _root.player._x - enemy._x;
yvector = _root.player._y - enemy._y;
distanceFull = Math.sqrt((xvector * xvector) + (yvector * yvector));
xvector = xvector / distanceFull;
yvector = yvector / distanceFull;
if ((distanceFull > 210) & (distanceFull < 600)) {
if (enemy.wallTouch == false) {
enemy._x = enemy._x + (cpuspeed * xvector);
enemy._y = enemy._y + (cpuspeed * yvector);
enemy._rotation = (180 * Math.atan2(yvector, xvector)) / Math.PI;
tellTarget (enemy) {
nextFrame();
};
} else {
enemy._rotation = (180 * Math.atan2(yvector, xvector)) / Math.PI;
enemy._x = enemy._x - (cpuspeed * ((enemy._x - _root["check" + enemy.targ]._x) / Math.sqrt(((enemy._x - _root["check" + enemy.targ]._x) * (enemy._x - _root["check" + enemy.targ]._x)) + ((enemy._y - _root["check" + enemy.targ]._y) * (enemy._y - _root["check" + enemy.targ]._y)))));
enemy._y = enemy._y - (cpuspeed * ((enemy._y - _root["check" + enemy.targ]._y) / Math.sqrt(((enemy._x - _root["check" + enemy.targ]._x) * (enemy._x - _root["check" + enemy.targ]._x)) + ((enemy._y - _root["check" + enemy.targ]._y) * (enemy._y - _root["check" + enemy.targ]._y)))));
}
} else if (distanceFull < 100) {
enemy._x = enemy._x - (cpuspeed * xvector);
enemy._y = enemy._y - (cpuspeed * yvector);
enemy._rotation = (180 * Math.atan2(yvector, xvector)) / Math.PI;
tellTarget (enemy) {
nextFrame();
};
} else {
tellTarget (enemy) {
gotoAndPlay (1);
};
enemy._rotation = (180 * Math.atan2(yvector, xvector)) / Math.PI;
}
}
}
function enemyfire(enemy) {
if (_root.alive) {
_root.createEmptyMovieClip("laser" + _root.fireline, _root.getNextHighestDepth());
_root["laser" + _root.fireline].clear();
if (_root.sfx) {
enemySound.start(0, 0);
}
cpuRealDist = 0;
while (cpuRealDist < _root.maxDist) {
cpuEndX = enemy._x + (Math.cos(enemy._rotation * rad) * cpuRealDist);
cpuEndY = enemy._y + (Math.sin(enemy._rotation * rad) * cpuRealDist);
if (_root.land.hitTest(cpuEndX, cpuEndY, true)) {
break;
}
p = 1;
while (p < _root.pedcounter) {
if (_root["ped" + p].hitTest(cpuEndX, cpuEndY, true)) {
_root.attachMovie("deadped", "deadped" + p, 85 + p);
_root["deadped" + p]._x = cpuEndX;
_root["deadped" + p]._y = cpuEndY;
_root["deadped" + p]._rotation = random(360);
removeMovieClip(_root["ped" + p]);
cpuhitped = true;
break;
}
p++;
}
if (cpuhitped) {
cpuhitped = false;
break;
}
if (_root.player.hitTest(cpuEndX, cpuEndY, true)) {
smallboom();
_root.currentHealth = _root.currentHealth - 10;
tellTarget (_root.redhit) {
gotoAndPlay (2);
};
break;
}
cpuRealDist = cpuRealDist + _root.accuracy;
}
cpuStartX = enemy._x + (Math.cos(enemy._rotation * rad) * 30);
cpuStartY = enemy._y + (Math.sin(enemy._rotation * rad) * 30);
_root["laser" + _root.fireline].lineStyle(1, 16777215, 50);
_root["laser" + _root.fireline].moveTo(cpuEndX, cpuEndY);
_root["laser" + _root.fireline].lineTo(cpuStartX, cpuStartY);
_root.fireline++;
}
if (_root.currentHealth <= 0) {
if (_root.alive) {
_root.soundholder.playDeathSound();
_root.c4.stop();
_root.alive = false;
shake = false;
if (_root.cardeath == false) {
_root.attachMovie("deadplayer", "deadplayer", 702);
_root.deadplayer._x = _root.player._x;
_root.deadplayer._y = _root.player._y;
_root.deadplayer._rotation = _root.player._rotation - 90;
}
removeMovieClip(_root.player);
tellTarget (_root.fader) {
play();
};
i = 5;
while (i <= spawncounter) {
_root["cpu" + i].destroylines();
i++;
}
if ((_root.copskilled + _root.pedskilled) > _root.deadliestspree) {
_root.deadliestspree = _root.copskilled + _root.pedskilled;
}
if ((_root.countup / 30) > _root.longestspree) {
_root.longestspree = Math.round(10 * (_root.countup / 30)) / 10;
}
}
_root.healthbar._xscale = 0;
_root.alive = false;
}
}
function boom() {
shake = true;
time = getTimer();
this.onEnterFrame = function () {
curTime = getTimer();
dif = curTime - time;
if (dif > 700) {
_root._x = 0;
_root._y = 0;
shake = false;
delete this.onEnterFrame;
}
};
}
function smallboom() {
smallshake = true;
smalltime = getTimer();
this.onEnterFrame = function () {
smallcurTime = getTimer();
smalldif = smallcurTime - smalltime;
if (smalldif > 500) {
_root._x = 0;
_root._y = 0;
smallshake = false;
delete this.onEnterFrame;
}
};
}
if (_root.alive) {
if (Key.isDown(68)) {
if ((playerx < 2584) && (playerx > 320)) {
_root.map._x = _root.map._x - speed;
q = 5;
while (q <= spawncounter) {
_root["cpu" + q]._x = _root["cpu" + q]._x - speed;
q++;
}
q = 1;
while (q <= spawncounter) {
_root["corpse" + q]._x = _root["corpse" + q]._x - speed;
q++;
}
q = 1;
while (q <= _root.carbloodcounter) {
_root["carblood" + q]._x = _root["carblood" + q]._x - speed;
q++;
}
q = 1;
while (q <= _root.firecorpsecounter) {
_root["firecorpse" + q]._x = _root["firecorpse" + q]._x - speed;
q++;
}
_root.check1._x = _root.check1._x - speed;
_root.check2._x = _root.check2._x - speed;
_root.check3._x = _root.check3._x - speed;
_root.check4._x = _root.check4._x - speed;
_root.check5._x = _root.check5._x - speed;
_root.check6._x = _root.check6._x - speed;
_root.check7._x = _root.check7._x - speed;
_root.ped._x = _root.ped._x - speed;
_root.deadcar._x = _root.deadcar._x - speed;
_root.deadcar2._x = _root.deadcar2._x - speed;
_root.dollar._x = _root.dollar._x - speed;
_root.C4._x = _root.C4._x - speed;
_root.c4explode._x = _root.c4explode._x - speed;
_root.residue._x = _root.residue._x - speed;
f = 1;
while (f <= _root.pedcounter) {
_root["ped" + f]._x = _root["ped" + f]._x - speed;
f++;
}
f = 1;
while (f <= _root.pedcounter) {
_root["deadped" + f]._x = _root["deadped" + f]._x - speed;
f++;
}
} else {
_root.player._x = _root.player._x + speed;
}
if (Key.isDown(87)) {
setProperty(_root.player, _rotation , 45);
} else if (Key.isDown(83)) {
setProperty(_root.player, _rotation , 135);
} else {
setProperty(_root.player, _rotation , 90);
}
} else if (Key.isDown(65)) {
if ((playerx < 2584) && (playerx > 320)) {
_root.map._x = _root.map._x + speed;
p = 5;
while (p <= spawncounter) {
_root["cpu" + p]._x = _root["cpu" + p]._x + speed;
p++;
}
q = 1;
while (q <= spawncounter) {
_root["corpse" + q]._x = _root["corpse" + q]._x + speed;
q++;
}
q = 1;
while (q <= _root.carbloodcounter) {
_root["carblood" + q]._x = _root["carblood" + q]._x + speed;
q++;
}
q = 1;
while (q <= _root.firecorpsecounter) {
_root["firecorpse" + q]._x = _root["firecorpse" + q]._x + speed;
q++;
}
_root.check1._x = _root.check1._x + speed;
_root.check2._x = _root.check2._x + speed;
_root.check3._x = _root.check3._x + speed;
_root.check4._x = _root.check4._x + speed;
_root.check5._x = _root.check5._x + speed;
_root.check6._x = _root.check6._x + speed;
_root.check7._x = _root.check7._x + speed;
_root.ped._x = _root.ped._x + speed;
_root.deadcar._x = _root.deadcar._x + speed;
_root.deadcar2._x = _root.deadcar2._x + speed;
_root.dollar._x = _root.dollar._x + speed;
_root.C4._x = _root.C4._x + speed;
_root.c4explode._x = _root.c4explode._x + speed;
_root.residue._x = _root.residue._x + speed;
f = 1;
while (f <= _root.pedcounter) {
_root["ped" + f]._x = _root["ped" + f]._x + speed;
f++;
}
f = 1;
while (f <= _root.pedcounter) {
_root["deadped" + f]._x = _root["deadped" + f]._x + speed;
f++;
}
} else {
_root.player._x = _root.player._x - speed;
}
if (Key.isDown(87)) {
setProperty(_root.player, _rotation , -45);
} else if (Key.isDown(83)) {
setProperty(_root.player, _rotation , -135);
} else {
setProperty(_root.player, _rotation , -90);
}
}
if (Key.isDown(87)) {
if ((playery > 240) && (playery < 2717)) {
_root.map._y = _root.map._y + speed;
s = 5;
while (s <= spawncounter) {
_root["cpu" + s]._y = _root["cpu" + s]._y + speed;
s++;
}
q = 1;
while (q <= spawncounter) {
_root["corpse" + q]._y = _root["corpse" + q]._y + speed;
q++;
}
q = 1;
while (q <= _root.carbloodcounter) {
_root["carblood" + q]._y = _root["carblood" + q]._y + speed;
q++;
}
q = 1;
while (q <= _root.firecorpsecounter) {
_root["firecorpse" + q]._y = _root["firecorpse" + q]._y + speed;
q++;
}
_root.check1._y = _root.check1._y + speed;
_root.check2._y = _root.check2._y + speed;
_root.check3._y = _root.check3._y + speed;
_root.check4._y = _root.check4._y + speed;
_root.check5._y = _root.check5._y + speed;
_root.check6._y = _root.check6._y + speed;
_root.check7._y = _root.check7._y + speed;
_root.ped._y = _root.ped._y + speed;
_root.deadcar._y = _root.deadcar._y + speed;
_root.deadcar2._y = _root.deadcar2._y + speed;
_root.dollar._y = _root.dollar._y + speed;
_root.C4._y = _root.C4._y + speed;
_root.c4explode._y = _root.c4explode._y + speed;
_root.residue._y = _root.residue._y + speed;
f = 1;
while (f <= _root.pedcounter) {
_root["ped" + f]._y = _root["ped" + f]._y + speed;
f++;
}
f = 1;
while (f <= _root.pedcounter) {
_root["deadped" + f]._y = _root["deadped" + f]._y + speed;
f++;
}
} else {
_root.player._y = _root.player._y - speed;
}
if (Key.isDown(65) || (Key.isDown(68))) {
} else {
setProperty(_root.player, _rotation , 0);
}
} else if (Key.isDown(83)) {
if ((playery < 2717) && (playery > 240)) {
_root.map._y = _root.map._y - speed;
t = 5;
while (t <= spawncounter) {
_root["cpu" + t]._y = _root["cpu" + t]._y - speed;
t++;
}
q = 1;
while (q <= spawncounter) {
_root["corpse" + q]._y = _root["corpse" + q]._y - speed;
q++;
}
q = 1;
while (q <= _root.carbloodcounter) {
_root["carblood" + q]._y = _root["carblood" + q]._y - speed;
q++;
}
q = 1;
while (q <= _root.firecorpsecounter) {
_root["firecorpse" + q]._y = _root["firecorpse" + q]._y - speed;
q++;
}
_root.check1._y = _root.check1._y - speed;
_root.check2._y = _root.check2._y - speed;
_root.check3._y = _root.check3._y - speed;
_root.check4._y = _root.check4._y - speed;
_root.check5._y = _root.check5._y - speed;
_root.check6._y = _root.check6._y - speed;
_root.check7._y = _root.check7._y - speed;
_root.ped._y = _root.ped._y - speed;
_root.deadcar._y = _root.deadcar._y - speed;
_root.deadcar2._y = _root.deadcar2._y - speed;
_root.dollar._y = _root.dollar._y - speed;
_root.C4._y = _root.C4._y - speed;
_root.c4explode._y = _root.c4explode._y - speed;
_root.residue._y = _root.residue._y - speed;
f = 1;
while (f <= _root.pedcounter) {
_root["ped" + f]._y = _root["ped" + f]._y - speed;
f++;
}
f = 1;
while (f <= _root.pedcounter) {
_root["deadped" + f]._y = _root["deadped" + f]._y - speed;
f++;
}
} else {
_root.player._y = _root.player._y + speed;
}
if (Key.isDown(65) || (Key.isDown(68))) {
} else {
setProperty(_root.player, _rotation , 180);
}
}
}
if (_root.alive) {
if (((Key.isDown(65) || (Key.isDown(68))) || (Key.isDown(87))) || (Key.isDown(83))) {
tellTarget (_root.player) {
nextFrame();
};
} else {
tellTarget (_root.player) {
gotoAndStop (1);
};
}
}
_root.tree._x = _root.map._x + 1452;
_root.tree._y = _root.map._y + 1478;
_root.land._x = _root.map._x;
_root.land._y = _root.map._y;
_root.car._x = _root.map._x + 835;
_root.car._y = _root.map._y + 515;
_root.car2._x = _root.map._x + 2208;
_root.car2._y = _root.map._y + 525;
_root.buildings._x = _root.map._x + 1514;
_root.buildings._y = _root.map._y + 1443;
playerx = _root.player._x - _root.map._x;
playery = _root.player._y - _root.map._y;
if (_root.map._x > 0) {
_root.map._x = 0;
}
if (_root.map._y > 0) {
_root.map._y = 0;
}
if (_root.map._x < -2264) {
_root.map._x = -2264;
}
if (_root.map._y < -2477) {
_root.map._y = -2477;
}
if (_root.alive) {
var gunPoint = {x:_root.player.arm.gun._x + _root.actions.linestartx, y:_root.player.arm.gun._y + _root.actions.linestarty};
_root.player.arm.gun.localToGlobal(gunPoint);
armDist = Math.sqrt(((_root._ymouse - _root.player._y) * (_root._ymouse - _root.player._y)) + ((_root._xmouse - _root.player._x) * (_root._xmouse - _root.player._x)));
if (armDist > 95) {
shooty = (_root._ymouse - gunPoint.y) * -1;
shootx = _root._xmouse - gunPoint.x;
} else {
shooty = (_root._ymouse - _root.player._y) * -1;
shootx = _root._xmouse - _root.player._x;
}
r = Math.atan(shootx / shooty);
angle = r * 57.2957795130823;
if (shooty < 0) {
setProperty(_root.player.arm, _rotation , angle + (180 - _root.player._rotation));
} else {
setProperty(_root.player.arm, _rotation , angle - _root.player._rotation);
}
oldHead = _root.player.head._rotation;
if (_root.player.arm._rotation > 70) {
_root.player.head._rotation = 70;
} else if (_root.player.arm._rotation < -70) {
_root.player.head._rotation = -70;
} else {
_root.player.head._rotation = _root.player.arm._rotation;
}
newHead = _root.player.head._rotation;
if ((oldHead == 70) & (newHead == -70)) {
turn = 0;
while (turn < 13) {
_root.player.head._rotation = _root.player.head._rotation - 10;
turn++;
}
}
if ((oldHead == -70) & (newHead == 70)) {
turn = 0;
while (turn < 13) {
_root.player.head._rotation = _root.player.head._rotation + 10;
turn++;
}
}
}
if (_root.alive) {
if (_root.player.arm._rotation < -23) {
linestartx = -10;
linestarty = 23;
tellTarget (_root.player.arm) {
gotoAndStop (2);
};
}
if (_root.player.arm._rotation > -23) {
linestartx = 3;
linestarty = 26;
tellTarget (_root.player.arm) {
gotoAndStop (1);
};
}
if ((_root.player.arm._rotation > 153) || (_root.player.arm._rotation < -80)) {
tellTarget (_root.player.arm) {
gotoAndStop (3);
};
linestartx = 0;
linestarty = 12;
}
}
spawnCop = function () {
spawnSpot();
duplicateMovieClip (_root["cpu" + (random(_root.coptype) + 1)], "cpu" + spawncounter, spawncounter + 500);
_root["cpu" + spawncounter]._x = spawnx;
_root["cpu" + spawncounter]._y = spawny;
spawncounter++;
};
spawnSpot = function () {
attackSide = random(4);
if (attackSide == 0) {
spawnx = 670;
spawny = random(400) + 40;
} else if (attackSide == 1) {
spawnx = random(600) + 20;
spawny = 500;
} else if (attackSide == 2) {
spawnx = -30;
spawny = random(400) + 40;
} else if (attackSide == 3) {
spawnx = random(600) + 20;
spawny = -30;
}
if (_root.land.hitTest(spawnx, spawny, true)) {
spawnSpot();
}
};
if (_root.copsonscreen < _root.maxcopsonscreen) {
if (random(_root.spawnrate) == 1) {
if (_root.alive) {
_root.copsonscreen++;
spawnCop();
}
}
}
_root.laser_mc._alpha = _root.laser_mc._alpha - 20;
_root.shottimer = _root.shottimer + 1;
if (_root.shottimer > _root.reloadspeed) {
_root.shotReady = true;
}
if (_root.shottimer == -1) {
_root.bullets = _root.maxbullets;
_root.shottimer = _root.reloadspeed;
_root.shotReady = true;
_root.ammo.ammo = (_root.bullets + "/") + _root.maxbullets;
if (_root.sfx) {
reloadedSound.start(0, 0);
}
}
if (_root.alive) {
expocount = 50;
_root.countup++;
_root.cashtotal.cashtotal = "$" + ((_root.countup + _root.cashbonus) + _root.cashfound);
_root.healthbar._xscale = (_root.currentHealth / _root.maxHealth) * 100;
}
q = 5;
while (q <= _root.fireline) {
_root["laser" + q]._alpha = _root["laser" + q]._alpha - 10;
if (_root["laser" + q]._alpha < 10) {
removeMovieClip(_root["laser" + q]);
}
q++;
}
if (_root.player.hitTest(_root.stageboard)) {
} else if (_root.alive) {
_root.alive = false;
_root.currentHealth = 0;
tellTarget (_root.fader) {
play();
};
}
if (shake) {
_root._x = Math.random() * 30;
_root._y = Math.random() * 30;
}
if (smallshake) {
_root._x = Math.random() * 4;
_root._y = Math.random() * 4;
}
if (_root.totalcopskilled < 8) {
_root.coptype = 1;
_root.spawnrate = 75;
_root.maxcopsonscreen = 2;
}
if ((_root.totalcopskilled >= 8) && (_root.totalcopskilled < 35)) {
_root.coptype = 1;
_root.spawnrate = 70;
_root.maxcopsonscreen = 3;
}
if ((_root.totalcopskilled >= 35) && (_root.totalcopskilled <= 149)) {
_root.coptype = 2;
_root.spawnrate = 60;
_root.maxcopsonscreen = 4;
}
if ((_root.totalcopskilled >= 150) && (_root.totalcopskilled <= 300)) {
_root.coptype = 3;
_root.spawnrate = 50;
_root.maxcopsonscreen = 4;
}
if (_root.totalcopskilled >= 301) {
_root.coptype = 4;
_root.spawnrate = 45;
_root.maxcopsonscreen = 4;
}
if (_root.alive == false) {
if (_root.vol > 70) {
_root.vol = _root.vol - 0.5;
}
_root.musicSound.setVolume(_root.vol);
} else {
if (_root.vol < 100) {
_root.vol = _root.vol + 2;
}
_root.musicSound.setVolume(_root.vol);
}
if (_root.alive) {
if ((_root.copsonscreen == 0) && (_root.corpseonscreen == 0)) {
_root.actions.spawncounter = 5;
}
}
if (Key.isDown(82)) {
if (_root.alive) {
if (_root.shottimer >= 0) {
_root.shottimer = _root.longreloadspeed;
}
}
}
_root.speechtimer++;
}
on (keyPress "<Space>") {
if (_root.alive) {
if (_root.shottimer >= 0) {
_root.shottimer = _root.longreloadspeed;
}
}
}
on (keyPress "<Enter>") {
if (_root.alive) {
if (_root.c4enabled) {
_root.attachMovie("C4", "C4", 98);
_root.C4._x = _root.player._x;
_root.C4._y = _root.player._y;
_root.c4enabled = false;
}
}
}
Instance of Symbol 937 MovieClip "gunsound" in Frame 2
onClipEvent (load) {
function getgunsound() {
if (_root.gun == "revolver") {
gunSound.attachSound("revolver.wav");
} else if (_root.gun == "deserteagle") {
gunSound.attachSound("deserteagle.wav");
} else if (_root.gun == "uzi") {
gunSound.attachSound("uzi.wav");
} else if (_root.gun == "shotgun") {
gunSound.attachSound("shotgun.wav");
} else if (_root.gun == "ak47") {
gunSound.attachSound("ak47.wav");
} else if (_root.gun == "electricitygun") {
gunSound.attachSound("electricitygun.wav");
}
}
gunSound = new Sound(this);
getgunsound();
}
onClipEvent (enterFrame) {
function playgunsound() {
if (_root.sfx) {
gunSound.start(0, 0);
}
}
}
Instance of Symbol 939 MovieClip "medals" in Frame 2
onClipEvent (load) {
function resetMedals() {
_root.medalcount = 0;
currentKills10 = false;
getCurrentKills10 = false;
currentKills25 = false;
getCurrentKills25 = false;
currentKills50 = false;
getCurrentKills50 = false;
currentKills100 = false;
getCurrentKills100 = false;
totalKills100 = false;
getTotalKills100 = false;
totalKills250 = false;
getTotalKills250 = false;
totalKills500 = false;
getTotalKills500 = false;
totalKills1000 = false;
getTotalKills1000 = false;
killGreen10 = false;
getKillGreen10 = false;
killGreen50 = false;
getKillGreen50 = false;
treeHide = false;
getTreeHide = false;
killSergeant50 = false;
getKillSergeant50 = false;
killOfficer50 = false;
getKillOfficer50 = false;
killSergeant250 = false;
getKillSergeant250 = false;
killOfficer250 = false;
getKillOfficer250 = false;
killSWAT50 = false;
getKillSWAT50 = false;
killArmy50 = false;
getKillArmy50 = false;
marksmanship = false;
getMarksmanship = false;
maniac = false;
getManiac = false;
sniperPro = false;
getSniperPro = false;
sniperKing = false;
getSniperKing = false;
robFurlong = false;
getRobFurlong = false;
terrorist = false;
getTerrorist = false;
clocked = false;
spree1000 = false;
getSpree1000 = false;
spree10000 = false;
getSpree10000 = false;
spree20000 = false;
getSpree20000 = false;
sponsor = false;
getSponsor = false;
}
function checkMedals() {
if (getCurrentKills10) {
currentKills10 = true;
getCurrentKills10 = false;
_root.medalcash = _root.medalcash + 2000;
_root.medalcount++;
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + "\rKilling Spree: $2000";
}
if (getCurrentKills25) {
currentKills25 = true;
getCurrentKills25 = false;
_root.medalcash = _root.medalcash + 5000;
_root.medalcount++;
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + "\rRampage!: $5000";
}
if (getCurrentKills50) {
currentKills50 = true;
getCurrentKills50 = false;
_root.medalcash = _root.medalcash + 10000;
_root.medalcount++;
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + "\rLevel 5 Killstorm: $10000";
}
if (getCurrentKills100) {
currentKills100 = true;
getCurrentKills100 = false;
_root.medalcash = _root.medalcash + 50000;
_root.medalcount++;
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + "\rAre You SERIOUS?!: $50000";
}
if (getTotalKills100) {
totalKills100 = true;
getTotalKills100 = false;
_root.medalcash = _root.medalcash + 1500;
_root.medalcount++;
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + "\rBeginner: $1500";
}
if (getTotalKills250) {
totalKills250 = true;
getTotalKills250 = false;
_root.medalcash = _root.medalcash + 5000;
_root.medalcount++;
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + "\rAmateur: $5000";
}
if (getTotalKills500) {
totalKills500 = true;
getTotalKills500 = false;
_root.medalcash = _root.medalcash + 20000;
_root.medalcount++;
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + "\rMaster: $20000";
}
if (getTotalKills1000) {
totalKills1000 = true;
getTotalKills1000 = false;
_root.medalcash = _root.medalcash + 500000;
_root.medalcount++;
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + "\rSpawn of Satan: $500000";
}
if (getKillGreen10) {
killGreen10 = true;
getKillGreen10 = false;
_root.medalcash = _root.medalcash + 5000;
_root.medalcount++;
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + "\rAnti-Environmentalist: $5000";
}
if (getKillGreen50) {
killGreen50 = true;
getKillGreen50 = false;
_root.medalcash = _root.medalcash + 20000;
_root.medalcount++;
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + "\rI. HATE. GREEN. SHIRTS: $20000";
}
if (getTreeHide) {
treeHide = true;
getTreeHide = false;
_root.medalcash = _root.medalcash + 1000;
_root.medalcount++;
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + "\rTree Hider: $1000";
}
if (getKillOfficer50) {
killOfficer50 = true;
getKillOfficer50 = false;
_root.medalcash = _root.medalcash + 1000;
_root.medalcount++;
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + "\rKill 50 Officers: $1000";
}
if (getKillOfficer250) {
killOfficer250 = true;
getKillOfficer250 = false;
_root.medalcash = _root.medalcash + 10000;
_root.medalcount++;
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + "\rKill 250 Officers: $10000";
}
if (getKillSergeant50) {
killSergeant50 = true;
getKillSergeant50 = false;
_root.medalcash = _root.medalcash + 2500;
_root.medalcount++;
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + "\rKill 50 Sergeants: $2500";
}
if (getKillSergeant250) {
killSergeant250 = true;
getKillSergeant250 = false;
_root.medalcash = _root.medalcash + 10000;
_root.medalcount++;
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + "\rKill 250 Sergeants: $10000";
}
if (getKillSWAT50) {
killSWAT50 = true;
getKillSWAT50 = false;
_root.medalcash = _root.medalcash + 5000;
_root.medalcount++;
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + "\rKill 50 SWAT Members: $5000";
}
if (getKillArmy50) {
killArmy50 = true;
getKillArmy50 = false;
_root.medalcash = _root.medalcash + 10000;
_root.medalcount++;
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + "\rKill 50 Army Generals: $10000";
}
if (getMarksmanship) {
marksmanship = true;
getMarksmanship = false;
_root.medalcash = _root.medalcash + 500;
_root.medalcount++;
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + "\rMarksmanship: $500";
}
if (getManiac) {
maniac = true;
getManiac = false;
_root.medalcash = _root.medalcash + 250;
_root.medalcount++;
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + "\rManiac: $250";
}
if (getSniperPro) {
sniperPro = true;
getSniperPro = false;
_root.medalcash = _root.medalcash + 250;
_root.medalcount++;
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + "\rSniper Pro: $250";
}
if (getSniperKing) {
sniperKing = true;
getSniperKing = false;
_root.medalcash = _root.medalcash + 5000;
_root.medalcount++;
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + "\rSniper King: $5000";
}
if (getRobFurlong) {
robFurlong = true;
getRobFurlong = false;
_root.medalcash = _root.medalcash + 10000;
_root.medalcount++;
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + "\rRob Furlong: $10000";
}
if (getTerrorist) {
terrorist = true;
getTerrorist = false;
_root.medalcash = _root.medalcash + 250;
_root.medalcount++;
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + "\rTerrorist: $2000";
}
if (getSpree1000) {
spree1000 = true;
getSpree1000 = false;
_root.medalcash = _root.medalcash + 250;
_root.medalcount++;
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + "\r$1000 Spree: $250";
}
if (getSpree10000) {
spree10000 = true;
getSpree10000 = false;
_root.medalcash = _root.medalcash + 1000;
_root.medalcount++;
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + "\r$10000 Spree: $1000";
}
if (getSpree20000) {
spree20000 = true;
getSpree20000 = false;
_root.medalcash = _root.medalcash + 5000;
_root.medalcount++;
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + "\r$20000 Spree: $5000";
}
if (_root.medalcount == 23) {
clocked = true;
_root.medalcash = _root.medalcash + 1;
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + "\rClocked: $1";
}
_root.grandtotal = _root.grandtotal + (((_root.cashfound + _root.cashbonus) + Math.round(_root.countup * _root.cashupgrade)) + _root.medalcash);
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + ("\rGrand Total: $" + _root.grandtotal);
}
function newmedal(newmedalname) {
tellTarget (_root.medalget) {
gotoAndPlay (2);
};
_root.medalget.medalget.medalname = newmedalname;
}
resetMedals();
}
Instance of Symbol 941 MovieClip "loadsave" in Frame 2
onClipEvent (load) {
function savegame() {
_root.mySharedObject.data.attempts = _root.attempts;
_root.mySharedObject.data.gun = _root.gun;
_root.mySharedObject.data.maxHealth = _root.maxHealth;
_root.mySharedObject.data.maxspeed = _root.actions.maxspeed;
_root.mySharedObject.data.totalcopskilled = _root.totalcopskilled;
_root.mySharedObject.data.totalpedskilled = _root.totalpedskilled;
_root.mySharedObject.data.c4enabled = _root.c4enabled;
_root.mySharedObject.data.grandtotal = _root.grandtotal;
_root.mySharedObject.data.longestkill = _root.longestkill;
_root.mySharedObject.data.totalshotsfired = _root.totalshotsfired;
_root.mySharedObject.data.totalhitcounter = _root.totalhitcounter;
_root.mySharedObject.data.officerkills = _root.officerkills;
_root.mySharedObject.data.swatkills = _root.swatkills;
_root.mySharedObject.data.sergeantkills = _root.sergeantkills;
_root.mySharedObject.data.armykills = _root.armykills;
_root.mySharedObject.data.greenkills = _root.greenkills;
_root.mySharedObject.data.deadliestspree = _root.deadliestspree;
_root.mySharedObject.data.longestspree = _root.longestspree;
_root.mySharedObject.data.longrange = _root.longrange;
_root.mySharedObject.data.cashupgrade = _root.cashupgrade;
_root.mySharedObject.data.medalcount = _root.medalcount;
_root.mySharedObject.data.revolver = _root.revolver;
_root.mySharedObject.data.deserteagle = _root.deserteagle;
_root.mySharedObject.data.uzi = _root.uzi;
_root.mySharedObject.data.shotgun = _root.shotgun;
_root.mySharedObject.data.ak47 = _root.ak47;
_root.mySharedObject.data.electricitygun = _root.electricitygun;
_root.mySharedObject.data.chainmail = _root.chainmail;
_root.mySharedObject.data.bulletproofsuit = _root.bulletproofsuit;
_root.mySharedObject.data.kokiri = root.kokiri;
_root.mySharedObject.data.nikeair = _root.nikeair;
_root.mySharedObject.data.upgrade1 = _root.upgrade1;
_root.mySharedObject.data.upgrade2 = _root.upgrade2;
_root.mySharedObject.data.ham = _root.ham;
_root.mySharedObject.data.johnnytalk = _root.johnnytalk;
_root.mySharedObject.data.currentKills10 = _root.medals.currentKills10;
_root.mySharedObject.data.getCurrentKills10 = _root.medals.getCurrentKills10;
_root.mySharedObject.data.currentKills25 = _root.medals.currentKills25;
_root.mySharedObject.data.getCurrentKills25 = _root.medals.getCurrentKills25;
_root.mySharedObject.data.currentKills50 = _root.medals.currentKills50;
_root.mySharedObject.data.getCurrentKills50 = _root.medals.getCurrentKills50;
_root.mySharedObject.data.currentKills100 = _root.medals.currentKills100;
_root.mySharedObject.data.getCurrentKills100 = _root.medals.getCurrentKills100;
_root.mySharedObject.data.totalKills100 = _root.medals.totalKills100;
_root.mySharedObject.data.getTotalKills100 = _root.medals.getTotalKills100;
_root.mySharedObject.data.totalKills250 = _root.medals.totalKills250;
_root.mySharedObject.data.getTotalKills250 = _root.medals.getTotalKills250;
_root.mySharedObject.data.totalKills500 = _root.medals.totalKills500;
_root.mySharedObject.data.getTotalKills500 = _root.medals.getTotalKills500;
_root.mySharedObject.data.totalKills1000 = _root.medals.totalKills1000;
_root.mySharedObject.data.getTotalKills1000 = _root.medals.getTotalKills1000;
_root.mySharedObject.data.killGreen10 = _root.medals.killGreen10;
_root.mySharedObject.data.getKillGreen10 = _root.medals.getKillGreen10;
_root.mySharedObject.data.killGreen50 = _root.medals.killGreen50;
_root.mySharedObject.data.getKillGreen50 = _root.medals.getKillGreen50;
_root.mySharedObject.data.treeHide = _root.medals.treeHide;
_root.mySharedObject.data.getTreeHide = _root.medals.getTreeHide;
_root.mySharedObject.data.killSergeant50 = _root.medals.killSergeant50;
_root.mySharedObject.data.getKillSergeant50 = _root.medals.getKillSergeant50;
_root.mySharedObject.data.killOfficer50 = _root.medals.killOfficer50;
_root.mySharedObject.data.getKillOfficer50 = _root.medals.getKillOfficer50;
_root.mySharedObject.data.killSergeant250 = _root.medals.killSergeant250;
_root.mySharedObject.data.getKillSergeant250 = _root.medals.getKillSergeant250;
_root.mySharedObject.data.killOfficer250 = _root.medals.killOfficer250;
_root.mySharedObject.data.getKillOfficer250 = _root.medals.getKillOfficer250;
_root.mySharedObject.data.killSWAT50 = _root.medals.killSWAT50;
_root.mySharedObject.data.getKillSWAT50 = _root.medals.getKillSWAT50;
_root.mySharedObject.data.killArmy50 = _root.medals.killArmy50;
_root.mySharedObject.data.getKillArmy50 = _root.medals.getKillArmy50;
_root.mySharedObject.data.marksmanship = _root.medals.marksmanship;
_root.mySharedObject.data.getMarksmanship = _root.medals.getMarksmanship;
_root.mySharedObject.data.maniac = _root.medals.maniac;
_root.mySharedObject.data.getManiac = _root.medals.getManiac;
_root.mySharedObject.data.sniperPro = _root.medals.sniperPro;
_root.mySharedObject.data.getSniperPro = _root.medals.getSniperPro;
_root.mySharedObject.data.sniperKing = _root.medals.sniperKing;
_root.mySharedObject.data.getSniperKing = _root.medals.getSniperKing;
_root.mySharedObject.data.robFurlong = _root.medals.robFurlong;
_root.mySharedObject.data.getRobFurlong = _root.medals.getRobFurlong;
_root.mySharedObject.data.terrorist = _root.medals.terrorist;
_root.mySharedObject.data.getTerrorist = _root.medals.getTerrorist;
_root.mySharedObject.data.clocked = _root.medals.clocked;
_root.mySharedObject.data.sponsor = _root.medals.sponsor;
_root.mySharedObject.data.getSponsor = _root.medals.getSponsor;
_root.mySharedObject.data.spree1000 = _root.medals.spree1000;
_root.mySharedObject.data.getSpree1000 = _root.medals.getSpree1000;
_root.mySharedObject.data.getSpree10000 = _root.medals.getSpree10000;
_root.mySharedObject.data.spree10000 = _root.medals.spree10000;
_root.mySharedObject.data.spree20000 = _root.medals.spree20000;
_root.mySharedObject.data.getSpree20000 = _root.medals.getSpree20000;
_root.mySharedObject.flush();
}
function loadgame() {
_root.attempts = _root.mySharedObject.data.attempts;
_root.gun = _root.mySharedObject.data.gun;
_root.maxHealth = _root.mySharedObject.data.maxHealth;
_root.actions.maxspeed = _root.mySharedObject.data.maxspeed;
_root.totalcopskilled = _root.mySharedObject.data.totalcopskilled;
_root.totalpedskilled = _root.mySharedObject.data.totalpedskilled;
_root.c4enabled = _root.mySharedObject.data.c4enabled;
_root.grandtotal = _root.mySharedObject.data.grandtotal;
_root.longestkill = _root.mySharedObject.data.longestkill;
_root.totalshotsfired = _root.mySharedObject.data.totalshotsfired;
_root.totalhitcounter = _root.mySharedObject.data.totalhitcounter;
_root.officerkills = _root.mySharedObject.data.officerkills;
_root.swatkills = _root.mySharedObject.data.swatkills;
_root.sergeantkills = _root.mySharedObject.data.sergeantkills;
_root.armykills = _root.mySharedObject.data.armykills;
_root.greenkills = _root.mySharedObject.data.greenkills;
_root.deadliestspree = _root.mySharedObject.data.deadliestspree;
_root.longestspree = _root.mySharedObject.data.longestspree;
_root.longrange = _root.mySharedObject.data.longrange;
_root.cashupgrade = _root.mySharedObject.data.cashupgrade;
_root.medalcount = _root.mySharedObject.data.medalcount;
_root.revolver = _root.mySharedObject.data.revolver;
_root.deserteagle = _root.mySharedObject.data.deserteagle;
_root.uzi = _root.mySharedObject.data.uzi;
_root.shotgun = _root.mySharedObject.data.shotgun;
_root.ak47 = _root.mySharedObject.data.ak47;
_root.electricitygun = _root.mySharedObject.data.electricitygun;
_root.chainmail = _root.mySharedObject.data.chainmail;
_root.bulletproofsuit = _root.mySharedObject.data.bulletproofsuit;
_root.kokiri = _root.mySharedObject.data.kokiri;
_root.nikeair = _root.mySharedObject.data.nikeair;
_root.upgrade1 = _root.mySharedObject.data.upgrade1;
_root.upgrade2 = _root.mySharedObject.data.upgrade2;
_root.ham = _root.mySharedObject.data.ham;
_root.johnnytalk = _root.mySharedObject.data.johnnytalk;
_root.medals.currentKills10 = _root.mySharedObject.data.currentKills10;
_root.medals.getCurrentKills10 = _root.mySharedObject.data.getCurrentKills10;
_root.medals.currentKills25 = _root.mySharedObject.data.currentKills25;
_root.medals.getCurrentKills25 = _root.mySharedObject.data.getCurrentKills25;
_root.medals.currentKills50 = _root.mySharedObject.data.currentKills50;
_root.medals.getCurrentKills50 = _root.mySharedObject.data.getCurrentKills50;
_root.medals.currentKills100 = _root.mySharedObject.data.currentKills100;
_root.medals.getCurrentKills100 = _root.mySharedObject.data.getCurrentKills100;
_root.medals.totalKills100 = _root.mySharedObject.data.totalKills100;
_root.medals.getTotalKills100 = _root.mySharedObject.data.getTotalKills100;
_root.medals.totalKills250 = _root.mySharedObject.data.totalKills250;
_root.medals.getTotalKills250 = _root.mySharedObject.data.getTotalKills250;
_root.medals.totalKills500 = _root.mySharedObject.data.totalKills500;
_root.medals.getTotalKills500 = _root.mySharedObject.data.getTotalKills500;
_root.medals.totalKills1000 = _root.mySharedObject.data.totalKills1000;
_root.medals.getTotalKills1000 = _root.mySharedObject.data.getTotalKills1000;
_root.medals.killGreen10 = _root.mySharedObject.data.killGreen10;
_root.medals.getKillGreen10 = _root.mySharedObject.data.getKillGreen10;
_root.medals.killGreen50 = _root.mySharedObject.data.killGreen50;
_root.medals.getKillGreen50 = _root.mySharedObject.data.getKillGreen50;
_root.medals.treeHide = _root.mySharedObject.data.treeHide;
_root.medals.getTreeHide = _root.mySharedObject.data.getTreeHide;
_root.medals.killSergeant50 = _root.mySharedObject.data.killSergeant50;
_root.medals.getKillSergeant50 = _root.mySharedObject.data.getKillSergeant50;
_root.medals.killOfficer50 = _root.mySharedObject.data.killOfficer50;
_root.medals.getKillOfficer50 = _root.mySharedObject.data.getKillOfficer50;
_root.medals.killSergeant250 = _root.mySharedObject.data.killSergeant250;
_root.medals.getKillSergeant250 = _root.mySharedObject.data.getKillSergeant250;
_root.medals.killOfficer250 = _root.mySharedObject.data.killOfficer250;
_root.medals.getKillOfficer250 = _root.mySharedObject.data.getKillOfficer250;
_root.medals.killSWAT50 = _root.mySharedObject.data.killSWAT50;
_root.medals.getKillSWAT50 = _root.mySharedObject.data.getKillSWAT50;
_root.medals.killArmy50 = _root.mySharedObject.data.killArmy50;
_root.medals.getKillArmy50 = _root.mySharedObject.data.getKillArmy50;
_root.medals.marksmanship = _root.mySharedObject.data.marksmanship;
_root.medals.getMarksmanship = _root.mySharedObject.data.getMarksmanship;
_root.medals.maniac = _root.mySharedObject.data.maniac;
_root.medals.getManiac = _root.mySharedObject.data.getManiac;
_root.medals.sniperPro = _root.mySharedObject.data.sniperPro;
_root.medals.getSniperPro = _root.mySharedObject.data.getSniperPro;
_root.medals.sniperKing = _root.mySharedObject.data.sniperKing;
_root.medals.getSniperKing = _root.mySharedObject.data.getSniperKing;
_root.medals.robFurlong = _root.mySharedObject.data.robFurlong;
_root.medals.getRobFurlong = _root.mySharedObject.data.getRobFurlong;
_root.medals.terrorist = _root.mySharedObject.data.terrorist;
_root.medals.getTerrorist = _root.mySharedObject.data.getTerrorist;
_root.medals.clocked = _root.mySharedObject.data.clocked;
_root.medals.spree1000 = _root.mySharedObject.data.spree1000;
_root.medals.getSpree1000 = _root.mySharedObject.data.getSpree1000;
_root.medals.spree10000 = _root.mySharedObject.data.spree10000;
_root.medals.getSpree10000 = _root.mySharedObject.data.getSpree10000;
_root.medals.spree20000 = _root.mySharedObject.data.spree20000;
_root.medals.getSpree20000 = _root.mySharedObject.data.getSpree20000;
_root.medals.sponsor = _root.mySharedObject.data.sponsor;
_root.medals.getSponsor = _root.mySharedObject.data.getSponsor;
_root.actions.speed = _root.actions.maxspeed;
_root.actions.xvector = 0;
_root.actions.yvector = 0;
_root.actions.distanceFull = 0;
_root.actions.target = 0;
_root.actions.count = 0;
_root.actions.spawncounter = 5;
_root.shottimer = 100;
_root.shotReady = true;
_root.actions.linestartx = 3;
_root.actions.linestarty = 26;
_root.currentHealth = _root.maxHealth;
_root.cashbonus = 0;
_root.countup = 1;
_root.cashfound = 0;
_root.medalcash = 0;
_root.accuracy = 10;
_root.actions.rad = (Math.PI/180);
_root.maxDist = 700;
_root.pedcounter = 1;
_root.actions.totalpeds = 1;
_root.bullets = _root.maxbullets;
_root.ammo.ammo = (_root.bullets + "/") + _root.maxbullets;
_root.copskilled = 0;
_root.pedskilled = 0;
_root.shotsfired = 0;
_root.hitcounter = 0;
if (_root.gun == "revolver") {
_root.ammo.gunmc.gotoAndStop(1);
_root.reloadspeed = 21;
_root.longreloadspeed = -40;
_root.guntype = "pistol";
_root.gunfire = "manual";
_root.maxbullets = 12;
_root.bullets = _root.maxbullets;
_root.ammo.ammo = (_root.bullets + "/") + _root.maxbullets;
_root.gunpower = 40;
_root.player.arm.gun.gotoAndStop(1);
} else if (_root.gun == "deserteagle") {
_root.ammo.gunmc.gotoAndStop(2);
_root.reloadspeed = 25;
_root.longreloadspeed = -20;
_root.guntype = "pistol";
_root.gunfire = "manual";
_root.maxbullets = 12;
_root.bullets = _root.maxbullets;
_root.ammo.ammo = (_root.bullets + "/") + _root.maxbullets;
_root.gunpower = 100;
_root.player.arm.gun.gotoAndStop(2);
} else if (_root.gun == "uzi") {
_root.ammo.gunmc.gotoAndStop(3);
_root.reloadspeed = 3;
_root.longreloadspeed = -10;
_root.guntype = "pistol";
_root.gunfire = "auto";
_root.maxbullets = 30;
_root.bullets = _root.maxbullets;
_root.ammo.ammo = (_root.bullets + "/") + _root.maxbullets;
_root.gunpower = 50;
_root.player.arm.gun.gotoAndStop(3);
} else if (_root.gun == "ak47") {
_root.ammo.gunmc.gotoAndStop(4);
_root.reloadspeed = 3;
_root.longreloadspeed = -20;
_root.guntype = "pistol";
_root.gunfire = "auto";
_root.maxbullets = 40;
_root.bullets = _root.maxbullets;
_root.ammo.ammo = (_root.bullets + "/") + _root.maxbullets;
_root.gunpower = 100;
_root.player.arm.gun.gotoAndStop(4);
} else if (_root.gun == "electricitygun") {
_root.ammo.gunmc.gotoAndStop(5);
_root.reloadspeed = 3;
_root.longreloadspeed = -40;
_root.guntype = "lightning";
_root.gunfire = "auto";
_root.maxbullets = 100;
_root.bullets = _root.maxbullets;
_root.ammo.ammo = (_root.bullets + "/") + _root.maxbullets;
_root.gunpower = 400;
_root.player.arm.gun.gotoAndStop(6);
} else if (_root.gun == "shotgun") {
_root.ammo.gunmc.gotoAndStop(6);
_root.reloadspeed = 15;
_root.longreloadspeed = -40;
_root.guntype = "shotgun";
_root.gunfire = "manual";
_root.maxbullets = 9;
_root.bullets = _root.maxbullets;
_root.ammo.ammo = (_root.bullets + "/") + _root.maxbullets;
_root.gunpower = 400;
_root.player.arm.gun.gotoAndStop(5);
}
}
}
Instance of Symbol 972 MovieClip "resetbutton" in Frame 2
onClipEvent (load) {
function resetall() {
_root.attempts = 1;
_root.gun = "revolver";
_root.maxHealth = 200;
_root.actions.maxspeed = 5;
_root.totalcopskilled = 0;
_root.totalpedskilled = 0;
_root.c4enabled = false;
_root.grandtotal = 0;
_root.longestkill = 0;
_root.totalshotsfired = 0;
_root.totalhitcounter = 0;
_root.officerkills = 0;
_root.swatkills = 0;
_root.sergeantkills = 0;
_root.armykills = 0;
_root.greenkills = 0;
_root.deadliestspree = 0;
_root.longestspree = 0;
_root.cashupgrade = 1;
_root.medalcount = 0;
_root.ammo.gunmc.gotoAndStop(1);
_root.reloadspeed = 21;
_root.longreloadspeed = -40;
_root.guntype = "pistol";
_root.gunfire = "manual";
_root.maxbullets = 12;
_root.bullets = _root.maxbullets;
_root.ammo.ammo = (_root.bullets + "/") + _root.maxbullets;
_root.gunpower = 40;
_root.revolver = false;
_root.deserteagle = false;
_root.uzi = false;
_root.shotgun = false;
_root.ak47 = false;
_root.electricitygun = false;
_root.chainmail = false;
_root.bulletproofsuit = false;
_root.kokiri = false;
_root.nikeair = false;
_root.upgrade1 = false;
_root.upgrade2 = false;
_root.ham = false;
_root.actions.speed = _root.actions.maxspeed;
_root.actions.xvector = 0;
_root.actions.yvector = 0;
_root.actions.distanceFull = 0;
_root.actions.target = 0;
_root.actions.count = 0;
_root.actions.spawncounter = 5;
_root.shottimer = 21;
_root.shotReady = true;
_root.actions.linestartx = 3;
_root.actions.linestarty = 26;
_root.currentHealth = _root.maxHealth;
_root.cashbonus = 0;
_root.countup = 1;
_root.cashfound = 0;
_root.medalcash = 0;
_root.accuracy = 10;
_root.actions.rad = (Math.PI/180);
_root.maxDist = 700;
_root.pedcounter = 1;
_root.actions.totalpeds = 1;
_root.bullets = _root.maxbullets;
_root.ammo.ammo = (_root.bullets + "/") + _root.maxbullets;
_root.copskilled = 0;
_root.pedskilled = 0;
_root.shotsfired = 0;
_root.hitcounter = 0;
_root.longrange = 0;
_root.johnnytalk = 1;
_root.johnnydeathtalk = 1;
_root.medals.resetMedals();
_root.loadsave.savegame();
_root.loadsave.loadgame();
}
}
Instance of Symbol 974 MovieClip "crosshair" in Frame 2
onClipEvent (mouseMove) {
this.startDrag("true");
}
Frame 3
removeMovieClip(adBox);
musicSound = new Sound(_root.soundholder);
musicSound.attachSound("evilwoman.mp3");
musicSound.start(0, 9999);
_root.vol = 100;
musicSound.setVolume(_root.vol);
stop();
Mouse.hide();
Frame 4
function fireWeapon() {
if (_root.gunfire == "auto") {
_root.onEnterFrame = function () {
if (_root.shotReady == true) {
if (_root.bullets > 0) {
updateLaser();
}
}
};
} else if (_root.gunfire == "manual") {
if (_root.shotReady == true) {
if (_root.bullets > 0) {
updateLaser();
}
}
}
}
function stopWeapon() {
delete _root.laser_mc.onEnterFrame;
delete _root.onEnterFrame;
_root.laser_mc.clear();
}
function updateLaser() {
if (_root.alive) {
_root.gunsound.playgunsound();
_root.shotsfired++;
_root.totalshotsfired++;
if (_root.bullets == 1) {
_root.shottimer = _root.longreloadspeed;
if (_root.sfx) {
reloading2Sound.start(0, 0);
}
} else {
_root.shottimer = 0;
}
_root.bullets = _root.bullets - 1;
_root.shotReady = false;
_root.laser_mc._alpha = 100;
_root.ammo.ammo = (_root.bullets + "/") + _root.maxbullets;
var _local3 = {x:_root.player.arm.gun._x + _root.actions.linestartx, y:_root.player.arm.gun._y + _root.actions.linestarty};
_root.player.arm.gun.localToGlobal(_local3);
realDist = 0;
while (realDist < _root.maxDist) {
if (_root.player._rotation == -90) {
endX = _local3.x + ((Math.cos(_root.player.arm._rotation * rad) * realDist) * -1);
endY = _local3.y + ((Math.sin(_root.player.arm._rotation * rad) * realDist) * -1);
}
if (_root.player._rotation == 90) {
endX = _local3.x + (Math.cos(_root.player.arm._rotation * rad) * realDist);
endY = _local3.y + (Math.sin(_root.player.arm._rotation * rad) * realDist);
}
if (_root.player._rotation == 0) {
endX = _local3.x + (Math.cos((_root.player.arm._rotation * rad) - 1.57079633) * realDist);
endY = _local3.y + (Math.sin((_root.player.arm._rotation * rad) - 1.57079633) * realDist);
}
if (_root.player._rotation == 180) {
endX = _local3.x + (Math.cos((_root.player.arm._rotation * rad) + 1.57079633) * realDist);
endY = _local3.y + (Math.sin((_root.player.arm._rotation * rad) + 1.57079633) * realDist);
}
if (_root.player._rotation == -45) {
endX = _local3.x + ((Math.cos((_root.player.arm._rotation * rad) + 0.785398163) * realDist) * -1);
endY = _local3.y + ((Math.sin((_root.player.arm._rotation * rad) + 0.785398163) * realDist) * -1);
}
if (_root.player._rotation == 45) {
endX = _local3.x + (Math.cos((_root.player.arm._rotation * rad) - 0.785398163) * realDist);
endY = _local3.y + (Math.sin((_root.player.arm._rotation * rad) - 0.785398163) * realDist);
}
if (_root.player._rotation == -135) {
endX = _local3.x + (Math.cos((_root.player.arm._rotation * rad) + 2.35619449) * realDist);
endY = _local3.y + (Math.sin((_root.player.arm._rotation * rad) + 2.35619449) * realDist);
}
if (_root.player._rotation == 135) {
endX = _local3.x + ((Math.cos((_root.player.arm._rotation * rad) - 2.35619449) * realDist) * -1);
endY = _local3.y + ((Math.sin((_root.player.arm._rotation * rad) - 2.35619449) * realDist) * -1);
}
if (_root.land.hitTest(endX, endY, true)) {
_root.shrapnel._x = endX;
_root.shrapnel._y = endY;
_root.shrapnel._rotation = _root.player.arm._rotation * -1;
tellTarget (_root.shrapnel) {
gotoAndPlay (1);
};
break;
}
if (_root.car.hitTest(endX, endY, true)) {
_root.car.health = _root.car.health - _root.gunpower;
if (_root.car.health <= 0) {
_root.explosion._x = endX;
_root.explosion._y = endY;
_root.explosion._rotation = _root.carangle + 90;
tellTarget (_root.explosion) {
gotoAndPlay (2);
};
_root.actions.boom();
if (carangle == 0) {
_root.deadcar._x = endX + (random(100) - 50);
_root.deadcar._y = endY - 750;
} else if (carangle == 90) {
_root.deadcar._y = endY + (random(100) - 50);
_root.deadcar._x = endX + 550;
} else if (carangle == 180) {
_root.deadcar._x = endX + (random(100) - 50);
_root.deadcar._y = endY + 750;
} else if (carangle == -90) {
_root.deadcar._y = endY + (random(100) - 50);
_root.deadcar._x = endX - 550;
}
_root.deadcar._rotation = random(360);
removeMovieClip(_root.car);
if (_root.medals.terrorist == false) {
_root.medals.getTerrorist = true;
_root.medals.newmedal("Terrorist");
_root.medals.terrorist = true;
}
}
break;
}
if (_root.car2.hitTest(endX, endY, true)) {
_root.car2.health = _root.car2.health - _root.gunpower;
if (_root.car2.health <= 0) {
_root.explosion._x = endX;
_root.explosion._y = endY;
_root.explosion._rotation = _root.carangle2 + 90;
tellTarget (_root.explosion) {
gotoAndPlay (2);
};
if (carangle2 == 0) {
_root.deadcar2._x = endX + (random(100) - 50);
_root.deadcar2._y = endY - 750;
} else if (carangle2 == 90) {
_root.deadcar2._y = endY + (random(100) - 50);
_root.deadcar2._x = endX + 550;
} else if (carangle2 == 180) {
_root.deadcar2._x = endX + (random(100) - 50);
_root.deadcar2._y = endY + 750;
} else if (carangle2 == -90) {
_root.deadcar2._y = endY + (random(100) - 50);
_root.deadcar2._x = endX - 550;
}
_root.deadcar2._rotation = random(360);
removeMovieClip(_root.car2);
if (_root.medals.terrorist == false) {
_root.medals.getTerrorist = true;
_root.medals.newmedal("Terrorist");
_root.medals.terrorist = true;
}
}
break;
}
p = 1;
while (p < _root.pedcounter) {
if (_root["ped" + p].hitTest(endX, endY, true)) {
if (_root["ped" + p].walker.pedtype.pedcolour == "green") {
_root.greenkills++;
}
if (_root.sfx) {
popSound = new Sound(this);
popSound.attachSound("pop.wav");
popSound.start(0, 0);
}
_root.attachMovie("deadped", "deadped" + p, 85 + p);
_root["deadped" + p]._x = endX;
_root["deadped" + p]._y = endY;
_root["deadped" + p]._rotation = random(360);
if (_root.sfx && (_root.speechtimer > 100)) {
_root.randomvoice = random(50);
if (_root.randomvoice <= 8) {
ped2Sound = new Sound(_root);
ped2Sound.attachSound("outtamyway.mp3");
ped2Sound.start();
_root.speechtimer = 0;
} else if (_root.randomvoice >= 42) {
ped2Sound = new Sound(_root);
ped2Sound.attachSound("mybullets.mp3");
ped2Sound.start();
_root.speechtimer = 0;
} else if (_root.randomvoice == 22) {
ped2Sound = new Sound(_root);
ped2Sound.attachSound("nonsense.mp3");
ped2Sound.start();
_root.speechtimer = 0;
} else if ((_root.randomvoice <= 42) && (_root.randomvoice >= 32)) {
ped2Sound = new Sound(_root);
ped2Sound.attachSound("careful.mp3");
ped2Sound.start();
_root.speechtimer = 0;
}
}
removeMovieClip(_root["ped" + p]);
_root.hitcounter++;
hitped = true;
}
p++;
}
o = 5;
while (o < _root.actions.spawncounter) {
if (_root["cpu" + o].hitTest(endX, endY, true)) {
hit = true;
_root["cpu" + o].health = _root["cpu" + o].health - _root.gunpower;
_root.bloods._x = _root["cpu" + o]._x;
_root.bloods._y = _root["cpu" + o]._y;
_root.bloods._rotation = random(360) - 180;
tellTarget (_root.bloods) {
gotoAndPlay (2);
};
if (_root["cpu" + o].health <= 0) {
if (_root.sfx) {
popSound = new Sound(this);
popSound.attachSound("pop.wav");
popSound.start(0, 0);
deathrandom = random(7) + 1;
popSound.attachSound(("copdeath" + deathrandom) + ".mp3");
popSound.start(0, 0);
if (_root.speechtimer > 100) {
soundrandom = random(100);
if (soundrandom == lasttime) {
soundrandom++;
}
lasttime = soundrandom;
if (soundrandom < 18) {
_root.speechtimer = 0;
johnnyTauntSound = new Sound(this);
johnnyTauntSound.attachSound(("taunt" + soundrandom) + ".mp3");
johnnyTauntSound.start(0, 0);
} else if ((soundrandom == 18) && (_root.gun == "electricitygun")) {
_root.speechtimer = 0;
johnnyTauntSound = new Sound(this);
johnnyTauntSound.attachSound("taunt18.mp3");
johnnyTauntSound.start(0, 0);
}
}
}
corpsex = _root["cpu" + o]._x;
corpsey = _root["cpu" + o]._y;
g = random(12) + 1;
if (g <= 5) {
spawntype = 1;
} else if ((g <= 10) && (g > 5)) {
spawntype = 2;
} else if (g == 11) {
spawntype = 3;
} else {
spawntype = 4;
}
_root["cpu" + o].destroylines();
if (_root["cpu" + o].enemytype == "swat") {
_root.cashbonus = _root.cashbonus + 400;
_root.attachMovie("400dollars", "400dollars" + o, 2000 + o);
_root["400dollars" + o]._x = _root["cpu" + o]._x;
_root["400dollars" + o]._y = _root["cpu" + o]._y;
attachMovie("swatcorpse" + spawntype, "corpse" + o, o);
_root.swatkills++;
} else if (_root["cpu" + o].enemytype == "cop") {
_root.cashbonus = _root.cashbonus + 100;
_root.attachMovie("100dollars", "100dollars" + o, 2000 + o);
_root["100dollars" + o]._x = _root["cpu" + o]._x;
_root["100dollars" + o]._y = _root["cpu" + o]._y;
attachMovie("copcorpse" + spawntype, "corpse" + o, o);
_root.officerkills++;
} else if (_root["cpu" + o].enemytype == "sergeant") {
_root.cashbonus = _root.cashbonus + 200;
_root.attachMovie("200dollars", "200dollars" + o, 2000 + o);
_root["200dollars" + o]._x = _root["cpu" + o]._x;
_root["200dollars" + o]._y = _root["cpu" + o]._y;
attachMovie("sergeantcorpse" + spawntype, "corpse" + o, o);
_root.sergeantkills++;
} else if (_root["cpu" + o].enemytype == "army") {
_root.cashbonus = _root.cashbonus + 800;
_root.attachMovie("800dollars", "800dollars" + o, 2000 + o);
_root["800dollars" + o]._x = _root["cpu" + o]._x;
_root["800dollars" + o]._y = _root["cpu" + o]._y;
attachMovie("armycorpse" + (random(2) + 1), "corpse" + o, o);
_root.armykills++;
}
_root["corpse" + o]._x = corpsex;
_root["corpse" + o]._y = corpsey;
_root["corpse" + o]._rotation = _root["cpu" + o]._rotation;
removeMovieClip(_root["cpu" + o]);
_root.copskilled = _root.copskilled + 1;
_root.totalcopskilled = _root.totalcopskilled + 1;
_root.copsonscreen--;
_root.corpseonscreen++;
if (_root.copskilled == 10) {
if (_root.medals.currentKills10 == false) {
_root.medals.getCurrentKills10 = true;
_root.medals.newmedal("Killing Spree");
}
} else if (_root.copskilled == 25) {
if (_root.medals.currentKills25 == false) {
_root.medals.getCurrentKills25 = true;
_root.medals.newmedal("Rampage!");
}
} else if (_root.copskilled == 50) {
if (_root.medals.currentKills50 == false) {
_root.medals.getCurrentKills50 = true;
_root.medals.newmedal("Level 5 Killstorm");
}
} else if (_root.copskilled == 100) {
if (_root.medals.currentKills100 == false) {
_root.medals.getCurrentKills100 = true;
_root.medals.newmedal("Are You SERIOUS?!");
}
}
if (_root.totalcopskilled == 100) {
if (_root.medals.totalKills100 == false) {
_root.medals.getTotalKills100 = true;
_root.medals.newmedal("Beginner");
}
} else if (_root.totalcopskilled == 250) {
if (_root.medals.totalKills250 == false) {
_root.medals.getTotalKills250 = true;
_root.medals.newmedal("Amateur");
}
} else if (_root.totalcopskilled == 500) {
if (_root.medals.totalKills500 == false) {
_root.medals.getTotalKills500 = true;
_root.medals.newmedal("Master");
}
} else if (_root.totalcopskilled == 1000) {
if (_root.medals.totalKills1000 == false) {
_root.medals.getTotalKills1000 = true;
_root.medals.newmedal("Spawn of Satan");
}
}
if (_root.officerkills == 50) {
if (_root.medals.killOfficer50 == false) {
_root.medals.getKillOfficer50 = true;
_root.medals.killOfficer50 = true;
_root.medals.newmedal("Kill 50 Officers");
}
} else if (_root.sergeantkills == 50) {
if (_root.medals.killSergeant50 == false) {
_root.medals.getKillSergeant50 = true;
_root.medals.killSergeant50 = true;
_root.medals.newmedal("Kill 50 Sergeants");
}
} else if (_root.swatkills == 50) {
if (_root.medals.killSWAT50 == false) {
_root.medals.killSWAT50 = true;
_root.medals.getKillSWAT50 = true;
_root.medals.newmedal("Kill 50 SWAT Members");
}
} else if (_root.armykills == 50) {
if (_root.medals.killArmy50 == false) {
_root.medals.getKillArmy50 = true;
_root.medals.killArmy50 = true;
_root.medals.newmedal("Kill 50 Army Generals");
}
} else if (_root.officerkills == 250) {
if (_root.medals.killOfficer250 == false) {
_root.medals.getKillOfficer250 = true;
_root.medals.killOfficer250 = true;
_root.medals.newmedal("Kill 250 Officers");
}
} else if (_root.sergeantkills == 250) {
if (_root.medals.killSergeant250 == false) {
_root.medals.getKillSergeant250 = true;
_root.medals.killSergeant250 = true;
_root.medals.newmedal("Kill 250 Sergeants");
}
}
if (Math.sqrt(((startX - endX) * (startX - endX)) + ((startY - endY) * (startY - endY))) > 300) {
_root.longrange++;
if (Math.sqrt(((startX - endX) * (startX - endX)) + ((startY - endY) * (startY - endY))) > _root.longestkill) {
_root.longestkill = Math.sqrt(((startX - endX) * (startX - endX)) + ((startY - endY) * (startY - endY)));
}
if (_root.longrange == 1) {
if (_root.medals.sniperPro == false) {
_root.medals.getSniperPro = true;
_root.medals.newmedal("Sniper Pro");
}
} else if (_root.longrange == 10) {
if (_root.medals.sniperKing == false) {
_root.medals.getSniperKing = true;
_root.medals.newmedal("Sniper King");
}
} else if (_root.longrange == 100) {
if (_root.medals.robFurlong == false) {
_root.medals.getRobFurlong = true;
_root.medals.newmedal("Rob Furlong");
}
}
}
}
break;
}
o++;
}
if (hit) {
hit = false;
_root.hitcounter++;
_root.totalhitcounter++;
break;
}
if (hitped) {
hitped = false;
_root.pedskilled = _root.pedskilled + 1;
_root.totalpedskilled = _root.totalpedskilled + 1;
_root.cashbonus = _root.cashbonus + 20;
if (_root.greenkills == 10) {
if (_root.medals.killGreen10 == false) {
_root.medals.getKillGreen10 = true;
_root.medals.killGreen10 = true;
_root.medals.newmedal("Anti-Environmentalist");
}
}
if (_root.greenkills == 20) {
if (_root.medals.killGreen50 == false) {
_root.medals.getKillGreen50 = true;
_root.medals.killGreen50 = true;
_root.medals.newmedal("I. HATE. GREEN. SHIRTS.");
}
}
break;
}
realDist = realDist + _root.accuracy;
}
startX = _local3.x;
startY = _local3.y;
_root.laser_mc.clear();
if (_root.guntype == "pistol") {
_root.laser_mc.lineStyle(1, 16777215, 50);
_root.laser_mc.moveTo(endX, endY);
_root.laser_mc.lineTo(startX, startY);
} else if (_root.guntype == "shotgun") {
_root.laser_mc.lineStyle(1, 16777215, 50);
_root.laser_mc.moveTo(startX, startY);
_root.laser_mc.lineTo(endX, endY);
_root.laser_mc.moveTo(startX, startY);
_root.laser_mc.lineTo((endX + random(10)) + (realDist / 60), (endY + random(10)) + (realDist / 60));
_root.laser_mc.moveTo(startX, startY);
_root.laser_mc.lineTo(endX - (realDist / 60), endY - (realDist / 60));
} else if (_root.guntype == "lightning") {
_root.laser_mc.onEnterFrame = function () {
_root.laser_mc.clear();
_root.laser_mc.lineStyle(1, 16777215, 75, true);
var _local12 = startX - endX;
var _local11 = startY - endY;
var _local10 = Math.sqrt(((startX - endX) * (startX - endX)) + ((startY - endY) * (startY - endY)));
var _local8 = _local10 / 15;
var _local3 = Math.atan2(startY - endY, startX - endX);
var _local9 = _local10 / _local8;
_root.laser_mc.moveTo(startX, startY);
var _local2 = 1;
while (_local2 < (_local8 + 1)) {
var _local5 = _local9 * _local2;
var _local4 = random(8);
var _local6 = (startX - (Math.cos(_local3) * _local5)) + (Math.cos(_local3 + 1.55) * _local4);
var _local7 = (startY - (Math.sin(_local3) * _local5)) + (Math.sin(_local3 + 1.55) * _local4);
_root.laser_mc.lineTo(_local6, _local7);
_local2++;
}
};
_root.laser_mc.lineTo(endX, endY);
var _local13 = new flash.filters.GlowFilter(6068463, 1, 5, 5, 2);
_root.laser_mc.filters = [_local13];
}
}
}
function enemyUpdateLaser(enemy) {
_root.createEmptyMovieClip("laser" + _root.fireline, _root.getNextHighestDepth());
_root["laser" + _root.fireline].clear();
cpuRealDist = 0;
while (cpuRealDist < maxDist) {
cpuEndX = enemy._x + (Math.cos(enemy._rotation * rad) * realDist);
cpuEndY = enemy._y + (Math.sin(enemy._rotation * rad) * realDist);
if (_root.land.hitTest(endX, endY, true)) {
break;
}
p = 1;
while (p < _root.pedcounter) {
if (_root["ped" + p].hitTest(cpuEndX, cpuEndY, true)) {
removeMovieClip(_root["ped" + p]);
cpuhitped = true;
break;
}
p++;
}
if (cpuhitped) {
cpuhitped = false;
break;
}
cpuRealDist = cpuRealDist + accuracy;
}
cpuStartX = enemy._x;
cpuStartY = enemy._y;
_root["laser" + _root.fireline].lineStyle(1, 16777215, 50);
_root["laser" + _root.fireline].moveTo(cpuEndX, cpuEndY);
_root["laser" + _root.fireline].lineTo(cpuStartX, cpuStartY);
_root.fireline++;
}
stop();
var dx;
var dy;
var startX;
var startY;
var endX;
var endY;
var realDist;
var rad = (Math.PI/180);
var rad2 = 57.2957795130823;
_root.createEmptyMovieClip("laser_mc", map_mc.getNextHighestDepth());
reloading2Sound = new Sound(this);
reloading2Sound.attachSound("reloading.wav");
if (_root.alive) {
var gunPoint = {x:_root.player.arm.gun._x + _root.actions.linestartx, y:_root.player.arm.gun._y + _root.actions.linestarty};
_root.player.arm.gun.localToGlobal(gunPoint);
}
mouseListener = new Object();
mouseListener.onMouseDown = function () {
fireWeapon();
};
mouseListener.onMouseUp = function () {
stopWeapon();
};
mouseListener.onMouseMove = function () {
rotatePlayer();
};
enemySound = new Sound(this);
enemySound.attachSound("enemygun.wav");
Mouse.addListener(mouseListener);
stop();
_root.actions.speed = _root.actions.maxspeed;
_root.actions.xvector = 0;
_root.actions.yvector = 0;
_root.actions.distanceFull = 0;
_root.actions.target = 0;
_root.actions.count = 0;
_root.actions.spawncounter = 5;
_root.shottimer = 21;
_root.shotReady = true;
_root.actions.linestartx = 3;
_root.actions.linestarty = 26;
_root.currentHealth = _root.maxHealth;
_root.cashbonus = 0;
_root.countup = 1;
_root.cashfound = 0;
_root.medalcash = 0;
_root.accuracy = 10;
_root.actions.rad = (Math.PI/180);
_root.maxDist = 700;
_root.pedcounter = 1;
_root.actions.totalpeds = 1;
_root.bullets = _root.maxbullets;
_root.ammo.ammo = (_root.bullets + "/") + _root.maxbullets;
_root.alive = true;
_root.copskilled = 0;
_root.pedskilled = 0;
_root.shotsfired = 0;
_root.hitcounter = 0;
_root.copsonscreen = 0;
_root.corpseonscreen = 0;
_root.cardeath = false;
_root.carbloodcounter = 1;
_root.speechtimer = 0;
_root.firecorpsecounter = 1;
_root.healthbar.swapDepths(940);
_root.healthbaroutline.swapDepths(950);
_root.cashtotal.swapDepths(960);
_root.ammo.swapDepths(970);
_root.tree.swapDepths(925);
_root.player.swapDepths(900);
_root.buildings.swapDepths(910);
_root.crosshair.swapDepths(993);
_root.fader.swapDepths(980);
_root.redhit.swapDepths(985);
_root.car.swapDepths(920);
_root.car2.swapDepths(921);
_root.explosion.swapDepths(930);
_root.sfxbutton.swapDepths(945);
_root.musicbutton.swapDepths(946);
_root.go.swapDepths(991);
_root.medalget.swapDepths(987);
_root.player._y = 240;
_root.player._x = 320;
_root.cpu1._y = -4000;
_root.cpu2._y = -4000;
_root.cpu3._y = -4000;
_root.cpu4._y = -4000;
_root.ped._y = -4000;
_root.residue._y = -4000;
_root.corpse._y = -4000;
_root.paused._visible = false;
if (_root.gun == "revolver") {
_root.ammo.gunmc.gotoAndStop(1);
_root.reloadspeed = 21;
_root.longreloadspeed = -40;
_root.guntype = "pistol";
_root.gunfire = "manual";
_root.maxbullets = 12;
_root.bullets = _root.maxbullets;
_root.ammo.ammo = (_root.bullets + "/") + _root.maxbullets;
_root.gunpower = 50;
_root.player.arm.gun.gotoAndStop(1);
} else if (_root.gun == "deserteagle") {
_root.ammo.gunmc.gotoAndStop(2);
_root.reloadspeed = 25;
_root.longreloadspeed = -20;
_root.guntype = "pistol";
_root.gunfire = "manual";
_root.maxbullets = 12;
_root.bullets = _root.maxbullets;
_root.ammo.ammo = (_root.bullets + "/") + _root.maxbullets;
_root.gunpower = 100;
_root.player.arm.gun.gotoAndStop(2);
} else if (_root.gun == "uzi") {
_root.ammo.gunmc.gotoAndStop(3);
_root.reloadspeed = 3;
_root.longreloadspeed = -10;
_root.guntype = "pistol";
_root.gunfire = "auto";
_root.maxbullets = 30;
_root.bullets = _root.maxbullets;
_root.ammo.ammo = (_root.bullets + "/") + _root.maxbullets;
_root.gunpower = 50;
_root.player.arm.gun.gotoAndStop(3);
} else if (_root.gun == "ak47") {
_root.ammo.gunmc.gotoAndStop(4);
_root.reloadspeed = 3;
_root.longreloadspeed = -20;
_root.guntype = "pistol";
_root.gunfire = "auto";
_root.maxbullets = 40;
_root.bullets = _root.maxbullets;
_root.ammo.ammo = (_root.bullets + "/") + _root.maxbullets;
_root.gunpower = 100;
_root.player.arm.gun.gotoAndStop(4);
} else if (_root.gun == "electricitygun") {
_root.ammo.gunmc.gotoAndStop(5);
_root.reloadspeed = 3;
_root.longreloadspeed = -40;
_root.guntype = "lightning";
_root.gunfire = "auto";
_root.maxbullets = 100;
_root.bullets = _root.maxbullets;
_root.ammo.ammo = (_root.bullets + "/") + _root.maxbullets;
_root.gunpower = 400;
_root.player.arm.gun.gotoAndStop(6);
} else if (_root.gun == "shotgun") {
_root.ammo.gunmc.gotoAndStop(6);
_root.reloadspeed = 15;
_root.longreloadspeed = -40;
_root.guntype = "shotgun";
_root.gunfire = "manual";
_root.maxbullets = 9;
_root.bullets = _root.maxbullets;
_root.ammo.ammo = (_root.bullets + "/") + _root.maxbullets;
_root.gunpower = 400;
_root.player.arm.gun.gotoAndStop(5);
}
tellTarget (_root.ped.walker.pedtype) {
gotoAndStop(random(10) + 1);
};
if (random(2) == 1) {
_root.map._x = (random(1400) + 500) * -1;
_root.map._y = -500;
} else {
_root.map._x = (random(1400) + 500) * -1;
_root.map._y = -1917;
}
_root.land._x = _root.map._x;
_root.land._y = _root.map._y;
_root.deadcar._y = -2000;
_root.deadcar2._y = -2000;
_root.tree._x = _root.map._x + 1452;
_root.tree._y = _root.map._y + 1478;
_root.car._x = _root.map._x + 835;
_root.car._y = _root.map._y + 515;
_root.car2._x = _root.map._x + 2208;
_root.car2._y = _root.map._y + 525;
_root.check1._x = _root.map._x + 827;
_root.check1._y = _root.map._y + 745;
_root.check2._x = _root.map._x + 1365;
_root.check2._y = _root.map._y + 745;
_root.check3._x = _root.map._x + 2040;
_root.check3._y = _root.map._y + 745;
_root.check4._x = _root.map._x + 1436;
_root.check4._y = _root.map._y + 1404;
_root.check5._x = _root.map._x + 2150;
_root.check5._y = _root.map._y + 1440;
_root.check6._x = _root.map._x + 838;
_root.check6._y = _root.map._y + 2124;
_root.check7._x = _root.map._x + 2192;
_root.check7._y = _root.map._y + 2136;
setProperty(_root.player.rightarm, _visible , 0);
_root.gunsound.getgunsound();
while (_root.actions.totalpeds < 9) {
_root.ped.duplicateMovieClip("ped" + _root.pedcounter, _root.pedcounter + 100);
_root["ped" + _root.pedcounter]._x = _root.map._x + 820;
_root["ped" + _root.pedcounter]._y = _root.map._y + 2152;
tellTarget (_root["ped" + _root.pedcounter].walker.pedtype) {
gotoAndStop(random(10) * 20);
};
tellTarget (_root["ped" + _root.pedcounter]) {
gotoAndPlay(random(6000) + 1);
};
_root.pedcounter++;
_root.actions.totalpeds++;
}
if (_root.sfx) {
_root.soundholder.playJohnnySound();
}
_root.crosshair.startDrag("true");
if (_root.sfx) {
_root.sfxbutton.gotoAndStop(1);
} else {
_root.sfxbutton.gotoAndStop(2);
}
if (_root.music) {
_root.musicbutton.gotoAndStop(1);
} else {
_root.musicbutton.gotoAndStop(2);
}
Instance of Symbol 1063 MovieClip "car" in Frame 4
onClipEvent (load) {
health = 800;
carSound = new Sound(this);
carSound.attachSound("car.wav");
_root.carplaying = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.cardeath = true;
_root.corpse._x = _root.player._x;
_root.corpse._y = _root.player._y;
_root.corpse._rotation = _root.player._rotation;
_root.currentHealth = 0;
shake = false;
removeMovieClip(_root.player);
tellTarget (_root.fader) {
play();
};
if ((_root.copskilled + _root.pedskilled) > _root.deadliestspree) {
_root.deadliestspree = _root.copskilled + _root.pedskilled;
}
if ((_root.countup / 30) > _root.longestspree) {
_root.longestspree = Math.round(10 * (_root.countup / 30)) / 10;
}
_root.healthbar._xscale = 0;
_root.alive = false;
}
if (this.hitTest(_root.stageboard)) {
if (_root.sfx) {
if (_root.carplaying == false) {
carSound.start(0, 0);
_root.carplaying = true;
}
}
}
carSound.onSoundComplete = function () {
_root.carplaying = false;
};
}
Instance of Symbol 1065 MovieClip "car2" in Frame 4
onClipEvent (load) {
health = 800;
car2Sound = new Sound(this);
car2Sound.attachSound("car2.wav");
_root.car2playing = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.cardeath = true;
_root.corpse._x = _root.player._x;
_root.corpse._y = _root.player._y;
_root.corpse._rotation = _root.player._rotation;
_root.currentHealth = 0;
shake = false;
removeMovieClip(_root.player);
tellTarget (_root.fader) {
play();
};
if ((_root.copskilled + _root.pedskilled) > _root.deadliestspree) {
_root.deadliestspree = _root.copskilled + _root.pedskilled;
}
if ((_root.countup / 30) > _root.longestspree) {
_root.longestspree = Math.round(10 * (_root.countup / 30)) / 10;
}
_root.healthbar._xscale = 0;
_root.alive = false;
}
if (this.hitTest(_root.stageboard)) {
if (_root.sfx) {
if (_root.car2playing == false) {
car2Sound.start(0, 0);
_root.car2playing = true;
}
}
}
car2Sound.onSoundComplete = function () {
_root.car2playing = false;
};
}
Instance of Symbol 1091 MovieClip "dollar" in Frame 4
onClipEvent (load) {
function relocate() {
this._x = (random(2500) + _root.map._x) + 200;
this._y = (random(2500) + _root.map._y) + 200;
if (this.hitTest(_root.buildings)) {
relocate();
}
}
relocate();
_root.cashSound = new Sound(this);
_root.cashSound.attachSound("cash.wav");
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this.relocate();
_root.cashfound = _root.cashfound + Math.round(_root.countup * 1.5);
if (_root.sfx) {
_root.cashSound.start(0, 0);
}
}
}
Instance of Symbol 216 MovieClip [cop] "cpu1" in Frame 4
onClipEvent (load) {
wallTouch = false;
health = 100;
enemytype = "cop";
}
onClipEvent (enterFrame) {
function destroylines() {
_root["laser" + this].clear();
removeMovieClip(_root["laser" + this]);
}
if (_root.land.hitTest(getBounds(_root).xMax, _y, true)) {
if ((_root.actions.playerx < 2560) && (_root.actions.playerx > 320)) {
_root.map._x = _root.map._x + _root.actions.speed;
_root.land._x = _root.land._x + _root.actions.speed;
wallTouch = true;
b = 1;
while (b < 8) {
_root["check" + b]._x = _root["check" + b]._x + _root.actions.speed;
b++;
}
} else {
_root.player._x = _root.player._x - _root.actions.speed;
}
}
if (_root.land.hitTest(getBounds(_root).xMin, _y, true)) {
if ((_root.actions.playerx < 2560) && (_root.actions.playerx > 320)) {
_root.land._x = _root.land._x - _root.actions.speed;
_root.map._x = _root.map._x - _root.actions.speed;
wallTouch = true;
b = 1;
while (b < 8) {
_root["check" + b]._x = _root["check" + b]._x - _root.actions.speed;
b++;
}
} else {
_root.player._x = _root.player._x + _root.actions.speed;
}
}
if (_root.land.hitTest(_x, getBounds(_root).yMax, true)) {
if ((_root.actions.playery < 2476) && (_root.actions.playery > 240)) {
_root.land._y = _root.land._y + _root.actions.speed;
_root.map._y = _root.map._y + _root.actions.speed;
wallTouch = true;
b = 1;
while (b < 8) {
_root["check" + b]._y = _root["check" + b]._y + _root.actions.speed;
b++;
}
} else {
_root.player._y = _root.player._y - _root.actions.speed;
}
}
if (_root.land.hitTest(_x, getBounds(_root).yMin, true)) {
if ((_root.actions.playery < 2476) && (_root.actions.playery > 240)) {
_root.land._y = _root.land._y - _root.actions.speed;
_root.map._y = _root.map._y - _root.actions.speed;
wallTouch = true;
b = 1;
while (b < 8) {
_root["check" + b]._y = _root["check" + b]._y - _root.actions.speed;
b++;
}
} else {
_root.player._y = _root.player._y + _root.actions.speed;
}
}
minValue = function (array) {
mn = array[0];
i = 0;
while (i < array.length) {
if (array[i] < mn) {
mn = array[i];
}
i++;
}
return(mn);
};
j = 1;
while (j < 8) {
_root["dist" + j] = Math.round(Math.sqrt(((this._x - _root["check" + j]._x) * (this._x - _root["check" + j]._x)) + ((this._y - _root["check" + j]._y) * (this._y - _root["check" + j]._y))));
j++;
}
checkpointDistance = new Array(_root.dist1, _root.dist2, _root.dist3, _root.dist4, _root.dist5, _root.dist6, _root.dist7);
checkpointMin = minValue(checkpointDistance);
i = 1;
while (i < 8) {
if (_root["dist" + i] == checkpointMin) {
targ = i;
}
i++;
}
a = 1;
while (a < 8) {
if (_root["check" + a].hitTest(_x, getBounds(_root).yMin, true)) {
wallTouch = false;
}
a++;
}
g = 1;
while (g <= _root.actions.spawncounter) {
if (_root["cpu" + g].hitTest(this)) {
xvec = _root["cpu" + g]._x - this._x;
yvec = _root["cpu" + g]._y - this._y;
distOverlap = Math.sqrt((xvec * xvec) + (yvec * yvec));
xvec = xvec / distOverlap;
yvec = yvec / distOverlap;
this._x = this._x - (2 * xvec);
this._y = this._y - (2 * yvec);
}
g++;
}
_root.actions.doFollow(this, 5);
if (_root.car.hitTest(this)) {
_root.copsonscreen--;
destroylines();
if (_root.carbloodcounter > 4) {
_root.carbloodcounter = 1;
}
_root.attachMovie("deadped", "carblood" + _root.carbloodcounter, 80 + _root.carbloodcounter);
_root["carblood" + _root.carbloodcounter]._x = this._x;
_root["carblood" + _root.carbloodcounter]._y = this._y;
_root["carblood" + _root.carbloodcounter]._rotation = random(360);
_root.carbloodcounter++;
carhitSound = new Sound(this);
carhitSound.attachSound("punch.wav");
carhitSound.start();
removeMovieClip(this);
}
if (_root.car2.hitTest(this)) {
_root.copsonscreen--;
destroylines();
if (_root.carbloodcounter > 4) {
_root.carbloodcounter = 1;
}
_root.attachMovie("deadped", "carblood" + _root.carbloodcounter, 80 + _root.carbloodcounter);
_root["carblood" + _root.carbloodcounter]._x = this._x;
_root["carblood" + _root.carbloodcounter]._y = this._y;
_root["carblood" + _root.carbloodcounter]._rotation = random(360);
_root.carbloodcounter++;
carhitSound = new Sound(this);
carhitSound.attachSound("punch.wav");
carhitSound.start();
removeMovieClip(this);
}
}
Instance of Symbol 1112 MovieClip "cpu2" in Frame 4
onClipEvent (load) {
wallTouch = false;
health = 150;
enemytype = "sergeant";
}
onClipEvent (enterFrame) {
function destroylines() {
_root["laser" + this].clear();
removeMovieClip(_root["laser" + this]);
}
if (_root.land.hitTest(getBounds(_root).xMax, _y, true)) {
if ((_root.actions.playerx < 2560) && (_root.actions.playerx > 320)) {
_root.map._x = _root.map._x + _root.actions.speed;
_root.land._x = _root.land._x + _root.actions.speed;
wallTouch = true;
b = 1;
while (b < 8) {
_root["check" + b]._x = _root["check" + b]._x + _root.actions.speed;
b++;
}
} else {
_root.player._x = _root.player._x - _root.actions.speed;
}
}
if (_root.land.hitTest(getBounds(_root).xMin, _y, true)) {
if ((_root.actions.playerx < 2560) && (_root.actions.playerx > 320)) {
_root.land._x = _root.land._x - _root.actions.speed;
_root.map._x = _root.map._x - _root.actions.speed;
wallTouch = true;
b = 1;
while (b < 8) {
_root["check" + b]._x = _root["check" + b]._x - _root.actions.speed;
b++;
}
} else {
_root.player._x = _root.player._x + _root.actions.speed;
}
}
if (_root.land.hitTest(_x, getBounds(_root).yMax, true)) {
if ((_root.actions.playery < 2476) && (_root.actions.playery > 240)) {
_root.land._y = _root.land._y + _root.actions.speed;
_root.map._y = _root.map._y + _root.actions.speed;
wallTouch = true;
b = 1;
while (b < 8) {
_root["check" + b]._y = _root["check" + b]._y + _root.actions.speed;
b++;
}
} else {
_root.player._y = _root.player._y - _root.actions.speed;
}
}
if (_root.land.hitTest(_x, getBounds(_root).yMin, true)) {
if ((_root.actions.playery < 2476) && (_root.actions.playery > 240)) {
_root.land._y = _root.land._y - _root.actions.speed;
_root.map._y = _root.map._y - _root.actions.speed;
wallTouch = true;
b = 1;
while (b < 8) {
_root["check" + b]._y = _root["check" + b]._y - _root.actions.speed;
b++;
}
} else {
_root.player._y = _root.player._y + _root.actions.speed;
}
}
minValue = function (array) {
mn = array[0];
i = 0;
while (i < array.length) {
if (array[i] < mn) {
mn = array[i];
}
i++;
}
return(mn);
};
j = 1;
while (j < 8) {
_root["dist" + j] = Math.round(Math.sqrt(((this._x - _root["check" + j]._x) * (this._x - _root["check" + j]._x)) + ((this._y - _root["check" + j]._y) * (this._y - _root["check" + j]._y))));
j++;
}
checkpointDistance = new Array(_root.dist1, _root.dist2, _root.dist3, _root.dist4, _root.dist5, _root.dist6, _root.dist7);
checkpointMin = minValue(checkpointDistance);
i = 1;
while (i < 8) {
if (_root["dist" + i] == checkpointMin) {
targ = i;
}
i++;
}
a = 1;
while (a < 8) {
if (_root["check" + a].hitTest(_x, getBounds(_root).yMin, true)) {
wallTouch = false;
}
a++;
}
g = 1;
while (g <= _root.actions.spawncounter) {
if (_root["cpu" + g].hitTest(this)) {
xvec = _root["cpu" + g]._x - this._x;
yvec = _root["cpu" + g]._y - this._y;
distOverlap = Math.sqrt((xvec * xvec) + (yvec * yvec));
xvec = xvec / distOverlap;
yvec = yvec / distOverlap;
this._x = this._x - (2 * xvec);
this._y = this._y - (2 * yvec);
}
g++;
}
_root.actions.doFollow(this, 6);
if (_root.car.hitTest(this)) {
_root.copsonscreen--;
destroylines();
if (_root.carbloodcounter > 4) {
_root.carbloodcounter = 1;
}
_root.attachMovie("deadped", "carblood" + _root.carbloodcounter, 80 + _root.carbloodcounter);
_root["carblood" + _root.carbloodcounter]._x = this._x;
_root["carblood" + _root.carbloodcounter]._y = this._y;
_root["carblood" + _root.carbloodcounter]._rotation = random(360);
_root.carbloodcounter++;
carhitSound = new Sound(this);
carhitSound.attachSound("punch.wav");
carhitSound.start();
removeMovieClip(this);
}
if (_root.car2.hitTest(this)) {
_root.copsonscreen--;
destroylines();
if (_root.carbloodcounter > 4) {
_root.carbloodcounter = 1;
}
_root.attachMovie("deadped", "carblood" + _root.carbloodcounter, 80 + _root.carbloodcounter);
_root["carblood" + _root.carbloodcounter]._x = this._x;
_root["carblood" + _root.carbloodcounter]._y = this._y;
_root["carblood" + _root.carbloodcounter]._rotation = random(360);
_root.carbloodcounter++;
carhitSound = new Sound(this);
carhitSound.attachSound("punch.wav");
carhitSound.start();
removeMovieClip(this);
}
}
Instance of Symbol 1116 MovieClip "cpu3" in Frame 4
onClipEvent (load) {
wallTouch = false;
health = 200;
enemytype = "swat";
}
onClipEvent (enterFrame) {
function destroylines() {
_root["laser" + this].clear();
removeMovieClip(_root["laser" + this]);
}
if (_root.land.hitTest(getBounds(_root).xMax, _y, true)) {
if ((_root.actions.playerx < 2560) && (_root.actions.playerx > 320)) {
_root.map._x = _root.map._x + _root.actions.speed;
_root.land._x = _root.land._x + _root.actions.speed;
wallTouch = true;
b = 1;
while (b < 8) {
_root["check" + b]._x = _root["check" + b]._x + _root.actions.speed;
b++;
}
} else {
_root.player._x = _root.player._x - _root.actions.speed;
}
}
if (_root.land.hitTest(getBounds(_root).xMin, _y, true)) {
if ((_root.actions.playerx < 2560) && (_root.actions.playerx > 320)) {
_root.land._x = _root.land._x - _root.actions.speed;
_root.map._x = _root.map._x - _root.actions.speed;
wallTouch = true;
b = 1;
while (b < 8) {
_root["check" + b]._x = _root["check" + b]._x - _root.actions.speed;
b++;
}
} else {
_root.player._x = _root.player._x + _root.actions.speed;
}
}
if (_root.land.hitTest(_x, getBounds(_root).yMax, true)) {
if ((_root.actions.playery < 2476) && (_root.actions.playery > 240)) {
_root.land._y = _root.land._y + _root.actions.speed;
_root.map._y = _root.map._y + _root.actions.speed;
wallTouch = true;
b = 1;
while (b < 8) {
_root["check" + b]._y = _root["check" + b]._y + _root.actions.speed;
b++;
}
} else {
_root.player._y = _root.player._y - _root.actions.speed;
}
}
if (_root.land.hitTest(_x, getBounds(_root).yMin, true)) {
if ((_root.actions.playery < 2476) && (_root.actions.playery > 240)) {
_root.land._y = _root.land._y - _root.actions.speed;
_root.map._y = _root.map._y - _root.actions.speed;
wallTouch = true;
b = 1;
while (b < 8) {
_root["check" + b]._y = _root["check" + b]._y - _root.actions.speed;
b++;
}
} else {
_root.player._y = _root.player._y + _root.actions.speed;
}
}
minValue = function (array) {
mn = array[0];
i = 0;
while (i < array.length) {
if (array[i] < mn) {
mn = array[i];
}
i++;
}
return(mn);
};
j = 1;
while (j < 8) {
_root["dist" + j] = Math.round(Math.sqrt(((this._x - _root["check" + j]._x) * (this._x - _root["check" + j]._x)) + ((this._y - _root["check" + j]._y) * (this._y - _root["check" + j]._y))));
j++;
}
checkpointDistance = new Array(_root.dist1, _root.dist2, _root.dist3, _root.dist4, _root.dist5, _root.dist6, _root.dist7);
checkpointMin = minValue(checkpointDistance);
i = 1;
while (i < 8) {
if (_root["dist" + i] == checkpointMin) {
targ = i;
}
i++;
}
a = 1;
while (a < 8) {
if (_root["check" + a].hitTest(_x, getBounds(_root).yMin, true)) {
wallTouch = false;
}
a++;
}
g = 1;
while (g <= _root.actions.spawncounter) {
if (_root["cpu" + g].hitTest(this)) {
xvec = _root["cpu" + g]._x - this._x;
yvec = _root["cpu" + g]._y - this._y;
distOverlap = Math.sqrt((xvec * xvec) + (yvec * yvec));
xvec = xvec / distOverlap;
yvec = yvec / distOverlap;
this._x = this._x - (2 * xvec);
this._y = this._y - (2 * yvec);
}
g++;
}
_root.actions.doFollow(this, 4);
if (_root.car.hitTest(this)) {
_root.copsonscreen--;
destroylines();
if (_root.carbloodcounter > 4) {
_root.carbloodcounter = 1;
}
_root.attachMovie("deadped", "carblood" + _root.carbloodcounter, 80 + _root.carbloodcounter);
_root["carblood" + _root.carbloodcounter]._x = this._x;
_root["carblood" + _root.carbloodcounter]._y = this._y;
_root["carblood" + _root.carbloodcounter]._rotation = random(360);
_root.carbloodcounter++;
carhitSound = new Sound(this);
carhitSound.attachSound("punch.wav");
carhitSound.start();
removeMovieClip(this);
}
if (_root.car2.hitTest(this)) {
_root.copsonscreen--;
destroylines();
if (_root.carbloodcounter > 4) {
_root.carbloodcounter = 1;
}
_root.attachMovie("deadped", "carblood" + _root.carbloodcounter, 80 + _root.carbloodcounter);
_root["carblood" + _root.carbloodcounter]._x = this._x;
_root["carblood" + _root.carbloodcounter]._y = this._y;
_root["carblood" + _root.carbloodcounter]._rotation = random(360);
_root.carbloodcounter++;
carhitSound = new Sound(this);
carhitSound.attachSound("punch.wav");
carhitSound.start();
removeMovieClip(this);
}
}
Instance of Symbol 1133 MovieClip "cpu4" in Frame 4
onClipEvent (load) {
wallTouch = false;
health = 400;
enemytype = "army";
}
onClipEvent (enterFrame) {
function destroylines() {
_root["laser" + this].clear();
removeMovieClip(_root["laser" + this]);
}
if (_root.land.hitTest(getBounds(_root).xMax, _y, true)) {
if ((_root.actions.playerx < 2560) && (_root.actions.playerx > 320)) {
_root.map._x = _root.map._x + _root.actions.speed;
_root.land._x = _root.land._x + _root.actions.speed;
wallTouch = true;
b = 1;
while (b < 8) {
_root["check" + b]._x = _root["check" + b]._x + _root.actions.speed;
b++;
}
} else {
_root.player._x = _root.player._x - _root.actions.speed;
}
}
if (_root.land.hitTest(getBounds(_root).xMin, _y, true)) {
if ((_root.actions.playerx < 2560) && (_root.actions.playerx > 320)) {
_root.land._x = _root.land._x - _root.actions.speed;
_root.map._x = _root.map._x - _root.actions.speed;
wallTouch = true;
b = 1;
while (b < 8) {
_root["check" + b]._x = _root["check" + b]._x - _root.actions.speed;
b++;
}
} else {
_root.player._x = _root.player._x + _root.actions.speed;
}
}
if (_root.land.hitTest(_x, getBounds(_root).yMax, true)) {
if ((_root.actions.playery < 2476) && (_root.actions.playery > 240)) {
_root.land._y = _root.land._y + _root.actions.speed;
_root.map._y = _root.map._y + _root.actions.speed;
wallTouch = true;
b = 1;
while (b < 8) {
_root["check" + b]._y = _root["check" + b]._y + _root.actions.speed;
b++;
}
} else {
_root.player._y = _root.player._y - _root.actions.speed;
}
}
if (_root.land.hitTest(_x, getBounds(_root).yMin, true)) {
if ((_root.actions.playery < 2476) && (_root.actions.playery > 240)) {
_root.land._y = _root.land._y - _root.actions.speed;
_root.map._y = _root.map._y - _root.actions.speed;
wallTouch = true;
b = 1;
while (b < 8) {
_root["check" + b]._y = _root["check" + b]._y - _root.actions.speed;
b++;
}
} else {
_root.player._y = _root.player._y + _root.actions.speed;
}
}
minValue = function (array) {
mn = array[0];
i = 0;
while (i < array.length) {
if (array[i] < mn) {
mn = array[i];
}
i++;
}
return(mn);
};
j = 1;
while (j < 8) {
_root["dist" + j] = Math.round(Math.sqrt(((this._x - _root["check" + j]._x) * (this._x - _root["check" + j]._x)) + ((this._y - _root["check" + j]._y) * (this._y - _root["check" + j]._y))));
j++;
}
checkpointDistance = new Array(_root.dist1, _root.dist2, _root.dist3, _root.dist4, _root.dist5, _root.dist6, _root.dist7);
checkpointMin = minValue(checkpointDistance);
i = 1;
while (i < 8) {
if (_root["dist" + i] == checkpointMin) {
targ = i;
}
i++;
}
a = 1;
while (a < 8) {
if (_root["check" + a].hitTest(_x, getBounds(_root).yMin, true)) {
wallTouch = false;
}
a++;
}
g = 1;
while (g <= _root.actions.spawncounter) {
if (_root["cpu" + g].hitTest(this)) {
xvec = _root["cpu" + g]._x - this._x;
yvec = _root["cpu" + g]._y - this._y;
distOverlap = Math.sqrt((xvec * xvec) + (yvec * yvec));
xvec = xvec / distOverlap;
yvec = yvec / distOverlap;
this._x = this._x - (2 * xvec);
this._y = this._y - (2 * yvec);
}
g++;
}
_root.actions.doFollow(this, 7);
if (_root.car.hitTest(this)) {
_root.copsonscreen--;
destroylines();
if (_root.carbloodcounter > 4) {
_root.carbloodcounter = 1;
}
_root.attachMovie("deadped", "carblood" + _root.carbloodcounter, 80 + _root.carbloodcounter);
_root["carblood" + _root.carbloodcounter]._x = this._x;
_root["carblood" + _root.carbloodcounter]._y = this._y;
_root["carblood" + _root.carbloodcounter]._rotation = random(360);
_root.carbloodcounter++;
carhitSound = new Sound(this);
carhitSound.attachSound("punch.wav");
carhitSound.start();
removeMovieClip(this);
}
if (_root.car2.hitTest(this)) {
destroylines();
if (_root.carbloodcounter > 4) {
_root.carbloodcounter = 1;
}
_root.attachMovie("deadped", "carblood" + _root.carbloodcounter, 80 + _root.carbloodcounter);
_root["carblood" + _root.carbloodcounter]._x = this._x;
_root["carblood" + _root.carbloodcounter]._y = this._y;
_root["carblood" + _root.carbloodcounter]._rotation = random(360);
_root.carbloodcounter++;
carhitSound = new Sound(this);
carhitSound.attachSound("punch.wav");
carhitSound.start();
removeMovieClip(this);
}
}
Instance of Symbol 1171 MovieClip "player" in Frame 4
onClipEvent (enterFrame) {
if (_root.land.hitTest(getBounds(_root).xMax, _y, true)) {
if ((_root.actions.playerx < 2560) && (_root.actions.playerx > 320)) {
_root.map._x = _root.map._x + _root.actions.speed;
_root.land._x = _root.land._x + _root.actions.speed;
v = 1;
while (v < _root.actions.spawncounter) {
_root["cpu" + v]._x = _root["cpu" + v]._x + _root.actions.speed;
v++;
}
v = 1;
while (v < _root.actions.spawncounter) {
_root["corpse" + v]._x = _root["corpse" + v]._x + _root.actions.speed;
v++;
}
v = 1;
while (v < _root.firecorpsecounter) {
_root["firecorpse" + v]._x = _root["firecorpse" + v]._x + _root.actions.speed;
v++;
}
_root.check1._x = _root.check1._x + _root.actions.speed;
_root.check2._x = _root.check2._x + _root.actions.speed;
_root.check3._x = _root.check3._x + _root.actions.speed;
_root.check4._x = _root.check4._x + _root.actions.speed;
_root.check5._x = _root.check5._x + _root.actions.speed;
_root.check6._x = _root.check6._x + _root.actions.speed;
_root.check7._x = _root.check7._x + _root.actions.speed;
_root.residue._x = _root.residue._x + _root.actions.speed;
f = 1;
while (f <= _root.pedcounter) {
_root["ped" + f]._x = _root["ped" + f]._x + _root.actions.speed;
f++;
}
f = 1;
while (f <= _root.pedcounter) {
_root["deadped" + f]._x = _root["deadped" + f]._x + _root.actions.speed;
f++;
}
_root.deadcar._x = _root.deadcar._x + _root.actions.speed;
_root.deadcar2._x = _root.deadcar2._x + _root.actions.speed;
_root.dollar._x = _root.dollar._x + _root.actions.speed;
} else {
_root.player._x = _root.player._x - _root.actions.speed;
}
}
if (_root.land.hitTest(getBounds(_root).xMin, _y, true)) {
if ((_root.actions.playerx < 2560) && (_root.actions.playerx > 320)) {
_root.land._x = _root.land._x - _root.actions.speed;
_root.map._x = _root.map._x - _root.actions.speed;
v = 1;
while (v < _root.actions.spawncounter) {
_root["cpu" + v]._x = _root["cpu" + v]._x - _root.actions.speed;
v++;
}
v = 1;
while (v < _root.actions.spawncounter) {
_root["corpse" + v]._x = _root["corpse" + v]._x - _root.actions.speed;
v++;
}
v = 1;
while (v < _root.firecorpsecounter) {
_root["firecorpse" + v]._x = _root["firecorpse" + v]._x - _root.actions.speed;
v++;
}
_root.check1._x = _root.check1._x - _root.actions.speed;
_root.check2._x = _root.check2._x - _root.actions.speed;
_root.check3._x = _root.check3._x - _root.actions.speed;
_root.check4._x = _root.check4._x - _root.actions.speed;
_root.check5._x = _root.check5._x - _root.actions.speed;
_root.check6._x = _root.check6._x - _root.actions.speed;
_root.check7._x = _root.check7._x - _root.actions.speed;
_root.deadcar._x = _root.deadcar._x - _root.actions.speed;
_root.deadcar2._x = _root.deadcar2._x - _root.actions.speed;
_root.dollar._x = _root.dollar._x - _root.actions.speed;
_root.residue._x = _root.residue._x - _root.actions.speed;
f = 1;
while (f <= _root.pedcounter) {
_root["ped" + f]._x = _root["ped" + f]._x - _root.actions.speed;
f++;
}
f = 1;
while (f <= _root.pedcounter) {
_root["deadped" + f]._x = _root["deadped" + f]._x - _root.actions.speed;
f++;
}
} else {
_root.player._x = _root.player._x + _root.actions.speed;
}
}
if (_root.land.hitTest(_x, getBounds(_root).yMax, true)) {
if ((_root.actions.playery < 2476) && (_root.actions.playery > 240)) {
_root.land._y = _root.land._y + _root.actions.speed;
_root.map._y = _root.map._y + _root.actions.speed;
v = 1;
while (v < _root.actions.spawncounter) {
_root["cpu" + v]._y = _root["cpu" + v]._y + _root.actions.speed;
v++;
}
v = 1;
while (v < _root.actions.spawncounter) {
_root["corpse" + v]._y = _root["corpse" + v]._y + _root.actions.speed;
v++;
}
v = 1;
while (v < _root.firecorpsecounter) {
_root["firecorpse" + v]._y = _root["firecorpse" + v]._y + _root.actions.speed;
v++;
}
_root.check1._y = _root.check1._y + _root.actions.speed;
_root.check2._y = _root.check2._y + _root.actions.speed;
_root.check3._y = _root.check3._y + _root.actions.speed;
_root.check4._y = _root.check4._y + _root.actions.speed;
_root.check5._y = _root.check5._y + _root.actions.speed;
_root.check6._y = _root.check6._y + _root.actions.speed;
_root.check7._y = _root.check7._y + _root.actions.speed;
_root.deadcar._y = _root.deadcar._y + _root.actions.speed;
_root.deadcar2._y = _root.deadcar2._y + _root.actions.speed;
_root.dollar._y = _root.dollar._y + _root.actions.speed;
_root.residue._y = _root.residue._y + _root.actions.speed;
f = 1;
while (f <= _root.pedcounter) {
_root["ped" + f]._y = _root["ped" + f]._y + _root.actions.speed;
f++;
}
f = 1;
while (f <= _root.pedcounter) {
_root["deadped" + f]._y = _root["deadped" + f]._y + _root.actions.speed;
f++;
}
} else {
_root.player._y = _root.player._y - _root.actions.speed;
}
}
if (_root.land.hitTest(_x, getBounds(_root).yMin, true)) {
if ((_root.actions.playery < 2476) && (_root.actions.playery > 240)) {
_root.land._y = _root.land._y - _root.actions.speed;
_root.map._y = _root.map._y - _root.actions.speed;
v = 0;
while (v < _root.actions.spawncounter) {
_root["cpu" + v]._y = _root["cpu" + v]._y - _root.actions.speed;
v++;
}
v = 1;
while (v < _root.actions.spawncounter) {
_root["corpse" + v]._y = _root["corpse" + v]._y - _root.actions.speed;
v++;
}
v = 1;
while (v < _root.firecorpsecounter) {
_root["firecorpse" + v]._y = _root["firecorpse" + v]._y - _root.actions.speed;
v++;
}
_root.check1._y = _root.check1._y - _root.actions.speed;
_root.check2._y = _root.check2._y - _root.actions.speed;
_root.check3._y = _root.check3._y - _root.actions.speed;
_root.check4._y = _root.check4._y - _root.actions.speed;
_root.check5._y = _root.check5._y - _root.actions.speed;
_root.check6._y = _root.check6._y - _root.actions.speed;
_root.check7._y = _root.check7._y - _root.actions.speed;
_root.deadcar._y = _root.deadcar._y - _root.actions.speed;
_root.deadcar2._y = _root.deadcar2._y - _root.actions.speed;
_root.dollar._y = _root.dollar._y - _root.actions.speed;
_root.residue._x = _root.residue._x - _root.actions.speed;
f = 1;
while (f <= _root.pedcounter) {
_root["ped" + f]._y = _root["ped" + f]._y - _root.actions.speed;
f++;
}
f = 1;
while (f <= _root.pedcounter) {
_root["deadped" + f]._y = _root["deadped" + f]._y - _root.actions.speed;
f++;
}
} else {
_root.player._y = _root.player._y + _root.actions.speed;
}
}
}
Instance of Symbol 1174 MovieClip "deadcar" in Frame 4
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.actions.speed = 2;
xvector = _root.player._x - this._x;
yvector = _root.player._y - this._y;
distanceFull = Math.sqrt((xvector * xvector) + (yvector * yvector));
xvector = xvector / distanceFull;
yvector = yvector / distanceFull;
this._x = this._x - (_root.actions.speed * xvector);
this._y = this._y - (_root.actions.speed * yvector);
this._rotation = this._rotation - ((xvector * xvector) + (yvector * yvector));
} else {
_root.actions.speed = _root.actions.maxspeed;
}
}
Instance of Symbol 1176 MovieClip "deadcar2" in Frame 4
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.actions.speed = 2;
xvector = _root.player._x - this._x;
yvector = _root.player._y - this._y;
distanceFull = Math.sqrt((xvector * xvector) + (yvector * yvector));
xvector = xvector / distanceFull;
yvector = yvector / distanceFull;
this._x = this._x - (_root.actions.speed * xvector);
this._y = this._y - (_root.actions.speed * yvector);
this._rotation = this._rotation - ((xvector * xvector) + (yvector * yvector));
} else {
_root.actions.speed = _root.actions.maxspeed;
}
}
Instance of Symbol 277 MovieClip [pednest] "ped" in Frame 4
onClipEvent (enterFrame) {
if (this == _root.ped) {
} else {
this._x = _root.map._x + 790;
this._y = _root.map._y + 2122;
}
if (_root.player.hitTest(this)) {
tellTarget (this.walker) {
gotoAndStop (25);
};
time = getTimer();
tellTarget (this) {
stop();
};
this.onEnterFrame = function () {
curTime = getTimer();
dif = curTime - time;
if (dif > 350) {
tellTarget (this) {
play();
};
delete this.onEnterFrame;
}
};
}
}
Instance of Symbol 1192 MovieClip "tree" in Frame 4
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
if (_root.medals.treeHide == false) {
_root.medals.getTreeHide = true;
_root.medals.newmedal("Tree Hider");
_root.medals.treeHide = true;
}
}
}
Frame 5
var CPMStarContentSpotID = "2053Q9D14D956";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + CPMStarContentSpotID);
_root.loadsave.savegame();
if (_root.cashupgrade == 1) {
_root.analysis.blur.analysistext = "Time Bonus: $" + _root.countup;
} else {
_root.analysis.blur.analysistext = (("Time Bonus (x" + _root.cashupgrade) + "): $") + Math.round(_root.countup * _root.cashupgrade);
}
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + ("\rCops Killed: " + _root.copskilled);
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + ("\rPedestrians Killed: " + _root.pedskilled);
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + ("\rKill Bonus: $" + _root.cashbonus);
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + ("\rCash Found: $" + _root.cashfound);
_root.analysis.blur.analysistext = _root.analysis.blur.analysistext + ("\rCash Earned: $" + ((_root.cashfound + _root.cashbonus) + Math.round(_root.countup * _root.cashupgrade)));
_root.medals.checkMedals();
_root.musicSound.setVolume(_root.vol);
_root.actions.shake = false;
Mouse.hide();
stop();
Frame 6
removeMovieClip(adBox);
_root.noshopmusic = false;
_root.tip.tip.tip.gotoAndStop(random(9) + 1);
Mouse.hide();
stop();
Frame 7
Mouse.hide();
stop();
Frame 8
_root.shopmc.shopmc.description = "Click an item to view its description.";
_root.shopmc.shopmc.cashlabel = "Cash: $" + _root.grandtotal;
if ((_root.noshopmusic == false) && (_root.music == true)) {
shopSound = new Sound(this);
shopSound.attachSound("shop.wav");
shopSound.start(0, 9999);
_root.vol = 0;
musicSound.setVolume(_root.vol);
}
_root.hamcounter = 1;
Mouse.hide();
stop();
Frame 9
_root.noshopmusic = true;
Mouse.hide();
stop();
Symbol 11 MovieClip [c4explode] Frame 1
if (_root.sfx) {
explosionSound = new Sound(this);
explosionSound.attachSound("explosion.wav");
explosionSound.start(0, 0);
}
_root.firecorpsecounter = 1;
i = 5;
while (i <= _root.actions.spawncounter) {
explodeDistX = _root["cpu" + i]._x - this._x;
explodeDistY = _root["cpu" + i]._y - this._y;
explodeDistTotal = Math.sqrt((explodeDistX * explodeDistX) + (explodeDistY * explodeDistY));
explodeAngle = Math.atan(explodeDistX / explodeDistY);
if (explodeDistTotal < 300) {
_root.attachMovie("firecorpse", "firecorpse" + _root.firecorpsecounter, 300 + i);
_root["firecorpse" + _root.firecorpsecounter].skeleton.gotoAndStop(random(4) + 1);
_root["firecorpse" + _root.firecorpsecounter]._x = _root["cpu" + i]._x;
_root["firecorpse" + _root.firecorpsecounter]._y = _root["cpu" + i]._y;
_root["firecorpse" + _root.firecorpsecounter]._rotation = _root["cpu" + i]._rotation;
_root["firecorpse" + _root.firecorpsecounter].yvector = explodeDistY;
_root["firecorpse" + _root.firecorpsecounter].xvector = explodeDistX;
_root["firecorpse" + _root.firecorpsecounter].speed = 1;
_root.firecorpsecounter++;
_root.copskilled = _root.copskilled + 1;
_root.totalcopskilled = _root.totalcopskilled + 1;
_root.copsonscreen--;
if (_root["cpu" + i].enemytype == "cop") {
_root.officerkills++;
_root.attachMovie("100dollars", "100dollars" + i, 2000 + i);
_root["100dollars" + i]._x = _root["cpu" + i]._x;
_root["100dollars" + i]._y = _root["cpu" + i]._y;
_root.cashbonus = _root.cashbonus + 100;
} else if (_root["cpu" + i].enemytype == "sergeant") {
_root.sergeantkills++;
_root.attachMovie("200dollars", "200dollars" + i, 2000 + i);
_root["200dollars" + i]._x = _root["cpu" + i]._x;
_root["200dollars" + i]._y = _root["cpu" + i]._y;
_root.cashbonus = _root.cashbonus + 200;
} else if (_root["cpu" + i].enemytype == "swat") {
_root.swatkills++;
_root.attachMovie("400dollars", "400dollars" + i, 2000 + i);
_root["400dollars" + i]._x = _root["cpu" + i]._x;
_root["400dollars" + i]._y = _root["cpu" + i]._y;
_root.cashbonus = _root.cashbonus + 400;
} else if (_root["cpu" + i].enemytype == "army") {
_root.armykills++;
_root.attachMovie("800dollars", "800dollars" + i, 2000 + i);
_root["800dollars" + i]._x = _root["cpu" + i]._x;
_root["800dollars" + i]._y = _root["cpu" + i]._y;
_root.cashbonus = _root.cashbonus + 800;
}
removeMovieClip(_root["cpu" + i]);
}
i++;
}
Symbol 11 MovieClip [c4explode] Frame 27
_root.actions.shake = false;
Symbol 11 MovieClip [c4explode] Frame 54
removeMovieClip(this);
Symbol 18 MovieClip Frame 1
if (_root.sfx) {
beepSound = new Sound(this);
beepSound.attachSound("beep.wav");
beepSound.start(0, 0);
}
Symbol 19 MovieClip [C4] Frame 105
_root.attachMovie("c4explode", "c4explode", 976);
_root.c4explode._x = this._x;
_root.c4explode._y = this._y;
_root.residue._x = this._x;
_root.residue._y = this._y;
_root.actions.boom();
removeMovieClip(this);
Symbol 25 MovieClip [200dollars] Frame 21
removeMovieClip(this);
Symbol 26 MovieClip [100dollars] Frame 21
removeMovieClip(this);
Symbol 29 MovieClip [800dollars] Frame 21
removeMovieClip(this);
Symbol 32 MovieClip [400dollars] Frame 21
removeMovieClip(this);
Symbol 88 MovieClip [copcorpse3] Frame 1
this._xscale = 120;
this._yscale = 120;
Symbol 88 MovieClip [copcorpse3] Frame 169
_root.corpseonscreen--;
removeMovieClip(this);
Symbol 157 MovieClip [copcorpse2] Frame 140
_root.corpseonscreen--;
removeMovieClip(this);
Symbol 194 MovieClip [copcorpse1] Frame 83
_root.corpseonscreen--;
removeMovieClip(this);
Symbol 199 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 2
Symbol 216 MovieClip [cop] Frame 1
if (this == _root.cpu1) {
gotoAndStop (18);
} else if (random(30) == 1) {
fireDist = Math.sqrt(((this._x - _root.player._x) * (this._x - _root.player._x)) + ((this._y - _root.player._y) * (this._y - _root.player._y)));
if (fireDist < 350) {
_root.actions.enemyfire(this);
_root["laser" + this]._alpha = 100;
gotoAndPlay (14);
}
} else {
gotoAndPlay (1);
}
Symbol 216 MovieClip [cop] Frame 5
if (random(30) == 1) {
fireDist = Math.sqrt(((this._x - _root.player._x) * (this._x - _root.player._x)) + ((this._y - _root.player._y) * (this._y - _root.player._y)));
if (fireDist < 350) {
_root.actions.enemyfire(this);
_root["laser" + this]._alpha = 100;
tellTarget (fire) {
gotoAndPlay (2);
};
}
}
Symbol 216 MovieClip [cop] Frame 9
if (random(30) == 1) {
fireDist = Math.sqrt(((this._x - _root.player._x) * (this._x - _root.player._x)) + ((this._y - _root.player._y) * (this._y - _root.player._y)));
if (fireDist < 350) {
_root.actions.enemyfire(this);
_root["laser" + this]._alpha = 100;
tellTarget (fire) {
gotoAndPlay (2);
};
}
}
Symbol 216 MovieClip [cop] Frame 13
gotoAndPlay (2);
Symbol 216 MovieClip [cop] Frame 14
tellTarget (fire) {
gotoAndPlay (2);
};
Symbol 216 MovieClip [cop] Frame 17
gotoAndPlay (1);
Symbol 216 MovieClip [cop] Frame 18
stop();
Symbol 222 MovieClip Frame 1
stop();
Symbol 222 MovieClip Frame 2
stop();
Symbol 222 MovieClip Frame 3
stop();
Symbol 222 MovieClip Frame 4
stop();
Symbol 223 MovieClip [firecorpse] Frame 1
xvector = _root.c4explode._x - this._x;
yvector = _root.c4explode._y - this._y;
distanceFull = Math.sqrt((xvector * xvector) + (yvector * yvector));
xvector = xvector / distanceFull;
yvector = yvector / distanceFull;
speed = speed * 0.85;
this._x = this._x - ((30 * xvector) * speed);
this._y = this._y - ((30 * yvector) * speed);
this._rotation = this._rotation + (speed * 100);
Symbol 223 MovieClip [firecorpse] Frame 2
gotoAndPlay (1);
Symbol 228 MovieClip [notice] Frame 1
Symbol 228 MovieClip [notice] Frame 70
removeMovieClip(this);
Symbol 251 MovieClip Frame 1
walking = true;
pedcolour = "green";
stop();
Symbol 251 MovieClip Frame 2
walking = false;
Symbol 251 MovieClip Frame 19
tellTarget (_parent) {
gotoAndPlay (1);
};
gotoAndStop (1);
Symbol 251 MovieClip Frame 20
walking = true;
pedcolour = "purple";
stop();
Symbol 251 MovieClip Frame 21
walking = false;
Symbol 251 MovieClip Frame 39
tellTarget (_parent) {
gotoAndPlay (1);
};
gotoAndStop (20);
Symbol 251 MovieClip Frame 40
walking = true;
pedcolour = "darkblue";
stop();
Symbol 251 MovieClip Frame 41
walking = false;
Symbol 251 MovieClip Frame 59
tellTarget (_parent) {
gotoAndPlay (1);
};
gotoAndStop (40);
Symbol 251 MovieClip Frame 60
walking = true;
pedcolour = "yellow";
stop();
Symbol 251 MovieClip Frame 61
walking = false;
Symbol 251 MovieClip Frame 79
tellTarget (_parent) {
gotoAndPlay (1);
};
gotoAndStop (60);
Symbol 251 MovieClip Frame 80
walking = true;
pedcolour = "white";
stop();
Symbol 251 MovieClip Frame 81
walking = false;
Symbol 251 MovieClip Frame 99
tellTarget (_parent) {
gotoAndPlay (1);
};
gotoAndStop (80);
Symbol 251 MovieClip Frame 100
walking = true;
pedcolour = "orange";
stop();
Symbol 251 MovieClip Frame 101
walking = false;
Symbol 251 MovieClip Frame 119
tellTarget (_parent) {
gotoAndPlay (1);
};
gotoAndStop (100);
Symbol 251 MovieClip Frame 120
walking = true;
pedcolour = "black";
stop();
Symbol 251 MovieClip Frame 121
walking = false;
Symbol 251 MovieClip Frame 139
tellTarget (_parent) {
gotoAndPlay (1);
};
gotoAndStop (120);
Symbol 251 MovieClip Frame 140
walking = true;
pedcolour = "lightblue";
stop();
Symbol 251 MovieClip Frame 141
walking = false;
Symbol 251 MovieClip Frame 159
tellTarget (_parent) {
gotoAndPlay (1);
};
gotoAndStop (140);
Symbol 251 MovieClip Frame 160
walking = true;
pedcolour = "white2";
stop();
Symbol 251 MovieClip Frame 161
walking = false;
Symbol 251 MovieClip Frame 179
tellTarget (_parent) {
gotoAndPlay (1);
};
gotoAndStop (160);
Symbol 251 MovieClip Frame 180
walking = true;
pedcolour = "red";
stop();
Symbol 251 MovieClip Frame 181
walking = false;
Symbol 251 MovieClip Frame 199
tellTarget (_parent) {
gotoAndPlay (1);
};
gotoAndStop (180);
Symbol 276 MovieClip Frame 24
gotoAndPlay (1);
Symbol 276 MovieClip Frame 25
if (_root.sfx) {
punchSound = new Sound(this);
punchSound.attachSound("punch.wav");
punchSound.start();
}
if (pedtype.walking == true) {
tellTarget (pedtype) {
play();
};
pedtype.walking = false;
}
stop();
Symbol 314 MovieClip [sergeantcorpse1] Frame 83
_root.corpseonscreen--;
removeMovieClip(this);
Symbol 317 MovieClip Frame 10
stop();
Symbol 332 Button
on (release) {
_root.play();
}
Symbol 333 MovieClip Frame 1
function timerHandler() {
if (!loadingComplete) {
var _local2 = _root.getBytesLoaded() / _root.getBytesTotal();
bar._xscale = 100 * _local2;
if (_local2 == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
} else {
gotoAndPlay ("loaded");
}
return(undefined);
}
}
}
function startMovie() {
_root.play();
}
_root.stop();
stop();
var AUTO_PLAY = false;
var loadingComplete = false;
timerHandler();
Instance of Symbol 328 MovieClip in Symbol 333 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.timerHandler();
}
Symbol 333 MovieClip Frame 20
stop();
Symbol 1428 MovieClip [__Packages.mochi.as2.MochiSync] Frame 0
class mochi.as2.MochiSync
{
var _syncContainer;
function MochiSync () {
_syncContainer = {};
}
function getProp(name) {
return(_syncContainer[name]);
}
function setProp(name, value) {
if (_syncContainer[name] == value) {
return(undefined);
}
_syncContainer[name] = value;
mochi.as2.MochiServices.send("sync_propUpdate", {name:name, value:value});
}
function triggerEvent(eventType, args) {
switch (eventType) {
case SYNC_REQUEST :
mochi.as2.MochiServices.send("sync_syncronize", _syncContainer);
break;
case SYNC_PROPERTY :
_syncContainer[args.name] = args.value;
}
}
static var SYNC_REQUEST = "SyncRequest";
static var SYNC_PROPERTY = "UpdateProperty";
}
Symbol 1429 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.8 as2");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError.apply(null, [errorCode]);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
break;
case "sync" :
mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function updateCopy(args) {
send("coins_updateCopy", args, null, null);
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var servicesSync = new mochi.as2.MochiSync();
}
Symbol 1430 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 1431 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function setNotifications(clip, style) {
var _local2 = {};
for (var _local3 in style) {
_local2[_local3] = style[_local3];
}
_local2.clip = clip;
mochi.as2.MochiServices.send("events_setNotifications", _local2, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startPlay(tag) {
if (tag == undefined) {
tag = "gameplay";
}
mochi.as2.MochiServices.send("events_setRoundID", {tag:String(tag)}, null, null);
}
static function endPlay() {
mochi.as2.MochiServices.send("events_clearRoundID", null, null, null);
}
static function trackEvent(tag, value) {
mochi.as2.MochiServices.send("events_trackEvent", {tag:tag, value:value}, null, null);
}
static var ACHIEVEMENT_RECEIVED = "AchievementReceived";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1432 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("coins_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("coins_hideLoginWidget");
}
static function requestLogin() {
mochi.as2.MochiServices.send("coins_requestLogin");
}
static function getUserInfo() {
mochi.as2.MochiServices.send("coins_getUserInfo");
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("coins_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1433 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
options.clip = mochi.as2.MochiServices.clip;
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
trace("WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!");
trace("make sure MochiServices.connect is called as early in the application runtime as possible.");
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.as2.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.as2.MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 1434 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 347 MovieClip Frame 1
stop();
Symbol 347 MovieClip Frame 2
stop();
Symbol 347 MovieClip Frame 3
stop();
Symbol 347 MovieClip Frame 4
stop();
Symbol 347 MovieClip Frame 5
stop();
Symbol 347 MovieClip Frame 6
stop();
Symbol 383 MovieClip [swatcorpse1] Frame 83
_root.corpseonscreen--;
removeMovieClip(this);
Symbol 438 MovieClip [swatcorpse2] Frame 140
_root.corpseonscreen--;
removeMovieClip(this);
Symbol 471 MovieClip [swatcorpse3] Frame 1
this._xscale = 120;
this._yscale = 120;
Symbol 471 MovieClip [swatcorpse3] Frame 169
_root.corpseonscreen--;
removeMovieClip(this);
Symbol 513 MovieClip [sergeantcorpse2] Frame 140
_root.corpseonscreen--;
removeMovieClip(this);
Symbol 541 MovieClip [sergeantcorpse3] Frame 1
this._xscale = 120;
this._yscale = 120;
Symbol 541 MovieClip [sergeantcorpse3] Frame 169
_root.corpseonscreen--;
removeMovieClip(this);
Symbol 585 MovieClip Frame 13
Symbol 660 MovieClip [sergeantcorpse4] Frame 217
_root.corpseonscreen--;
removeMovieClip(this);
Symbol 744 MovieClip [copcorpse4] Frame 210
_root.corpseonscreen--;
removeMovieClip(this);
Symbol 750 MovieClip Frame 5
stop();
Symbol 752 MovieClip [deadped] Frame 65
removeMovieClip(this);
Symbol 780 MovieClip [deadplayer] Frame 92
Symbol 817 MovieClip [armycorpse1] Frame 83
_root.corpseonscreen--;
removeMovieClip(this);
Symbol 863 MovieClip [armycorpse2] Frame 140
_root.corpseonscreen--;
removeMovieClip(this);
Symbol 935 MovieClip Frame 1
stop();
Symbol 947 Button
on (release) {
_root.soundholder.playClickSound();
_root.resetbutton.resetall();
_root.alive = true;
_root.titleblock.gotoAndPlay(51);
}
on (rollOver) {
_root.soundholder.playHoverSound();
}
Symbol 951 Button
on (rollOver) {
_root.soundholder.playHoverSound();
}
on (release) {
_root.soundholder.playClickSound();
if (_root.mySharedObject.data.totalcopskilled == undefined) {
_root.shopactions.writenotice("No previous game found in memory!");
} else {
_root.loadsave.loadgame();
_root.titleblock.gotoAndPlay(51);
}
}
Symbol 958 Button
on (rollOver) {
_root.soundholder.playHoverSound();
}
on (release) {
_root.soundholder.playClickSound();
_root.medals.sponsor = true;
getURL ("http://www.bored.com/?utm_source=tpvisit&utm_medium=flashgames&utm_campaign=johnnycopkill", "_blank");
}
Symbol 962 Button
on (release) {
Mouse.show();
var o = {n:[4, 14, 7, 14, 13, 3, 12, 9, 5, 9, 7, 5, 5, 14, 4, 12], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "4e7ed3c959755e4c");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID, onClose:""});
_root.soundholder.playClickSound();
}
on (rollOver) {
_root.soundholder.playHoverSound();
}
Symbol 970 MovieClip Frame 1
_root.mySharedObject = SharedObject.getLocal("userData");
Instance of Symbol 968 MovieClip in Symbol 970 MovieClip Frame 20
on (release) {
getURL ("http://www.bored.com/?utm_source=tpvisit&utm_medium=flashgames&utm_campaign=johnnycopkill", "_blank");
}
Symbol 970 MovieClip Frame 50
stop();
Symbol 970 MovieClip Frame 70
_root.crosshair.swapDepths(-100);
_root.gotoAndStop(3);
Symbol 1059 MovieClip Frame 7
goSound = new Sound(_root);
goSound.attachSound("321go.mp3");
goSound.start();
Symbol 1059 MovieClip Frame 20
_root.vol = 100;
_root.musicSound.setVolume(100);
Symbol 1059 MovieClip Frame 40
_root.vol = 100;
_root.musicSound.setVolume(100);
Symbol 1059 MovieClip Frame 60
_root.vol = 100;
_root.musicSound.setVolume(100);
Symbol 1059 MovieClip Frame 80
_root.vol = 100;
_root.musicSound.setVolume(100);
Symbol 1059 MovieClip Frame 100
_root.vol = 100;
_root.musicSound.setVolume(100);
Symbol 1059 MovieClip Frame 120
_root.vol = 100;
_root.musicSound.setVolume(100);
Symbol 1059 MovieClip Frame 140
_root.vol = 100;
_root.musicSound.setVolume(100);
Symbol 1059 MovieClip Frame 160
_root.vol = 100;
_root.musicSound.setVolume(100);
Symbol 1059 MovieClip Frame 166
_root.attempts++;
removeMovieClip(_root.crosshair);
_root.gotoAndStop(4);
Symbol 1062 MovieClip Frame 1
_root.carangle = -90;
Symbol 1062 MovieClip Frame 20
_root.carangle = 180;
Symbol 1062 MovieClip Frame 101
_root.carangle = 90;
Symbol 1062 MovieClip Frame 183
_root.carangle = 0;
Symbol 1062 MovieClip Frame 273
_root.carangle = -90;
Symbol 1064 MovieClip Frame 1
_root.carangle2 = 180;
Symbol 1064 MovieClip Frame 63
_root.carangle2 = -90;
Symbol 1064 MovieClip Frame 137
_root.carangle2 = 0;
Symbol 1064 MovieClip Frame 205
_root.carangle2 = 90;
Symbol 1080 MovieClip Frame 21
stop();
Symbol 1088 MovieClip Frame 1
stop();
Symbol 1107 MovieClip Frame 1
stop();
Symbol 1107 MovieClip Frame 2
if (_root.sfx) {
tadaSound = new Sound(this);
tadaSound.attachSound("tada.wav");
tadaSound.start();
medalgetSound = new Sound(this);
medalgetSound.attachSound("medalget.mp3");
medalgetSound.start();
}
Symbol 1112 MovieClip Frame 1
if (this == _root.cpu1) {
gotoAndStop (18);
} else if (random(30) == 1) {
fireDist = Math.sqrt(((this._x - _root.player._x) * (this._x - _root.player._x)) + ((this._y - _root.player._y) * (this._y - _root.player._y)));
if (fireDist < 350) {
_root.actions.enemyfire(this);
_root["laser" + this]._alpha = 100;
gotoAndPlay (14);
}
} else {
gotoAndPlay (1);
}
Symbol 1112 MovieClip Frame 5
if (random(10) == 1) {
fireDist = Math.sqrt(((this._x - _root.player._x) * (this._x - _root.player._x)) + ((this._y - _root.player._y) * (this._y - _root.player._y)));
if (fireDist < 350) {
_root.actions.enemyfire(this);
_root["laser" + this]._alpha = 100;
tellTarget (fire) {
gotoAndPlay (2);
};
}
}
Symbol 1112 MovieClip Frame 9
if (random(10) == 1) {
fireDist = Math.sqrt(((this._x - _root.player._x) * (this._x - _root.player._x)) + ((this._y - _root.player._y) * (this._y - _root.player._y)));
if (fireDist < 350) {
_root.actions.enemyfire(this);
_root["laser" + this]._alpha = 100;
tellTarget (fire) {
gotoAndPlay (2);
};
}
}
Symbol 1112 MovieClip Frame 13
gotoAndPlay (2);
Symbol 1112 MovieClip Frame 14
tellTarget (fire) {
gotoAndPlay (2);
};
Symbol 1112 MovieClip Frame 17
gotoAndPlay (1);
Symbol 1112 MovieClip Frame 18
stop();
Symbol 1116 MovieClip Frame 1
if (this == _root.cpu1) {
gotoAndStop (18);
} else if (random(30) == 1) {
fireDist = Math.sqrt(((this._x - _root.player._x) * (this._x - _root.player._x)) + ((this._y - _root.player._y) * (this._y - _root.player._y)));
if (fireDist < 350) {
_root.actions.enemyfire(this);
_root["laser" + this]._alpha = 100;
gotoAndPlay (14);
}
} else {
gotoAndPlay (1);
}
Symbol 1116 MovieClip Frame 5
if (random(10) == 1) {
fireDist = Math.sqrt(((this._x - _root.player._x) * (this._x - _root.player._x)) + ((this._y - _root.player._y) * (this._y - _root.player._y)));
if (fireDist < 350) {
_root.actions.enemyfire(this);
_root["laser" + this]._alpha = 100;
tellTarget (fire) {
gotoAndPlay (2);
};
}
}
Symbol 1116 MovieClip Frame 9
if (random(10) == 1) {
fireDist = Math.sqrt(((this._x - _root.player._x) * (this._x - _root.player._x)) + ((this._y - _root.player._y) * (this._y - _root.player._y)));
if (fireDist < 350) {
_root.actions.enemyfire(this);
_root["laser" + this]._alpha = 100;
tellTarget (fire) {
gotoAndPlay (2);
};
}
}
Symbol 1116 MovieClip Frame 13
gotoAndPlay (2);
Symbol 1116 MovieClip Frame 14
tellTarget (fire) {
gotoAndPlay (2);
};
Symbol 1116 MovieClip Frame 17
gotoAndPlay (1);
Symbol 1116 MovieClip Frame 18
stop();
Symbol 1133 MovieClip Frame 1
if (this == _root.cpu1) {
gotoAndStop (18);
} else if (random(30) == 1) {
fireDist = Math.sqrt(((this._x - _root.player._x) * (this._x - _root.player._x)) + ((this._y - _root.player._y) * (this._y - _root.player._y)));
if (fireDist < 350) {
_root.actions.enemyfire(this);
_root["laser" + this]._alpha = 100;
gotoAndPlay (14);
}
} else {
gotoAndPlay (1);
}
Symbol 1133 MovieClip Frame 5
if (random(10) == 1) {
fireDist = Math.sqrt(((this._x - _root.player._x) * (this._x - _root.player._x)) + ((this._y - _root.player._y) * (this._y - _root.player._y)));
if (fireDist < 350) {
_root.actions.enemyfire(this);
_root["laser" + this]._alpha = 100;
tellTarget (fire) {
gotoAndPlay (2);
};
}
}
Symbol 1133 MovieClip Frame 9
if (random(10) == 1) {
fireDist = Math.sqrt(((this._x - _root.player._x) * (this._x - _root.player._x)) + ((this._y - _root.player._y) * (this._y - _root.player._y)));
if (fireDist < 350) {
_root.actions.enemyfire(this);
_root["laser" + this]._alpha = 100;
tellTarget (fire) {
gotoAndPlay (2);
};
}
}
Symbol 1133 MovieClip Frame 13
gotoAndPlay (2);
Symbol 1133 MovieClip Frame 14
tellTarget (fire) {
gotoAndPlay (2);
};
Symbol 1133 MovieClip Frame 17
gotoAndPlay (1);
Symbol 1133 MovieClip Frame 18
stop();
Symbol 1150 MovieClip Frame 1
stop();
Symbol 1150 MovieClip Frame 2
stop();
Symbol 1150 MovieClip Frame 3
stop();
Symbol 1150 MovieClip Frame 4
stop();
Symbol 1150 MovieClip Frame 5
stop();
Symbol 1150 MovieClip Frame 6
stop();
Symbol 1153 MovieClip Frame 1
stop();
Symbol 1153 MovieClip Frame 2
stop();
Symbol 1153 MovieClip Frame 3
stop();
Symbol 1171 MovieClip Frame 1
stop();
Symbol 1171 MovieClip Frame 34
gotoAndPlay (2);
Symbol 1181 MovieClip Frame 1
stop();
Symbol 1181 MovieClip Frame 2
if (_root.sfx) {
explosionSound = new Sound(this);
explosionSound.attachSound("explosion.wav");
explosionSound.start(0, 0);
}
Symbol 1181 MovieClip Frame 46
_root.actions.shake = false;
Symbol 1188 MovieClip Frame 1
stop();
Symbol 1190 MovieClip Frame 1
stop();
Symbol 1197 MovieClip Frame 7
stop();
Symbol 1207 Button
on (press) {
if (_root.sfx == true) {
_root.sfx = false;
_root.sfxbutton.gotoAndStop(2);
} else {
_root.sfx = true;
_root.sfxbutton.gotoAndStop(1);
}
}
Symbol 1209 MovieClip Frame 1
stop();
Symbol 1209 MovieClip Frame 2
stop();
Symbol 1215 Button
on (press) {
if (_root.music == true) {
_root.music = false;
_root.musicSound.stop();
_root.musicbutton.gotoAndStop(2);
} else {
_root.music = true;
_root.musicSound.start(0, 9999);
_root.musicbutton.gotoAndStop(1);
}
}
Symbol 1216 MovieClip Frame 1
stop();
Symbol 1216 MovieClip Frame 2
stop();
Symbol 1219 MovieClip Frame 1
stop();
Symbol 1219 MovieClip Frame 87
_root.shotaccuracy = Math.round((10000 * _root.hitcounter) / _root.shotsfired) / 100;
if (_root.shotaccuracy == 100) {
if (_root.medals.marksmanship == false) {
_root.medals.getMarksmanship = true;
}
}
if (((_root.cashfound + _root.cashbonus) + Math.round(_root.countup * _root.cashupgrade)) >= 1000) {
if (_root.medals.spree1000 == false) {
_root.medals.getSpree1000 = true;
}
}
if (((_root.cashfound + _root.cashbonus) + Math.round(_root.countup * _root.cashupgrade)) >= 10000) {
if (_root.medals.spree10000 == false) {
_root.medals.getSpree10000 = true;
}
}
if (((_root.cashfound + _root.cashbonus) + Math.round(_root.countup * _root.cashupgrade)) >= 20000) {
if (_root.medals.spree20000 == false) {
_root.medals.getSpree20000 = true;
}
}
if (_root.shotaccuracy <= 5) {
if (_root.medals.maniac == false) {
_root.medals.getManiac = true;
}
}
i = 5;
while (i <= _root.actions.spawncounter) {
removeMovieClip(_root["cpu" + i]);
i++;
}
i = 5;
while (i <= _root.actions.spawncounter) {
removeMovieClip(_root["corpse" + i]);
i++;
}
i = 1;
while (i <= _root.pedcounter) {
removeMovieClip(_root["ped" + i]);
i++;
}
i = 1;
while (i <= 5) {
removeMovieClip(_root["carblood" + i]);
i++;
}
i = 5;
while (i <= _root.firecorpsecounter) {
removeMovieClip(_root["firecorpse" + i]);
i++;
}
removeMovieClip(_root.player);
removeMovieClip(_root.buildings);
removeMovieClip(_root.car);
removeMovieClip(_root.car2);
removeMovieClip(_root.tree);
removeMovieClip(_root.explosion);
removeMovieClip(_root.healthbar);
removeMovieClip(_root.sfxbutton);
removeMovieClip(_root.musicbutton);
removeMovieClip(_root.healthbaroutline);
removeMovieClip(_root.cashtotal);
removeMovieClip(_root.ammo);
removeMovieClip(_root.redhit);
removeMovieClip(_root.medalget);
removeMovieClip(_root.deadplayer);
_root.gotoAndStop(5);
Symbol 1219 MovieClip Frame 88
_root.gotoAndStop(5);
removeMovieClip(this);
Symbol 1228 Button
on (release) {
tellTarget (_root.analysis) {
play();
};
}
Symbol 1231 Button
on (release) {
var o = {n:[4, 14, 7, 14, 13, 3, 12, 9, 5, 9, 7, 5, 5, 14, 4, 12], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "4e7ed3c959755e4c");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID, score:(Math.round(_root.countup * _root.cashupgrade) + _root.cashbonus) + _root.cashfound, onClose:""});
Mouse.show();
_root.soundholder.playClickSound();
}
on (rollOver) {
_root.soundholder.playHoverSound();
}
Instance of Symbol 968 MovieClip in Symbol 1232 MovieClip Frame 1
on (release) {
_root.medals.sponsor = true;
getURL ("http://www.bored.com/?utm_source=tpvisit&utm_medium=flashgames&utm_campaign=johnnycopkill", "_blank");
}
Symbol 1233 MovieClip Frame 19
stop();
Symbol 1233 MovieClip Frame 54
_root.gotoAndStop(6);
Symbol 1243 MovieClip Frame 1
stop();
Symbol 1243 MovieClip Frame 2
stop();
Symbol 1243 MovieClip Frame 3
stop();
Symbol 1243 MovieClip Frame 4
stop();
Symbol 1243 MovieClip Frame 5
stop();
Symbol 1243 MovieClip Frame 6
stop();
Symbol 1243 MovieClip Frame 7
stop();
Symbol 1243 MovieClip Frame 8
stop();
Symbol 1243 MovieClip Frame 9
stop();
Symbol 1248 Button
on (release) {
_root.soundholder.playClickSound();
_parent.play();
_root.buttonclicked = "retry";
_root.removeMovieClip(_root.adBox);
}
on (rollOver) {
_root.soundholder.playHoverSound();
}
Symbol 1253 Button
on (release) {
_parent.play();
_root.buttonclicked = "shop";
_root.soundholder.playClickSound();
}
on (rollOver) {
_root.soundholder.playHoverSound();
}
Symbol 1258 Button
on (release) {
_root.soundholder.playClickSound();
_root.medals.sponsor = true;
_root.medals.newmedal("Visit Bored.com!");
getURL ("http://www.bored.com/?utm_source=tpvisit&utm_medium=flashgames&utm_campaign=johnnycopkill", "_blank");
}
on (rollOver) {
_root.soundholder.playHoverSound();
}
Symbol 1262 Button
on (release) {
var o = {n:[4, 14, 7, 14, 13, 3, 12, 9, 5, 9, 7, 5, 5, 14, 4, 12], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "4e7ed3c959755e4c");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID, score:(Math.round(_root.countup * _root.cashupgrade) + _root.cashbonus) + _root.cashfound, onClose:""});
Mouse.show();
_root.soundholder.playClickSound();
}
on (rollOver) {
_root.soundholder.playHoverSound();
}
Symbol 1266 MovieClip Frame 1
_root.buttonclicked = "";
Symbol 1266 MovieClip Frame 17
stop();
Instance of Symbol 1265 MovieClip in Symbol 1266 MovieClip Frame 18
onClipEvent (enterFrame) {
if (_root.buttonclicked == "retry") {
if (_root.vol < 100) {
_root.vol = _root.vol + 5;
musicSound.setVolume(_root.vol);
}
}
}
Symbol 1266 MovieClip Frame 27
if (_root.buttonclicked == "retry") {
_root.gotoAndStop(7);
} else if (_root.buttonclicked == "shop") {
_root.gotoAndStop(8);
trace("shop");
}
Symbol 1270 MovieClip Frame 1
if (_root.sfx) {
threetwooneSound = new Sound(_root);
threetwooneSound.attachSound("threetwoone.mp3");
threetwooneSound.start();
}
Symbol 1270 MovieClip Frame 10
_root.vol = 100;
_root.soundholder.musicSound.setVolume(_root.vol);
Symbol 1270 MovieClip Frame 78
_root.attempts++;
removeMovieClip(_root.crosshair);
_root.gotoAndStop(4);
Symbol 1277 Button
on (rollOver) {
_root.shopmc.shopmc.purchaseitems.gotoAndStop(2);
_root.soundholder.playHoverSound();
}
Symbol 1282 Button
on (rollOver) {
_root.shopmc.shopmc.purchaseitems.gotoAndStop(4);
_root.soundholder.playHoverSound();
}
Symbol 1287 Button
on (rollOver) {
_root.shopmc.shopmc.purchaseitems.gotoAndStop(3);
_root.soundholder.playHoverSound();
}
Symbol 1292 Button
on (release) {
_root.shopactions["buy" + _root.buytype]();
}
on (rollOver) {
_root.soundholder.playHoverSound();
}
Symbol 1297 Button
on (release) {
_root.soundholder.playClickSound();
if (_root.buytype == "gun") {
_root.shopactions.equip();
} else {
_root.shopactions.writenotice("You can only equip guns! All other items are automatically equipped.");
}
}
on (rollOver) {
_root.soundholder.playHoverSound();
}
Symbol 1301 Button
on (release) {
_root.soundholder.playClickSound();
_root.gotoframe = 7;
_root.shopmc.gotoAndPlay(21);
}
on (rollOver) {
_root.soundholder.playHoverSound();
}
Symbol 1306 Button
on (release) {
_root.shopmc.shopmc.description = "Revolver\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + "A primitive weapon. Slow to reload and weaker than your grandma's bladder.\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + "Price: You've already got one.\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + ("You have: $" + _root.grandtotal);
_root.itemtopurchase = "revolver";
_root.buytype = "gun";
_root.soundholder.playHover2Sound();
}
Symbol 1307 Button
on (release) {
_root.shopmc.shopmc.description = "Desert Eagle\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + "A far superior pistol to the revolver, but not adequate for annihilation of crowds.\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + "Price: $4000\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + ("You have: $" + _root.grandtotal);
_root.itemtopurchase = "deserteagle";
_root.itemprice = 4000;
_root.buytype = "gun";
_root.soundholder.playHover2Sound();
}
Symbol 1308 Button
on (release) {
_root.shopmc.shopmc.description = "Uzi\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + "The cheapest automatic gun. Things could get messy.\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + "Price: $8000\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + ("You have: $" + _root.grandtotal);
_root.itemtopurchase = "uzi";
_root.itemprice = 8000;
_root.buytype = "gun";
_root.soundholder.playHover2Sound();
}
Symbol 1309 Button
on (release) {
_root.shopmc.shopmc.description = "Sawn-off Shotgun\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + "Chk-Chk, BOOM! Give your foes some face-time with Bullet McSlug.\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + "Price: $15000\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + ("You have: $" + _root.grandtotal);
_root.itemtopurchase = "shotgun";
_root.itemprice = 15000;
_root.buytype = "gun";
_root.soundholder.playHover2Sound();
}
Symbol 1310 Button
on (release) {
_root.itemtopurchase = "ak47";
_root.itemprice = 25000;
_root.shopmc.shopmc.description = "AK47\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + "Russian Made. Strong like their vodka; masculine like their women.\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + "Price: $25000\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + ("You have: $" + _root.grandtotal);
_root.buytype = "gun";
_root.soundholder.playHover2Sound();
}
Symbol 1311 Button
on (release) {
_root.itemtopurchase = "electricitygun";
_root.itemprice = 80000 /* 0x013880 */;
_root.shopmc.shopmc.description = "Super Raygun 2000\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + "The ultimate weapon. This is not for sale. Okay fine it's for sale.\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + "Price: $80000\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + ("You have: $" + _root.grandtotal);
_root.buytype = "gun";
_root.soundholder.playHover2Sound();
}
Symbol 1318 Button
on (release) {
_root.shopmc.shopmc.description = "C4 Explosive\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + "Short fused explosive. Hit <Enter> and run for your life!\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + "Price: $1000 (One Use Only)\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + ("You have: $" + _root.grandtotal);
_root.buytype = "explosives";
_root.itemprice = 1000;
_root.soundholder.playHover2Sound();
}
Symbol 1321 Button
on (release) {
_root.shopmc.shopmc.description = "Chainmail Armour\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + "Provides double health. Yeah, I spell armour with a 'u', wanna fight about it?\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + "Price: $8000\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + ("You have: $" + _root.grandtotal);
_root.buytype = "armour";
_root.itemtopurchase = "chainmail";
_root.itemprice = 8000;
_root.soundholder.playHover2Sound();
}
Symbol 1322 Button
on (release) {
_root.shopmc.shopmc.description = "SWAT-Standard Bulletproof Body Suit\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + "Quadruple the protection, quadruple the pleasure.\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + "Price: $40000\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + ("You have: $" + _root.grandtotal);
_root.buytype = "armour";
_root.itemtopurchase = "bulletproofsuit";
_root.itemprice = 40000;
_root.soundholder.playHover2Sound();
}
Symbol 1329 Button
on (release) {
_root.shopmc.shopmc.description = "Kokiri Boots\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + "Normal boring boots. Heavy and slow.\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + "Price: You've already got them.\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + ("You have: $" + _root.grandtotal);
_root.buytype = "accessories";
_root.itemtopurchase = "kokiri";
_root.soundholder.playHover2Sound();
}
Symbol 1330 Button
on (release) {
_root.shopmc.shopmc.description = "Power Boots\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + "Provides extra speed. You'll make Speedy Gonzales look like Regular Gonzales.\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + "Price: $4000\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + ("You have: $" + _root.grandtotal);
_root.buytype = "accessories";
_root.itemtopurchase = "nikeair";
_root.itemprice = 4000;
_root.soundholder.playHover2Sound();
}
Symbol 1331 Button
on (release) {
_root.shopmc.shopmc.description = "Cash Rate Upgrade\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + "Earn extra cash on each spree. Increases your time bonus by 50%.\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + "Price: $8000\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + ("You have: $" + _root.grandtotal);
_root.buytype = "accessories";
_root.itemtopurchase = "upgrade1";
_root.itemprice = 8000;
_root.soundholder.playHover2Sound();
}
Symbol 1332 Button
on (release) {
_root.shopmc.shopmc.description = "Cash Rate Super Upgrade\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + "Doubles your time bonus each spree. You'll be Bill Gates in no time.\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + "Price: $20000\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + ("You have: $" + _root.grandtotal);
_root.buytype = "accessories";
_root.itemtopurchase = "upgrade2";
_root.itemprice = 20000;
_root.soundholder.playHover2Sound();
}
Symbol 1333 Button
on (release) {
_root.shopmc.shopmc.description = "Ham\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + "Hungry? Have this delicious ham.\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + "Price: $28\r";
_root.shopmc.shopmc.description = _root.shopmc.shopmc.description + ("You have: $" + _root.grandtotal);
_root.buytype = "accessories";
_root.itemtopurchase = "ham";
_root.itemprice = 28;
_root.soundholder.playHover2Sound();
if (_root.sfx) {
hamSound = new Sound(_root);
hamSound.attachSound("ham" + _root.hamcounter);
hamSound.start();
_root.hamcounter++;
}
}
Symbol 1334 MovieClip Frame 1
stop();
Symbol 1334 MovieClip Frame 2
stop();
Instance of Symbol 1315 MovieClip in Symbol 1334 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.deserteagle) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1315 MovieClip in Symbol 1334 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.shotgun) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1315 MovieClip in Symbol 1334 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.uzi) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1315 MovieClip in Symbol 1334 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.ak47) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1315 MovieClip in Symbol 1334 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.electricitygun) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 1334 MovieClip Frame 3
stop();
Symbol 1334 MovieClip Frame 4
stop();
Instance of Symbol 1315 MovieClip in Symbol 1334 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.chainmail) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1315 MovieClip in Symbol 1334 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.bulletproofsuit) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 1334 MovieClip Frame 5
stop();
Instance of Symbol 1315 MovieClip in Symbol 1334 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_root.nikeair) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1315 MovieClip in Symbol 1334 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_root.upgrade1) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 1315 MovieClip in Symbol 1334 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_root.upgrade2) {
this._visible = true;
} else {
this._visible = false;
}
}
Symbol 1338 Button
on (release) {
_root.gotoframe = 9;
_root.shopmc.gotoAndPlay(21);
_root.soundholder.playHoverSound();
}
Symbol 1343 Button
on (rollOver) {
_root.shopmc.shopmc.purchaseitems.gotoAndStop(5);
_root.soundholder.playHoverSound();
}
Symbol 1347 Button
on (release) {
_root.soundholder.playHoverSound();
_root.shopmc.shopmc.resetalldata.gotoAndStop(2);
}
Symbol 1351 Button
on (release) {
_root.soundholder.playClickSound();
_root.resetbutton.resetall();
_root.loadsave.savegame();
}
Symbol 1352 MovieClip Frame 1
stop();
Symbol 1352 MovieClip Frame 2
stop();
Symbol 1354 MovieClip Frame 1
_root.shopmc.shopmc.resetalldata.gotoAndStop(1);
Symbol 1355 MovieClip Frame 20
stop();
Instance of Symbol 1265 MovieClip in Symbol 1355 MovieClip Frame 21
onClipEvent (enterFrame) {
if (_root.gotoframe == 7) {
if (_root.vol < 100) {
_root.vol = _root.vol + 5;
musicSound.setVolume(_root.vol);
}
}
}
Symbol 1355 MovieClip Frame 35
if (_root.gotoframe == 7) {
removeMovieClip(_root.crosshair);
_root.shopSound.stop();
_root.vol = 100;
musicSound.setVolume(_root.vol);
}
_root.gotoAndStop(_root.gotoframe);
Symbol 1358 MovieClip Frame 1
stop();
Symbol 1358 MovieClip Frame 2
stop();
Symbol 1392 Button
on (release) {
_root.soundholder.playHoverSound();
_root.stats.gotoAndPlay(21);
}
Symbol 1398 Button
on (rollOver) {
medalname = "Beginner";
medaldescription = "Kill 100 Cops in total.";
if (_root.medals.totalKills100) {
bigmedal.gotoAndStop(2);
} else {
bigmedal.gotoAndStop(1);
}
}
Symbol 1399 Button
on (rollOver) {
medalname = "Amateur";
medaldescription = "Kill 250 Cops in total.";
if (_root.medals.totalKills250) {
bigmedal.gotoAndStop(2);
} else {
bigmedal.gotoAndStop(1);
}
}
Symbol 1400 Button
on (rollOver) {
medalname = "Master";
medaldescription = "Kill 500 Cops in total.";
if (_root.medals.totalKills500) {
bigmedal.gotoAndStop(2);
} else {
bigmedal.gotoAndStop(1);
}
}
Symbol 1401 Button
on (rollOver) {
medalname = "Spawn of Satan";
medaldescription = "Kill 1000 Cops in total.";
if (_root.medals.totalKills1000) {
bigmedal.gotoAndStop(2);
} else {
bigmedal.gotoAndStop(1);
}
}
Symbol 1402 Button
on (rollOver) {
medalname = "Marksmanship";
medaldescription = "Score 100% accuracy on a spree.";
if (_root.medals.marksmanship) {
bigmedal.gotoAndStop(2);
} else {
bigmedal.gotoAndStop(1);
}
}
Symbol 1403 Button
on (rollOver) {
medalname = "Maniac";
medaldescription = "Score 0% accuracy on a spree.";
if (_root.medals.maniac) {
bigmedal.gotoAndStop(2);
} else {
bigmedal.gotoAndStop(1);
}
}
Symbol 1404 Button
on (rollOver) {
medalname = "Kill 50 Officers";
medaldescription = "Kill 50 regular patrolling officers.";
if (_root.medals.killOfficer50) {
bigmedal.gotoAndStop(2);
} else {
bigmedal.gotoAndStop(1);
}
}
Symbol 1405 Button
on (rollOver) {
medalname = "Kill 50 Sergeants";
medaldescription = "Kill 50 higher-rank policemen.";
if (_root.medals.killSergeant50) {
bigmedal.gotoAndStop(2);
} else {
bigmedal.gotoAndStop(1);
}
}
Symbol 1406 Button
on (rollOver) {
medalname = "Kill 250 Officers";
medaldescription = "Kill 250 regular patrolling officers.";
if (_root.medals.killOfficer250) {
bigmedal.gotoAndStop(2);
} else {
bigmedal.gotoAndStop(1);
}
}
Symbol 1407 Button
on (rollOver) {
medalname = "Kill 250 Sergeants";
medaldescription = "Kill 250 higher-rank policemen.";
if (_root.medals.killSergeant250) {
bigmedal.gotoAndStop(2);
} else {
bigmedal.gotoAndStop(1);
}
}
Symbol 1408 Button
on (rollOver) {
medalname = "Kill 50 SWAT Members";
medaldescription = "Destroy 50 Special Tactics Officers";
if (_root.medals.killSWAT50) {
bigmedal.gotoAndStop(2);
} else {
bigmedal.gotoAndStop(1);
}
}
Symbol 1409 Button
on (rollOver) {
medalname = "Kill 50 Army Generals";
medaldescription = "Disembowel 50 of the boys in camo.";
if (_root.medals.killArmy50) {
bigmedal.gotoAndStop(2);
} else {
bigmedal.gotoAndStop(1);
}
}
Symbol 1410 Button
on (rollOver) {
medalname = "Killing Spree";
medaldescription = "Hit 10 Kills in one spree.";
if (_root.medals.currentKills10) {
bigmedal.gotoAndStop(2);
} else {
bigmedal.gotoAndStop(1);
}
}
Symbol 1411 Button
on (rollOver) {
medalname = "Tree Hider";
medaldescription = "Get in touch with nature.";
if (_root.medals.treeHide) {
bigmedal.gotoAndStop(2);
} else {
bigmedal.gotoAndStop(1);
}
}
Symbol 1412 Button
on (rollOver) {
medalname = "Terrorist";
medaldescription = "Blow up a car.";
if (_root.medals.terrorist) {
bigmedal.gotoAndStop(2);
} else {
bigmedal.gotoAndStop(1);
}
}
Symbol 1413 Button
on (rollOver) {
medalname = "Rampage!";
medaldescription = "Hit 25 Kills in one spree.";
if (_root.medals.currentKills25) {
bigmedal.gotoAndStop(2);
} else {
bigmedal.gotoAndStop(1);
}
}
Symbol 1414 Button
on (rollOver) {
medalname = "Level 5 Killstorm";
medaldescription = "Hit 50 Kills in one spree.";
if (_root.medals.currentKills50) {
bigmedal.gotoAndStop(2);
} else {
bigmedal.gotoAndStop(1);
}
}
Symbol 1415 Button
on (rollOver) {
medalname = "Are You SERIOUS?!";
medaldescription = "Hit 100 Kills in one spree.";
if (_root.medals.currentKills100) {
bigmedal.gotoAndStop(2);
} else {
bigmedal.gotoAndStop(1);
}
}
Symbol 1416 Button
on (rollOver) {
medalname = "Sniper Pro";
medaldescription = "Make a long-range kill.";
if (_root.medals.sniperPro) {
bigmedal.gotoAndStop(2);
} else {
bigmedal.gotoAndStop(1);
}
}
Symbol 1417 Button
on (rollOver) {
medalname = "I. HATE. GREEN. SHIRTS.";
medaldescription = "Kill 20 dudes wearing a green shirt.";
if (_root.medals.killGreen50) {
bigmedal.gotoAndStop(2);
} else {
bigmedal.gotoAndStop(1);
}
}
Symbol 1418 Button
on (rollOver) {
medalname = "Sniper King";
medaldescription = "Hit 10 Long-Range Kills.";
if (_root.medals.sniperKing) {
bigmedal.gotoAndStop(2);
} else {
bigmedal.gotoAndStop(1);
}
}
Symbol 1419 Button
on (rollOver) {
medalname = "Rob Furlong";
medaldescription = "Snipe 100 Cops from long-range.";
if (_root.medals.robFurlong) {
bigmedal.gotoAndStop(2);
} else {
bigmedal.gotoAndStop(1);
}
}
Symbol 1420 Button
on (rollOver) {
medalname = "Anti-Environmentalist";
medaldescription = "Kill 10 dudes wearing a green shirt.";
if (_root.medals.killGreen10) {
bigmedal.gotoAndStop(2);
} else {
bigmedal.gotoAndStop(1);
}
}
Symbol 1421 Button
on (rollOver) {
medalname = "$1,000 Spree";
medaldescription = "Earn $1,000 in one spree.";
if (_root.medals.spree1000) {
bigmedal.gotoAndStop(2);
} else {
bigmedal.gotoAndStop(1);
}
}
Symbol 1422 Button
on (rollOver) {
medalname = "$10,000 Spree";
medaldescription = "Earn $10,000 in one spree.";
if (_root.medals.spree10000) {
bigmedal.gotoAndStop(2);
} else {
bigmedal.gotoAndStop(1);
}
}
Symbol 1423 Button
on (rollOver) {
medalname = "$20,000 Spree";
medaldescription = "Earn $20,000 in one spree.";
if (_root.medals.spre20000) {
bigmedal.gotoAndStop(2);
} else {
bigmedal.gotoAndStop(1);
}
}
Symbol 1424 Button
on (rollOver) {
medalname = "Clocked.";
medaldescription = "All items, all medals, Wham, Bam.";
if (_root.medals.clocked) {
bigmedal.gotoAndStop(2);
medalname = "Clocked.";
medaldescription = "THANKS FOR PLAYING!";
} else {
bigmedal.gotoAndStop(1);
}
}
Symbol 1425 Button
on (rollOver) {
medalname = "Visit Bored.com!";
medaldescription = "Click the 'Play More Games' button.";
if (_root.medals.sponsor) {
bigmedal.gotoAndStop(2);
} else {
bigmedal.gotoAndStop(1);
}
}
Symbol 1426 MovieClip Frame 1
stats1 = (("Longest Kill: " + (Math.round(10 * _root.longestkill) / 100)) + "m") + newline;
stats1 = stats1 + (("Officers Killed: " + _root.officerkills) + newline);
stats1 = stats1 + (("Sergeants Killed: " + _root.sergeantkills) + newline);
stats1 = stats1 + (("SWAT Members Killed: " + _root.swatkills) + newline);
stats1 = stats1 + (("Army Generals Killed: " + _root.armykills) + newline);
stats1 = stats1 + (("Total Cops Killed: " + _root.totalcopskilled) + newline);
stats1 = stats1 + (("Pedestrians Killed: " + _root.totalpedskilled) + newline);
stats2 = ("Sprees: " + _root.attempts) + newline;
stats2 = stats2 + (("Shots Fired: " + _root.totalshotsfired) + newline);
stats2 = stats2 + (("Shots Hit: " + _root.totalhitcounter) + newline);
stats2 = stats2 + (("Shots Missed: " + (_root.totalshotsfired - _root.totalhitcounter)) + newline);
stats2 = stats2 + ((("Average Accuracy: " + (Math.round(10000 * (_root.totalhitcounter / _root.totalshotsfired)) / 100)) + "%") + newline);
stats2 = stats2 + ((("Deadliest Spree: " + _root.deadliestspree) + " Kills") + newline);
stats2 = stats2 + ((("Longest Spree: " + _root.longestspree) + " seconds") + newline);
if (_root.medals.totalKills100) {
iconbeginner.gotoAndStop(2);
} else {
iconbeginner.gotoAndStop(1);
}
if (_root.medals.totalKills250) {
iconamateur.gotoAndStop(2);
} else {
iconamateur.gotoAndStop(1);
}
if (_root.medals.totalKills500) {
iconmaster.gotoAndStop(2);
} else {
iconmaster.gotoAndStop(1);
}
if (_root.medals.totalKills1000) {
iconspawnofsatan.gotoAndStop(2);
} else {
iconspawnofsatan.gotoAndStop(1);
}
if (_root.medals.marksmanship) {
iconmarksmanship.gotoAndStop(2);
} else {
iconmarksmanship.gotoAndStop(1);
}
if (_root.medals.maniac) {
iconmaniac.gotoAndStop(2);
} else {
iconmaniac.gotoAndStop(1);
}
if (_root.medals.killOfficer50) {
icon50off.gotoAndStop(2);
} else {
icon50off.gotoAndStop(1);
}
if (_root.medals.killOfficer250) {
icon250off.gotoAndStop(2);
} else {
icon250off.gotoAndStop(1);
}
if (_root.medals.killSergeant50) {
icon50ser.gotoAndStop(2);
} else {
icon50ser.gotoAndStop(1);
}
if (_root.medals.killSergeant250) {
icon250ser.gotoAndStop(2);
} else {
icon250ser.gotoAndStop(1);
}
if (_root.medals.killSWAT50) {
icon50swat.gotoAndStop(2);
} else {
icon50swat.gotoAndStop(1);
}
if (_root.medals.killArmy50) {
icon50army.gotoAndStop(2);
} else {
icon50army.gotoAndStop(1);
}
if (_root.medals.currentKills10) {
iconkillingspree.gotoAndStop(2);
} else {
iconkillingspree.gotoAndStop(1);
}
if (_root.medals.currentKills25) {
iconrampage.gotoAndStop(2);
} else {
iconrampage.gotoAndStop(1);
}
if (_root.medals.currentKills50) {
iconkillstorm.gotoAndStop(2);
} else {
iconkillstorm.gotoAndStop(1);
}
if (_root.medals.currentKills100) {
iconareyouserious.gotoAndStop(2);
} else {
iconareyouserious.gotoAndStop(1);
}
if (_root.medals.treeHide) {
icontreehider.gotoAndStop(2);
} else {
icontreehider.gotoAndStop(1);
}
if (_root.medals.terrorist) {
iconterrorist.gotoAndStop(2);
} else {
iconterrorist.gotoAndStop(1);
}
if (_root.medals.sniperPro) {
iconsniperpro.gotoAndStop(2);
} else {
iconsniperpro.gotoAndStop(1);
}
if (_root.medals.sniperKing) {
iconsniperking.gotoAndStop(2);
} else {
iconsniperking.gotoAndStop(1);
}
if (_root.medals.robFurlong) {
iconrobfurlong.gotoAndStop(2);
} else {
iconrobfurlong.gotoAndStop(1);
}
if (_root.medals.killGreen10) {
iconantienvironmentalist.gotoAndStop(2);
} else {
iconantienvironmentalist.gotoAndStop(1);
}
if (_root.medals.killGreen50) {
iconihategreenshirts.gotoAndStop(2);
} else {
iconihategreenshirts.gotoAndStop(1);
}
if (_root.medals.clocked) {
iconclocked.gotoAndStop(2);
} else {
iconclocked.gotoAndStop(1);
}
if (_root.medals.spree1000) {
icon1000spree.gotoAndStop(2);
} else {
icon1000spree.gotoAndStop(1);
}
if (_root.medals.spree10000) {
icon10000spree.gotoAndStop(2);
} else {
icon10000spree.gotoAndStop(1);
}
if (_root.medals.spree20000) {
icon20000spree.gotoAndStop(2);
} else {
icon20000spree.gotoAndStop(1);
}
if (_root.medals.sponsor) {
iconsponsor.gotoAndStop(2);
} else {
iconsponsor.gotoAndStop(1);
}
Symbol 1427 MovieClip Frame 20
stop();
Symbol 1427 MovieClip Frame 40
removeMovieClip(_root.crosshair);
_root.gotoAndStop(8);