Frame 1
_root.musicOn = true;
_root.soundOn = true;
function david() {
getURL ("http://www.truedarkness.newgrounds.com", "_blank");
}
function ag() {
getURL ("http://www.armorgames.com", "_blank");
}
function ng() {
getURL ("http://www.newgrounds.com/", "_blank");
}
stopAllSounds();
var menu = new ContextMenu();
menu.hideBuiltInItems();
var truedarkness = new ContextMenuItem("TrueDarkness", david);
var armorgames = new ContextMenuItem("Armor Games", ag);
var newgrounds = new ContextMenuItem("Newgrounds", ng);
menu.customItems.push(armorgames, truedarkness, newgrounds);
menu.onSelect = menuHandler;
menu.builtInItems.quality = true;
_root.menu = menu;
stop();
var CPMStarContentSpotID = "253Q6394F066";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + CPMStarContentSpotID);
Frame 2
adBox.removeMovieClip();
stop();
Instance of Symbol 50 MovieClip "logos" in Frame 2
on (press) {
if (_currentframe <= 105) {
getURL ("http://www.armorgames.com", "_blank");
} else {
getURL ("http://www.newgrounds.com", "_blank");
}
}
Frame 3
menuSong = new Sound();
menuSong.attachSound("menusong");
menuSong.start(0, 99);
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 4
stop();
_root.rtm = false;
_root.training = false;
_root.arcade = false;
_root.normal = false;
_root.headshot = false;
_root.fadeOut.gotoAndStop(1);
_root.fadeIn.gotoAndPlay(1);
Mouse.show();
_x = 0;
_y = 0;
_root.pausing = false;
_root.machineGunA = false;
_root.shotgunA = false;
_root.handgunA = false;
_root.machineGunSA = false;
_root.machineGunB = false;
_root.shotgunB = false;
_root.handgunB = false;
_root.machineGunSB = false;
_root.machineGunTB = false;
_root.shotgunT = false;
_root.handgunT = false;
_root.machineGunT = false;
_root.machineGunA = false;
Frame 5
stop();
Mouse.show();
_x = 0;
_y = 0;
Instance of Symbol 61 MovieClip "wideScreen" in Frame 5
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 98 MovieClip in Frame 5
onClipEvent (load) {
if (_root.normal == true) {
this.gotoAndStop(1);
} else {
gotoAndStop (2);
}
}
Frame 6
stop();
Mouse.show();
_x = 0;
_y = 0;
Instance of Symbol 107 MovieClip in Frame 6
onClipEvent (load) {
if (_root.normal == true) {
this.gotoAndStop(1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 113 MovieClip "fadeOut" in Frame 6
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 13
for (i in _root) {
_root[i].removeMovieClip();
}
stopAllSounds();
Frame 14
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
_root["scoreNum" + s]._x = _root._xmouse;
_root["scoreNum" + s]._y = _root._ymouse;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 350;
_root["bulleta" + z]._y = _root.gun._y - 10;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg", 600);
Song1 = new Sound(songg);
Song1.attachSound("song1");
Song1.start(0, 99);
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shell");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
this.createEmptyMovieClip("r1", 608);
reloadGun = new Sound(r1);
reloadGun.attachSound("reloadgun");
holdA = false;
slowMotion = false;
z = 1500;
scoree = 0;
i = 0;
ib = 402;
hit = 0;
reloaded = 0;
headshots = 0;
s = 1002;
t = 30;
timeT = 0;
_root.wideScreen.ammo.amm = 32;
_root.wideScreen.scorea.score = _root.scoree;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song1.setVolume(0);
}
if (_root.musicOn == true) {
Song1.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
reloadGun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
reloadGun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 147 MovieClip "targete" in Frame 14
onClipEvent (load) {
speed = 7;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
_x = (_x + speed);
if ((_x > 960) && (_root.wideScreen.timer.timee > 0)) {
_root.ib = 402;
speed = speed + 1.3;
_x = -610;
}
}
}
}
Instance of Symbol 150 MovieClip "scoreNum" in Frame 14
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 178 MovieClip "gun" in Frame 14
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 32) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 183 MovieClip "bulleta" in Frame 14
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 14
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 198 MovieClip "BholeB" in Frame 14
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 14
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3001);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 14
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 14
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 14
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 14
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 15
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 16
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
_root.fadeIn.gotoAndPlay(1);
_root.fadeOut.gotoAndStop(1);
stop();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
Instance of Symbol 265 MovieClip "wideScreen" in Frame 16
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 16
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 16
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 17
stopAllSounds();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 18
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
_root["scoreNum" + s]._x = _root._xmouse;
_root["scoreNum" + s]._y = _root._ymouse;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 350;
_root["bulleta" + z]._y = _root.gun._y - 10;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg2", 600);
Song2 = new Sound(songg2);
Song2.attachSound("song2");
songVar = false;
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shell");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
this.createEmptyMovieClip("r1", 608);
reloadGun = new Sound(r1);
reloadGun.attachSound("reloadgun");
holdA = false;
slowMotion = false;
z = 1500;
i = 0;
ib = 402;
hit = 0;
reloaded = 0;
headshots = 0;
s = 1002;
t = 30;
timeT = 0;
songstart = 0;
_root.wideScreen.ammo.amm = 32;
_root.wideScreen.scorea.score = _root.scoree;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (songstart < 15) {
songstart++;
}
if ((songstart >= 10) && (songVar != true)) {
Song2.start(0, 99);
songVar = true;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song2.setVolume(0);
}
if (_root.musicOn == true) {
Song2.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 18
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 147 MovieClip "targete" in Frame 18
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
i++;
if (i >= 20) {
i = 0;
ranNumber = random(4);
ranNumber2 = random(5);
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.87;
yspeed = yspeed * 0.87;
if (ranNumber == 0) {
xspeed = xspeed - 1;
}
if (ranNumber == 1) {
xspeed = xspeed + 1;
}
if (ranNumber == 2) {
yspeed = yspeed - 1;
}
if (ranNumber == 3) {
yspeed++;
}
if (ranNumber2 == 0) {
xspeed--;
}
if (ranNumber2 == 1) {
xspeed++;
}
if (ranNumber2 == 2) {
yspeed--;
}
if (ranNumber2 == 3) {
yspeed++;
}
if (_x >= 840) {
xspeed = xspeed - 8;
}
if (_x <= -250) {
xspeed = xspeed + 8;
}
if (_y <= 75) {
yspeed = yspeed + 8;
}
if (_y >= 290) {
yspeed = yspeed - 8;
}
}
}
Instance of Symbol 178 MovieClip "gun" in Frame 18
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 32) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 183 MovieClip "bulleta" in Frame 18
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 18
onClipEvent (load) {
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 295 MovieClip "BholeB" in Frame 18
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
yy2 = _root.targete2._y - _y;
xx2 = _root.targete2._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
i = 0;
_alpha = 100;
}
onClipEvent (enterFrame) {
i++;
if (i >= 75) {
_alpha = (_alpha - 2);
}
if (_alpha <= 0) {
this.removeMovieClip();
}
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete2.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
if (_root.targete2.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 18
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3001);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 18
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 18
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 18
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 18
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 19
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 20
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
stop();
Instance of Symbol 265 MovieClip "wideScreen" in Frame 20
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 20
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 20
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 21
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 22
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
_root["scoreNum" + s]._x = _root._xmouse;
_root["scoreNum" + s]._y = _root._ymouse;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 350;
_root["bulleta" + z]._y = _root.gun._y - 10;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg3", 600);
Song3 = new Sound(songg3);
Song3.attachSound("song3");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shell");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
this.createEmptyMovieClip("r1", 608);
reloadGun = new Sound(r1);
reloadGun.attachSound("reloadgun");
holdA = false;
slowMotion = false;
z = 1500;
headshots = 0;
i = 0;
ib = 402;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
songstart = 0;
_root.wideScreen.ammo.amm = 32;
_root.wideScreen.scorea.score = _root.scoree;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
songVar = false;
onEnterFrame = function () {
if (songstart < 15) {
songstart++;
}
if ((songstart >= 10) && (songVar != true)) {
Song3.start(0, 99);
songVar = true;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song3.setVolume(0);
}
if (_root.musicOn == true) {
Song3.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 22
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 147 MovieClip "targete" in Frame 22
onClipEvent (load) {
yPeak = Math.round(random(16) + 15);
yAcc = -16;
ySpeed = Math.round(random(5) + 1);
yState = 1;
xspeed = 5;
yy = _y;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if ((var1 == 1) && (_root.wideScreen.timer.timee > 0)) {
if (_x > 960) {
xspeed = xspeed + 1.1;
_x = -610;
_y = yy;
yState = 1;
yPeak = Math.round(random(12) + 11);
ySpeed = Math.round(random(3) + 1);
}
_x = (_x + xspeed);
if (yState == 1) {
_y = (_y + yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 2;
}
} else if (yState == 2) {
_y = (_y + yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 3;
}
} else if (yState == 3) {
_y = (_y - yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 4;
}
} else if (yState == 4) {
_y = (_y - yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 1;
}
}
}
}
}
Instance of Symbol 178 MovieClip "gun" in Frame 22
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 32) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 183 MovieClip "bulleta" in Frame 22
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 22
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 295 MovieClip "BholeB" in Frame 22
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
yy2 = _root.targete2._y - _y;
xx2 = _root.targete2._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
i = 0;
_alpha = 100;
}
onClipEvent (enterFrame) {
i++;
if (i >= 75) {
_alpha = (_alpha - 2);
}
if (_alpha <= 0) {
this.removeMovieClip();
}
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete2.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
if (_root.targete2.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 22
onClipEvent (enterFrame) {
this.swapDepths(3001);
if (_root.pausing != true) {
_x = _root._xmouse;
_y = _root._ymouse;
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 22
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 22
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 22
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 22
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 23
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 24
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
stop();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
Instance of Symbol 265 MovieClip "wideScreen" in Frame 24
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 24
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 24
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 25
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 26
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
_root["scoreNum" + s]._x = _root._xmouse;
_root["scoreNum" + s]._y = _root._ymouse;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 350;
_root["bulleta" + z]._y = _root.gun._y - 10;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg4", 600);
Song4 = new Sound(songg4);
Song4.attachSound("song4");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shell");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
this.createEmptyMovieClip("r1", 608);
reloadGun = new Sound(r1);
reloadGun.attachSound("reloadgun");
holdA = false;
slowMotion = false;
z = 1500;
i = 0;
ib = 402;
hit = 0;
reloaded = 0;
headshots = 0;
s = 1002;
t = 30;
timeT = 0;
songstart = 0;
_root.wideScreen.ammo.amm = 32;
_root.wideScreen.scorea.score = _root.scoree;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
songVar = false;
onEnterFrame = function () {
if (songstart < 15) {
songstart++;
}
if ((songstart >= 10) && (songVar != true)) {
Song4.start(0, 99);
songVar = true;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song4.setVolume(0);
}
if (_root.musicOn == true) {
Song4.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 26
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 147 MovieClip "targete" in Frame 26
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
i++;
if (i >= 13) {
i = 0;
ranNumber = random(4);
ranNumber2 = random(5);
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.97;
yspeed = yspeed * 0.97;
if (ranNumber == 0) {
xspeed = xspeed - 1;
}
if (ranNumber == 1) {
xspeed = xspeed + 1;
}
if (ranNumber == 2) {
yspeed = yspeed - 1;
}
if (ranNumber == 3) {
yspeed++;
}
if (ranNumber2 == 0) {
xspeed--;
}
if (ranNumber2 == 1) {
xspeed++;
}
if (ranNumber2 == 2) {
yspeed--;
}
if (ranNumber2 == 3) {
yspeed++;
}
if (_x >= 740) {
xspeed = xspeed - 9;
}
if (_x <= -250) {
xspeed = xspeed + 9;
}
if (_y <= 75) {
yspeed = yspeed + 9;
}
if (_y >= 290) {
yspeed = yspeed - 9;
}
}
}
Instance of Symbol 178 MovieClip "gun" in Frame 26
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 32) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 183 MovieClip "bulleta" in Frame 26
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 26
onClipEvent (load) {
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 295 MovieClip "BholeB" in Frame 26
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
yy2 = _root.targete2._y - _y;
xx2 = _root.targete2._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
i = 0;
_alpha = 100;
}
onClipEvent (enterFrame) {
i++;
if (i >= 75) {
_alpha = (_alpha - 2);
}
if (_alpha <= 0) {
this.removeMovieClip();
}
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete2.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
if (_root.targete2.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
}
Instance of Symbol 317 MovieClip "flashlight" in Frame 26
onClipEvent (enterFrame) {
this.swapDepths(2980);
_x = (_x - ((_x - _root._xmouse) / 5));
_y = (_y - ((_y - _root._ymouse) / 5));
}
Instance of Symbol 202 MovieClip "cursor" in Frame 26
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3005);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 26
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 26
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 26
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 26
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 27
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 28
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
stop();
_root.HPScoreService.postScore(_root.scoree, "Arcade - Machine Gun Automatic");
Instance of Symbol 265 MovieClip "wideScreen" in Frame 28
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 28
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 28
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 29
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 30
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
_root["scoreNum" + s]._x = _root._xmouse;
_root["scoreNum" + s]._y = _root._ymouse;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 350;
_root["bulleta" + z]._y = _root.gun._y - 10;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg5", 600);
Song5 = new Sound(songg5);
Song5.attachSound("song5");
songVar = false;
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shell");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
this.createEmptyMovieClip("r1", 608);
reloadGun = new Sound(r1);
reloadGun.attachSound("reloadgun");
holdA = false;
slowMotion = false;
z = 1500;
i = 0;
ib = 402;
hit = 0;
reloaded = 0;
headshots = 0;
s = 1002;
t = 30;
timeT = 0;
songstart = 0;
_root.wideScreen.ammo.amm = 32;
_root.wideScreen.scorea.score = _root.scoree;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (songstart < 15) {
songstart++;
}
if ((songstart >= 10) && (songVar != true)) {
Song5.start(0, 99);
songVar = true;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song5.setVolume(0);
}
if (_root.musicOn == true) {
Song5.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 30
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 147 MovieClip "targete" in Frame 30
onClipEvent (load) {
yPeak = Math.round(random(16) + 15);
yAcc = -16;
ySpeed = Math.round(random(5) + 1);
yspeed = 0;
yState = 1;
xspeed = 0;
aa = 0;
yy = _y;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
if (aa >= 60) {
yPeak = Math.round(random(26) + 10);
aa = 0;
}
aa++;
trace(aa);
if (yState == 1) {
_y = (_y + yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 2;
}
} else if (yState == 2) {
_y = (_y + yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 3;
}
} else if (yState == 3) {
_y = (_y - yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 4;
}
} else if (yState == 4) {
_y = (_y - yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 1;
}
}
}
if (var1 == 1) {
i++;
if (i >= 13) {
i = 0;
ranNumber = random(4);
ranNumber2 = random(5);
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.97;
yspeed = yspeed * 0.97;
if (ranNumber == 0) {
xspeed = xspeed - 1;
}
if (ranNumber == 1) {
xspeed = xspeed + 1;
}
if (ranNumber2 == 0) {
xspeed--;
}
if (ranNumber2 == 1) {
xspeed++;
}
if (_x >= 740) {
xspeed = xspeed - 15;
}
if (_x <= -250) {
xspeed = xspeed + 15;
}
if (_y <= 75) {
yspeed = yspeed + 1;
}
if (_y >= 290) {
yspeed = yspeed - 1;
}
}
}
Instance of Symbol 178 MovieClip "gun" in Frame 30
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 32) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 183 MovieClip "bulleta" in Frame 30
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 30
onClipEvent (load) {
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 295 MovieClip "BholeB" in Frame 30
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
yy2 = _root.targete2._y - _y;
xx2 = _root.targete2._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
i = 0;
_alpha = 100;
}
onClipEvent (enterFrame) {
i++;
if (i >= 75) {
_alpha = (_alpha - 2);
}
if (_alpha <= 0) {
this.removeMovieClip();
}
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete2.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
if (_root.targete2.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 30
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3005);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 30
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 329 MovieClip "wideScreen" in Frame 30
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 30
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 30
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 31
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 32
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
stop();
Instance of Symbol 265 MovieClip "wideScreen" in Frame 32
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 32
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 32
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 33
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 34
Mouse.show();
_root.fadeOut.gotoAndStop(1);
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
submit.lol = false;
_x = 0;
_y = 0;
submit.lol = false;
stop();
submitScore = function () {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.ename;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.scoree;
__rankz_send__("MzEzOGolZSVhJW4lcw==", "blNXQ29xWkg=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
getURL ("http://rankz.armorbot.com/rebound3/", "_blank");
};
_root.HPScoreService.postScore(_root.scoree, "Arcade - Machine Gun Automatic");
Instance of Symbol 265 MovieClip "wideScreen" in Frame 34
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 341 MovieClip "submit" in Frame 34
onClipEvent (load) {
lol = false;
}
on (press) {
_root.rtm = true;
_root.fadeOut.play();
if (lol != true) {
_root.submitScore();
lol = true;
}
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 34
onClipEvent (enterFrame) {
this.swapDepths(5005);
}
Frame 35
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 36
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
randomw = -30 + random(60);
randomwa = -15 + random(30);
_root["scoreNum" + s]._x = _root._xmouse + randomw;
_root["scoreNum" + s]._y = _root._ymouse + randomwa;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB2() {
ib2++;
if (ib2 >= 1020) {
ib2 = 422;
}
duplicateMovieClip (_root.BholeB2, "BholeB2" + ib2, ib2);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB2" + ib2]._x = _root._xmouse + randomw;
_root["BholeB2" + ib2]._y = _root._ymouse + randomwa;
_root["BholeB2" + ib2].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB3() {
ib3++;
if (ib3 >= 1040) {
ib3 = 442;
}
duplicateMovieClip (_root.BholeB3, "BholeB3" + ib3, ib3);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB3" + ib3]._x = _root._xmouse + randomw;
_root["BholeB3" + ib3]._y = _root._ymouse + randomwa;
_root["BholeB3" + ib3].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB4() {
ib4++;
if (ib4 >= 1060) {
ib4 = 462;
}
duplicateMovieClip (_root.BholeB4, "BholeB4" + ib4, ib4);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB4" + ib4]._x = _root._xmouse + randomw;
_root["BholeB4" + ib4]._y = _root._ymouse + randomwa;
_root["BholeB4" + ib4].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB5() {
ib5++;
if (ib5 >= 1080) {
ib2 = 482;
}
duplicateMovieClip (_root.BholeB5, "BholeB5" + ib5, ib5);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB5" + ib5]._x = _root._xmouse + randomw;
_root["BholeB5" + ib5]._y = _root._ymouse + randomwa;
_root["BholeB5" + ib5].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB6() {
ib6++;
if (ib6 >= 2000) {
ib6 = 502;
}
duplicateMovieClip (_root.BholeB6, "BholeB6" + ib6, ib6);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB6" + ib6]._x = _root._xmouse + randomw;
_root["BholeB6" + ib6]._y = _root._ymouse + randomwa;
_root["BholeB6" + ib6].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 300;
_root["bulleta" + z]._y = _root.gun._y - 27;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg", 600);
Song1 = new Sound(songg);
Song1.attachSound("song1");
Song1.start(0, 99);
this.createEmptyMovieClip("reload", 610);
reloadGun = new Sound(reload);
reloadGun.attachSound("cockgun");
this.createEmptyMovieClip("shot", 609);
Shotgun = new Sound(shot);
Shotgun.attachSound("shotgun");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shellshot");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
holdA = false;
slowMotion = false;
z = 1500;
scoree = 0;
headshots = 0;
i = 0;
ib = 402;
ib2 = 422;
ib3 = 442;
ib4 = 462;
ib5 = 482;
ib6 = 502;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
_root.wideScreen.ammo.amm = 36;
_root.wideScreen.scorea.score = _root.scoree;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (wideScreen.ammo.amm <= 0) {
wideScreen.ammo.amm = 0;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song1.setVolume(0);
}
if (_root.musicOn == true) {
Song1.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
Shotgun.setVolume(0);
cockShotgun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
Shotgun.setVolume(100);
cockShotgun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 346 MovieClip "targete" in Frame 36
onClipEvent (load) {
speed = 7;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
_x = (_x + speed);
if ((_x > 960) && (_root.wideScreen.timer.timee > 0)) {
_root.ib = 402;
speed = speed + 1.3;
_x = -610;
}
}
}
}
Instance of Symbol 150 MovieClip "scoreNum" in Frame 36
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 350 MovieClip "bulleta" in Frame 36
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
_root.Shell1.start(0, 1);
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 36
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 198 MovieClip "BholeB" in Frame 36
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 414 MovieClip "gun" in Frame 36
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 36) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 198 MovieClip "BholeB2" in Frame 36
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB4" in Frame 36
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB3" in Frame 36
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB5" in Frame 36
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB6" in Frame 36
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 36
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3001);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 36
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 36
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 36
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 36
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 37
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 38
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
stop();
Instance of Symbol 265 MovieClip "wideScreen" in Frame 38
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 38
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 38
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 39
stopAllSounds();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 40
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
randomw = -30 + random(60);
randomwa = -15 + random(30);
_root["scoreNum" + s]._x = _root._xmouse + randomw;
_root["scoreNum" + s]._y = _root._ymouse + randomwa;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB2() {
ib2++;
if (ib2 >= 1020) {
ib2 = 422;
}
duplicateMovieClip (_root.BholeB2, "BholeB2" + ib2, ib2);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB2" + ib2]._x = _root._xmouse + randomw;
_root["BholeB2" + ib2]._y = _root._ymouse + randomwa;
_root["BholeB2" + ib2].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB3() {
ib3++;
if (ib3 >= 1040) {
ib3 = 442;
}
duplicateMovieClip (_root.BholeB3, "BholeB3" + ib3, ib3);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB3" + ib3]._x = _root._xmouse + randomw;
_root["BholeB3" + ib3]._y = _root._ymouse + randomwa;
_root["BholeB3" + ib3].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB4() {
ib4++;
if (ib4 >= 1060) {
ib4 = 462;
}
duplicateMovieClip (_root.BholeB4, "BholeB4" + ib4, ib4);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB4" + ib4]._x = _root._xmouse + randomw;
_root["BholeB4" + ib4]._y = _root._ymouse + randomwa;
_root["BholeB4" + ib4].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB5() {
ib5++;
if (ib5 >= 1080) {
ib2 = 482;
}
duplicateMovieClip (_root.BholeB5, "BholeB5" + ib5, ib5);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB5" + ib5]._x = _root._xmouse + randomw;
_root["BholeB5" + ib5]._y = _root._ymouse + randomwa;
_root["BholeB5" + ib5].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB6() {
ib6++;
if (ib6 >= 2000) {
ib6 = 502;
}
duplicateMovieClip (_root.BholeB6, "BholeB6" + ib6, ib6);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB6" + ib6]._x = _root._xmouse + randomw;
_root["BholeB6" + ib6]._y = _root._ymouse + randomwa;
_root["BholeB6" + ib6].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 300;
_root["bulleta" + z]._y = _root.gun._y - 27;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg2", 600);
Song2 = new Sound(songg2);
Song2.attachSound("Song2");
this.createEmptyMovieClip("reload", 610);
reloadGun = new Sound(reload);
reloadGun.attachSound("cockgun");
this.createEmptyMovieClip("shot", 609);
Shotgun = new Sound(shot);
Shotgun.attachSound("shotgun");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shellshot");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
holdA = false;
slowMotion = false;
z = 1500;
i = 0;
headshots = 0;
ib = 402;
ib2 = 422;
ib3 = 442;
ib4 = 462;
ib5 = 482;
ib6 = 502;
songstart = 0;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
_root.wideScreen.ammo.amm = 36;
_root.wideScreen.scorea.score = _root.scoree;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
songVar = false;
onEnterFrame = function () {
if (songstart < 15) {
songstart++;
}
if ((songstart >= 10) && (songVar != true)) {
Song2.start(0, 99);
songVar = true;
}
if (wideScreen.ammo.amm <= 0) {
wideScreen.ammo.amm = 0;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song2.setVolume(0);
}
if (_root.musicOn == true) {
Song2.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
Shotgun.setVolume(0);
cockShotgun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
Shotgun.setVolume(100);
cockShotgun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 40
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 346 MovieClip "targete" in Frame 40
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
i++;
if (i >= 20) {
i = 0;
ranNumber = random(4);
ranNumber2 = random(5);
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.87;
yspeed = yspeed * 0.87;
if (ranNumber == 0) {
xspeed = xspeed - 1;
}
if (ranNumber == 1) {
xspeed = xspeed + 1;
}
if (ranNumber == 2) {
yspeed = yspeed - 1;
}
if (ranNumber == 3) {
yspeed++;
}
if (ranNumber2 == 0) {
xspeed--;
}
if (ranNumber2 == 1) {
xspeed++;
}
if (ranNumber2 == 2) {
yspeed--;
}
if (ranNumber2 == 3) {
yspeed++;
}
if (_x >= 840) {
xspeed = xspeed - 8;
}
if (_x <= -250) {
xspeed = xspeed + 8;
}
if (_y <= 75) {
yspeed = yspeed + 8;
}
if (_y >= 290) {
yspeed = yspeed - 8;
}
}
}
Instance of Symbol 350 MovieClip "bulleta" in Frame 40
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 40
onClipEvent (load) {
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 414 MovieClip "gun" in Frame 40
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 36) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 198 MovieClip "BholeB" in Frame 40
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB2" in Frame 40
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB4" in Frame 40
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB3" in Frame 40
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB5" in Frame 40
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB6" in Frame 40
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 40
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3001);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 40
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 40
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 40
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 40
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 41
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 42
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
stop();
Instance of Symbol 265 MovieClip "wideScreen" in Frame 42
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 42
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 42
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 43
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 44
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
randomw = -30 + random(60);
randomwa = -15 + random(30);
_root["scoreNum" + s]._x = _root._xmouse + randomw;
_root["scoreNum" + s]._y = _root._ymouse + randomwa;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB2() {
ib2++;
if (ib2 >= 1020) {
ib2 = 422;
}
duplicateMovieClip (_root.BholeB2, "BholeB2" + ib2, ib2);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB2" + ib2]._x = _root._xmouse + randomw;
_root["BholeB2" + ib2]._y = _root._ymouse + randomwa;
_root["BholeB2" + ib2].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB3() {
ib3++;
if (ib3 >= 1040) {
ib3 = 442;
}
duplicateMovieClip (_root.BholeB3, "BholeB3" + ib3, ib3);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB3" + ib3]._x = _root._xmouse + randomw;
_root["BholeB3" + ib3]._y = _root._ymouse + randomwa;
_root["BholeB3" + ib3].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB4() {
ib4++;
if (ib4 >= 1060) {
ib4 = 462;
}
duplicateMovieClip (_root.BholeB4, "BholeB4" + ib4, ib4);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB4" + ib4]._x = _root._xmouse + randomw;
_root["BholeB4" + ib4]._y = _root._ymouse + randomwa;
_root["BholeB4" + ib4].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB5() {
ib5++;
if (ib5 >= 1080) {
ib2 = 482;
}
duplicateMovieClip (_root.BholeB5, "BholeB5" + ib5, ib5);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB5" + ib5]._x = _root._xmouse + randomw;
_root["BholeB5" + ib5]._y = _root._ymouse + randomwa;
_root["BholeB5" + ib5].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB6() {
ib6++;
if (ib6 >= 2000) {
ib6 = 502;
}
duplicateMovieClip (_root.BholeB6, "BholeB6" + ib6, ib6);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB6" + ib6]._x = _root._xmouse + randomw;
_root["BholeB6" + ib6]._y = _root._ymouse + randomwa;
_root["BholeB6" + ib6].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 300;
_root["bulleta" + z]._y = _root.gun._y - 27;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg3", 600);
Song3 = new Sound(songg3);
Song3.attachSound("Song3");
this.createEmptyMovieClip("reload", 610);
reloadGun = new Sound(reload);
reloadGun.attachSound("cockgun");
this.createEmptyMovieClip("shot", 609);
Shotgun = new Sound(shot);
Shotgun.attachSound("shotgun");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shellshot");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
holdA = false;
slowMotion = false;
z = 1500;
i = 0;
ib = 402;
headshots = 0;
ib2 = 422;
ib3 = 442;
ib4 = 462;
ib5 = 482;
ib6 = 502;
songstart = 0;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
_root.wideScreen.ammo.amm = 36;
_root.wideScreen.scorea.score = _root.scoree;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
songVar = false;
onEnterFrame = function () {
if (songstart < 15) {
songstart++;
}
if ((songstart >= 10) && (songVar != true)) {
Song3.start(0, 99);
songVar = true;
}
if (wideScreen.ammo.amm <= 0) {
wideScreen.ammo.amm = 0;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song3.setVolume(0);
}
if (_root.musicOn == true) {
Song3.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
Shotgun.setVolume(0);
cockShotgun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
Shotgun.setVolume(100);
cockShotgun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 44
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "BholeB" in Frame 44
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB2" in Frame 44
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB4" in Frame 44
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB3" in Frame 44
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB5" in Frame 44
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB6" in Frame 44
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 346 MovieClip "targete" in Frame 44
onClipEvent (load) {
yPeak = Math.round(random(16) + 15);
yAcc = -16;
ySpeed = Math.round(random(5) + 1);
yState = 1;
xspeed = 5;
yy = _y;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if ((var1 == 1) && (_root.wideScreen.timer.timee > 0)) {
if (_x > 960) {
xspeed = xspeed + 1.1;
_x = -610;
_y = yy;
yState = 1;
yPeak = Math.round(random(12) + 11);
ySpeed = Math.round(random(3) + 1);
}
_x = (_x + xspeed);
if (yState == 1) {
_y = (_y + yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 2;
}
} else if (yState == 2) {
_y = (_y + yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 3;
}
} else if (yState == 3) {
_y = (_y - yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 4;
}
} else if (yState == 4) {
_y = (_y - yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 1;
}
}
}
}
}
Instance of Symbol 350 MovieClip "bulleta" in Frame 44
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 44
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 414 MovieClip "gun" in Frame 44
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 36) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 44
onClipEvent (enterFrame) {
this.swapDepths(3001);
if (_root.pausing != true) {
_x = _root._xmouse;
_y = _root._ymouse;
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 44
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 44
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 44
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 44
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 45
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 46
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
stop();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
Instance of Symbol 265 MovieClip "wideScreen" in Frame 46
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 46
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 46
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 47
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 48
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
randomw = -30 + random(60);
randomwa = -15 + random(30);
_root["scoreNum" + s]._x = _root._xmouse + randomw;
_root["scoreNum" + s]._y = _root._ymouse + randomwa;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB2() {
ib2++;
if (ib2 >= 1020) {
ib2 = 422;
}
duplicateMovieClip (_root.BholeB2, "BholeB2" + ib2, ib2);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB2" + ib2]._x = _root._xmouse + randomw;
_root["BholeB2" + ib2]._y = _root._ymouse + randomwa;
_root["BholeB2" + ib2].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB3() {
ib3++;
if (ib3 >= 1040) {
ib3 = 442;
}
duplicateMovieClip (_root.BholeB3, "BholeB3" + ib3, ib3);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB3" + ib3]._x = _root._xmouse + randomw;
_root["BholeB3" + ib3]._y = _root._ymouse + randomwa;
_root["BholeB3" + ib3].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB4() {
ib4++;
if (ib4 >= 1060) {
ib4 = 462;
}
duplicateMovieClip (_root.BholeB4, "BholeB4" + ib4, ib4);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB4" + ib4]._x = _root._xmouse + randomw;
_root["BholeB4" + ib4]._y = _root._ymouse + randomwa;
_root["BholeB4" + ib4].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB5() {
ib5++;
if (ib5 >= 1080) {
ib2 = 482;
}
duplicateMovieClip (_root.BholeB5, "BholeB5" + ib5, ib5);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB5" + ib5]._x = _root._xmouse + randomw;
_root["BholeB5" + ib5]._y = _root._ymouse + randomwa;
_root["BholeB5" + ib5].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB6() {
ib6++;
if (ib6 >= 2000) {
ib6 = 502;
}
duplicateMovieClip (_root.BholeB6, "BholeB6" + ib6, ib6);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB6" + ib6]._x = _root._xmouse + randomw;
_root["BholeB6" + ib6]._y = _root._ymouse + randomwa;
_root["BholeB6" + ib6].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 300;
_root["bulleta" + z]._y = _root.gun._y - 27;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg4", 600);
Song4 = new Sound(songg4);
Song4.attachSound("Song4");
songstart = 0;
this.createEmptyMovieClip("reload", 610);
reloadGun = new Sound(reload);
reloadGun.attachSound("cockgun");
this.createEmptyMovieClip("shot", 609);
Shotgun = new Sound(shot);
Shotgun.attachSound("shotgun");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shellshot");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
holdA = false;
slowMotion = false;
z = 1500;
i = 0;
ib = 402;
ib2 = 422;
ib3 = 442;
ib4 = 462;
ib5 = 482;
ib6 = 502;
headshots = 0;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
_root.wideScreen.ammo.amm = 36;
_root.wideScreen.scorea.score = _root.scoree;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
songVar = false;
onEnterFrame = function () {
if (songstart < 15) {
songstart++;
}
if ((songstart >= 10) && (songVar != true)) {
Song4.start(0, 99);
songVar = true;
}
if (wideScreen.ammo.amm <= 0) {
wideScreen.ammo.amm = 0;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song4.setVolume(0);
}
if (_root.musicOn == true) {
Song4.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
Shotgun.setVolume(0);
cockShotgun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
Shotgun.setVolume(100);
cockShotgun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 48
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 346 MovieClip "targete" in Frame 48
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
i++;
if (i >= 13) {
i = 0;
ranNumber = random(4);
ranNumber2 = random(5);
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.97;
yspeed = yspeed * 0.97;
if (ranNumber == 0) {
xspeed = xspeed - 1;
}
if (ranNumber == 1) {
xspeed = xspeed + 1;
}
if (ranNumber == 2) {
yspeed = yspeed - 1;
}
if (ranNumber == 3) {
yspeed++;
}
if (ranNumber2 == 0) {
xspeed--;
}
if (ranNumber2 == 1) {
xspeed++;
}
if (ranNumber2 == 2) {
yspeed--;
}
if (ranNumber2 == 3) {
yspeed++;
}
if (_x >= 740) {
xspeed = xspeed - 4;
}
if (_x <= -250) {
xspeed = xspeed + 4;
}
if (_y <= 75) {
yspeed = yspeed + 4;
}
if (_y >= 290) {
yspeed = yspeed - 4;
}
}
}
Instance of Symbol 350 MovieClip "bulleta" in Frame 48
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 48
onClipEvent (load) {
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 198 MovieClip "BholeB" in Frame 48
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB2" in Frame 48
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB4" in Frame 48
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB3" in Frame 48
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB5" in Frame 48
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB6" in Frame 48
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 414 MovieClip "gun" in Frame 48
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 36) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 317 MovieClip "flashlight" in Frame 48
onClipEvent (enterFrame) {
this.swapDepths(2980);
_x = (_x - ((_x - _root._xmouse) / 5));
_y = (_y - ((_y - _root._ymouse) / 5));
}
Instance of Symbol 202 MovieClip "cursor" in Frame 48
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3005);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 48
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 48
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 48
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 48
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 49
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 50
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
stop();
Instance of Symbol 265 MovieClip "wideScreen" in Frame 50
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 50
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 50
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 51
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 52
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
randomw = -30 + random(60);
randomwa = -15 + random(30);
_root["scoreNum" + s]._x = _root._xmouse + randomw;
_root["scoreNum" + s]._y = _root._ymouse + randomwa;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB2() {
ib2++;
if (ib2 >= 1020) {
ib2 = 422;
}
duplicateMovieClip (_root.BholeB2, "BholeB2" + ib2, ib2);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB2" + ib2]._x = _root._xmouse + randomw;
_root["BholeB2" + ib2]._y = _root._ymouse + randomwa;
_root["BholeB2" + ib2].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB3() {
ib3++;
if (ib3 >= 1040) {
ib3 = 442;
}
duplicateMovieClip (_root.BholeB3, "BholeB3" + ib3, ib3);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB3" + ib3]._x = _root._xmouse + randomw;
_root["BholeB3" + ib3]._y = _root._ymouse + randomwa;
_root["BholeB3" + ib3].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB4() {
ib4++;
if (ib4 >= 1060) {
ib4 = 462;
}
duplicateMovieClip (_root.BholeB4, "BholeB4" + ib4, ib4);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB4" + ib4]._x = _root._xmouse + randomw;
_root["BholeB4" + ib4]._y = _root._ymouse + randomwa;
_root["BholeB4" + ib4].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB5() {
ib5++;
if (ib5 >= 1080) {
ib2 = 482;
}
duplicateMovieClip (_root.BholeB5, "BholeB5" + ib5, ib5);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB5" + ib5]._x = _root._xmouse + randomw;
_root["BholeB5" + ib5]._y = _root._ymouse + randomwa;
_root["BholeB5" + ib5].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB6() {
ib6++;
if (ib6 >= 2000) {
ib6 = 502;
}
duplicateMovieClip (_root.BholeB6, "BholeB6" + ib6, ib6);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB6" + ib6]._x = _root._xmouse + randomw;
_root["BholeB6" + ib6]._y = _root._ymouse + randomwa;
_root["BholeB6" + ib6].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 300;
_root["bulleta" + z]._y = _root.gun._y - 27;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("Songg5", 600);
Song5 = new Sound(Songg5);
Song5.attachSound("Song5");
songstart = 0;
songVar = false;
this.createEmptyMovieClip("reload", 610);
reloadGun = new Sound(reload);
reloadGun.attachSound("cockgun");
this.createEmptyMovieClip("shot", 609);
Shotgun = new Sound(shot);
Shotgun.attachSound("shotgun");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shellshot");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
holdA = false;
slowMotion = false;
z = 1500;
headshots = 0;
i = 0;
ib = 402;
ib2 = 422;
ib3 = 442;
ib4 = 462;
ib5 = 482;
ib6 = 502;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
_root.wideScreen.ammo.amm = 36;
_root.wideScreen.scorea.score = _root.scoree;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (songstart < 15) {
songstart++;
}
if ((songstart >= 10) && (songVar != true)) {
Song5.start(0, 99);
songVar = true;
}
if (wideScreen.ammo.amm <= 0) {
wideScreen.ammo.amm = 0;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song5.setVolume(0);
}
if (_root.musicOn == true) {
Song5.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
Shotgun.setVolume(0);
cockShotgun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
Shotgun.setVolume(100);
cockShotgun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 52
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 346 MovieClip "targete" in Frame 52
onClipEvent (load) {
yPeak = Math.round(random(16) + 15);
yAcc = -16;
ySpeed = Math.round(random(5) + 1);
yspeed = 0;
yState = 1;
xspeed = 0;
aa = 0;
yy = _y;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
if (aa >= 60) {
yPeak = Math.round(random(26) + 10);
aa = 0;
}
aa++;
trace(aa);
if (yState == 1) {
_y = (_y + yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 2;
}
} else if (yState == 2) {
_y = (_y + yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 3;
}
} else if (yState == 3) {
_y = (_y - yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 4;
}
} else if (yState == 4) {
_y = (_y - yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 1;
}
}
}
if (var1 == 1) {
i++;
if (i >= 13) {
i = 0;
ranNumber = random(4);
ranNumber2 = random(5);
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.97;
yspeed = yspeed * 0.97;
if (ranNumber == 0) {
xspeed = xspeed - 1;
}
if (ranNumber == 1) {
xspeed = xspeed + 1;
}
if (ranNumber2 == 0) {
xspeed--;
}
if (ranNumber2 == 1) {
xspeed++;
}
if (_x >= 740) {
xspeed = xspeed - 15;
}
if (_x <= -250) {
xspeed = xspeed + 15;
}
if (_y <= 75) {
yspeed = yspeed + 1;
}
if (_y >= 290) {
yspeed = yspeed - 1;
}
}
}
Instance of Symbol 350 MovieClip "bulleta" in Frame 52
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 52
onClipEvent (load) {
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 414 MovieClip "gun" in Frame 52
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 36) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 198 MovieClip "BholeB" in Frame 52
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB2" in Frame 52
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB4" in Frame 52
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB3" in Frame 52
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB5" in Frame 52
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB6" in Frame 52
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 52
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3005);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 52
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 329 MovieClip "wideScreen" in Frame 52
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 52
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 52
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 53
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 54
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
stop();
Instance of Symbol 265 MovieClip "wideScreen" in Frame 54
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 54
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 54
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 55
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 56
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
stop();
submitScore = function () {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.ename;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.scoree;
__rankz_send__("MzE0M2olZSVhJW4lcw==", "RHNNZmplWkg=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
getURL ("http://rankz.armorbot.com/rebound3arcadesg/", "_blank");
};
_root.HPScoreService.postScore(_root.scoree, "Arcade - Shotgun");
Instance of Symbol 265 MovieClip "wideScreen" in Frame 56
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 341 MovieClip "submit" in Frame 56
onClipEvent (load) {
lol = false;
}
on (press) {
_root.rtm = true;
_root.fadeOut.play();
if (lol != true) {
_root.submitScore();
lol = true;
}
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 56
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 57
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 58
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
randomw = -30 + random(60);
randomwa = -15 + random(30);
_root["scoreNum" + s]._x = _root._xmouse + randomw;
_root["scoreNum" + s]._y = _root._ymouse + randomwa;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -2 + random(4);
randomwa = -2 + random(4);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 300;
_root["bulleta" + z]._y = _root.gun._y - 27;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg", 600);
Song1 = new Sound(songg);
Song1.attachSound("song1");
Song1.start(0, 99);
this.createEmptyMovieClip("reload", 610);
reloadGun = new Sound(reload);
reloadGun.attachSound("cockgun");
this.createEmptyMovieClip("shot", 609);
Shotgun = new Sound(shot);
Shotgun.attachSound("shotgun");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shellshot");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
holdA = false;
slowMotion = false;
z = 1500;
scoree = 0;
i = 0;
headshots = 0;
ib = 402;
ib2 = 422;
ib3 = 442;
ib4 = 462;
ib5 = 482;
ib6 = 502;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
_root.wideScreen.ammo.amm = 12;
_root.wideScreen.scorea.score = _root.scoree;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (wideScreen.ammo.amm <= 0) {
wideScreen.ammo.amm = 0;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song1.setVolume(0);
}
if (_root.musicOn == true) {
Song1.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
Shotgun.setVolume(0);
cockShotgun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
Shotgun.setVolume(100);
cockShotgun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 346 MovieClip "targete" in Frame 58
onClipEvent (load) {
speed = 7;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
_x = (_x + speed);
if ((_x > 960) && (_root.wideScreen.timer.timee > 0)) {
_root.ib = 402;
speed = speed + 1.3;
_x = -610;
}
}
}
}
Instance of Symbol 150 MovieClip "scoreNum" in Frame 58
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 58
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 198 MovieClip "BholeB" in Frame 58
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 493 MovieClip "gun" in Frame 58
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 12) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 58
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3001);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 58
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 58
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 58
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 58
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 59
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 60
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
stop();
Instance of Symbol 265 MovieClip "wideScreen" in Frame 60
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 60
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 60
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 61
stopAllSounds();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 62
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
randomw = -30 + random(60);
randomwa = -15 + random(30);
_root["scoreNum" + s]._x = _root._xmouse + randomw;
_root["scoreNum" + s]._y = _root._ymouse + randomwa;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -2 + random(4);
randomwa = -2 + random(4);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 300;
_root["bulleta" + z]._y = _root.gun._y - 27;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg2", 600);
Song2 = new Sound(songg2);
Song2.attachSound("song2");
Song2.start(0, 99);
this.createEmptyMovieClip("reload", 610);
reloadGun = new Sound(reload);
reloadGun.attachSound("cockgun");
this.createEmptyMovieClip("shot", 609);
Shotgun = new Sound(shot);
Shotgun.attachSound("shotgun");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shellshot");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
holdA = false;
slowMotion = false;
z = 1500;
headshots = 0;
i = 0;
ib = 402;
ib2 = 422;
ib3 = 442;
ib4 = 462;
ib5 = 482;
ib6 = 502;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
_root.wideScreen.scorea.score = _root.scoree;
_root.wideScreen.ammo.amm = 12;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (wideScreen.ammo.amm <= 0) {
wideScreen.ammo.amm = 0;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song2.setVolume(0);
}
if (_root.musicOn == true) {
Song2.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
Shotgun.setVolume(0);
cockShotgun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
Shotgun.setVolume(100);
cockShotgun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 62
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 346 MovieClip "targete" in Frame 62
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
i++;
if (i >= 20) {
i = 0;
ranNumber = random(4);
ranNumber2 = random(5);
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.87;
yspeed = yspeed * 0.87;
if (ranNumber == 0) {
xspeed = xspeed - 1;
}
if (ranNumber == 1) {
xspeed = xspeed + 1;
}
if (ranNumber == 2) {
yspeed = yspeed - 1;
}
if (ranNumber == 3) {
yspeed++;
}
if (ranNumber2 == 0) {
xspeed--;
}
if (ranNumber2 == 1) {
xspeed++;
}
if (ranNumber2 == 2) {
yspeed--;
}
if (ranNumber2 == 3) {
yspeed++;
}
if (_x >= 840) {
xspeed = xspeed - 8;
}
if (_x <= -250) {
xspeed = xspeed + 8;
}
if (_y <= 75) {
yspeed = yspeed + 8;
}
if (_y >= 290) {
yspeed = yspeed - 8;
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 62
onClipEvent (load) {
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 198 MovieClip "BholeB" in Frame 62
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 493 MovieClip "gun" in Frame 62
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 12) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 62
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3001);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 62
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 62
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 62
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 62
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 63
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 64
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
stop();
Instance of Symbol 265 MovieClip "wideScreen" in Frame 64
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 64
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 64
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 65
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 66
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
randomw = -30 + random(60);
randomwa = -15 + random(30);
_root["scoreNum" + s]._x = _root._xmouse + randomw;
_root["scoreNum" + s]._y = _root._ymouse + randomwa;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -2 + random(4);
randomwa = -2 + random(4);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 300;
_root["bulleta" + z]._y = _root.gun._y - 27;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg3", 600);
Song3 = new Sound(songg3);
Song3.attachSound("song3");
Song3.start(0, 99);
this.createEmptyMovieClip("reload", 610);
reloadGun = new Sound(reload);
reloadGun.attachSound("cockgun");
this.createEmptyMovieClip("shot", 609);
Shotgun = new Sound(shot);
Shotgun.attachSound("shotgun");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shellshot");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
holdA = false;
slowMotion = false;
z = 1500;
i = 0;
ib = 402;
ib2 = 422;
ib3 = 442;
ib4 = 462;
ib5 = 482;
ib6 = 502;
headshots = 0;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
_root.wideScreen.scorea.score = _root.scoree;
_root.wideScreen.ammo.amm = 12;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (wideScreen.ammo.amm <= 0) {
wideScreen.ammo.amm = 0;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song3.setVolume(0);
}
if (_root.musicOn == true) {
Song3.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
Shotgun.setVolume(0);
cockShotgun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
Shotgun.setVolume(100);
cockShotgun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 66
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "BholeB" in Frame 66
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 346 MovieClip "targete" in Frame 66
onClipEvent (load) {
yPeak = Math.round(random(16) + 15);
yAcc = -16;
ySpeed = Math.round(random(5) + 1);
yState = 1;
xspeed = 5;
yy = _y;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if ((var1 == 1) && (_root.wideScreen.timer.timee > 0)) {
if (_x > 960) {
xspeed = xspeed + 1.1;
_x = -610;
_y = yy;
yState = 1;
yPeak = Math.round(random(12) + 11);
ySpeed = Math.round(random(3) + 1);
}
_x = (_x + xspeed);
if (yState == 1) {
_y = (_y + yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 2;
}
} else if (yState == 2) {
_y = (_y + yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 3;
}
} else if (yState == 3) {
_y = (_y - yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 4;
}
} else if (yState == 4) {
_y = (_y - yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 1;
}
}
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 66
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 493 MovieClip "gun" in Frame 66
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 12) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 66
onClipEvent (enterFrame) {
this.swapDepths(3001);
if (_root.pausing != true) {
_x = _root._xmouse;
_y = _root._ymouse;
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 66
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 66
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 66
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 66
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 67
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 68
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
stop();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
Instance of Symbol 265 MovieClip "wideScreen" in Frame 68
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 68
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 68
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 69
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 70
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
randomw = -30 + random(60);
randomwa = -15 + random(30);
_root["scoreNum" + s]._x = _root._xmouse + randomw;
_root["scoreNum" + s]._y = _root._ymouse + randomwa;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -2 + random(4);
randomwa = -2 + random(4);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 300;
_root["bulleta" + z]._y = _root.gun._y - 27;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg4", 600);
Song4 = new Sound(songg4);
Song4.attachSound("song4");
Song4.start(0, 99);
this.createEmptyMovieClip("reload", 610);
reloadGun = new Sound(reload);
reloadGun.attachSound("cockgun");
this.createEmptyMovieClip("shot", 609);
Shotgun = new Sound(shot);
Shotgun.attachSound("shotgun");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shellshot");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
holdA = false;
slowMotion = false;
z = 1500;
i = 0;
ib = 402;
ib2 = 422;
ib3 = 442;
ib4 = 462;
ib5 = 482;
ib6 = 502;
headshots = 0;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
_root.wideScreen.scorea.score = _root.scoree;
_root.wideScreen.ammo.amm = 12;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (wideScreen.ammo.amm <= 0) {
wideScreen.ammo.amm = 0;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song4.setVolume(0);
}
if (_root.musicOn == true) {
Song4.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
Shotgun.setVolume(0);
cockShotgun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
Shotgun.setVolume(100);
cockShotgun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 70
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 346 MovieClip "targete" in Frame 70
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
i++;
if (i >= 13) {
i = 0;
ranNumber = random(4);
ranNumber2 = random(5);
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.97;
yspeed = yspeed * 0.97;
if (ranNumber == 0) {
xspeed = xspeed - 1;
}
if (ranNumber == 1) {
xspeed = xspeed + 1;
}
if (ranNumber == 2) {
yspeed = yspeed - 1;
}
if (ranNumber == 3) {
yspeed++;
}
if (ranNumber2 == 0) {
xspeed--;
}
if (ranNumber2 == 1) {
xspeed++;
}
if (ranNumber2 == 2) {
yspeed--;
}
if (ranNumber2 == 3) {
yspeed++;
}
if (_x >= 740) {
xspeed = xspeed - 9;
}
if (_x <= -250) {
xspeed = xspeed + 9;
}
if (_y <= 75) {
yspeed = yspeed + 9;
}
if (_y >= 290) {
yspeed = yspeed - 9;
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 70
onClipEvent (load) {
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 198 MovieClip "BholeB" in Frame 70
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 493 MovieClip "gun" in Frame 70
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 12) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 317 MovieClip "flashlight" in Frame 70
onClipEvent (enterFrame) {
this.swapDepths(2980);
_x = (_x - ((_x - _root._xmouse) / 5));
_y = (_y - ((_y - _root._ymouse) / 5));
}
Instance of Symbol 202 MovieClip "cursor" in Frame 70
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3005);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 70
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 70
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 70
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 70
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 71
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 72
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
stop();
Instance of Symbol 265 MovieClip "wideScreen" in Frame 72
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 72
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 72
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 73
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 74
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
randomw = -30 + random(60);
randomwa = -15 + random(30);
_root["scoreNum" + s]._x = _root._xmouse + randomw;
_root["scoreNum" + s]._y = _root._ymouse + randomwa;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -2 + random(4);
randomwa = -2 + random(4);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 300;
_root["bulleta" + z]._y = _root.gun._y - 27;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg5", 600);
Song5 = new Sound(songg5);
Song5.attachSound("song5");
Song5.start(0, 99);
this.createEmptyMovieClip("reload", 610);
reloadGun = new Sound(reload);
reloadGun.attachSound("cockgun");
this.createEmptyMovieClip("shot", 609);
Shotgun = new Sound(shot);
Shotgun.attachSound("shotgun");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shellshot");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
holdA = false;
slowMotion = false;
z = 1500;
i = 0;
ib = 402;
ib2 = 422;
ib3 = 442;
ib4 = 462;
ib5 = 482;
ib6 = 502;
headshots = 0;
hit = 0;
_root.wideScreen.scorea.score = _root.scoree;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
_root.wideScreen.ammo.amm = 12;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (wideScreen.ammo.amm <= 0) {
wideScreen.ammo.amm = 0;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song5.setVolume(0);
}
if (_root.musicOn == true) {
Song5.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
Shotgun.setVolume(0);
cockShotgun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
Shotgun.setVolume(100);
cockShotgun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 74
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 346 MovieClip "targete" in Frame 74
onClipEvent (load) {
yPeak = Math.round(random(16) + 15);
yAcc = -16;
ySpeed = Math.round(random(5) + 1);
yspeed = 0;
yState = 1;
xspeed = 0;
aa = 0;
yy = _y;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
if (aa >= 60) {
yPeak = Math.round(random(26) + 10);
aa = 0;
}
aa++;
trace(aa);
if (yState == 1) {
_y = (_y + yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 2;
}
} else if (yState == 2) {
_y = (_y + yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 3;
}
} else if (yState == 3) {
_y = (_y - yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 4;
}
} else if (yState == 4) {
_y = (_y - yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 1;
}
}
}
if (var1 == 1) {
i++;
if (i >= 13) {
i = 0;
ranNumber = random(4);
ranNumber2 = random(5);
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.97;
yspeed = yspeed * 0.97;
if (ranNumber == 0) {
xspeed = xspeed - 1;
}
if (ranNumber == 1) {
xspeed = xspeed + 1;
}
if (ranNumber2 == 0) {
xspeed--;
}
if (ranNumber2 == 1) {
xspeed++;
}
if (_x >= 740) {
xspeed = xspeed - 15;
}
if (_x <= -250) {
xspeed = xspeed + 15;
}
if (_y <= 75) {
yspeed = yspeed + 1;
}
if (_y >= 290) {
yspeed = yspeed - 1;
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 74
onClipEvent (load) {
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 198 MovieClip "BholeB" in Frame 74
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 493 MovieClip "gun" in Frame 74
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 12) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 74
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3005);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 74
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 329 MovieClip "wideScreen" in Frame 74
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 74
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 74
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 75
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 76
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
stop();
Instance of Symbol 265 MovieClip "wideScreen" in Frame 76
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 76
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 76
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 77
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 78
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
submit.lol = false;
_x = 0;
_y = 0;
stop();
submitScore = function () {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.ename;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.scoree;
__rankz_send__("MzE0NGolZSVhJW4lcw==", "U1FmY09La1o=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
getURL ("http://rankz.armorbot.com/rebound3arcadehg/", "_blank");
};
_root.HPScoreService.postScore(_root.scoree, "Arcade - Handgun");
Instance of Symbol 265 MovieClip "wideScreen" in Frame 78
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 341 MovieClip "submit" in Frame 78
onClipEvent (load) {
lol = false;
}
on (press) {
_root.rtm = true;
_root.fadeOut.play();
if (lol != true) {
_root.submitScore();
lol = true;
}
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 78
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 79
for (i in _root) {
_root[i].removeMovieClip();
}
stopAllSounds();
Frame 80
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
_root["scoreNum" + s]._x = _root._xmouse;
_root["scoreNum" + s]._y = _root._ymouse;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 350;
_root["bulleta" + z]._y = _root.gun._y - 10;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg", 600);
Song1 = new Sound(songg);
Song1.attachSound("song1");
Song1.start(0, 99);
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shell");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
this.createEmptyMovieClip("r1", 608);
reloadGun = new Sound(r1);
reloadGun.attachSound("reloadgun");
holdA = false;
slowMotion = false;
z = 1500;
scoree = 0;
i = 0;
headshots = 0;
ib = 402;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
_root.wideScreen.ammo.amm = 32;
_root.wideScreen.scorea.score = _root.scoree;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song1.setVolume(0);
}
if (_root.musicOn == true) {
Song1.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
reloadGun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
reloadGun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 147 MovieClip "targete" in Frame 80
onClipEvent (load) {
speed = 7;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
_x = (_x + speed);
if ((_x > 960) && (_root.wideScreen.timer.timee > 0)) {
_root.ib = 402;
speed = speed + 1.3;
_x = -610;
}
}
}
}
Instance of Symbol 150 MovieClip "scoreNum" in Frame 80
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 183 MovieClip "bulleta" in Frame 80
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 80
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 198 MovieClip "BholeB" in Frame 80
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 578 MovieClip "gun" in Frame 80
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 32) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 80
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3001);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 80
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 80
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 80
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 80
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 81
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 82
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
_root.fadeIn.gotoAndPlay(1);
_root.fadeOut.gotoAndStop(1);
stop();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
Instance of Symbol 265 MovieClip "wideScreen" in Frame 82
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 82
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 82
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 83
stopAllSounds();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 84
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
_root["scoreNum" + s]._x = _root._xmouse;
_root["scoreNum" + s]._y = _root._ymouse;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 350;
_root["bulleta" + z]._y = _root.gun._y - 10;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg2", 600);
Song2 = new Sound(songg2);
Song2.attachSound("song2");
songVar = false;
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shell");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
this.createEmptyMovieClip("r1", 608);
reloadGun = new Sound(r1);
reloadGun.attachSound("reloadgun");
holdA = false;
slowMotion = false;
z = 1500;
i = 0;
ib = 402;
headshots = 0;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
songstart = 0;
_root.wideScreen.ammo.amm = 32;
_root.wideScreen.scorea.score = _root.scoree;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (songstart < 15) {
songstart++;
}
if ((songstart >= 10) && (songVar != true)) {
Song2.start(0, 99);
songVar = true;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song2.setVolume(0);
}
if (_root.musicOn == true) {
Song2.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 84
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 147 MovieClip "targete" in Frame 84
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
i++;
if (i >= 20) {
i = 0;
ranNumber = random(4);
ranNumber2 = random(5);
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.87;
yspeed = yspeed * 0.87;
if (ranNumber == 0) {
xspeed = xspeed - 1;
}
if (ranNumber == 1) {
xspeed = xspeed + 1;
}
if (ranNumber == 2) {
yspeed = yspeed - 1;
}
if (ranNumber == 3) {
yspeed++;
}
if (ranNumber2 == 0) {
xspeed--;
}
if (ranNumber2 == 1) {
xspeed++;
}
if (ranNumber2 == 2) {
yspeed--;
}
if (ranNumber2 == 3) {
yspeed++;
}
if (_x >= 840) {
xspeed = xspeed - 8;
}
if (_x <= -250) {
xspeed = xspeed + 8;
}
if (_y <= 75) {
yspeed = yspeed + 8;
}
if (_y >= 290) {
yspeed = yspeed - 8;
}
}
}
Instance of Symbol 183 MovieClip "bulleta" in Frame 84
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 84
onClipEvent (load) {
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 295 MovieClip "BholeB" in Frame 84
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
yy2 = _root.targete2._y - _y;
xx2 = _root.targete2._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
i = 0;
_alpha = 100;
}
onClipEvent (enterFrame) {
i++;
if (i >= 75) {
_alpha = (_alpha - 2);
}
if (_alpha <= 0) {
this.removeMovieClip();
}
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete2.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
if (_root.targete2.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
}
Instance of Symbol 578 MovieClip "gun" in Frame 84
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 32) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 84
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3001);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 84
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 84
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 84
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 84
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 85
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 86
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
stop();
Instance of Symbol 265 MovieClip "wideScreen" in Frame 86
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 86
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 86
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 87
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 88
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
_root["scoreNum" + s]._x = _root._xmouse;
_root["scoreNum" + s]._y = _root._ymouse;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 350;
_root["bulleta" + z]._y = _root.gun._y - 10;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg3", 600);
Song3 = new Sound(songg3);
Song3.attachSound("song3");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shell");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
this.createEmptyMovieClip("r1", 608);
reloadGun = new Sound(r1);
reloadGun.attachSound("reloadgun");
holdA = false;
slowMotion = false;
z = 1500;
headshots = 0;
i = 0;
ib = 402;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
songstart = 0;
_root.wideScreen.ammo.amm = 32;
_root.wideScreen.scorea.score = _root.scoree;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
songVar = false;
onEnterFrame = function () {
if (songstart < 15) {
songstart++;
}
if ((songstart >= 10) && (songVar != true)) {
Song3.start(0, 99);
songVar = true;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song3.setVolume(0);
}
if (_root.musicOn == true) {
Song3.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 88
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 147 MovieClip "targete" in Frame 88
onClipEvent (load) {
yPeak = Math.round(random(16) + 15);
yAcc = -16;
ySpeed = Math.round(random(5) + 1);
yState = 1;
xspeed = 5;
yy = _y;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if ((var1 == 1) && (_root.wideScreen.timer.timee > 0)) {
if (_x > 960) {
xspeed = xspeed + 1.1;
_x = -610;
_y = yy;
yState = 1;
yPeak = Math.round(random(12) + 11);
ySpeed = Math.round(random(3) + 1);
}
_x = (_x + xspeed);
if (yState == 1) {
_y = (_y + yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 2;
}
} else if (yState == 2) {
_y = (_y + yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 3;
}
} else if (yState == 3) {
_y = (_y - yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 4;
}
} else if (yState == 4) {
_y = (_y - yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 1;
}
}
}
}
}
Instance of Symbol 183 MovieClip "bulleta" in Frame 88
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 88
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 295 MovieClip "BholeB" in Frame 88
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
yy2 = _root.targete2._y - _y;
xx2 = _root.targete2._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
i = 0;
_alpha = 100;
}
onClipEvent (enterFrame) {
i++;
if (i >= 75) {
_alpha = (_alpha - 2);
}
if (_alpha <= 0) {
this.removeMovieClip();
}
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete2.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
if (_root.targete2.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
}
Instance of Symbol 578 MovieClip "gun" in Frame 88
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 32) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 88
onClipEvent (enterFrame) {
this.swapDepths(3001);
if (_root.pausing != true) {
_x = _root._xmouse;
_y = _root._ymouse;
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 88
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 88
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 88
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 88
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 89
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 90
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
stop();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
Instance of Symbol 265 MovieClip "wideScreen" in Frame 90
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 90
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 90
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 91
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 92
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
_root["scoreNum" + s]._x = _root._xmouse;
_root["scoreNum" + s]._y = _root._ymouse;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 350;
_root["bulleta" + z]._y = _root.gun._y - 10;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg4", 600);
Song4 = new Sound(songg4);
Song4.attachSound("song4");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shell");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
this.createEmptyMovieClip("r1", 608);
reloadGun = new Sound(r1);
reloadGun.attachSound("reloadgun");
holdA = false;
slowMotion = false;
z = 1500;
i = 0;
ib = 402;
hit = 0;
reloaded = 0;
headshots = 0;
s = 1002;
t = 30;
timeT = 0;
songstart = 0;
_root.wideScreen.ammo.amm = 32;
_root.wideScreen.scorea.score = _root.scoree;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
songVar = false;
onEnterFrame = function () {
if (songstart < 15) {
songstart++;
}
if ((songstart >= 10) && (songVar != true)) {
Song4.start(0, 99);
songVar = true;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song4.setVolume(0);
}
if (_root.musicOn == true) {
Song4.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 92
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 147 MovieClip "targete" in Frame 92
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
i++;
if (i >= 13) {
i = 0;
ranNumber = random(4);
ranNumber2 = random(5);
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.97;
yspeed = yspeed * 0.97;
if (ranNumber == 0) {
xspeed = xspeed - 1;
}
if (ranNumber == 1) {
xspeed = xspeed + 1;
}
if (ranNumber == 2) {
yspeed = yspeed - 1;
}
if (ranNumber == 3) {
yspeed++;
}
if (ranNumber2 == 0) {
xspeed--;
}
if (ranNumber2 == 1) {
xspeed++;
}
if (ranNumber2 == 2) {
yspeed--;
}
if (ranNumber2 == 3) {
yspeed++;
}
if (_x >= 740) {
xspeed = xspeed - 4;
}
if (_x <= -250) {
xspeed = xspeed + 4;
}
if (_y <= 75) {
yspeed = yspeed + 4;
}
if (_y >= 290) {
yspeed = yspeed - 4;
}
}
}
Instance of Symbol 183 MovieClip "bulleta" in Frame 92
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 92
onClipEvent (load) {
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 295 MovieClip "BholeB" in Frame 92
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
yy2 = _root.targete2._y - _y;
xx2 = _root.targete2._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
i = 0;
_alpha = 100;
}
onClipEvent (enterFrame) {
i++;
if (i >= 75) {
_alpha = (_alpha - 2);
}
if (_alpha <= 0) {
this.removeMovieClip();
}
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete2.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
if (_root.targete2.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
}
Instance of Symbol 578 MovieClip "gun" in Frame 92
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 32) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 317 MovieClip "flashlight" in Frame 92
onClipEvent (enterFrame) {
this.swapDepths(2980);
_x = (_x - ((_x - _root._xmouse) / 5));
_y = (_y - ((_y - _root._ymouse) / 5));
}
Instance of Symbol 202 MovieClip "cursor" in Frame 92
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3005);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 92
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 92
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 92
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 92
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 93
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 94
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
stop();
Instance of Symbol 265 MovieClip "wideScreen" in Frame 94
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 94
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 94
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 95
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 96
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
_root["scoreNum" + s]._x = _root._xmouse;
_root["scoreNum" + s]._y = _root._ymouse;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 350;
_root["bulleta" + z]._y = _root.gun._y - 10;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg5", 600);
Song5 = new Sound(songg5);
Song5.attachSound("song5");
songVar = false;
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shell");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
this.createEmptyMovieClip("r1", 608);
reloadGun = new Sound(r1);
reloadGun.attachSound("reloadgun");
holdA = false;
slowMotion = false;
z = 1500;
i = 0;
ib = 402;
hit = 0;
reloaded = 0;
headshots = 0;
s = 1002;
t = 30;
timeT = 0;
songstart = 0;
_root.wideScreen.ammo.amm = 32;
_root.wideScreen.scorea.score = _root.scoree;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (songstart < 15) {
songstart++;
}
if ((songstart >= 10) && (songVar != true)) {
Song5.start(0, 99);
songVar = true;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song5.setVolume(0);
}
if (_root.musicOn == true) {
Song5.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 96
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 147 MovieClip "targete" in Frame 96
onClipEvent (load) {
yPeak = Math.round(random(16) + 15);
yAcc = -16;
ySpeed = Math.round(random(5) + 1);
yspeed = 0;
yState = 1;
xspeed = 0;
aa = 0;
yy = _y;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
if (aa >= 60) {
yPeak = Math.round(random(26) + 10);
aa = 0;
}
aa++;
trace(aa);
if (yState == 1) {
_y = (_y + yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 2;
}
} else if (yState == 2) {
_y = (_y + yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 3;
}
} else if (yState == 3) {
_y = (_y - yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 4;
}
} else if (yState == 4) {
_y = (_y - yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 1;
}
}
}
if (var1 == 1) {
i++;
if (i >= 13) {
i = 0;
ranNumber = random(4);
ranNumber2 = random(5);
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.97;
yspeed = yspeed * 0.97;
if (ranNumber == 0) {
xspeed = xspeed - 1;
}
if (ranNumber == 1) {
xspeed = xspeed + 1;
}
if (ranNumber2 == 0) {
xspeed--;
}
if (ranNumber2 == 1) {
xspeed++;
}
if (_x >= 740) {
xspeed = xspeed - 15;
}
if (_x <= -250) {
xspeed = xspeed + 15;
}
if (_y <= 75) {
yspeed = yspeed + 1;
}
if (_y >= 290) {
yspeed = yspeed - 1;
}
}
}
Instance of Symbol 183 MovieClip "bulleta" in Frame 96
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 96
onClipEvent (load) {
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 295 MovieClip "BholeB" in Frame 96
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
yy2 = _root.targete2._y - _y;
xx2 = _root.targete2._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
i = 0;
_alpha = 100;
}
onClipEvent (enterFrame) {
i++;
if (i >= 75) {
_alpha = (_alpha - 2);
}
if (_alpha <= 0) {
this.removeMovieClip();
}
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete2.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
if (_root.targete2.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
}
Instance of Symbol 578 MovieClip "gun" in Frame 96
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 32) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 96
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3005);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 96
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 329 MovieClip "wideScreen" in Frame 96
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 96
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 96
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 97
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 98
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
stop();
Instance of Symbol 265 MovieClip "wideScreen" in Frame 98
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 98
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 98
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 99
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 100
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
submit.lol = false;
_x = 0;
_y = 0;
stop();
submitScore = function () {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.ename;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.scoree;
__rankz_send__("MzE0MGolZSVhJW4lcw==", "QXdWUGFaVkg=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
getURL ("http://rankz.armorbot.com/rebound3arcademgasa/", "_blank");
};
_root.HPScoreService.postScore(_root.scoree, "Arcade - Machine Gun Semi-Automatic");
Instance of Symbol 265 MovieClip "wideScreen" in Frame 100
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 341 MovieClip "submit" in Frame 100
onClipEvent (load) {
lol = false;
}
on (press) {
_root.rtm = true;
_root.fadeOut.play();
if (lol != true) {
_root.submitScore();
lol = true;
}
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 100
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 100
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 101
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 108
for (i in _root) {
_root[i].removeMovieClip();
}
stopAllSounds();
Frame 109
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
_root["scoreNum" + s]._x = _root._xmouse;
_root["scoreNum" + s]._y = _root._ymouse;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 350;
_root["bulleta" + z]._y = _root.gun._y - 10;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg", 600);
Song1 = new Sound(songg);
Song1.attachSound("song1");
Song1.start(0, 99);
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shell");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
this.createEmptyMovieClip("r1", 608);
reloadGun = new Sound(r1);
reloadGun.attachSound("reloadgun");
holdA = false;
slowMotion = false;
z = 1500;
i = 0;
ib = 402;
hit = 0;
reloaded = 0;
headshots = 0;
s = 1002;
t = 30;
timeT = 0;
_root.wideScreen.ammo.amm = 32;
_root.wideScreen.scorea.score = _root.headshots;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song1.setVolume(0);
}
if (_root.musicOn == true) {
Song1.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
reloadGun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
reloadGun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 612 MovieClip "targete" in Frame 109
onClipEvent (load) {
speed = 7;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
_x = (_x + speed);
if ((_x > 960) && (_root.wideScreen.timer.timee > 0)) {
_root.ib = 402;
speed = speed + 1.3;
_x = -610;
}
}
}
}
Instance of Symbol 150 MovieClip "scoreNum" in Frame 109
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 178 MovieClip "gun" in Frame 109
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 32) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 183 MovieClip "bulleta" in Frame 109
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 109
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 198 MovieClip "BholeB" in Frame 109
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 109
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3001);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 109
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 109
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 109
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 109
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 110
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 111
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
_root.fadeIn.gotoAndPlay(1);
_root.fadeOut.gotoAndStop(1);
stop();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
Instance of Symbol 265 MovieClip "wideScreen" in Frame 111
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 111
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 111
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 112
stopAllSounds();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 113
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
_root["scoreNum" + s]._x = _root._xmouse;
_root["scoreNum" + s]._y = _root._ymouse;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 350;
_root["bulleta" + z]._y = _root.gun._y - 10;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg2", 600);
Song2 = new Sound(songg2);
Song2.attachSound("song2");
songVar = false;
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shell");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
this.createEmptyMovieClip("r1", 608);
reloadGun = new Sound(r1);
reloadGun.attachSound("reloadgun");
holdA = false;
slowMotion = false;
z = 1500;
i = 0;
ib = 402;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
songstart = 0;
_root.wideScreen.ammo.amm = 32;
_root.wideScreen.scorea.score = _root.headshots;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (songstart < 15) {
songstart++;
}
if ((songstart >= 10) && (songVar != true)) {
Song2.start(0, 99);
songVar = true;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song2.setVolume(0);
}
if (_root.musicOn == true) {
Song2.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 113
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 612 MovieClip "targete" in Frame 113
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
i++;
if (i >= 20) {
i = 0;
ranNumber = random(4);
ranNumber2 = random(5);
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.87;
yspeed = yspeed * 0.87;
if (ranNumber == 0) {
xspeed = xspeed - 1;
}
if (ranNumber == 1) {
xspeed = xspeed + 1;
}
if (ranNumber == 2) {
yspeed = yspeed - 1;
}
if (ranNumber == 3) {
yspeed++;
}
if (ranNumber2 == 0) {
xspeed--;
}
if (ranNumber2 == 1) {
xspeed++;
}
if (ranNumber2 == 2) {
yspeed--;
}
if (ranNumber2 == 3) {
yspeed++;
}
if (_x >= 840) {
xspeed = xspeed - 8;
}
if (_x <= -250) {
xspeed = xspeed + 8;
}
if (_y <= 75) {
yspeed = yspeed + 8;
}
if (_y >= 290) {
yspeed = yspeed - 8;
}
}
}
Instance of Symbol 178 MovieClip "gun" in Frame 113
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 32) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 183 MovieClip "bulleta" in Frame 113
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 113
onClipEvent (load) {
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 295 MovieClip "BholeB" in Frame 113
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
yy2 = _root.targete2._y - _y;
xx2 = _root.targete2._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
i = 0;
_alpha = 100;
}
onClipEvent (enterFrame) {
i++;
if (i >= 75) {
_alpha = (_alpha - 2);
}
if (_alpha <= 0) {
this.removeMovieClip();
}
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete2.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
if (_root.targete2.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 113
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3001);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 113
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 113
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 113
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 113
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 114
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 115
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
_root.fadeIn.gotoAndPlay(1);
_root.fadeOut.gotoAndStop(1);
stop();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
Instance of Symbol 265 MovieClip "wideScreen" in Frame 115
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 115
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 115
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 116
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 117
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
_root["scoreNum" + s]._x = _root._xmouse;
_root["scoreNum" + s]._y = _root._ymouse;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 350;
_root["bulleta" + z]._y = _root.gun._y - 10;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg3", 600);
Song3 = new Sound(songg3);
Song3.attachSound("song3");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shell");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
this.createEmptyMovieClip("r1", 608);
reloadGun = new Sound(r1);
reloadGun.attachSound("reloadgun");
holdA = false;
slowMotion = false;
z = 1500;
i = 0;
ib = 402;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
songstart = 0;
_root.wideScreen.ammo.amm = 32;
_root.wideScreen.scorea.score = _root.headshots;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
songVar = false;
onEnterFrame = function () {
if (songstart < 15) {
songstart++;
}
if ((songstart >= 10) && (songVar != true)) {
Song3.start(0, 99);
songVar = true;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song3.setVolume(0);
}
if (_root.musicOn == true) {
Song3.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 117
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 612 MovieClip "targete" in Frame 117
onClipEvent (load) {
yPeak = Math.round(random(16) + 15);
yAcc = -16;
ySpeed = Math.round(random(5) + 1);
yState = 1;
xspeed = 5;
yy = _y;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if ((var1 == 1) && (_root.wideScreen.timer.timee > 0)) {
if (_x > 960) {
xspeed = xspeed + 1.1;
_x = -610;
_y = yy;
yState = 1;
yPeak = Math.round(random(12) + 11);
ySpeed = Math.round(random(3) + 1);
}
_x = (_x + xspeed);
if (yState == 1) {
_y = (_y + yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 2;
}
} else if (yState == 2) {
_y = (_y + yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 3;
}
} else if (yState == 3) {
_y = (_y - yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 4;
}
} else if (yState == 4) {
_y = (_y - yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 1;
}
}
}
}
}
Instance of Symbol 178 MovieClip "gun" in Frame 117
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 32) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 183 MovieClip "bulleta" in Frame 117
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 117
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 295 MovieClip "BholeB" in Frame 117
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
yy2 = _root.targete2._y - _y;
xx2 = _root.targete2._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
i = 0;
_alpha = 100;
}
onClipEvent (enterFrame) {
i++;
if (i >= 75) {
_alpha = (_alpha - 2);
}
if (_alpha <= 0) {
this.removeMovieClip();
}
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete2.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
if (_root.targete2.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 117
onClipEvent (enterFrame) {
this.swapDepths(3001);
if (_root.pausing != true) {
_x = _root._xmouse;
_y = _root._ymouse;
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 117
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 117
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 117
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 117
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 118
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 119
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
_root.fadeIn.gotoAndPlay(1);
_root.fadeOut.gotoAndStop(1);
stop();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
Instance of Symbol 265 MovieClip "wideScreen" in Frame 119
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 119
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 119
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 120
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 121
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
_root["scoreNum" + s]._x = _root._xmouse;
_root["scoreNum" + s]._y = _root._ymouse;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 350;
_root["bulleta" + z]._y = _root.gun._y - 10;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg4", 600);
Song4 = new Sound(songg4);
Song4.attachSound("song4");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shell");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
this.createEmptyMovieClip("r1", 608);
reloadGun = new Sound(r1);
reloadGun.attachSound("reloadgun");
holdA = false;
slowMotion = false;
z = 1500;
i = 0;
ib = 402;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
songstart = 0;
_root.wideScreen.ammo.amm = 32;
_root.wideScreen.scorea.score = _root.headshots;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
songVar = false;
onEnterFrame = function () {
if (songstart < 15) {
songstart++;
}
if ((songstart >= 10) && (songVar != true)) {
Song4.start(0, 99);
songVar = true;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song4.setVolume(0);
}
if (_root.musicOn == true) {
Song4.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 121
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 612 MovieClip "targete" in Frame 121
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
i++;
if (i >= 13) {
i = 0;
ranNumber = random(4);
ranNumber2 = random(5);
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.97;
yspeed = yspeed * 0.97;
if (ranNumber == 0) {
xspeed = xspeed - 1;
}
if (ranNumber == 1) {
xspeed = xspeed + 1;
}
if (ranNumber == 2) {
yspeed = yspeed - 1;
}
if (ranNumber == 3) {
yspeed++;
}
if (ranNumber2 == 0) {
xspeed--;
}
if (ranNumber2 == 1) {
xspeed++;
}
if (ranNumber2 == 2) {
yspeed--;
}
if (ranNumber2 == 3) {
yspeed++;
}
if (_x >= 740) {
xspeed = xspeed - 9;
}
if (_x <= -250) {
xspeed = xspeed + 9;
}
if (_y <= 75) {
yspeed = yspeed + 9;
}
if (_y >= 290) {
yspeed = yspeed - 9;
}
}
}
Instance of Symbol 178 MovieClip "gun" in Frame 121
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 32) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 183 MovieClip "bulleta" in Frame 121
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 121
onClipEvent (load) {
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 295 MovieClip "BholeB" in Frame 121
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
yy2 = _root.targete2._y - _y;
xx2 = _root.targete2._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
i = 0;
_alpha = 100;
}
onClipEvent (enterFrame) {
i++;
if (i >= 75) {
_alpha = (_alpha - 2);
}
if (_alpha <= 0) {
this.removeMovieClip();
}
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete2.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
if (_root.targete2.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
}
Instance of Symbol 317 MovieClip "flashlight" in Frame 121
onClipEvent (enterFrame) {
this.swapDepths(2980);
_x = (_x - ((_x - _root._xmouse) / 5));
_y = (_y - ((_y - _root._ymouse) / 5));
}
Instance of Symbol 202 MovieClip "cursor" in Frame 121
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3005);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 121
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 121
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 121
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 121
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 122
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 123
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
_root.fadeIn.gotoAndPlay(1);
_root.fadeOut.gotoAndStop(1);
stop();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
Instance of Symbol 265 MovieClip "wideScreen" in Frame 123
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 123
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 123
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 124
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 125
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
_root["scoreNum" + s]._x = _root._xmouse;
_root["scoreNum" + s]._y = _root._ymouse;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 350;
_root["bulleta" + z]._y = _root.gun._y - 10;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg5", 600);
Song5 = new Sound(songg5);
Song5.attachSound("song5");
songVar = false;
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shell");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
this.createEmptyMovieClip("r1", 608);
reloadGun = new Sound(r1);
reloadGun.attachSound("reloadgun");
holdA = false;
slowMotion = false;
z = 1500;
i = 0;
ib = 402;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
songstart = 0;
_root.wideScreen.ammo.amm = 32;
_root.wideScreen.scorea.score = _root.headshots;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (songstart < 15) {
songstart++;
}
if ((songstart >= 10) && (songVar != true)) {
Song5.start(0, 99);
songVar = true;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song5.setVolume(0);
}
if (_root.musicOn == true) {
Song5.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 125
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 612 MovieClip "targete" in Frame 125
onClipEvent (load) {
yPeak = Math.round(random(16) + 15);
yAcc = -16;
ySpeed = Math.round(random(5) + 1);
yspeed = 0;
yState = 1;
xspeed = 0;
aa = 0;
yy = _y;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
if (aa >= 60) {
yPeak = Math.round(random(26) + 10);
aa = 0;
}
aa++;
trace(aa);
if (yState == 1) {
_y = (_y + yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 2;
}
} else if (yState == 2) {
_y = (_y + yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 3;
}
} else if (yState == 3) {
_y = (_y - yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 4;
}
} else if (yState == 4) {
_y = (_y - yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 1;
}
}
}
if (var1 == 1) {
i++;
if (i >= 13) {
i = 0;
ranNumber = random(4);
ranNumber2 = random(5);
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.97;
yspeed = yspeed * 0.97;
if (ranNumber == 0) {
xspeed = xspeed - 1;
}
if (ranNumber == 1) {
xspeed = xspeed + 1;
}
if (ranNumber2 == 0) {
xspeed--;
}
if (ranNumber2 == 1) {
xspeed++;
}
if (_x >= 740) {
xspeed = xspeed - 15;
}
if (_x <= -250) {
xspeed = xspeed + 15;
}
if (_y <= 75) {
yspeed = yspeed + 1;
}
if (_y >= 290) {
yspeed = yspeed - 1;
}
}
}
Instance of Symbol 178 MovieClip "gun" in Frame 125
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 32) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 183 MovieClip "bulleta" in Frame 125
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 125
onClipEvent (load) {
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 295 MovieClip "BholeB" in Frame 125
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
yy2 = _root.targete2._y - _y;
xx2 = _root.targete2._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
i = 0;
_alpha = 100;
}
onClipEvent (enterFrame) {
i++;
if (i >= 75) {
_alpha = (_alpha - 2);
}
if (_alpha <= 0) {
this.removeMovieClip();
}
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete2.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
if (_root.targete2.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 125
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3005);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 125
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 329 MovieClip "wideScreen" in Frame 125
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 125
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 125
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 126
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 127
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
stop();
Instance of Symbol 265 MovieClip "wideScreen" in Frame 127
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 127
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 127
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 128
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 129
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
submit.lol = false;
_x = 0;
_y = 0;
stop();
submitScore = function () {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.ename;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.headshots;
__rankz_send__("MzEzOWolZSVhJW4lcw==", "eGd4U2hhUVc=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
getURL ("http://rankz.armorbot.com/rebound3headshotmga/", "_blank");
};
_root.HPScoreService.postScore(_root.headshots, "Headshot - Machine Gun Automatic");
Instance of Symbol 265 MovieClip "wideScreen" in Frame 129
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 341 MovieClip "submit" in Frame 129
onClipEvent (load) {
lol = false;
}
on (press) {
_root.rtm = true;
_root.fadeOut.play();
if (lol != true) {
_root.submitScore();
lol = true;
}
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 129
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 130
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 131
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
randomw = -30 + random(60);
randomwa = -15 + random(30);
_root["scoreNum" + s]._x = _root._xmouse + randomw;
_root["scoreNum" + s]._y = _root._ymouse + randomwa;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB2() {
ib2++;
if (ib2 >= 1020) {
ib2 = 422;
}
duplicateMovieClip (_root.BholeB2, "BholeB2" + ib2, ib2);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB2" + ib2]._x = _root._xmouse + randomw;
_root["BholeB2" + ib2]._y = _root._ymouse + randomwa;
_root["BholeB2" + ib2].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB3() {
ib3++;
if (ib3 >= 1040) {
ib3 = 442;
}
duplicateMovieClip (_root.BholeB3, "BholeB3" + ib3, ib3);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB3" + ib3]._x = _root._xmouse + randomw;
_root["BholeB3" + ib3]._y = _root._ymouse + randomwa;
_root["BholeB3" + ib3].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB4() {
ib4++;
if (ib4 >= 1060) {
ib4 = 462;
}
duplicateMovieClip (_root.BholeB4, "BholeB4" + ib4, ib4);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB4" + ib4]._x = _root._xmouse + randomw;
_root["BholeB4" + ib4]._y = _root._ymouse + randomwa;
_root["BholeB4" + ib4].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB5() {
ib5++;
if (ib5 >= 1080) {
ib2 = 482;
}
duplicateMovieClip (_root.BholeB5, "BholeB5" + ib5, ib5);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB5" + ib5]._x = _root._xmouse + randomw;
_root["BholeB5" + ib5]._y = _root._ymouse + randomwa;
_root["BholeB5" + ib5].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB6() {
ib6++;
if (ib6 >= 2000) {
ib6 = 502;
}
duplicateMovieClip (_root.BholeB6, "BholeB6" + ib6, ib6);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB6" + ib6]._x = _root._xmouse + randomw;
_root["BholeB6" + ib6]._y = _root._ymouse + randomwa;
_root["BholeB6" + ib6].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 300;
_root["bulleta" + z]._y = _root.gun._y - 27;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg", 600);
Song1 = new Sound(songg);
Song1.attachSound("song1");
Song1.start(0, 99);
this.createEmptyMovieClip("reload", 610);
reloadGun = new Sound(reload);
reloadGun.attachSound("cockgun");
this.createEmptyMovieClip("shot", 609);
Shotgun = new Sound(shot);
Shotgun.attachSound("shotgun");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shellshot");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
holdA = false;
slowMotion = false;
z = 1500;
headshots = 0;
i = 0;
ib = 402;
ib2 = 422;
ib3 = 442;
ib4 = 462;
ib5 = 482;
ib6 = 502;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
_root.wideScreen.ammo.amm = 36;
_root.wideScreen.scorea.score = _root.headshots;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (wideScreen.ammo.amm <= 0) {
wideScreen.ammo.amm = 0;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song1.setVolume(0);
}
if (_root.musicOn == true) {
Song1.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
Shotgun.setVolume(0);
cockShotgun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
Shotgun.setVolume(100);
cockShotgun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 644 MovieClip "targete" in Frame 131
onClipEvent (load) {
speed = 7;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
_x = (_x + speed);
if ((_x > 960) && (_root.wideScreen.timer.timee > 0)) {
_root.ib = 402;
speed = speed + 1.3;
_x = -610;
}
}
}
}
Instance of Symbol 150 MovieClip "scoreNum" in Frame 131
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 350 MovieClip "bulleta" in Frame 131
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
_root.Shell1.start(0, 1);
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 131
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 198 MovieClip "BholeB" in Frame 131
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 414 MovieClip "gun" in Frame 131
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 36) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 198 MovieClip "BholeB2" in Frame 131
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB4" in Frame 131
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB3" in Frame 131
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB5" in Frame 131
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB6" in Frame 131
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 131
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3001);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 131
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 131
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 131
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 131
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 132
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 133
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
_root.fadeIn.gotoAndPlay(1);
_root.fadeOut.gotoAndStop(1);
stop();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
Instance of Symbol 265 MovieClip "wideScreen" in Frame 133
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 133
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 133
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 134
stopAllSounds();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 135
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
randomw = -30 + random(60);
randomwa = -15 + random(30);
_root["scoreNum" + s]._x = _root._xmouse + randomw;
_root["scoreNum" + s]._y = _root._ymouse + randomwa;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB2() {
ib2++;
if (ib2 >= 1020) {
ib2 = 422;
}
duplicateMovieClip (_root.BholeB2, "BholeB2" + ib2, ib2);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB2" + ib2]._x = _root._xmouse + randomw;
_root["BholeB2" + ib2]._y = _root._ymouse + randomwa;
_root["BholeB2" + ib2].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB3() {
ib3++;
if (ib3 >= 1040) {
ib3 = 442;
}
duplicateMovieClip (_root.BholeB3, "BholeB3" + ib3, ib3);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB3" + ib3]._x = _root._xmouse + randomw;
_root["BholeB3" + ib3]._y = _root._ymouse + randomwa;
_root["BholeB3" + ib3].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB4() {
ib4++;
if (ib4 >= 1060) {
ib4 = 462;
}
duplicateMovieClip (_root.BholeB4, "BholeB4" + ib4, ib4);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB4" + ib4]._x = _root._xmouse + randomw;
_root["BholeB4" + ib4]._y = _root._ymouse + randomwa;
_root["BholeB4" + ib4].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB5() {
ib5++;
if (ib5 >= 1080) {
ib2 = 482;
}
duplicateMovieClip (_root.BholeB5, "BholeB5" + ib5, ib5);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB5" + ib5]._x = _root._xmouse + randomw;
_root["BholeB5" + ib5]._y = _root._ymouse + randomwa;
_root["BholeB5" + ib5].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB6() {
ib6++;
if (ib6 >= 2000) {
ib6 = 502;
}
duplicateMovieClip (_root.BholeB6, "BholeB6" + ib6, ib6);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB6" + ib6]._x = _root._xmouse + randomw;
_root["BholeB6" + ib6]._y = _root._ymouse + randomwa;
_root["BholeB6" + ib6].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 300;
_root["bulleta" + z]._y = _root.gun._y - 27;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg2", 600);
Song2 = new Sound(songg2);
Song2.attachSound("Song2");
this.createEmptyMovieClip("reload", 610);
reloadGun = new Sound(reload);
reloadGun.attachSound("cockgun");
this.createEmptyMovieClip("shot", 609);
Shotgun = new Sound(shot);
Shotgun.attachSound("shotgun");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shellshot");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
holdA = false;
slowMotion = false;
z = 1500;
i = 0;
ib = 402;
ib2 = 422;
ib3 = 442;
ib4 = 462;
ib5 = 482;
ib6 = 502;
songstart = 0;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
_root.wideScreen.ammo.amm = 36;
_root.wideScreen.scorea.score = _root.headshots;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
songVar = false;
onEnterFrame = function () {
if (songstart < 15) {
songstart++;
}
if ((songstart >= 10) && (songVar != true)) {
Song2.start(0, 99);
songVar = true;
}
if (wideScreen.ammo.amm <= 0) {
wideScreen.ammo.amm = 0;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song2.setVolume(0);
}
if (_root.musicOn == true) {
Song2.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
Shotgun.setVolume(0);
cockShotgun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
Shotgun.setVolume(100);
cockShotgun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 135
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 644 MovieClip "targete" in Frame 135
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
i++;
if (i >= 20) {
i = 0;
ranNumber = random(4);
ranNumber2 = random(5);
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.87;
yspeed = yspeed * 0.87;
if (ranNumber == 0) {
xspeed = xspeed - 1;
}
if (ranNumber == 1) {
xspeed = xspeed + 1;
}
if (ranNumber == 2) {
yspeed = yspeed - 1;
}
if (ranNumber == 3) {
yspeed++;
}
if (ranNumber2 == 0) {
xspeed--;
}
if (ranNumber2 == 1) {
xspeed++;
}
if (ranNumber2 == 2) {
yspeed--;
}
if (ranNumber2 == 3) {
yspeed++;
}
if (_x >= 840) {
xspeed = xspeed - 8;
}
if (_x <= -250) {
xspeed = xspeed + 8;
}
if (_y <= 75) {
yspeed = yspeed + 8;
}
if (_y >= 290) {
yspeed = yspeed - 8;
}
}
}
Instance of Symbol 350 MovieClip "bulleta" in Frame 135
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 135
onClipEvent (load) {
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 414 MovieClip "gun" in Frame 135
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 36) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 198 MovieClip "BholeB" in Frame 135
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB2" in Frame 135
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB4" in Frame 135
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB3" in Frame 135
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB5" in Frame 135
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB6" in Frame 135
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 135
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3001);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 135
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 135
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 135
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 135
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 136
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 137
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
_root.fadeIn.gotoAndPlay(1);
_root.fadeOut.gotoAndStop(1);
stop();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
Instance of Symbol 265 MovieClip "wideScreen" in Frame 137
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 137
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 137
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 138
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 139
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
randomw = -30 + random(60);
randomwa = -15 + random(30);
_root["scoreNum" + s]._x = _root._xmouse + randomw;
_root["scoreNum" + s]._y = _root._ymouse + randomwa;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB2() {
ib2++;
if (ib2 >= 1020) {
ib2 = 422;
}
duplicateMovieClip (_root.BholeB2, "BholeB2" + ib2, ib2);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB2" + ib2]._x = _root._xmouse + randomw;
_root["BholeB2" + ib2]._y = _root._ymouse + randomwa;
_root["BholeB2" + ib2].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB3() {
ib3++;
if (ib3 >= 1040) {
ib3 = 442;
}
duplicateMovieClip (_root.BholeB3, "BholeB3" + ib3, ib3);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB3" + ib3]._x = _root._xmouse + randomw;
_root["BholeB3" + ib3]._y = _root._ymouse + randomwa;
_root["BholeB3" + ib3].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB4() {
ib4++;
if (ib4 >= 1060) {
ib4 = 462;
}
duplicateMovieClip (_root.BholeB4, "BholeB4" + ib4, ib4);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB4" + ib4]._x = _root._xmouse + randomw;
_root["BholeB4" + ib4]._y = _root._ymouse + randomwa;
_root["BholeB4" + ib4].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB5() {
ib5++;
if (ib5 >= 1080) {
ib2 = 482;
}
duplicateMovieClip (_root.BholeB5, "BholeB5" + ib5, ib5);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB5" + ib5]._x = _root._xmouse + randomw;
_root["BholeB5" + ib5]._y = _root._ymouse + randomwa;
_root["BholeB5" + ib5].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB6() {
ib6++;
if (ib6 >= 2000) {
ib6 = 502;
}
duplicateMovieClip (_root.BholeB6, "BholeB6" + ib6, ib6);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB6" + ib6]._x = _root._xmouse + randomw;
_root["BholeB6" + ib6]._y = _root._ymouse + randomwa;
_root["BholeB6" + ib6].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 300;
_root["bulleta" + z]._y = _root.gun._y - 27;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg3", 600);
Song3 = new Sound(songg3);
Song3.attachSound("Song3");
this.createEmptyMovieClip("reload", 610);
reloadGun = new Sound(reload);
reloadGun.attachSound("cockgun");
this.createEmptyMovieClip("shot", 609);
Shotgun = new Sound(shot);
Shotgun.attachSound("shotgun");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shellshot");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
holdA = false;
slowMotion = false;
z = 1500;
i = 0;
ib = 402;
ib2 = 422;
ib3 = 442;
ib4 = 462;
ib5 = 482;
ib6 = 502;
songstart = 0;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
_root.wideScreen.ammo.amm = 36;
_root.wideScreen.scorea.score = _root.headshots;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
songVar = false;
onEnterFrame = function () {
if (songstart < 15) {
songstart++;
}
if ((songstart >= 10) && (songVar != true)) {
Song3.start(0, 99);
songVar = true;
}
if (wideScreen.ammo.amm <= 0) {
wideScreen.ammo.amm = 0;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song3.setVolume(0);
}
if (_root.musicOn == true) {
Song3.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
Shotgun.setVolume(0);
cockShotgun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
Shotgun.setVolume(100);
cockShotgun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 139
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "BholeB" in Frame 139
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB2" in Frame 139
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB4" in Frame 139
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB3" in Frame 139
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB5" in Frame 139
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB6" in Frame 139
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 644 MovieClip "targete" in Frame 139
onClipEvent (load) {
yPeak = Math.round(random(16) + 15);
yAcc = -16;
ySpeed = Math.round(random(5) + 1);
yState = 1;
xspeed = 5;
yy = _y;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if ((var1 == 1) && (_root.wideScreen.timer.timee > 0)) {
if (_x > 960) {
xspeed = xspeed + 1.1;
_x = -610;
_y = yy;
yState = 1;
yPeak = Math.round(random(12) + 11);
ySpeed = Math.round(random(3) + 1);
}
_x = (_x + xspeed);
if (yState == 1) {
_y = (_y + yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 2;
}
} else if (yState == 2) {
_y = (_y + yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 3;
}
} else if (yState == 3) {
_y = (_y - yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 4;
}
} else if (yState == 4) {
_y = (_y - yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 1;
}
}
}
}
}
Instance of Symbol 350 MovieClip "bulleta" in Frame 139
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 139
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 414 MovieClip "gun" in Frame 139
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 36) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 139
onClipEvent (enterFrame) {
this.swapDepths(3001);
if (_root.pausing != true) {
_x = _root._xmouse;
_y = _root._ymouse;
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 139
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 139
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 139
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 139
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 140
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 141
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
_root.fadeIn.gotoAndPlay(1);
_root.fadeOut.gotoAndStop(1);
stop();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
Instance of Symbol 265 MovieClip "wideScreen" in Frame 141
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 141
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 141
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 142
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 143
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
randomw = -30 + random(60);
randomwa = -15 + random(30);
_root["scoreNum" + s]._x = _root._xmouse + randomw;
_root["scoreNum" + s]._y = _root._ymouse + randomwa;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB2() {
ib2++;
if (ib2 >= 1020) {
ib2 = 422;
}
duplicateMovieClip (_root.BholeB2, "BholeB2" + ib2, ib2);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB2" + ib2]._x = _root._xmouse + randomw;
_root["BholeB2" + ib2]._y = _root._ymouse + randomwa;
_root["BholeB2" + ib2].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB3() {
ib3++;
if (ib3 >= 1040) {
ib3 = 442;
}
duplicateMovieClip (_root.BholeB3, "BholeB3" + ib3, ib3);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB3" + ib3]._x = _root._xmouse + randomw;
_root["BholeB3" + ib3]._y = _root._ymouse + randomwa;
_root["BholeB3" + ib3].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB4() {
ib4++;
if (ib4 >= 1060) {
ib4 = 462;
}
duplicateMovieClip (_root.BholeB4, "BholeB4" + ib4, ib4);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB4" + ib4]._x = _root._xmouse + randomw;
_root["BholeB4" + ib4]._y = _root._ymouse + randomwa;
_root["BholeB4" + ib4].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB5() {
ib5++;
if (ib5 >= 1080) {
ib2 = 482;
}
duplicateMovieClip (_root.BholeB5, "BholeB5" + ib5, ib5);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB5" + ib5]._x = _root._xmouse + randomw;
_root["BholeB5" + ib5]._y = _root._ymouse + randomwa;
_root["BholeB5" + ib5].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB6() {
ib6++;
if (ib6 >= 2000) {
ib6 = 502;
}
duplicateMovieClip (_root.BholeB6, "BholeB6" + ib6, ib6);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB6" + ib6]._x = _root._xmouse + randomw;
_root["BholeB6" + ib6]._y = _root._ymouse + randomwa;
_root["BholeB6" + ib6].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 300;
_root["bulleta" + z]._y = _root.gun._y - 27;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg4", 600);
Song4 = new Sound(songg4);
Song4.attachSound("Song4");
songstart = 0;
this.createEmptyMovieClip("reload", 610);
reloadGun = new Sound(reload);
reloadGun.attachSound("cockgun");
this.createEmptyMovieClip("shot", 609);
Shotgun = new Sound(shot);
Shotgun.attachSound("shotgun");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shellshot");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
holdA = false;
slowMotion = false;
z = 1500;
i = 0;
ib = 402;
ib2 = 422;
ib3 = 442;
ib4 = 462;
ib5 = 482;
ib6 = 502;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
_root.wideScreen.ammo.amm = 36;
_root.wideScreen.scorea.score = _root.headshots;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
songVar = false;
onEnterFrame = function () {
if (songstart < 15) {
songstart++;
}
if ((songstart >= 10) && (songVar != true)) {
Song4.start(0, 99);
songVar = true;
}
if (wideScreen.ammo.amm <= 0) {
wideScreen.ammo.amm = 0;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song4.setVolume(0);
}
if (_root.musicOn == true) {
Song4.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
Shotgun.setVolume(0);
cockShotgun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
Shotgun.setVolume(100);
cockShotgun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 143
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 644 MovieClip "targete" in Frame 143
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
i++;
if (i >= 13) {
i = 0;
ranNumber = random(4);
ranNumber2 = random(5);
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.97;
yspeed = yspeed * 0.97;
if (ranNumber == 0) {
xspeed = xspeed - 1;
}
if (ranNumber == 1) {
xspeed = xspeed + 1;
}
if (ranNumber == 2) {
yspeed = yspeed - 1;
}
if (ranNumber == 3) {
yspeed++;
}
if (ranNumber2 == 0) {
xspeed--;
}
if (ranNumber2 == 1) {
xspeed++;
}
if (ranNumber2 == 2) {
yspeed--;
}
if (ranNumber2 == 3) {
yspeed++;
}
if (_x >= 740) {
xspeed = xspeed - 4;
}
if (_x <= -250) {
xspeed = xspeed + 4;
}
if (_y <= 75) {
yspeed = yspeed + 4;
}
if (_y >= 290) {
yspeed = yspeed - 4;
}
}
}
Instance of Symbol 350 MovieClip "bulleta" in Frame 143
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 143
onClipEvent (load) {
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 198 MovieClip "BholeB" in Frame 143
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB2" in Frame 143
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB4" in Frame 143
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB3" in Frame 143
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB5" in Frame 143
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB6" in Frame 143
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 414 MovieClip "gun" in Frame 143
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 36) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 317 MovieClip "flashlight" in Frame 143
onClipEvent (enterFrame) {
this.swapDepths(2980);
_x = (_x - ((_x - _root._xmouse) / 5));
_y = (_y - ((_y - _root._ymouse) / 5));
}
Instance of Symbol 202 MovieClip "cursor" in Frame 143
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3005);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 143
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 143
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 143
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 143
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 144
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 145
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
_root.fadeIn.gotoAndPlay(1);
_root.fadeOut.gotoAndStop(1);
stop();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
Instance of Symbol 265 MovieClip "wideScreen" in Frame 145
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 145
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 145
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 146
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 147
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
randomw = -30 + random(60);
randomwa = -15 + random(30);
_root["scoreNum" + s]._x = _root._xmouse + randomw;
_root["scoreNum" + s]._y = _root._ymouse + randomwa;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB2() {
ib2++;
if (ib2 >= 1020) {
ib2 = 422;
}
duplicateMovieClip (_root.BholeB2, "BholeB2" + ib2, ib2);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB2" + ib2]._x = _root._xmouse + randomw;
_root["BholeB2" + ib2]._y = _root._ymouse + randomwa;
_root["BholeB2" + ib2].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB3() {
ib3++;
if (ib3 >= 1040) {
ib3 = 442;
}
duplicateMovieClip (_root.BholeB3, "BholeB3" + ib3, ib3);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB3" + ib3]._x = _root._xmouse + randomw;
_root["BholeB3" + ib3]._y = _root._ymouse + randomwa;
_root["BholeB3" + ib3].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB4() {
ib4++;
if (ib4 >= 1060) {
ib4 = 462;
}
duplicateMovieClip (_root.BholeB4, "BholeB4" + ib4, ib4);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB4" + ib4]._x = _root._xmouse + randomw;
_root["BholeB4" + ib4]._y = _root._ymouse + randomwa;
_root["BholeB4" + ib4].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB5() {
ib5++;
if (ib5 >= 1080) {
ib2 = 482;
}
duplicateMovieClip (_root.BholeB5, "BholeB5" + ib5, ib5);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB5" + ib5]._x = _root._xmouse + randomw;
_root["BholeB5" + ib5]._y = _root._ymouse + randomwa;
_root["BholeB5" + ib5].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB6() {
ib6++;
if (ib6 >= 2000) {
ib6 = 502;
}
duplicateMovieClip (_root.BholeB6, "BholeB6" + ib6, ib6);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB6" + ib6]._x = _root._xmouse + randomw;
_root["BholeB6" + ib6]._y = _root._ymouse + randomwa;
_root["BholeB6" + ib6].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 300;
_root["bulleta" + z]._y = _root.gun._y - 27;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("Songg5", 600);
Song5 = new Sound(Songg5);
Song5.attachSound("Song5");
songstart = 0;
songVar = false;
this.createEmptyMovieClip("reload", 610);
reloadGun = new Sound(reload);
reloadGun.attachSound("cockgun");
this.createEmptyMovieClip("shot", 609);
Shotgun = new Sound(shot);
Shotgun.attachSound("shotgun");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shellshot");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
holdA = false;
slowMotion = false;
z = 1500;
i = 0;
ib = 402;
ib2 = 422;
ib3 = 442;
ib4 = 462;
ib5 = 482;
ib6 = 502;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
_root.wideScreen.ammo.amm = 36;
_root.wideScreen.scorea.score = _root.headshots;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (songstart < 15) {
songstart++;
}
if ((songstart >= 10) && (songVar != true)) {
Song5.start(0, 99);
songVar = true;
}
if (wideScreen.ammo.amm <= 0) {
wideScreen.ammo.amm = 0;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song5.setVolume(0);
}
if (_root.musicOn == true) {
Song5.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
Shotgun.setVolume(0);
cockShotgun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
Shotgun.setVolume(100);
cockShotgun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 147
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 644 MovieClip "targete" in Frame 147
onClipEvent (load) {
yPeak = Math.round(random(16) + 15);
yAcc = -16;
ySpeed = Math.round(random(5) + 1);
yspeed = 0;
yState = 1;
xspeed = 0;
aa = 0;
yy = _y;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
if (aa >= 60) {
yPeak = Math.round(random(26) + 10);
aa = 0;
}
aa++;
trace(aa);
if (yState == 1) {
_y = (_y + yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 2;
}
} else if (yState == 2) {
_y = (_y + yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 3;
}
} else if (yState == 3) {
_y = (_y - yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 4;
}
} else if (yState == 4) {
_y = (_y - yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 1;
}
}
}
if (var1 == 1) {
i++;
if (i >= 13) {
i = 0;
ranNumber = random(4);
ranNumber2 = random(5);
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.97;
yspeed = yspeed * 0.97;
if (ranNumber == 0) {
xspeed = xspeed - 1;
}
if (ranNumber == 1) {
xspeed = xspeed + 1;
}
if (ranNumber2 == 0) {
xspeed--;
}
if (ranNumber2 == 1) {
xspeed++;
}
if (_x >= 740) {
xspeed = xspeed - 15;
}
if (_x <= -250) {
xspeed = xspeed + 15;
}
if (_y <= 75) {
yspeed = yspeed + 1;
}
if (_y >= 290) {
yspeed = yspeed - 1;
}
}
}
Instance of Symbol 350 MovieClip "bulleta" in Frame 147
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 147
onClipEvent (load) {
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 414 MovieClip "gun" in Frame 147
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 36) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 198 MovieClip "BholeB" in Frame 147
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB2" in Frame 147
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB4" in Frame 147
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB3" in Frame 147
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB5" in Frame 147
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB6" in Frame 147
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 147
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3005);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 147
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 329 MovieClip "wideScreen" in Frame 147
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 147
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 147
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 148
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 149
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
_root.fadeIn.gotoAndPlay(1);
_root.fadeOut.gotoAndStop(1);
stop();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
Instance of Symbol 265 MovieClip "wideScreen" in Frame 149
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 149
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 149
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 150
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 151
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
submit.lol = false;
_x = 0;
_y = 0;
stop();
submitScore = function () {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.ename;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.headshots;
__rankz_send__("MzE0MmolZSVhJW4lcw==", "ZkZJb2JvY0w=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
getURL ("http://rankz.armorbot.com/rebound3headshotsg/", "_blank");
};
_root.HPScoreService.postScore(_root.headshots, "Headshot - Shotgun");
Instance of Symbol 265 MovieClip "wideScreen" in Frame 151
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 341 MovieClip "submit" in Frame 151
onClipEvent (load) {
lol = false;
}
on (press) {
_root.rtm = true;
_root.fadeOut.play();
if (lol != true) {
_root.submitScore();
lol = true;
}
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 151
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 152
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 153
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
randomw = -30 + random(60);
randomwa = -15 + random(30);
_root["scoreNum" + s]._x = _root._xmouse + randomw;
_root["scoreNum" + s]._y = _root._ymouse + randomwa;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -2 + random(4);
randomwa = -2 + random(4);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 300;
_root["bulleta" + z]._y = _root.gun._y - 27;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg", 600);
Song1 = new Sound(songg);
Song1.attachSound("song1");
Song1.start(0, 99);
this.createEmptyMovieClip("reload", 610);
reloadGun = new Sound(reload);
reloadGun.attachSound("cockgun");
this.createEmptyMovieClip("shot", 609);
Shotgun = new Sound(shot);
Shotgun.attachSound("shotgun");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shellshot");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
holdA = false;
slowMotion = false;
z = 1500;
headshots = 0;
i = 0;
ib = 402;
ib2 = 422;
ib3 = 442;
ib4 = 462;
ib5 = 482;
ib6 = 502;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
_root.wideScreen.ammo.amm = 12;
_root.wideScreen.scorea.score = _root.headshots;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (wideScreen.ammo.amm <= 0) {
wideScreen.ammo.amm = 0;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song1.setVolume(0);
}
if (_root.musicOn == true) {
Song1.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
Shotgun.setVolume(0);
cockShotgun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
Shotgun.setVolume(100);
cockShotgun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 612 MovieClip "targete" in Frame 153
onClipEvent (load) {
speed = 7;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
_x = (_x + speed);
if ((_x > 960) && (_root.wideScreen.timer.timee > 0)) {
_root.ib = 402;
speed = speed + 1.3;
_x = -610;
}
}
}
}
Instance of Symbol 150 MovieClip "scoreNum" in Frame 153
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 153
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 198 MovieClip "BholeB" in Frame 153
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 493 MovieClip "gun" in Frame 153
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 12) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 153
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3001);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 153
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 153
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 153
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 153
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 154
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 155
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
_root.fadeIn.gotoAndPlay(1);
_root.fadeOut.gotoAndStop(1);
stop();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
Instance of Symbol 265 MovieClip "wideScreen" in Frame 155
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 155
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 155
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 156
stopAllSounds();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 157
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
randomw = -30 + random(60);
randomwa = -15 + random(30);
_root["scoreNum" + s]._x = _root._xmouse + randomw;
_root["scoreNum" + s]._y = _root._ymouse + randomwa;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -2 + random(4);
randomwa = -2 + random(4);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 300;
_root["bulleta" + z]._y = _root.gun._y - 27;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg2", 600);
Song2 = new Sound(songg2);
Song2.attachSound("song2");
Song2.start(0, 99);
this.createEmptyMovieClip("reload", 610);
reloadGun = new Sound(reload);
reloadGun.attachSound("cockgun");
this.createEmptyMovieClip("shot", 609);
Shotgun = new Sound(shot);
Shotgun.attachSound("shotgun");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shellshot");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
holdA = false;
slowMotion = false;
z = 1500;
i = 0;
ib = 402;
ib2 = 422;
ib3 = 442;
ib4 = 462;
ib5 = 482;
ib6 = 502;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
_root.wideScreen.scorea.score = _root.headshots;
_root.wideScreen.ammo.amm = 12;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (wideScreen.ammo.amm <= 0) {
wideScreen.ammo.amm = 0;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song2.setVolume(0);
}
if (_root.musicOn == true) {
Song2.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
Shotgun.setVolume(0);
cockShotgun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
Shotgun.setVolume(100);
cockShotgun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 157
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 612 MovieClip "targete" in Frame 157
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
i++;
if (i >= 20) {
i = 0;
ranNumber = random(4);
ranNumber2 = random(5);
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.87;
yspeed = yspeed * 0.87;
if (ranNumber == 0) {
xspeed = xspeed - 1;
}
if (ranNumber == 1) {
xspeed = xspeed + 1;
}
if (ranNumber == 2) {
yspeed = yspeed - 1;
}
if (ranNumber == 3) {
yspeed++;
}
if (ranNumber2 == 0) {
xspeed--;
}
if (ranNumber2 == 1) {
xspeed++;
}
if (ranNumber2 == 2) {
yspeed--;
}
if (ranNumber2 == 3) {
yspeed++;
}
if (_x >= 840) {
xspeed = xspeed - 8;
}
if (_x <= -250) {
xspeed = xspeed + 8;
}
if (_y <= 75) {
yspeed = yspeed + 8;
}
if (_y >= 290) {
yspeed = yspeed - 8;
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 157
onClipEvent (load) {
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 198 MovieClip "BholeB" in Frame 157
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 493 MovieClip "gun" in Frame 157
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 12) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 157
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3001);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 157
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 157
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 157
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 157
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 158
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 159
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
_root.fadeIn.gotoAndPlay(1);
_root.fadeOut.gotoAndStop(1);
stop();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
Instance of Symbol 265 MovieClip "wideScreen" in Frame 159
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 159
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 159
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 160
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 161
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
randomw = -30 + random(60);
randomwa = -15 + random(30);
_root["scoreNum" + s]._x = _root._xmouse + randomw;
_root["scoreNum" + s]._y = _root._ymouse + randomwa;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -2 + random(4);
randomwa = -2 + random(4);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 300;
_root["bulleta" + z]._y = _root.gun._y - 27;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg3", 600);
Song3 = new Sound(songg3);
Song3.attachSound("song3");
Song3.start(0, 99);
this.createEmptyMovieClip("reload", 610);
reloadGun = new Sound(reload);
reloadGun.attachSound("cockgun");
this.createEmptyMovieClip("shot", 609);
Shotgun = new Sound(shot);
Shotgun.attachSound("shotgun");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shellshot");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
holdA = false;
slowMotion = false;
z = 1500;
i = 0;
ib = 402;
ib2 = 422;
ib3 = 442;
ib4 = 462;
ib5 = 482;
ib6 = 502;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
_root.wideScreen.scorea.score = _root.headshots;
_root.wideScreen.ammo.amm = 12;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (wideScreen.ammo.amm <= 0) {
wideScreen.ammo.amm = 0;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song3.setVolume(0);
}
if (_root.musicOn == true) {
Song3.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
Shotgun.setVolume(0);
cockShotgun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
Shotgun.setVolume(100);
cockShotgun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 161
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "BholeB" in Frame 161
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 612 MovieClip "targete" in Frame 161
onClipEvent (load) {
yPeak = Math.round(random(16) + 15);
yAcc = -16;
ySpeed = Math.round(random(5) + 1);
yState = 1;
xspeed = 5;
yy = _y;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if ((var1 == 1) && (_root.wideScreen.timer.timee > 0)) {
if (_x > 960) {
xspeed = xspeed + 1.1;
_x = -610;
_y = yy;
yState = 1;
yPeak = Math.round(random(12) + 11);
ySpeed = Math.round(random(3) + 1);
}
_x = (_x + xspeed);
if (yState == 1) {
_y = (_y + yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 2;
}
} else if (yState == 2) {
_y = (_y + yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 3;
}
} else if (yState == 3) {
_y = (_y - yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 4;
}
} else if (yState == 4) {
_y = (_y - yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 1;
}
}
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 161
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 493 MovieClip "gun" in Frame 161
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 12) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 161
onClipEvent (enterFrame) {
this.swapDepths(3001);
if (_root.pausing != true) {
_x = _root._xmouse;
_y = _root._ymouse;
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 161
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 161
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 161
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 161
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 162
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 163
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
_root.fadeIn.gotoAndPlay(1);
_root.fadeOut.gotoAndStop(1);
stop();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
Instance of Symbol 265 MovieClip "wideScreen" in Frame 163
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 163
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 163
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 164
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 165
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
randomw = -30 + random(60);
randomwa = -15 + random(30);
_root["scoreNum" + s]._x = _root._xmouse + randomw;
_root["scoreNum" + s]._y = _root._ymouse + randomwa;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -2 + random(4);
randomwa = -2 + random(4);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 300;
_root["bulleta" + z]._y = _root.gun._y - 27;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg4", 600);
Song4 = new Sound(songg4);
Song4.attachSound("song4");
Song4.start(0, 99);
this.createEmptyMovieClip("reload", 610);
reloadGun = new Sound(reload);
reloadGun.attachSound("cockgun");
this.createEmptyMovieClip("shot", 609);
Shotgun = new Sound(shot);
Shotgun.attachSound("shotgun");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shellshot");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
holdA = false;
slowMotion = false;
z = 1500;
i = 0;
ib = 402;
ib2 = 422;
ib3 = 442;
ib4 = 462;
ib5 = 482;
ib6 = 502;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
_root.wideScreen.scorea.score = _root.headshots;
_root.wideScreen.ammo.amm = 12;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (wideScreen.ammo.amm <= 0) {
wideScreen.ammo.amm = 0;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song4.setVolume(0);
}
if (_root.musicOn == true) {
Song4.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
Shotgun.setVolume(0);
cockShotgun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
Shotgun.setVolume(100);
cockShotgun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 165
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 612 MovieClip "targete" in Frame 165
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
i++;
if (i >= 13) {
i = 0;
ranNumber = random(4);
ranNumber2 = random(5);
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.97;
yspeed = yspeed * 0.97;
if (ranNumber == 0) {
xspeed = xspeed - 1;
}
if (ranNumber == 1) {
xspeed = xspeed + 1;
}
if (ranNumber == 2) {
yspeed = yspeed - 1;
}
if (ranNumber == 3) {
yspeed++;
}
if (ranNumber2 == 0) {
xspeed--;
}
if (ranNumber2 == 1) {
xspeed++;
}
if (ranNumber2 == 2) {
yspeed--;
}
if (ranNumber2 == 3) {
yspeed++;
}
if (_x >= 740) {
xspeed = xspeed - 9;
}
if (_x <= -250) {
xspeed = xspeed + 9;
}
if (_y <= 75) {
yspeed = yspeed + 9;
}
if (_y >= 290) {
yspeed = yspeed - 9;
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 165
onClipEvent (load) {
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 198 MovieClip "BholeB" in Frame 165
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 493 MovieClip "gun" in Frame 165
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 12) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 317 MovieClip "flashlight" in Frame 165
onClipEvent (enterFrame) {
this.swapDepths(2980);
_x = (_x - ((_x - _root._xmouse) / 5));
_y = (_y - ((_y - _root._ymouse) / 5));
}
Instance of Symbol 202 MovieClip "cursor" in Frame 165
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3005);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 165
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 165
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 165
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 165
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 166
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 167
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
_root.fadeIn.gotoAndPlay(1);
_root.fadeOut.gotoAndStop(1);
stop();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
Instance of Symbol 265 MovieClip "wideScreen" in Frame 167
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 167
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 167
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 168
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 169
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
randomw = -30 + random(60);
randomwa = -15 + random(30);
_root["scoreNum" + s]._x = _root._xmouse + randomw;
_root["scoreNum" + s]._y = _root._ymouse + randomwa;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -2 + random(4);
randomwa = -2 + random(4);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 300;
_root["bulleta" + z]._y = _root.gun._y - 27;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg5", 600);
Song5 = new Sound(songg5);
Song5.attachSound("song5");
Song5.start(0, 99);
this.createEmptyMovieClip("reload", 610);
reloadGun = new Sound(reload);
reloadGun.attachSound("cockgun");
this.createEmptyMovieClip("shot", 609);
Shotgun = new Sound(shot);
Shotgun.attachSound("shotgun");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shellshot");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
holdA = false;
slowMotion = false;
z = 1500;
i = 0;
ib = 402;
ib2 = 422;
ib3 = 442;
ib4 = 462;
ib5 = 482;
ib6 = 502;
hit = 0;
_root.wideScreen.scorea.score = _root.headshots;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
_root.wideScreen.ammo.amm = 12;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (wideScreen.ammo.amm <= 0) {
wideScreen.ammo.amm = 0;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song5.setVolume(0);
}
if (_root.musicOn == true) {
Song5.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
Shotgun.setVolume(0);
cockShotgun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
Shotgun.setVolume(100);
cockShotgun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 169
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 612 MovieClip "targete" in Frame 169
onClipEvent (load) {
yPeak = Math.round(random(16) + 15);
yAcc = -16;
ySpeed = Math.round(random(5) + 1);
yspeed = 0;
yState = 1;
xspeed = 0;
aa = 0;
yy = _y;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
if (aa >= 60) {
yPeak = Math.round(random(26) + 10);
aa = 0;
}
aa++;
trace(aa);
if (yState == 1) {
_y = (_y + yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 2;
}
} else if (yState == 2) {
_y = (_y + yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 3;
}
} else if (yState == 3) {
_y = (_y - yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 4;
}
} else if (yState == 4) {
_y = (_y - yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 1;
}
}
}
if (var1 == 1) {
i++;
if (i >= 13) {
i = 0;
ranNumber = random(4);
ranNumber2 = random(5);
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.97;
yspeed = yspeed * 0.97;
if (ranNumber == 0) {
xspeed = xspeed - 1;
}
if (ranNumber == 1) {
xspeed = xspeed + 1;
}
if (ranNumber2 == 0) {
xspeed--;
}
if (ranNumber2 == 1) {
xspeed++;
}
if (_x >= 740) {
xspeed = xspeed - 15;
}
if (_x <= -250) {
xspeed = xspeed + 15;
}
if (_y <= 75) {
yspeed = yspeed + 1;
}
if (_y >= 290) {
yspeed = yspeed - 1;
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 169
onClipEvent (load) {
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 198 MovieClip "BholeB" in Frame 169
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 493 MovieClip "gun" in Frame 169
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 12) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 169
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3005);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 169
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 329 MovieClip "wideScreen" in Frame 169
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 169
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 169
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 170
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 171
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
_root.fadeIn.gotoAndPlay(1);
_root.fadeOut.gotoAndStop(1);
stop();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
Instance of Symbol 265 MovieClip "wideScreen" in Frame 171
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 171
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 171
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 172
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 173
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
submit.lol = false;
_x = 0;
_y = 0;
stop();
submitScore = function () {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.ename;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.headshots;
__rankz_send__("MzE0NWolZSVhJW4lcw==", "RFdwWGNjcXQ=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
getURL ("http://rankz.armorbot.com/rebound3headshothg/", "_blank");
};
_root.HPScoreService.postScore(_root.headshots, "Headshot - Handgun");
Instance of Symbol 265 MovieClip "wideScreen" in Frame 173
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 341 MovieClip "submit" in Frame 173
onClipEvent (load) {
lol = false;
}
on (press) {
_root.rtm = true;
_root.fadeOut.play();
if (lol != true) {
_root.submitScore();
lol = true;
}
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 173
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 174
for (i in _root) {
_root[i].removeMovieClip();
}
stopAllSounds();
Frame 175
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
_root["scoreNum" + s]._x = _root._xmouse;
_root["scoreNum" + s]._y = _root._ymouse;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 350;
_root["bulleta" + z]._y = _root.gun._y - 10;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg", 600);
Song1 = new Sound(songg);
Song1.attachSound("song1");
Song1.start(0, 99);
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shell");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
this.createEmptyMovieClip("r1", 608);
reloadGun = new Sound(r1);
reloadGun.attachSound("reloadgun");
holdA = false;
slowMotion = false;
z = 1500;
headshots = 0;
i = 0;
ib = 402;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
_root.wideScreen.ammo.amm = 32;
_root.wideScreen.scorea.score = _root.headshots;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song1.setVolume(0);
}
if (_root.musicOn == true) {
Song1.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
reloadGun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
reloadGun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 612 MovieClip "targete" in Frame 175
onClipEvent (load) {
speed = 7;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
_x = (_x + speed);
if ((_x > 960) && (_root.wideScreen.timer.timee > 0)) {
_root.ib = 402;
speed = speed + 1.3;
_x = -610;
}
}
}
}
Instance of Symbol 150 MovieClip "scoreNum" in Frame 175
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 183 MovieClip "bulleta" in Frame 175
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 175
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 198 MovieClip "BholeB" in Frame 175
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 578 MovieClip "gun" in Frame 175
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 32) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 175
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3001);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 175
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 175
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 175
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 175
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 176
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 177
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
_root.fadeIn.gotoAndPlay(1);
_root.fadeOut.gotoAndStop(1);
stop();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
Instance of Symbol 265 MovieClip "wideScreen" in Frame 177
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 177
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 177
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 178
stopAllSounds();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 179
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
_root["scoreNum" + s]._x = _root._xmouse;
_root["scoreNum" + s]._y = _root._ymouse;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 350;
_root["bulleta" + z]._y = _root.gun._y - 10;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg2", 600);
Song2 = new Sound(songg2);
Song2.attachSound("song2");
songVar = false;
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shell");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
this.createEmptyMovieClip("r1", 608);
reloadGun = new Sound(r1);
reloadGun.attachSound("reloadgun");
holdA = false;
slowMotion = false;
z = 1500;
i = 0;
ib = 402;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
songstart = 0;
_root.wideScreen.ammo.amm = 32;
_root.wideScreen.scorea.score = _root.headshots;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (songstart < 15) {
songstart++;
}
if ((songstart >= 10) && (songVar != true)) {
Song2.start(0, 99);
songVar = true;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song2.setVolume(0);
}
if (_root.musicOn == true) {
Song2.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 179
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 612 MovieClip "targete" in Frame 179
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
i++;
if (i >= 20) {
i = 0;
ranNumber = random(4);
ranNumber2 = random(5);
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.87;
yspeed = yspeed * 0.87;
if (ranNumber == 0) {
xspeed = xspeed - 1;
}
if (ranNumber == 1) {
xspeed = xspeed + 1;
}
if (ranNumber == 2) {
yspeed = yspeed - 1;
}
if (ranNumber == 3) {
yspeed++;
}
if (ranNumber2 == 0) {
xspeed--;
}
if (ranNumber2 == 1) {
xspeed++;
}
if (ranNumber2 == 2) {
yspeed--;
}
if (ranNumber2 == 3) {
yspeed++;
}
if (_x >= 840) {
xspeed = xspeed - 8;
}
if (_x <= -250) {
xspeed = xspeed + 8;
}
if (_y <= 75) {
yspeed = yspeed + 8;
}
if (_y >= 290) {
yspeed = yspeed - 8;
}
}
}
Instance of Symbol 183 MovieClip "bulleta" in Frame 179
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 179
onClipEvent (load) {
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 295 MovieClip "BholeB" in Frame 179
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
yy2 = _root.targete2._y - _y;
xx2 = _root.targete2._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
i = 0;
_alpha = 100;
}
onClipEvent (enterFrame) {
i++;
if (i >= 75) {
_alpha = (_alpha - 2);
}
if (_alpha <= 0) {
this.removeMovieClip();
}
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete2.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
if (_root.targete2.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
}
Instance of Symbol 578 MovieClip "gun" in Frame 179
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 32) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 179
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3001);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 179
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 179
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 179
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 179
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 180
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 181
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
_root.fadeIn.gotoAndPlay(1);
_root.fadeOut.gotoAndStop(1);
stop();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
Instance of Symbol 265 MovieClip "wideScreen" in Frame 181
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 181
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 181
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 182
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 183
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
_root["scoreNum" + s]._x = _root._xmouse;
_root["scoreNum" + s]._y = _root._ymouse;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 350;
_root["bulleta" + z]._y = _root.gun._y - 10;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg3", 600);
Song3 = new Sound(songg3);
Song3.attachSound("song3");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shell");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
this.createEmptyMovieClip("r1", 608);
reloadGun = new Sound(r1);
reloadGun.attachSound("reloadgun");
holdA = false;
slowMotion = false;
z = 1500;
i = 0;
ib = 402;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
songstart = 0;
_root.wideScreen.ammo.amm = 32;
_root.wideScreen.scorea.score = _root.headshots;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
songVar = false;
onEnterFrame = function () {
if (songstart < 15) {
songstart++;
}
if ((songstart >= 10) && (songVar != true)) {
Song3.start(0, 99);
songVar = true;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song3.setVolume(0);
}
if (_root.musicOn == true) {
Song3.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 183
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 612 MovieClip "targete" in Frame 183
onClipEvent (load) {
yPeak = Math.round(random(16) + 15);
yAcc = -16;
ySpeed = Math.round(random(5) + 1);
yState = 1;
xspeed = 5;
yy = _y;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if ((var1 == 1) && (_root.wideScreen.timer.timee > 0)) {
if (_x > 960) {
xspeed = xspeed + 1.1;
_x = -610;
_y = yy;
yState = 1;
yPeak = Math.round(random(12) + 11);
ySpeed = Math.round(random(3) + 1);
}
_x = (_x + xspeed);
if (yState == 1) {
_y = (_y + yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 2;
}
} else if (yState == 2) {
_y = (_y + yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 3;
}
} else if (yState == 3) {
_y = (_y - yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 4;
}
} else if (yState == 4) {
_y = (_y - yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 1;
}
}
}
}
}
Instance of Symbol 183 MovieClip "bulleta" in Frame 183
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 183
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 295 MovieClip "BholeB" in Frame 183
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
yy2 = _root.targete2._y - _y;
xx2 = _root.targete2._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
i = 0;
_alpha = 100;
}
onClipEvent (enterFrame) {
i++;
if (i >= 75) {
_alpha = (_alpha - 2);
}
if (_alpha <= 0) {
this.removeMovieClip();
}
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete2.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
if (_root.targete2.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
}
Instance of Symbol 578 MovieClip "gun" in Frame 183
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 32) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 183
onClipEvent (enterFrame) {
this.swapDepths(3001);
if (_root.pausing != true) {
_x = _root._xmouse;
_y = _root._ymouse;
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 183
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 183
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 183
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 183
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 184
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 185
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
_root.fadeIn.gotoAndPlay(1);
_root.fadeOut.gotoAndStop(1);
stop();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
Instance of Symbol 265 MovieClip "wideScreen" in Frame 185
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 185
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 185
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 186
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 187
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
_root["scoreNum" + s]._x = _root._xmouse;
_root["scoreNum" + s]._y = _root._ymouse;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 350;
_root["bulleta" + z]._y = _root.gun._y - 10;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg4", 600);
Song4 = new Sound(songg4);
Song4.attachSound("song4");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shell");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
this.createEmptyMovieClip("r1", 608);
reloadGun = new Sound(r1);
reloadGun.attachSound("reloadgun");
holdA = false;
slowMotion = false;
z = 1500;
i = 0;
ib = 402;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
songstart = 0;
_root.wideScreen.ammo.amm = 32;
_root.wideScreen.scorea.score = _root.headshots;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
songVar = false;
onEnterFrame = function () {
if (songstart < 15) {
songstart++;
}
if ((songstart >= 10) && (songVar != true)) {
Song4.start(0, 99);
songVar = true;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song4.setVolume(0);
}
if (_root.musicOn == true) {
Song4.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 187
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 612 MovieClip "targete" in Frame 187
onClipEvent (load) {
xspeed = 0;
yspeed = 0;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
i++;
if (i >= 13) {
i = 0;
ranNumber = random(4);
ranNumber2 = random(5);
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.97;
yspeed = yspeed * 0.97;
if (ranNumber == 0) {
xspeed = xspeed - 1;
}
if (ranNumber == 1) {
xspeed = xspeed + 1;
}
if (ranNumber == 2) {
yspeed = yspeed - 1;
}
if (ranNumber == 3) {
yspeed++;
}
if (ranNumber2 == 0) {
xspeed--;
}
if (ranNumber2 == 1) {
xspeed++;
}
if (ranNumber2 == 2) {
yspeed--;
}
if (ranNumber2 == 3) {
yspeed++;
}
if (_x >= 740) {
xspeed = xspeed - 9;
}
if (_x <= -250) {
xspeed = xspeed + 9;
}
if (_y <= 75) {
yspeed = yspeed + 9;
}
if (_y >= 290) {
yspeed = yspeed - 9;
}
}
}
Instance of Symbol 183 MovieClip "bulleta" in Frame 187
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 187
onClipEvent (load) {
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 295 MovieClip "BholeB" in Frame 187
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
yy2 = _root.targete2._y - _y;
xx2 = _root.targete2._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
i = 0;
_alpha = 100;
}
onClipEvent (enterFrame) {
i++;
if (i >= 75) {
_alpha = (_alpha - 2);
}
if (_alpha <= 0) {
this.removeMovieClip();
}
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete2.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
if (_root.targete2.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
}
Instance of Symbol 578 MovieClip "gun" in Frame 187
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 32) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 317 MovieClip "flashlight" in Frame 187
onClipEvent (enterFrame) {
this.swapDepths(2980);
_x = (_x - ((_x - _root._xmouse) / 5));
_y = (_y - ((_y - _root._ymouse) / 5));
}
Instance of Symbol 202 MovieClip "cursor" in Frame 187
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3005);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 187
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 258 MovieClip "wideScreen" in Frame 187
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 187
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 187
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 188
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 189
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
_root.fadeIn.gotoAndPlay(1);
_root.fadeOut.gotoAndStop(1);
stop();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
Instance of Symbol 265 MovieClip "wideScreen" in Frame 189
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 189
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 189
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 190
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 191
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
_root["scoreNum" + s]._x = _root._xmouse;
_root["scoreNum" + s]._y = _root._ymouse;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 350;
_root["bulleta" + z]._y = _root.gun._y - 10;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("songg5", 600);
Song5 = new Sound(songg5);
Song5.attachSound("song5");
songVar = false;
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shell");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
this.createEmptyMovieClip("r1", 608);
reloadGun = new Sound(r1);
reloadGun.attachSound("reloadgun");
holdA = false;
slowMotion = false;
z = 1500;
i = 0;
ib = 402;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
songstart = 0;
_root.wideScreen.ammo.amm = 32;
_root.wideScreen.scorea.score = _root.headshots;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (songstart < 15) {
songstart++;
}
if ((songstart >= 10) && (songVar != true)) {
Song5.start(0, 99);
songVar = true;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song5.setVolume(0);
}
if (_root.musicOn == true) {
Song5.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 191
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 612 MovieClip "targete" in Frame 191
onClipEvent (load) {
yPeak = Math.round(random(16) + 15);
yAcc = -16;
ySpeed = Math.round(random(5) + 1);
yspeed = 0;
yState = 1;
xspeed = 0;
aa = 0;
yy = _y;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
if (!_root.pausing) {
if (_root.go == 1) {
var1 = 1;
} else {
var1 = 0;
}
if (var1 == 1) {
if (aa >= 60) {
yPeak = Math.round(random(26) + 10);
aa = 0;
}
aa++;
trace(aa);
if (yState == 1) {
_y = (_y + yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 2;
}
} else if (yState == 2) {
_y = (_y + yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 3;
}
} else if (yState == 3) {
_y = (_y - yAcc);
yAcc = yAcc + ySpeed;
if (yAcc >= yPeak) {
yState = 4;
}
} else if (yState == 4) {
_y = (_y - yAcc);
yAcc = yAcc - ySpeed;
if (yAcc <= 0) {
yState = 1;
}
}
}
if (var1 == 1) {
i++;
if (i >= 13) {
i = 0;
ranNumber = random(4);
ranNumber2 = random(5);
}
}
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.97;
yspeed = yspeed * 0.97;
if (ranNumber == 0) {
xspeed = xspeed - 1;
}
if (ranNumber == 1) {
xspeed = xspeed + 1;
}
if (ranNumber2 == 0) {
xspeed--;
}
if (ranNumber2 == 1) {
xspeed++;
}
if (_x >= 740) {
xspeed = xspeed - 15;
}
if (_x <= -250) {
xspeed = xspeed + 15;
}
if (_y <= 75) {
yspeed = yspeed + 1;
}
if (_y >= 290) {
yspeed = yspeed - 1;
}
}
}
Instance of Symbol 183 MovieClip "bulleta" in Frame 191
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 191
onClipEvent (load) {
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 295 MovieClip "BholeB" in Frame 191
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
yy2 = _root.targete2._y - _y;
xx2 = _root.targete2._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
i = 0;
_alpha = 100;
}
onClipEvent (enterFrame) {
i++;
if (i >= 75) {
_alpha = (_alpha - 2);
}
if (_alpha <= 0) {
this.removeMovieClip();
}
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete2.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
if (_root.targete2.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete2._y - yy2);
_x = (_root.targete2._x - xx2);
}
}
Instance of Symbol 578 MovieClip "gun" in Frame 191
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 32) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 191
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3005);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 191
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 329 MovieClip "wideScreen" in Frame 191
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 191
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 191
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 192
_root.pausing = false;
t = 45;
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 193
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
_x = 0;
_y = 0;
_root.fadeIn.gotoAndPlay(1);
_root.fadeOut.gotoAndStop(1);
stop();
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
stopAllSounds();
}
Instance of Symbol 265 MovieClip "wideScreen" in Frame 193
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 89 MovieClip "fadeIn" in Frame 193
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 193
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 194
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 195
Mouse.show();
_root.rel = _root.reloaded;
_root.scorea = _root.scoree;
shotsfireda = _root.shotsFired;
acc = _root.accuracy + "%";
hs = _root.headshots;
th = _root.hit;
submit.lol = false;
_x = 0;
_y = 0;
stop();
submitScore = function () {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.ename;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.headshots;
__rankz_send__("MzE0MWolZSVhJW4lcw==", "THZlb2pPbUY=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
getURL ("http://rankz.armorbot.com/rebound3headshotmgsa/", "_blank");
};
_root.HPScoreService.postScore(_root.headshots, "Headshot - Machine Gun Semi-Automatic");
Instance of Symbol 265 MovieClip "wideScreen" in Frame 195
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 341 MovieClip "submit" in Frame 195
onClipEvent (load) {
lol = false;
}
on (press) {
_root.rtm = true;
_root.fadeOut.play();
if (lol != true) {
_root.submitScore();
lol = true;
}
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 195
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 200
for (i in _root) {
_root[i].removeMovieClip();
}
stopAllSounds();
Frame 201
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
_root["scoreNum" + s]._x = _root._xmouse;
_root["scoreNum" + s]._y = _root._ymouse;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 350;
_root["bulleta" + z]._y = _root.gun._y - 10;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shell");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
this.createEmptyMovieClip("r1", 608);
reloadGun = new Sound(r1);
reloadGun.attachSound("reloadgun");
holdA = false;
slowMotion = false;
z = 1500;
scoree = 0;
i = 0;
ib = 402;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
_root.wideScreen.ammo.amm = 32;
_root.wideScreen.scorea.score = _root.scoree;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song1.setVolume(0);
}
if (_root.musicOn == true) {
Song1.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
reloadGun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
reloadGun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 147 MovieClip "targete" in Frame 201
onClipEvent (load) {
speed = 7;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
}
Instance of Symbol 150 MovieClip "scoreNum" in Frame 201
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 178 MovieClip "gun" in Frame 201
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 32) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 183 MovieClip "bulleta" in Frame 201
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 201
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 198 MovieClip "BholeB" in Frame 201
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 201
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3001);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 201
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 733 MovieClip "wideScreen" in Frame 201
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 201
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 201
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 202
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 203
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
randomw = -30 + random(60);
randomwa = -15 + random(30);
_root["scoreNum" + s]._x = _root._xmouse + randomw;
_root["scoreNum" + s]._y = _root._ymouse + randomwa;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB2() {
ib2++;
if (ib2 >= 1020) {
ib2 = 422;
}
duplicateMovieClip (_root.BholeB2, "BholeB2" + ib2, ib2);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB2" + ib2]._x = _root._xmouse + randomw;
_root["BholeB2" + ib2]._y = _root._ymouse + randomwa;
_root["BholeB2" + ib2].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB3() {
ib3++;
if (ib3 >= 1040) {
ib3 = 442;
}
duplicateMovieClip (_root.BholeB3, "BholeB3" + ib3, ib3);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB3" + ib3]._x = _root._xmouse + randomw;
_root["BholeB3" + ib3]._y = _root._ymouse + randomwa;
_root["BholeB3" + ib3].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB4() {
ib4++;
if (ib4 >= 1060) {
ib4 = 462;
}
duplicateMovieClip (_root.BholeB4, "BholeB4" + ib4, ib4);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB4" + ib4]._x = _root._xmouse + randomw;
_root["BholeB4" + ib4]._y = _root._ymouse + randomwa;
_root["BholeB4" + ib4].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB5() {
ib5++;
if (ib5 >= 1080) {
ib2 = 482;
}
duplicateMovieClip (_root.BholeB5, "BholeB5" + ib5, ib5);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB5" + ib5]._x = _root._xmouse + randomw;
_root["BholeB5" + ib5]._y = _root._ymouse + randomwa;
_root["BholeB5" + ib5].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB6() {
ib6++;
if (ib6 >= 2000) {
ib6 = 502;
}
duplicateMovieClip (_root.BholeB6, "BholeB6" + ib6, ib6);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB6" + ib6]._x = _root._xmouse + randomw;
_root["BholeB6" + ib6]._y = _root._ymouse + randomwa;
_root["BholeB6" + ib6].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 300;
_root["bulleta" + z]._y = _root.gun._y - 27;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("reload", 610);
reloadGun = new Sound(reload);
reloadGun.attachSound("cockgun");
this.createEmptyMovieClip("shot", 609);
Shotgun = new Sound(shot);
Shotgun.attachSound("shotgun");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shellshot");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
holdA = false;
slowMotion = false;
z = 1500;
scoree = 0;
i = 0;
ib = 402;
ib2 = 422;
ib3 = 442;
ib4 = 462;
ib5 = 482;
ib6 = 502;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
_root.wideScreen.ammo.amm = 36;
_root.wideScreen.scorea.score = _root.scoree;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (wideScreen.ammo.amm <= 0) {
wideScreen.ammo.amm = 0;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song1.setVolume(0);
}
if (_root.musicOn == true) {
Song1.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
Shotgun.setVolume(0);
cockShotgun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
Shotgun.setVolume(100);
cockShotgun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 203
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 147 MovieClip "targete" in Frame 203
onClipEvent (load) {
speed = 7;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
}
Instance of Symbol 350 MovieClip "bulleta" in Frame 203
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
_root.Shell1.start(0, 1);
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 203
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 198 MovieClip "BholeB" in Frame 203
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 414 MovieClip "gun" in Frame 203
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 36) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 198 MovieClip "BholeB2" in Frame 203
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB4" in Frame 203
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB3" in Frame 203
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB5" in Frame 203
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 198 MovieClip "BholeB6" in Frame 203
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 203
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3001);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 203
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 733 MovieClip "wideScreen" in Frame 203
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 203
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 203
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 204
stopAllSounds();
_root.pausing = false;
for (i in _root) {
_root[i].removeMovieClip();
}
_root.nextFrame();
Frame 205
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
randomw = -30 + random(60);
randomwa = -15 + random(30);
_root["scoreNum" + s]._x = _root._xmouse + randomw;
_root["scoreNum" + s]._y = _root._ymouse + randomwa;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -2 + random(4);
randomwa = -2 + random(4);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 300;
_root["bulleta" + z]._y = _root.gun._y - 27;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("reload", 610);
reloadGun = new Sound(reload);
reloadGun.attachSound("cockgun");
this.createEmptyMovieClip("shot", 609);
Shotgun = new Sound(shot);
Shotgun.attachSound("shotgun");
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shellshot");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
holdA = false;
slowMotion = false;
z = 1500;
scoree = 0;
i = 0;
ib = 402;
ib2 = 422;
ib3 = 442;
ib4 = 462;
ib5 = 482;
ib6 = 502;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
_root.wideScreen.ammo.amm = 12;
_root.wideScreen.scorea.score = _root.scoree;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (wideScreen.ammo.amm <= 0) {
wideScreen.ammo.amm = 0;
}
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song1.setVolume(0);
}
if (_root.musicOn == true) {
Song1.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
Shotgun.setVolume(0);
cockShotgun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
Shotgun.setVolume(100);
cockShotgun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 205
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 147 MovieClip "targete" in Frame 205
onClipEvent (load) {
speed = 7;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 205
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 198 MovieClip "BholeB" in Frame 205
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 493 MovieClip "gun" in Frame 205
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 12) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 205
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3001);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 205
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 733 MovieClip "wideScreen" in Frame 205
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 205
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 205
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Frame 206
for (i in _root) {
_root[i].removeMovieClip();
}
stopAllSounds();
Frame 207
function MakeScoreNumber() {
s++;
_root.scoreNum.duplicateMovieClip("scoreNum" + s, s);
_root["scoreNum" + s]._x = _root._xmouse;
_root["scoreNum" + s]._y = _root._ymouse;
_root["scoreNum" + s].number = _root.scoreNumberNumber;
}
function MakeBHole() {
i++;
if (i >= 398) {
i = 0;
}
duplicateMovieClip (_root.Bhole, "Bhole" + i, i);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["Bhole" + i]._x = _root._xmouse + randomw;
_root["Bhole" + i]._y = _root._ymouse + randomwa;
_root.Bxx = _root._xmouse + randomw;
}
function MakeBHoleB() {
ib++;
if (ib >= 1000) {
ib = 402;
}
duplicateMovieClip (_root.BholeB, "BholeB" + ib, ib);
randomw = -6 + random(12);
randomwa = -6 + random(12);
_root["BholeB" + ib]._x = _root._xmouse + randomw;
_root["BholeB" + ib]._y = _root._ymouse + randomwa;
_root["BholeB" + ib].varShot = true;
_root.Bxx = _root._xmouse + randomw;
}
function screenFlash() {
_root.white.play();
}
function makeBulleta() {
z++;
if (z >= 2000) {
z = 1500;
}
_root.bulleta.duplicateMovieClip("bulleta" + z, z);
_root["bulleta" + z]._x = _root.gun._x + 350;
_root["bulleta" + z]._y = _root.gun._y - 10;
_root["bulleta" + z].shot = true;
_root["bulleta" + z].scaler = (1 + random(15)) / 7;
}
function gunMove(speed) {
if (_root.varMoveGunUp != true) {
if (_root.gun.insideGun._y <= (_root.gun.insideGun.yy + 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y + speed;
} else {
_root.varMoveGunUp = true;
}
}
if (_root.varMoveGunUp == true) {
if (_root.gun.insideGun._y >= (_root.gun.insideGun.yy - 8)) {
_root.gun.insideGun._y = _root.gun.insideGun._y - speed;
} else {
_root.varMoveGunUp = false;
}
}
}
function gunRotate(speed2) {
if (_root.varRotGunUp != true) {
if (_root.gun.insideGun._rotation <= (_root.gun.insideGun.rot + 2)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation + speed2;
} else {
_root.varRotGunUp = true;
}
}
if (_root.varRotGunUp == true) {
if (_root.gun.insideGun._rotation >= (_root.gun.insideGun.rot - 0)) {
_root.gun.insideGun._rotation = _root.gun.insideGun._rotation - speed2;
} else {
_root.varRotGunUp = false;
}
}
}
stop();
this.createEmptyMovieClip("b", 601);
Bullet1 = new Sound(b);
Bullet1.attachSound("bullet1");
this.createEmptyMovieClip("b2", 602);
Bullet2 = new Sound(b2);
Bullet2.attachSound("bullet2");
this.createEmptyMovieClip("b3", 603);
Bullet3 = new Sound(b3);
Bullet3.attachSound("bullet3");
this.createEmptyMovieClip("s", 604);
Shell1 = new Sound(s);
Shell1.attachSound("shell");
this.createEmptyMovieClip("s2", 605);
Shell2 = new Sound(s2);
Shell2.attachSound("shell2");
this.createEmptyMovieClip("s3", 606);
Shell3 = new Sound(s3);
Shell3.attachSound("shell3");
this.createEmptyMovieClip("s4", 607);
Shell4 = new Sound(s4);
Shell4.attachSound("shell4");
this.createEmptyMovieClip("r1", 608);
reloadGun = new Sound(r1);
reloadGun.attachSound("reloadgun");
holdA = false;
slowMotion = false;
z = 1500;
scoree = 0;
i = 0;
ib = 402;
hit = 0;
reloaded = 0;
s = 1002;
t = 30;
timeT = 0;
_root.wideScreen.ammo.amm = 32;
_root.wideScreen.scorea.score = _root.scoree;
_root.scoreNumberNumber = 0;
_root.scoreNum.number = 0;
shotsFired = 0;
accuracy = 0;
onEnterFrame = function () {
if (_root.wideScreen.ammo.amm <= 0) {
_root.wideScreen.ammo.amm = 0;
}
if (_root.musicOn == false) {
Song1.setVolume(0);
}
if (_root.musicOn == true) {
Song1.setVolume(100);
}
if (_root.soundOn == false) {
Bullet1.setVolume(0);
Bullet2.setVolume(0);
Bullet3.setVolume(0);
Shell1.setVolume(0);
Shell2.setVolume(0);
Shell3.setVolume(0);
Shell4.setVolume(0);
reloadGun.setVolume(0);
reloadGun.setVolume(0);
}
if (_root.soundOn == true) {
Bullet1.setVolume(100);
Bullet2.setVolume(100);
Bullet3.setVolume(100);
Shell1.setVolume(100);
Shell2.setVolume(100);
Shell3.setVolume(100);
Shell4.setVolume(100);
reloadGun.setVolume(100);
reloadGun.setVolume(100);
}
if ((Key.isDown(80) && (!_root.pausing)) && (pHold != true)) {
_root.pauser.gotoAndStop(2);
Mouse.show();
_root.pausing = true;
pHold = true;
}
if ((!Key.isDown(80)) && (pHold == true)) {
pHold = false;
}
if ((Key.isDown(80) && (!pHold)) && (pausing == true)) {
pauser.gotoAndStop(1);
Mouse.hide();
_root.pausing = false;
pHold = true;
}
if (!_root.pausing) {
if (_root.shotsFired != 0) {
accuracy = Math.ceil((_root.hit / _root.shotsFired) * 100);
} else {
accuracy = 0;
}
timeT++;
if (t < 10) {
_root.wideScreen.timer.timee = "0" + t;
} else {
_root.wideScreen.timer.timee = t;
}
if ((_root.timeT >= 45) && (_root.wideScreen.timer.timee > 0)) {
t--;
timeT = 0;
}
if (t <= 0) {
_root.fadeOut.play();
}
if ((Key.isDown(65) && (!holdA)) && (!slowMotion)) {
slowMotion = true;
holdA = true;
}
if ((Key.isDown(65) && (!holdA)) && (slowMotion == true)) {
slowMotion = false;
holdA = true;
}
if ((!Key.isDown(65)) && (holdA == true)) {
holdA = false;
}
if (!slowMotion) {
_root.gunMove(0.1);
_root.gunRotate(0.04);
} else {
_root.gunMove(0.05);
_root.gunRotate(0.02);
}
}
};
Instance of Symbol 150 MovieClip "scoreNum" in Frame 207
onClipEvent (load) {
_alpha = 0;
i = 0;
yy = _y;
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if ((_alpha <= 100) && (var1 != true)) {
_alpha = (_alpha + 10);
}
_y = (_y - 4);
if (_alpha >= 100) {
var1 = true;
i++;
}
if (i >= 7) {
if (_alpha >= 0) {
_alpha = (_alpha - 10);
}
}
if (_alpha <= 0) {
this.removeMovieClip();
}
}
}
Instance of Symbol 147 MovieClip "targete" in Frame 207
onClipEvent (load) {
speed = 7;
}
onClipEvent (enterFrame) {
this.swapDepths(401);
}
Instance of Symbol 183 MovieClip "bulleta" in Frame 207
onClipEvent (load) {
scale = _xscale;
yspeed = 0;
xspeed = 0;
grav = 3;
w = _width / 2;
h = _height / 2;
landed = false;
lefted = false;
righted = false;
if (_y > 700) {
this.gotoAndStop(2);
}
walljump = false;
i = 0;
num4 = random(2);
numm4 = Math.round(random(23) + 12);
rot = random(33);
}
onClipEvent (enterFrame) {
if (!_root.pausing) {
if (rot == 0) {
rot = 4;
}
_xscale = (_xscale + scaler);
_yscale = (_yscale + scaler);
_rotation = (_rotation + rot);
if (num4 == 0) {
xspeed = xspeed - 1;
}
if (num4 == 1) {
xspeed = xspeed + 1;
}
i++;
if (i < 5) {
yspeed = -numm4;
}
yspeed = yspeed + grav;
_x = (_x + xspeed);
_y = (_y + yspeed);
xspeed = xspeed * 0.92;
landed = false;
lefted = false;
righted = false;
if ((_y >= 700) && (_name != "bulleta")) {
shells = random(4);
if (shells == 0) {
_root.Shell1.start(0, 1);
}
if (shells == 1) {
_root.Shell2.start(0, 1);
}
if (shells == 2) {
_root.Shell3.start(0, 1);
}
if (shells == 3) {
_root.Shell4.start(0, 1);
}
this.removeMovieClip();
}
}
}
Instance of Symbol 198 MovieClip "Bhole" in Frame 207
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = false;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
}
onClipEvent (enterFrame) {
if (hitTarget == false) {
_x = (_root.bg._x - Bxx);
}
}
Instance of Symbol 198 MovieClip "BholeB" in Frame 207
onClipEvent (load) {
yy = _root.targete._y - _y;
xx = _root.targete._x - _x;
Bxx = _root.bg._x - _x;
_rotation = random(360);
hitTarget = true;
shot = true;
tgt = _root.targete.targeta;
tgth = _root.targete.targetah;
varShot = false;
}
onClipEvent (enterFrame) {
if (_root.targete.targeta.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
if (_root.targete.targetah.hitTest(_x, _y, true) && (hitTarget)) {
_y = (_root.targete._y - yy);
_x = (_root.targete._x - xx);
}
}
Instance of Symbol 578 MovieClip "gun" in Frame 207
onClipEvent (load) {
CamX = _x;
scale = _xscale;
}
onClipEvent (enterFrame) {
this.swapDepths(1000);
if (!_root.pausing) {
CamX = CamX + ((_x - CamX) / 6);
_root._x = (Stage.width / 2) - CamX;
_root.fadeIn._x = CamX;
_root.wideScreen._x = CamX;
_root.overLay._x = CamX;
_root.bg._x = CamX / 4;
_root.white._x = CamX;
_root.fadeOut._x = CamX;
_root.pauser._x = CamX;
if (_root.righty == true) {
_xscale = scale;
}
if (_root.lefty == true) {
_xscale = (-scale);
}
if (_root.lefty != true) {
_x = (_x - (((_x - _root._xmouse) / 1.7) - 30));
} else {
_x = (_x - (((_x - _root._xmouse) / 1.7) + 30));
}
_y = (_y + (((_root._ymouse + 25) - _y) / 4));
_rotation = (_root._ymouse / -20);
if (CamX < 0) {
CamX = CamX + (-CamX);
}
if (CamX > 400) {
CamX = 400;
}
if (holdMouse == true) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
this.gotoAndStop(2);
}
if (_root.wideScreen.ammo.amm <= 0) {
this.gotoAndStop(3);
}
}
if (_root.wideScreen.ammo.amm < 32) {
if ((Key.isDown(32) && (!reloading)) && (_currentframe != 3)) {
this.gotoAndStop(3);
}
}
}
}
onClipEvent (mouseDown) {
if (!_root.pausing) {
if ((_currentframe != 3) && (_root.wideScreen.ammo.amm >= 0)) {
holdMouse = true;
}
}
}
onClipEvent (mouseUp) {
if (!_root.pausing) {
holdMouse = false;
}
}
Instance of Symbol 202 MovieClip "cursor" in Frame 207
onClipEvent (enterFrame) {
if (!_root.pausing) {
this.swapDepths(3001);
_x = _root._xmouse;
_y = _root._ymouse;
if (_root.pausing != true) {
Mouse.hide();
if (_root.gun.holdMouse == true) {
this.gotoAndPlay(2);
} else if (_currentframe != 1) {
this.play();
}
}
} else {
this.swapDepths(2998);
}
}
Instance of Symbol 241 MovieClip "pauser" in Frame 207
onClipEvent (enterFrame) {
this.swapDepths(2999);
}
Instance of Symbol 733 MovieClip "wideScreen" in Frame 207
onClipEvent (enterFrame) {
this.swapDepths(3000);
}
Instance of Symbol 261 MovieClip "fadeIn" in Frame 207
onClipEvent (enterFrame) {
this.swapDepths(5000);
}
Instance of Symbol 264 MovieClip "fadeOut" in Frame 207
onClipEvent (enterFrame) {
this.swapDepths(5001);
}
Symbol 35 Button
on (press) {
_root.play();
}
Symbol 36 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndPlay ("loaded");
}
Symbol 36 MovieClip Frame 2
gotoAndPlay (1);
Symbol 36 MovieClip Frame 24
stop();
Symbol 36 MovieClip Frame 43
_root.play();
Symbol 734 MovieClip [__Packages.ab3.rankz.Armor_Bot_30_En_AS1] Frame 0
class ab3.rankz.Armor_Bot_30_En_AS1 extends Object
{
static var _CharsReverseLookup;
var _Armor_Bot_30_En_AS1Str, _Armor_Bot_30_En_AS1Count;
function Armor_Bot_30_En_AS1 () {
super();
}
static function Encode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.encodeArmor_Bot_30_En_AS1(str));
}
static function Decode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.decodeArmor_Bot_30_En_AS1(str));
}
static function StringReplaceAll(source, find, replacement) {
return(source.split(find).join(replacement));
}
static function InitReverseChars() {
_CharsReverseLookup = new Array();
var _local1 = 0;
while (_local1 < _Chars.length) {
_CharsReverseLookup[_Chars[_local1]] = _local1;
_local1++;
}
return(true);
}
static function UrlDecode(str) {
str = StringReplaceAll(str, "\\", " ");
str = unescape(str);
return(str);
}
static function UrlEncode(str) {
str = escape(str);
str = StringReplaceAll(str, "\\", "%2B");
str = StringReplaceAll(str, "%20", "+");
return(str);
}
function setArmor_Bot_30_En_AS1Str(str) {
_Armor_Bot_30_En_AS1Str = str;
_Armor_Bot_30_En_AS1Count = 0;
}
function readArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charCodeAt(_Armor_Bot_30_En_AS1Count) & 255;
_Armor_Bot_30_En_AS1Count++;
return(_local2);
}
function encodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(3);
var _local5 = 0;
var _local4 = false;
while ((!_local4) && (((_local2[0] = readArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[1] = readArmor_Bot_30_En_AS1();
_local2[2] = readArmor_Bot_30_En_AS1();
_local3 = _local3 + _Chars[_local2[0] >> 2];
if (_local2[1] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)];
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)];
_local3 = _local3 + _Chars[_local2[2] & 63];
} else {
_local3 = _local3 + _Chars[(_local2[1] << 2) & 60];
_local3 = _local3 + "=";
_local4 = true;
}
} else {
_local3 = _local3 + _Chars[(_local2[0] << 4) & 48];
_local3 = _local3 + "=";
_local3 = _local3 + "=";
_local4 = true;
}
_local5 = _local5 + 4;
if (_local5 >= 76) {
_local3 = _local3 + newline;
_local5 = 0;
}
}
return(_local3);
}
function readReverseArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
while (true) {
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charAt(_Armor_Bot_30_En_AS1Count);
_Armor_Bot_30_En_AS1Count++;
if (_CharsReverseLookup[_local2]) {
return(_CharsReverseLookup[_local2]);
}
if (_local2 == "A") {
return(0);
}
}
}
function ntos(n) {
var _local1 = n.toString(16);
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local1 = "%" + _local1;
return(unescape(_local1));
}
function decodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(4);
var _local4 = false;
while (((!_local4) && (((_local2[0] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) && (((_local2[1] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[2] = readReverseArmor_Bot_30_En_AS1();
_local2[3] = readReverseArmor_Bot_30_En_AS1();
_local3 = _local3 + ntos(((_local2[0] << 2) & 255) | (_local2[1] >> 4));
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[1] << 4) & 255) | (_local2[2] >> 2));
if (_local2[3] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[2] << 6) & 255) | _local2[3]);
} else {
_local4 = true;
}
} else {
_local4 = true;
}
}
return(_local3);
}
function toHex(n) {
var _local4 = "";
var _local3 = true;
var _local1 = 32;
while (_local1 > 0) {
_local1 = _local1 - 4;
var _local2 = (n >> _local1) & 15;
if ((!_local3) || (_local2 != 0)) {
_local3 = false;
_local4 = _local4 + _Digits[_local2];
}
}
return(((_local4 == "") ? "0" : (_local4)));
}
function pad(str, len, pad) {
var _local2 = str;
var _local1 = str.length;
while (_local1 < len) {
_local2 = pad + _local2;
_local1++;
}
return(_local2);
}
function encodeHex(str) {
var _local4 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local4 = _local4 + pad(toHex(str.charCodeAt(_local2) & 255), 2, "0");
_local2++;
}
return(_local4);
}
function decodeHex(str) {
var _local5 = "";
var _local3 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local3 = _local3 + str.charAt(_local2);
if (_local3.length == 2) {
_local5 = _local5 + ntos(parseInt("0x" + _local3));
_local3 = "";
}
_local2++;
}
return(_local5);
}
static var _EndOfInput = -1;
static var _Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
static var _CharsReverseLookupInited = InitReverseChars();
static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
}
Symbol 40 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 50 MovieClip Frame 100
_root.nextFrame();
Symbol 72 Button
on (press) {
_root.normal = true;
_root.nextFrame();
}
Symbol 74 Button
on (press) {
_root.normal = false;
_root.nextFrame();
}
Symbol 76 Button
on (press) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 83 Button
on (press) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 85 Button
on (press) {
getURL ("http://armorgames.com/play/307/rebound-2", "_blank");
}
Symbol 89 MovieClip Frame 240
stop();
_root.go = 1;
Symbol 91 Button
on (press) {
_root.arcade = true;
_root.headshot = false;
_root.training = false;
_root.nextFrame();
}
Symbol 93 Button
on (press) {
_root.arcade = false;
_root.headshot = true;
_root.training = false;
_root.nextFrame();
}
Symbol 95 Button
on (press) {
_root.arcade = false;
_root.headshot = false;
_root.training = true;
_root.nextFrame();
}
Symbol 98 MovieClip Frame 1
stop();
Symbol 101 Button
on (press) {
_root.prevFrame();
}
Symbol 103 Button
on (press) {
if (_root.normal == true) {
if (_root.arcade == true) {
_root.handgunA = true;
_root.machineGunA = false;
_root.shotgunA = false;
_root.machineGunSA = false;
_root.fadeOut.play();
}
if (_root.headshot == true) {
_root.machineGunB = false;
_root.shotgunB = false;
_root.handgunB = true;
_root.machineGunSB = false;
_root.fadeOut.play();
}
if (_root.training == true) {
_root.machineGunTB = false;
_root.shotgunT = false;
_root.handgunT = true;
_root.machineGunT = false;
_root.fadeOut.play();
}
}
if ((_root.normal != true) && (_root.arcade == true)) {
this.getURL("http://rankz.armorbot.com/rebound3arcadehg/", "_blank");
}
if ((_root.normal != true) && (_root.headshot == true)) {
this.getURL("http://rankz.armorbot.com/rebound3headshothg/", "_blank");
}
}
Symbol 105 Button
on (press) {
if (_root.normal == true) {
if (_root.arcade == true) {
_root.machineGunA = true;
_root.shotgunA = false;
_root.handgunA = false;
_root.machineGunSA = false;
_root.fadeOut.play();
}
if (_root.headshot == true) {
_root.machineGunB = true;
_root.shotgunB = false;
_root.handgunB = false;
_root.machineGunSB = false;
_root.fadeOut.play();
}
if (_root.training == true) {
_root.machineGunTB = false;
_root.shotgunT = false;
_root.handgunT = false;
_root.machineGunT = true;
_root.fadeOut.play();
}
}
if ((_root.normal != true) && (_root.arcade == true)) {
this.getURL("http://rankz.armorbot.com/rebound3/", "_blank");
}
if ((_root.normal != true) && (_root.headshot == true)) {
this.getURL("http://rankz.armorbot.com/rebound3headshotmga/", "_blank");
}
}
Symbol 107 MovieClip Frame 1
stop();
Symbol 109 Button
on (press) {
if (_root.normal == true) {
if (_root.arcade == true) {
_root.machineGunA = false;
_root.shotgunA = false;
_root.handgunA = false;
_root.machineGunSA = true;
_root.fadeOut.play();
}
if (_root.headshot == true) {
_root.machineGunB = false;
_root.shotgunB = false;
_root.handgunB = false;
_root.machineGunSB = true;
_root.fadeOut.play();
}
if (_root.training == true) {
_root.machineGunTB = true;
_root.shotgunT = false;
_root.handgunT = false;
_root.machineGunT = false;
_root.fadeOut.play();
}
}
if ((_root.normal != true) && (_root.arcade == true)) {
this.getURL("http://rankz.armorbot.com/rebound3arcademgasa/", "_blank");
}
if ((_root.normal != true) && (_root.headshot == true)) {
this.getURL("http://rankz.armorbot.com/rebound3headshotmgsa/", "_blank");
}
}
Symbol 110 Button
on (press) {
if (_root.normal == true) {
if (_root.arcade == true) {
_root.machineGunA = false;
_root.shotgunA = true;
_root.handgunA = false;
_root.machineGunSA = false;
_root.fadeOut.play();
}
if (_root.headshot == true) {
_root.machineGunB = false;
_root.shotgunB = true;
_root.handgunB = false;
_root.machineGunSB = false;
_root.fadeOut.play();
}
if (_root.training == true) {
_root.machineGunTB = false;
_root.shotgunT = true;
_root.handgunT = false;
_root.machineGunT = false;
_root.fadeOut.play();
}
}
if ((_root.normal != true) && (_root.arcade == true)) {
this.getURL("http://rankz.armorbot.com/rebound3arcadesg/", "_blank");
}
if ((_root.normal != true) && (_root.headshot == true)) {
this.getURL("http://rankz.armorbot.com/rebound3headshotsg/", "_blank");
}
}
Symbol 113 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 41
if (_root.machineGunA == true) {
_root.gotoAndPlay("mga");
}
if (_root.shotgunA == true) {
_root.gotoAndPlay("sa");
}
if (_root.handgunA == true) {
_root.gotoAndPlay("hg");
}
if (_root.machineGunSA == true) {
_root.gotoAndPlay("mgsa");
}
if (_root.machineGunB == true) {
_root.gotoAndPlay("mgab");
}
if (_root.shotgunB == true) {
_root.gotoAndPlay("sab");
}
if (_root.handgunB == true) {
_root.gotoAndPlay("hgb");
}
if (_root.machineGunSB == true) {
_root.gotoAndPlay("mgsab");
}
if (_root.machineGunT == true) {
_root.gotoAndPlay("mgat");
}
if (_root.shotgunT == true) {
_root.gotoAndPlay("sat");
}
if (_root.handgunT == true) {
_root.gotoAndPlay("hgt");
}
if (_root.machineGunTB == true) {
_root.gotoAndPlay("mgsat");
}
Instance of Symbol 116 MovieClip in Symbol 120 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.overLay)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 116 MovieClip in Symbol 120 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.overLay)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 130 MovieClip "ring9" in Symbol 147 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root["BholeB" + _root.ib].bh) && (_root["BholeB" + _root.ib].varShot != true)) {
_root.scoreNumberNumber = 10;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 10;
_root.scoree = _root.scoree + 10;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB" + _root.ib].varShot = true;
}
}
Instance of Symbol 132 MovieClip "ring7" in Symbol 147 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root["BholeB" + _root.ib].bh) && (_root["BholeB" + _root.ib].varShot != true)) {
_root.scoreNumberNumber = 10;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 10;
_root.scoree = _root.scoree + 10;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB" + _root.ib].varShot = true;
}
}
Instance of Symbol 134 MovieClip "ring6" in Symbol 147 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root["BholeB" + _root.ib].bh) && (_root["BholeB" + _root.ib].varShot != true)) {
_root.scoreNumberNumber = 30;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 30;
_root.scoree = _root.scoree + 30;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB" + _root.ib].varShot = true;
}
}
Instance of Symbol 136 MovieClip "ring5" in Symbol 147 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root["BholeB" + _root.ib].bh) && (_root["BholeB" + _root.ib].varShot != true)) {
_root.scoreNumberNumber = 40;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 40;
_root.scoree = _root.scoree + 40;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB" + _root.ib].varShot = true;
}
}
Instance of Symbol 138 MovieClip "ring4" in Symbol 147 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root["BholeB" + _root.ib].bh) && (_root["BholeB" + _root.ib].varShot != true)) {
_root.scoreNumberNumber = 50;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 50;
_root.scoree = _root.scoree + 50;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB" + _root.ib].varShot = true;
}
}
Instance of Symbol 140 MovieClip "ring3" in Symbol 147 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root["BholeB" + _root.ib].bh) && (_root["BholeB" + _root.ib].varShot != true)) {
_root.scoreNumberNumber = 60;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 60;
_root.scoree = _root.scoree + 60;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB" + _root.ib].varShot = true;
}
}
Instance of Symbol 142 MovieClip "ring2" in Symbol 147 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root["BholeB" + _root.ib].bh) && (_root["BholeB" + _root.ib].varShot != true)) {
_root.scoreNumberNumber = 80;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 80;
_root.scoree = _root.scoree + 80;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB" + _root.ib].varShot = true;
}
}
Instance of Symbol 144 MovieClip "ring1" in Symbol 147 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root["BholeB" + _root.ib].bh) && (_root["BholeB" + _root.ib].varShot != true)) {
_root.scoreNumberNumber = 100;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 100;
_root.scoree = _root.scoree + 100;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB" + _root.ib].varShot = true;
}
}
Instance of Symbol 138 MovieClip "ringh3" in Symbol 147 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root["BholeB" + _root.ib].bh) && (_root["BholeB" + _root.ib].varShot != true)) {
_root.scoreNumberNumber = 40;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 40;
_root.scoree = _root.scoree + 40;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB" + _root.ib].varShot = true;
}
}
Instance of Symbol 146 MovieClip "ringh2" in Symbol 147 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root["BholeB" + _root.ib].bh) && (_root["BholeB" + _root.ib].varShot != true)) {
_root.scoreNumberNumber = 80;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 80;
_root.scoree = _root.scoree + 80;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB" + _root.ib].varShot = true;
}
}
Instance of Symbol 144 MovieClip "ringh1" in Symbol 147 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root["BholeB" + _root.ib].bh) && (_root["BholeB" + _root.ib].varShot != true)) {
_root.scoreNumberNumber = 200;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 200;
_root.scoree = _root.scoree + 200;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root.headshots++;
_root["BholeB" + _root.ib].varShot = true;
}
}
Symbol 171 MovieClip Frame 1
if (_root.targete.targeta.hitTest(_root.cursor._x, _root.cursor._y, true) or _root.targete.targetah.hitTest(_root.cursor._x, _root.cursor._y, true)) {
_root.MakeBHoleB();
} else {
_root.MakeBHole();
}
_root.shotsFired++;
_root.wideScreen.ammo.amm--;
Symbol 171 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 177 MovieClip Frame 9
_root.reloadGun.start(0, 1);
Symbol 177 MovieClip Frame 19
_root.wideScreen.ammo.amm = 32;
_root.reloaded++;
Symbol 177 MovieClip Frame 39
_parent.gotoAndStop(1);
Symbol 178 MovieClip Frame 1
stop();
Instance of Symbol 158 MovieClip "insideGun" in Symbol 178 MovieClip Frame 1
onClipEvent (load) {
yy = _y;
rot = _rotation;
}
Symbol 178 MovieClip Frame 2
_root.flashlight.play();
_root.makeBulleta();
_root.screenFlash();
_root.shake.play();
bulletShot = random(3);
if (bulletShot == 0) {
_root.Bullet1.start(0, 1);
}
if (bulletShot == 1) {
_root.Bullet2.start(0, 1);
}
if (bulletShot == 2) {
_root.Bullet3.start(0, 1);
}
Instance of Symbol 167 MovieClip in Symbol 178 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.pausing != true) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 171 MovieClip in Symbol 178 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.pausing != true) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 174 MovieClip in Symbol 178 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.pausing != true) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 177 MovieClip in Symbol 178 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.pausing != true) {
this.play();
} else {
this.stop();
}
}
Symbol 180 MovieClip Frame 1
stop();
Symbol 180 MovieClip Frame 2
_root._y = _root._y + 5;
Symbol 180 MovieClip Frame 3
_root._y = _root._y - 10;
Symbol 180 MovieClip Frame 4
_root._y = _root._y + 5;
_root._x = _root._x + 5;
Symbol 180 MovieClip Frame 5
_root._x = _root._x - 10;
Symbol 180 MovieClip Frame 6
_root._x = _root._x + 5;
Symbol 202 MovieClip Frame 1
stop();
Symbol 211 Button
on (press) {
_root.rtm = true;
_root.fadeOut.play();
}
Symbol 215 Button
on (press) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 219 Button
on (press) {
_quality = "HIGH";
}
Symbol 222 Button
on (press) {
_quality = "MEDIUM";
}
Symbol 225 Button
on (press) {
_quality = "LOW";
}
Symbol 230 Button
on (press) {
_root.musicOn = true;
}
Symbol 233 Button
on (press) {
_root.musicOn = false;
}
Symbol 234 Button
on (press) {
_root.soundOn = true;
}
Symbol 235 Button
on (press) {
_root.soundOn = false;
}
Symbol 237 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 1
stop();
Symbol 241 MovieClip Frame 1
stop();
Symbol 241 MovieClip Frame 2
stop();
Instance of Symbol 237 MovieClip in Symbol 241 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_quality == "HIGH") {
gotoAndStop (1);
}
if (_quality == "MEDIUM") {
gotoAndStop (2);
}
if (_quality == "LOW") {
gotoAndStop (3);
}
}
Instance of Symbol 238 MovieClip in Symbol 241 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.musicOn == true) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 238 MovieClip in Symbol 241 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.soundOn == true) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Symbol 261 MovieClip Frame 36
stop();
_root.go = 1;
Symbol 264 MovieClip Frame 1
stop();
Symbol 264 MovieClip Frame 41
if (_root.rtm != true) {
_root.nextFrame();
}
if (_root.rtm == true) {
stopAllSounds();
_root.gotoAndPlay("menua");
}
Symbol 285 Button
on (press) {
_root.fadeOut.play();
}
Symbol 287 Button
on (press) {
_root.gotoAndStop("mgsubmit");
}
Instance of Symbol 293 MovieClip in Symbol 294 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.overLay)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 293 MovieClip in Symbol 294 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.overLay)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 304 MovieClip in Symbol 305 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.overLay)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 304 MovieClip in Symbol 305 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.overLay)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 314 MovieClip in Symbol 315 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.overLay)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 314 MovieClip in Symbol 315 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.overLay)) {
_visible = false;
} else {
_visible = true;
}
}
Symbol 317 MovieClip Frame 1
stop();
Instance of Symbol 326 MovieClip in Symbol 327 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.overLay)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 326 MovieClip in Symbol 327 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.overLay)) {
_visible = false;
} else {
_visible = true;
}
}
Symbol 338 Button
on (press) {
_root.rtm = true;
_root.fadeOut.play();
}
Instance of Symbol 130 MovieClip "ring9" in Symbol 346 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root["BholeB" + _root.ib].bh) && (_root["BholeB" + _root.ib].varShot != true)) {
_root.scoreNumberNumber = 10;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 10;
_root.scoree = _root.scoree + 10;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB" + _root.ib].varShot = true;
}
if (this.hitTest(_root["BholeB2" + _root.ib2].bh) && (_root["BholeB2" + _root.ib2].varShot != true)) {
_root.scoreNumberNumber = 10;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 10;
_root.scoree = _root.scoree + 10;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB2" + _root.ib2].varShot = true;
}
if (this.hitTest(_root["BholeB3" + _root.ib3].bh) && (_root["BholeB3" + _root.ib3].varShot != true)) {
_root.scoreNumberNumber = 10;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 10;
_root.scoree = _root.scoree + 10;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB3" + _root.ib3].varShot = true;
}
if (this.hitTest(_root["BholeB4" + _root.ib4].bh) && (_root["BholeB4" + _root.ib4].varShot != true)) {
_root.scoreNumberNumber = 10;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 10;
_root.scoree = _root.scoree + 10;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB4" + _root.ib4].varShot = true;
}
if (this.hitTest(_root["BholeB5" + _root.ib5].bh) && (_root["BholeB5" + _root.ib5].varShot != true)) {
_root.scoreNumberNumber = 10;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 10;
_root.scoree = _root.scoree + 10;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB5" + _root.ib5].varShot = true;
}
if (this.hitTest(_root["BholeB6" + _root.ib6].bh) && (_root["BholeB6" + _root.ib6].varShot != true)) {
_root.scoreNumberNumber = 10;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 10;
_root.scoree = _root.scoree + 10;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB6" + _root.ib6].varShot = true;
}
}
Instance of Symbol 132 MovieClip "ring7" in Symbol 346 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root["BholeB" + _root.ib].bh) && (_root["BholeB" + _root.ib].varShot != true)) {
_root.scoreNumberNumber = 20;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 20;
_root.scoree = _root.scoree + 20;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB" + _root.ib].varShot = true;
}
if (this.hitTest(_root["BholeB2" + _root.ib2].bh) && (_root["BholeB2" + _root.ib2].varShot != true)) {
_root.scoreNumberNumber = 20;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 20;
_root.scoree = _root.scoree + 20;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB2" + _root.ib2].varShot = true;
}
if (this.hitTest(_root["BholeB3" + _root.ib3].bh) && (_root["BholeB3" + _root.ib3].varShot != true)) {
_root.scoreNumberNumber = 20;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 20;
_root.scoree = _root.scoree + 20;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB3" + _root.ib3].varShot = true;
}
if (this.hitTest(_root["BholeB4" + _root.ib4].bh) && (_root["BholeB4" + _root.ib4].varShot != true)) {
_root.scoreNumberNumber = 20;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 20;
_root.scoree = _root.scoree + 20;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB4" + _root.ib4].varShot = true;
}
if (this.hitTest(_root["BholeB5" + _root.ib5].bh) && (_root["BholeB5" + _root.ib5].varShot != true)) {
_root.scoreNumberNumber = 20;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 20;
_root.scoree = _root.scoree + 20;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB5" + _root.ib5].varShot = true;
}
if (this.hitTest(_root["BholeB6" + _root.ib6].bh) && (_root["BholeB6" + _root.ib6].varShot != true)) {
_root.scoreNumberNumber = 20;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 20;
_root.scoree = _root.scoree + 20;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB6" + _root.ib6].varShot = true;
}
}
Instance of Symbol 134 MovieClip "ring6" in Symbol 346 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root["BholeB" + _root.ib].bh) && (_root["BholeB" + _root.ib].varShot != true)) {
_root.scoreNumberNumber = 30;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 30;
_root.scoree = _root.scoree + 30;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB" + _root.ib].varShot = true;
}
if (this.hitTest(_root["BholeB2" + _root.ib2].bh) && (_root["BholeB2" + _root.ib2].varShot != true)) {
_root.scoreNumberNumber = 30;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 30;
_root.scoree = _root.scoree + 30;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB2" + _root.ib2].varShot = true;
}
if (this.hitTest(_root["BholeB3" + _root.ib3].bh) && (_root["BholeB3" + _root.ib3].varShot != true)) {
_root.scoreNumberNumber = 30;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 30;
_root.scoree = _root.scoree + 30;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB3" + _root.ib3].varShot = true;
}
if (this.hitTest(_root["BholeB4" + _root.ib4].bh) && (_root["BholeB4" + _root.ib4].varShot != true)) {
_root.scoreNumberNumber = 30;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 30;
_root.scoree = _root.scoree + 30;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB4" + _root.ib4].varShot = true;
}
if (this.hitTest(_root["BholeB5" + _root.ib5].bh) && (_root["BholeB5" + _root.ib5].varShot != true)) {
_root.scoreNumberNumber = 30;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 30;
_root.scoree = _root.scoree + 30;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB5" + _root.ib5].varShot = true;
}
if (this.hitTest(_root["BholeB6" + _root.ib6].bh) && (_root["BholeB6" + _root.ib6].varShot != true)) {
_root.scoreNumberNumber = 30;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 30;
_root.scoree = _root.scoree + 30;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB6" + _root.ib6].varShot = true;
}
}
Instance of Symbol 136 MovieClip "ring5" in Symbol 346 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root["BholeB" + _root.ib].bh) && (_root["BholeB" + _root.ib].varShot != true)) {
_root.scoreNumberNumber = 40;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 40;
_root.scoree = _root.scoree + 40;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB" + _root.ib].varShot = true;
}
if (this.hitTest(_root["BholeB2" + _root.ib2].bh) && (_root["BholeB2" + _root.ib2].varShot != true)) {
_root.scoreNumberNumber = 40;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 40;
_root.scoree = _root.scoree + 40;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB2" + _root.ib2].varShot = true;
}
if (this.hitTest(_root["BholeB3" + _root.ib3].bh) && (_root["BholeB3" + _root.ib3].varShot != true)) {
_root.scoreNumberNumber = 40;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 40;
_root.scoree = _root.scoree + 40;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB3" + _root.ib3].varShot = true;
}
if (this.hitTest(_root["BholeB4" + _root.ib4].bh) && (_root["BholeB4" + _root.ib4].varShot != true)) {
_root.scoreNumberNumber = 40;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 40;
_root.scoree = _root.scoree + 40;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB4" + _root.ib4].varShot = true;
}
if (this.hitTest(_root["BholeB5" + _root.ib5].bh) && (_root["BholeB5" + _root.ib5].varShot != true)) {
_root.scoreNumberNumber = 40;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 40;
_root.scoree = _root.scoree + 40;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB5" + _root.ib5].varShot = true;
}
if (this.hitTest(_root["BholeB6" + _root.ib6].bh) && (_root["BholeB6" + _root.ib6].varShot != true)) {
_root.scoreNumberNumber = 40;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 40;
_root.scoree = _root.scoree + 40;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB6" + _root.ib6].varShot = true;
}
}
Instance of Symbol 138 MovieClip "ring4" in Symbol 346 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root["BholeB" + _root.ib].bh) && (_root["BholeB" + _root.ib].varShot != true)) {
_root.scoreNumberNumber = 50;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 50;
_root.scoree = _root.scoree + 50;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB" + _root.ib].varShot = true;
}
if (this.hitTest(_root["BholeB2" + _root.ib2].bh) && (_root["BholeB2" + _root.ib2].varShot != true)) {
_root.scoreNumberNumber = 50;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 50;
_root.scoree = _root.scoree + 50;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB2" + _root.ib2].varShot = true;
}
if (this.hitTest(_root["BholeB3" + _root.ib3].bh) && (_root["BholeB3" + _root.ib3].varShot != true)) {
_root.scoreNumberNumber = 50;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 50;
_root.scoree = _root.scoree + 50;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB3" + _root.ib3].varShot = true;
}
if (this.hitTest(_root["BholeB4" + _root.ib4].bh) && (_root["BholeB4" + _root.ib4].varShot != true)) {
_root.scoreNumberNumber = 50;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 50;
_root.scoree = _root.scoree + 50;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB4" + _root.ib4].varShot = true;
}
if (this.hitTest(_root["BholeB5" + _root.ib5].bh) && (_root["BholeB5" + _root.ib5].varShot != true)) {
_root.scoreNumberNumber = 50;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 50;
_root.scoree = _root.scoree + 50;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB5" + _root.ib5].varShot = true;
}
if (this.hitTest(_root["BholeB6" + _root.ib6].bh) && (_root["BholeB6" + _root.ib6].varShot != true)) {
_root.scoreNumberNumber = 50;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 50;
_root.scoree = _root.scoree + 50;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB6" + _root.ib6].varShot = true;
}
}
Instance of Symbol 140 MovieClip "ring3" in Symbol 346 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root["BholeB" + _root.ib].bh) && (_root["BholeB" + _root.ib].varShot != true)) {
_root.scoreNumberNumber = 60;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 60;
_root.scoree = _root.scoree + 60;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB" + _root.ib].varShot = true;
}
if (this.hitTest(_root["BholeB2" + _root.ib2].bh) && (_root["BholeB2" + _root.ib2].varShot != true)) {
_root.scoreNumberNumber = 60;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 60;
_root.scoree = _root.scoree + 60;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB2" + _root.ib2].varShot = true;
}
if (this.hitTest(_root["BholeB3" + _root.ib3].bh) && (_root["BholeB3" + _root.ib3].varShot != true)) {
_root.scoreNumberNumber = 60;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 60;
_root.scoree = _root.scoree + 60;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB3" + _root.ib3].varShot = true;
}
if (this.hitTest(_root["BholeB4" + _root.ib4].bh) && (_root["BholeB4" + _root.ib4].varShot != true)) {
_root.scoreNumberNumber = 60;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 60;
_root.scoree = _root.scoree + 60;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB4" + _root.ib4].varShot = true;
}
if (this.hitTest(_root["BholeB5" + _root.ib5].bh) && (_root["BholeB5" + _root.ib5].varShot != true)) {
_root.scoreNumberNumber = 60;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 60;
_root.scoree = _root.scoree + 60;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB5" + _root.ib5].varShot = true;
}
if (this.hitTest(_root["BholeB6" + _root.ib6].bh) && (_root["BholeB6" + _root.ib6].varShot != true)) {
_root.scoreNumberNumber = 60;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 60;
_root.scoree = _root.scoree + 60;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB6" + _root.ib6].varShot = true;
}
}
Instance of Symbol 142 MovieClip "ring2" in Symbol 346 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root["BholeB" + _root.ib].bh) && (_root["BholeB" + _root.ib].varShot != true)) {
_root.scoreNumberNumber = 80;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 80;
_root.scoree = _root.scoree + 80;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB" + _root.ib].varShot = true;
}
if (this.hitTest(_root["BholeB2" + _root.ib2].bh) && (_root["BholeB2" + _root.ib2].varShot != true)) {
_root.scoreNumberNumber = 80;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 80;
_root.scoree = _root.scoree + 80;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB2" + _root.ib2].varShot = true;
}
if (this.hitTest(_root["BholeB3" + _root.ib3].bh) && (_root["BholeB3" + _root.ib3].varShot != true)) {
_root.scoreNumberNumber = 80;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 80;
_root.scoree = _root.scoree + 80;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB3" + _root.ib3].varShot = true;
}
if (this.hitTest(_root["BholeB4" + _root.ib4].bh) && (_root["BholeB4" + _root.ib4].varShot != true)) {
_root.scoreNumberNumber = 80;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 80;
_root.scoree = _root.scoree + 80;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB4" + _root.ib4].varShot = true;
}
if (this.hitTest(_root["BholeB5" + _root.ib5].bh) && (_root["BholeB5" + _root.ib5].varShot != true)) {
_root.scoreNumberNumber = 80;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 80;
_root.scoree = _root.scoree + 80;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB5" + _root.ib5].varShot = true;
}
if (this.hitTest(_root["BholeB6" + _root.ib6].bh) && (_root["BholeB6" + _root.ib6].varShot != true)) {
_root.scoreNumberNumber = 80;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 80;
_root.scoree = _root.scoree + 80;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB6" + _root.ib6].varShot = true;
}
}
Instance of Symbol 144 MovieClip "ring1" in Symbol 346 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root["BholeB" + _root.ib].bh) && (_root["BholeB" + _root.ib].varShot != true)) {
_root.scoreNumberNumber = 100;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 100;
_root.scoree = _root.scoree + 100;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB" + _root.ib].varShot = true;
}
if (this.hitTest(_root["BholeB2" + _root.ib2].bh) && (_root["BholeB2" + _root.ib2].varShot != true)) {
_root.scoreNumberNumber = 100;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 100;
_root.scoree = _root.scoree + 100;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB2" + _root.ib2].varShot = true;
}
if (this.hitTest(_root["BholeB3" + _root.ib3].bh) && (_root["BholeB3" + _root.ib3].varShot != true)) {
_root.scoreNumberNumber = 100;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 100;
_root.scoree = _root.scoree + 100;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB3" + _root.ib3].varShot = true;
}
if (this.hitTest(_root["BholeB4" + _root.ib4].bh) && (_root["BholeB4" + _root.ib4].varShot != true)) {
_root.scoreNumberNumber = 100;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 100;
_root.scoree = _root.scoree + 100;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB4" + _root.ib4].varShot = true;
}
if (this.hitTest(_root["BholeB5" + _root.ib5].bh) && (_root["BholeB5" + _root.ib5].varShot != true)) {
_root.scoreNumberNumber = 100;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 100;
_root.scoree = _root.scoree + 100;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB5" + _root.ib5].varShot = true;
}
if (this.hitTest(_root["BholeB6" + _root.ib6].bh) && (_root["BholeB6" + _root.ib6].varShot != true)) {
_root.scoreNumberNumber = 100;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 100;
_root.scoree = _root.scoree + 100;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB6" + _root.ib6].varShot = true;
}
}
Instance of Symbol 138 MovieClip "ringh3" in Symbol 346 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root["BholeB" + _root.ib].bh) && (_root["BholeB" + _root.ib].varShot != true)) {
_root.scoreNumberNumber = 40;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 40;
_root.scoree = _root.scoree + 40;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB" + _root.ib].varShot = true;
}
if (this.hitTest(_root["BholeB2" + _root.ib2].bh) && (_root["BholeB2" + _root.ib2].varShot != true)) {
_root.scoreNumberNumber = 40;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 40;
_root.scoree = _root.scoree + 40;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB2" + _root.ib2].varShot = true;
}
if (this.hitTest(_root["BholeB3" + _root.ib3].bh) && (_root["BholeB3" + _root.ib3].varShot != true)) {
_root.scoreNumberNumber = 40;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 40;
_root.scoree = _root.scoree + 40;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB3" + _root.ib3].varShot = true;
}
if (this.hitTest(_root["BholeB4" + _root.ib4].bh) && (_root["BholeB4" + _root.ib4].varShot != true)) {
_root.scoreNumberNumber = 40;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 40;
_root.scoree = _root.scoree + 40;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB4" + _root.ib4].varShot = true;
}
if (this.hitTest(_root["BholeB5" + _root.ib5].bh) && (_root["BholeB5" + _root.ib5].varShot != true)) {
_root.scoreNumberNumber = 40;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 40;
_root.scoree = _root.scoree + 40;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB5" + _root.ib5].varShot = true;
}
if (this.hitTest(_root["BholeB6" + _root.ib6].bh) && (_root["BholeB6" + _root.ib6].varShot != true)) {
_root.scoreNumberNumber = 40;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 40;
_root.scoree = _root.scoree + 40;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB6" + _root.ib6].varShot = true;
}
}
Instance of Symbol 146 MovieClip "ringh2" in Symbol 346 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root["BholeB" + _root.ib].bh) && (_root["BholeB" + _root.ib].varShot != true)) {
_root.scoreNumberNumber = 80;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 80;
_root.scoree = _root.scoree + 80;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB" + _root.ib].varShot = true;
}
if (this.hitTest(_root["BholeB2" + _root.ib2].bh) && (_root["BholeB2" + _root.ib2].varShot != true)) {
_root.scoreNumberNumber = 80;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 80;
_root.scoree = _root.scoree + 80;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB2" + _root.ib2].varShot = true;
}
if (this.hitTest(_root["BholeB3" + _root.ib3].bh) && (_root["BholeB3" + _root.ib3].varShot != true)) {
_root.scoreNumberNumber = 80;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 80;
_root.scoree = _root.scoree + 80;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB3" + _root.ib3].varShot = true;
}
if (this.hitTest(_root["BholeB4" + _root.ib4].bh) && (_root["BholeB4" + _root.ib4].varShot != true)) {
_root.scoreNumberNumber = 80;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 80;
_root.scoree = _root.scoree + 80;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB4" + _root.ib4].varShot = true;
}
if (this.hitTest(_root["BholeB5" + _root.ib5].bh) && (_root["BholeB5" + _root.ib5].varShot != true)) {
_root.scoreNumberNumber = 80;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 80;
_root.scoree = _root.scoree + 80;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB5" + _root.ib5].varShot = true;
}
if (this.hitTest(_root["BholeB6" + _root.ib6].bh) && (_root["BholeB6" + _root.ib6].varShot != true)) {
_root.scoreNumberNumber = 80;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 80;
_root.scoree = _root.scoree + 80;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB6" + _root.ib6].varShot = true;
}
}
Instance of Symbol 144 MovieClip "ringh1" in Symbol 346 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root["BholeB" + _root.ib].bh) && (_root["BholeB" + _root.ib].varShot != true)) {
_root.scoreNumberNumber = 200;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 200;
_root.scoree = _root.scoree + 200;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root.headshots++;
_root["BholeB" + _root.ib].varShot = true;
}
if (this.hitTest(_root["BholeB2" + _root.ib2].bh) && (_root["BholeB2" + _root.ib2].varShot != true)) {
_root.scoreNumberNumber = 200;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 200;
_root.scoree = _root.scoree + 200;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root.headshots++;
_root["BholeB2" + _root.ib2].varShot = true;
}
if (this.hitTest(_root["BholeB3" + _root.ib3].bh) && (_root["BholeB3" + _root.ib3].varShot != true)) {
_root.scoreNumberNumber = 200;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 200;
_root.scoree = _root.scoree + 200;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root.headshots++;
_root["BholeB3" + _root.ib3].varShot = true;
}
if (this.hitTest(_root["BholeB4" + _root.ib4].bh) && (_root["BholeB4" + _root.ib4].varShot != true)) {
_root.scoreNumberNumber = 200;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 200;
_root.scoree = _root.scoree + 200;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root.headshots++;
_root["BholeB4" + _root.ib4].varShot = true;
}
if (this.hitTest(_root["BholeB5" + _root.ib5].bh) && (_root["BholeB5" + _root.ib5].varShot != true)) {
_root.scoreNumberNumber = 200;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 200;
_root.scoree = _root.scoree + 200;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root.headshots++;
_root["BholeB5" + _root.ib5].varShot = true;
}
if (this.hitTest(_root["BholeB6" + _root.ib6].bh) && (_root["BholeB6" + _root.ib6].varShot != true)) {
_root.scoreNumberNumber = 200;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 200;
_root.scoree = _root.scoree + 200;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root.headshots++;
_root["BholeB6" + _root.ib6].varShot = true;
}
}
Symbol 347 MovieClip Frame 1
stop();
Symbol 347 MovieClip Frame 2
_root._y = _root._y + 7;
Symbol 347 MovieClip Frame 3
_root._y = _root._y - 14;
Symbol 347 MovieClip Frame 4
_root._y = _root._y + 7;
_root._x = _root._x + 7;
Symbol 347 MovieClip Frame 5
_root._x = _root._x - 14;
Symbol 347 MovieClip Frame 6
_root._x = _root._x + 5;
Symbol 387 MovieClip Frame 1
if (_root.targete.targeta.hitTest(_root.cursor._x, _root.cursor._y, true) or _root.targete.targetah.hitTest(_root.cursor._x, _root.cursor._y, true)) {
_root.MakeBHoleB();
_root.MakeBHoleB2();
_root.MakeBHoleB3();
_root.MakeBHoleB4();
_root.MakeBHoleB5();
_root.MakeBHoleB6();
} else {
_root.MakeBHole();
_root.MakeBHole();
_root.MakeBHole();
_root.MakeBHole();
_root.MakeBHole();
_root.MakeBHole();
}
_root.shotsFired++;
_root.wideScreen.ammo.amm = _root.wideScreen.ammo.amm - 6;
Symbol 387 MovieClip Frame 7
cockShotgun.start(0, 1);
Symbol 387 MovieClip Frame 8
_root.makeBulleta();
Symbol 387 MovieClip Frame 14
_parent.gotoAndStop(1);
Symbol 413 MovieClip Frame 9
_root.reloadGun.start(0, 1);
_root.makeBulleta();
Symbol 413 MovieClip Frame 19
_root.wideScreen.ammo.amm = 36;
_root.reloaded++;
Symbol 413 MovieClip Frame 39
_parent.gotoAndStop(1);
Symbol 414 MovieClip Frame 1
stop();
Instance of Symbol 359 MovieClip "insideGun" in Symbol 414 MovieClip Frame 1
onClipEvent (load) {
yy = _y;
rot = _rotation;
}
Symbol 414 MovieClip Frame 2
_root.screenFlash();
_root.shake.play();
bulletShot = random(3);
_root.Shotgun.start(0, 1);
Instance of Symbol 374 MovieClip in Symbol 414 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.pausing != true) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 387 MovieClip in Symbol 414 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.pausing != true) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 412 MovieClip in Symbol 414 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.pausing != true) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 413 MovieClip in Symbol 414 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.pausing != true) {
this.play();
} else {
this.stop();
}
}
Symbol 418 Button
on (press) {
_root.gotoAndStop("sasubmit");
}
Symbol 447 Button
on (press) {
_root.rtm = true;
_root.fadeOut.play();
}
Symbol 462 MovieClip Frame 1
if (_root.targete.targeta.hitTest(_root.cursor._x, _root.cursor._y, true) or _root.targete.targetah.hitTest(_root.cursor._x, _root.cursor._y, true)) {
_root.MakeBHoleB();
} else {
_root.MakeBHole();
}
_root.shotsFired++;
_root.wideScreen.ammo.amm--;
Instance of Symbol 455 MovieClip "insideGun" in Symbol 462 MovieClip Frame 1
onClipEvent (load) {
yy = _y;
rot = _rotation;
}
Symbol 462 MovieClip Frame 12
_parent.gotoAndStop(1);
Symbol 492 MovieClip Frame 12
_root.reloadGun.start(0, 1);
Symbol 492 MovieClip Frame 27
_root.wideScreen.ammo.amm = 12;
_root.reloaded++;
Symbol 492 MovieClip Frame 39
_parent.gotoAndStop(1);
Symbol 493 MovieClip Frame 1
stop();
Instance of Symbol 455 MovieClip "insideGun" in Symbol 493 MovieClip Frame 1
onClipEvent (load) {
yy = _y;
rot = _rotation;
}
Symbol 493 MovieClip Frame 2
_root.flashlight.play();
_root.screenFlash();
_root.shake.play();
bulletShot = random(3);
if (bulletShot == 0) {
_root.Bullet1.start(0, 1);
}
if (bulletShot == 1) {
_root.Bullet2.start(0, 1);
}
if (bulletShot == 2) {
_root.Bullet3.start(0, 1);
}
Instance of Symbol 461 MovieClip in Symbol 493 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.pausing != true) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 462 MovieClip in Symbol 493 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.pausing != true) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 488 MovieClip "insideGun" in Symbol 493 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.pausing != true) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 492 MovieClip "insideGun" in Symbol 493 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.pausing != true) {
this.play();
} else {
this.stop();
}
}
Symbol 497 Button
on (press) {
_root.gotoAndStop("hgsubmit");
}
Symbol 549 MovieClip Frame 1
if (_root.targete.targeta.hitTest(_root.cursor._x, _root.cursor._y, true) or _root.targete.targetah.hitTest(_root.cursor._x, _root.cursor._y, true)) {
_root.MakeBHoleB();
} else {
_root.MakeBHole();
}
_root.shotsFired++;
_root.wideScreen.ammo.amm--;
_root.makeBulleta();
_root.screenFlash();
_root.shake.play();
bulletShot = random(3);
if (bulletShot == 0) {
_root.Bullet1.start(0, 1);
}
if (bulletShot == 1) {
_root.Bullet2.start(0, 1);
}
if (bulletShot == 2) {
_root.Bullet3.start(0, 1);
}
Symbol 549 MovieClip Frame 4
if (_root.targete.targeta.hitTest(_root.cursor._x, _root.cursor._y, true) or _root.targete.targetah.hitTest(_root.cursor._x, _root.cursor._y, true)) {
_root.MakeBHoleB();
} else {
_root.MakeBHole();
}
_root.shotsFired++;
_root.wideScreen.ammo.amm--;
_root.makeBulleta();
_root.screenFlash();
_root.shake.play();
bulletShot = random(3);
if (bulletShot == 0) {
_root.Bullet1.start(0, 1);
}
if (bulletShot == 1) {
_root.Bullet2.start(0, 1);
}
if (bulletShot == 2) {
_root.Bullet3.start(0, 1);
}
Symbol 549 MovieClip Frame 7
if (_root.targete.targeta.hitTest(_root.cursor._x, _root.cursor._y, true) or _root.targete.targetah.hitTest(_root.cursor._x, _root.cursor._y, true)) {
_root.MakeBHoleB();
} else {
_root.MakeBHole();
}
_root.shotsFired++;
_root.wideScreen.ammo.amm--;
_root.makeBulleta();
_root.screenFlash();
_root.shake.play();
bulletShot = random(3);
if (bulletShot == 0) {
_root.Bullet1.start(0, 1);
}
if (bulletShot == 1) {
_root.Bullet2.start(0, 1);
}
if (bulletShot == 2) {
_root.Bullet3.start(0, 1);
}
Symbol 549 MovieClip Frame 12
_parent.gotoAndStop(1);
Symbol 576 MovieClip Frame 13
_root.reloadGun.start(0, 1);
Symbol 576 MovieClip Frame 24
_root.wideScreen.ammo.amm = 32;
_root.reloaded++;
Symbol 576 MovieClip Frame 43
_parent.gotoAndStop(1);
Symbol 577 MovieClip Frame 13
_root.reloadGun.start(0, 1);
Symbol 577 MovieClip Frame 24
_root.wideScreen.ammo.amm = 32;
_root.reloaded++;
Symbol 577 MovieClip Frame 43
_parent.gotoAndStop(1);
Symbol 578 MovieClip Frame 1
stop();
Instance of Symbol 528 MovieClip "insideGun" in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
yy = _y;
rot = _rotation;
}
Instance of Symbol 535 MovieClip "insideGun" in Symbol 578 MovieClip Frame 1
onClipEvent (load) {
yy = _y;
rot = _rotation;
}
Instance of Symbol 548 MovieClip in Symbol 578 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.pausing != true) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 549 MovieClip in Symbol 578 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.pausing != true) {
this.play();
} else {
this.stop();
}
}
Symbol 578 MovieClip Frame 3
stop();
Instance of Symbol 576 MovieClip "insideGun" in Symbol 578 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.pausing != true) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 577 MovieClip "insideGun" in Symbol 578 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.pausing != true) {
this.play();
} else {
this.stop();
}
}
Symbol 582 Button
on (press) {
_root.gotoAndStop("mgssubmit");
}
Instance of Symbol 142 MovieClip "ring2" in Symbol 612 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root["BholeB" + _root.ib].bh) && (_root["BholeB" + _root.ib].varShot != true)) {
_root.scoreNumberNumber = 80;
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 80;
_root.scoree = _root.scoree + 80;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root["BholeB" + _root.ib].varShot = true;
}
}
Instance of Symbol 138 MovieClip "ringh3" in Symbol 612 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root["BholeB" + _root.ib].bh) && (_root["BholeB" + _root.ib].varShot != true)) {
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 1;
_root.scoreNumberNumber = "HEADSHOT";
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root.headshots++;
_root["BholeB" + _root.ib].varShot = true;
}
}
Instance of Symbol 146 MovieClip "ringh2" in Symbol 612 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root["BholeB" + _root.ib].bh) && (_root["BholeB" + _root.ib].varShot != true)) {
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 1;
_root.scoreNumberNumber = "HEADSHOT";
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root.headshots++;
_root["BholeB" + _root.ib].varShot = true;
}
}
Instance of Symbol 144 MovieClip "ringh1" in Symbol 612 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root["BholeB" + _root.ib].bh) && (_root["BholeB" + _root.ib].varShot != true)) {
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 1;
_root.scoreNumberNumber = "HEADSHOT";
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root.headshots++;
_root["BholeB" + _root.ib].varShot = true;
}
}
Symbol 615 Button
on (press) {
_root.gotoAndStop("mgbsubmit");
}
Instance of Symbol 138 MovieClip "ringh3" in Symbol 644 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root["BholeB" + _root.ib].bh) && (_root["BholeB" + _root.ib].varShot != true)) {
_root.scoreNumberNumber = "HEADSHOT";
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 1;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root.headshots++;
_root["BholeB" + _root.ib].varShot = true;
}
if (this.hitTest(_root["BholeB2" + _root.ib2].bh) && (_root["BholeB2" + _root.ib2].varShot != true)) {
_root.scoreNumberNumber = "HEADSHOT";
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 1;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root.headshots++;
_root["BholeB2" + _root.ib2].varShot = true;
}
if (this.hitTest(_root["BholeB3" + _root.ib3].bh) && (_root["BholeB3" + _root.ib3].varShot != true)) {
_root.scoreNumberNumber = "HEADSHOT";
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 1;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root.headshots++;
_root["BholeB3" + _root.ib3].varShot = true;
}
if (this.hitTest(_root["BholeB4" + _root.ib4].bh) && (_root["BholeB4" + _root.ib4].varShot != true)) {
_root.scoreNumberNumber = "HEADSHOT";
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 1;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root.headshots++;
_root["BholeB4" + _root.ib4].varShot = true;
}
if (this.hitTest(_root["BholeB5" + _root.ib5].bh) && (_root["BholeB5" + _root.ib5].varShot != true)) {
_root.scoreNumberNumber = "HEADSHOT";
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 1;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root.headshots++;
_root["BholeB5" + _root.ib5].varShot = true;
}
if (this.hitTest(_root["BholeB6" + _root.ib6].bh) && (_root["BholeB6" + _root.ib6].varShot != true)) {
_root.scoreNumberNumber = "HEADSHOT";
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 1;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root.headshots++;
_root["BholeB6" + _root.ib6].varShot = true;
}
}
Instance of Symbol 146 MovieClip "ringh2" in Symbol 644 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root["BholeB" + _root.ib].bh) && (_root["BholeB" + _root.ib].varShot != true)) {
_root.scoreNumberNumber = "HEADSHOT";
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 1;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root.headshots++;
_root["BholeB" + _root.ib].varShot = true;
}
if (this.hitTest(_root["BholeB2" + _root.ib2].bh) && (_root["BholeB2" + _root.ib2].varShot != true)) {
_root.scoreNumberNumber = "HEADSHOT";
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 1;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root.headshots++;
_root["BholeB2" + _root.ib2].varShot = true;
}
if (this.hitTest(_root["BholeB3" + _root.ib3].bh) && (_root["BholeB3" + _root.ib3].varShot != true)) {
_root.scoreNumberNumber = "HEADSHOT";
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 1;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root.headshots++;
_root["BholeB3" + _root.ib3].varShot = true;
}
if (this.hitTest(_root["BholeB4" + _root.ib4].bh) && (_root["BholeB4" + _root.ib4].varShot != true)) {
_root.scoreNumberNumber = "HEADSHOT";
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 1;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root.headshots++;
_root["BholeB4" + _root.ib4].varShot = true;
}
if (this.hitTest(_root["BholeB5" + _root.ib5].bh) && (_root["BholeB5" + _root.ib5].varShot != true)) {
_root.scoreNumberNumber = "HEADSHOT";
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 1;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root.headshots++;
_root["BholeB5" + _root.ib5].varShot = true;
}
if (this.hitTest(_root["BholeB6" + _root.ib6].bh) && (_root["BholeB6" + _root.ib6].varShot != true)) {
_root.scoreNumberNumber = "HEADSHOT";
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 1;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root.headshots++;
_root["BholeB6" + _root.ib6].varShot = true;
}
}
Instance of Symbol 144 MovieClip "ringh1" in Symbol 644 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root["BholeB" + _root.ib].bh) && (_root["BholeB" + _root.ib].varShot != true)) {
_root.scoreNumberNumber = "HEADSHOT";
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 1;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root.headshots++;
_root["BholeB" + _root.ib].varShot = true;
}
if (this.hitTest(_root["BholeB2" + _root.ib2].bh) && (_root["BholeB2" + _root.ib2].varShot != true)) {
_root.scoreNumberNumber = "HEADSHOT";
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 1;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root.headshots++;
_root["BholeB2" + _root.ib2].varShot = true;
}
if (this.hitTest(_root["BholeB3" + _root.ib3].bh) && (_root["BholeB3" + _root.ib3].varShot != true)) {
_root.scoreNumberNumber = "HEADSHOT";
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 1;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root.headshots++;
_root["BholeB3" + _root.ib3].varShot = true;
}
if (this.hitTest(_root["BholeB4" + _root.ib4].bh) && (_root["BholeB4" + _root.ib4].varShot != true)) {
_root.scoreNumberNumber = "HEADSHOT";
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 1;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root.headshots++;
_root["BholeB4" + _root.ib4].varShot = true;
}
if (this.hitTest(_root["BholeB5" + _root.ib5].bh) && (_root["BholeB5" + _root.ib5].varShot != true)) {
_root.scoreNumberNumber = "HEADSHOT";
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 1;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root.headshots++;
_root["BholeB5" + _root.ib5].varShot = true;
}
if (this.hitTest(_root["BholeB6" + _root.ib6].bh) && (_root["BholeB6" + _root.ib6].varShot != true)) {
_root.scoreNumberNumber = "HEADSHOT";
_root.wideScreen.scorea.score = _root.wideScreen.scorea.score + 1;
_root.MakeScoreNumber();
varShot = true;
_root.hit++;
_root.headshots++;
_root["BholeB6" + _root.ib6].varShot = true;
}
}
Symbol 647 Button
on (press) {
_root.gotoAndStop("sabsubmit");
}
Symbol 675 Button
on (press) {
_root.gotoAndStop("hgbsubmit");
}
Symbol 703 Button
on (press) {
_root.gotoAndStop("mgsbbsubmit");
}
Instance of Symbol 731 MovieClip in Symbol 732 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.overLay)) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 731 MovieClip in Symbol 732 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!this.hitTest(_root.overLay)) {
_visible = false;
} else {
_visible = true;
}
}