Frame 1
Stage.showMenu = false;
_root.kongregateServices.connect();
var CPMStarPoolID = 1051;
var CPMStarSubPoolID = 4;
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie((("http://server.cpmstar.com/adviewas2.swf?poolid=" + CPMStarPoolID) + "&subpoolid=") + CPMStarSubPoolID);
stop();
Instance of Symbol 15 MovieClip in Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 57 MovieClip in Frame 1
onClipEvent (load) {
time = 0;
}
onClipEvent (enterFrame) {
protocol = _url.substr(0, _url.indexOf(":"));
if (protocol == "file") {
trace("local game");
} else if (protocol == "http") {
doubleSlash = _url.indexOf("//");
server = _url.substr(doubleSlash + 2, (_url.indexOf("/", doubleSlash + 2) - doubleSlash) - 2);
server = server.toUpperCase();
if (server.indexOf("WWW.") != -1) {
server = server.substr(server.indexOf("WWW.") + 4, server.length);
}
if ((((server.indexOf("CRAZYMONKEYGAMES.COM") != -1) or (server.indexOf("KONGREGATE.COM") != -1)) or (server.indexOf("FREEONLINEGAMES.COM") != -1)) or (server.indexOf("FILES.FREEONLINEGAMES.COM") != -1)) {
_root.nextFrame();
}
}
time++;
barMC.bar._xscale = (((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) / 2) + (time / 6);
if (barMC.bar._xscale >= 100) {
gotoAndStop (2);
}
}
Instance of Symbol 15 MovieClip in Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 15 MovieClip in Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 15 MovieClip in Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 15 MovieClip in Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 15 MovieClip in Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 15 MovieClip in Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 15 MovieClip in Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 15 MovieClip in Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 15 MovieClip in Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 461 MovieClip "gameFun" in Frame 1
onClipEvent (load) {
saveGame = function () {
_root.kongregateScores.setMode("Body Count");
_root.kongregateScores.submit(_root.character.kill / _root.multiplier);
_root.kongregateScores.setMode("Melee Kills");
_root.kongregateScores.submit(_root.meleeKills);
if (_root.hardMode == true) {
_root.levelOn2 = _root._currentframe + 2;
} else {
_root.levelOn = _root._currentframe + 2;
}
_root.kongregateScores.setMode("Level Completed");
_root.kongregateScores.submit(Math.ceil((_root.levelOn - 8) / 2));
if (_root.levelOn > 60) {
_root.kongregateScores.setMode("Game Completed");
_root.kongregateScores.submit(1);
_root.achievements[0] = 1;
_root.levelOn = 7;
}
if (_root.levelOn2 > 60) {
_root.achievements[1] = 1;
_root.levelOn2 = 7;
}
ccc = 0;
cc = -1;
while (cc < 36) {
if (haveCollected[cc] == 1) {
ccc++;
}
cc++;
}
if (ccc > 31) {
_root.achievements[3] = 1;
}
if ((_root.character.kill / _root.multiplier) > 1000) {
_root.achievements[5] = 1;
}
if ((_root.character.kill / _root.multiplier) > 5000) {
_root.achievements[6] = 1;
}
if ((_root.character.kill / _root.multiplier) > 10000) {
_root.achievements[7] = 1;
}
if (((((((_root.achievements[0] == 1) && (_root.achievements[1] == 1)) && (_root.achievements[3] == 1)) && (_root.achievements[4] == 1)) && (_root.achievements[5] == 1)) && (_root.achievements[6] == 1)) && (_root.achievements[7] == 1)) {
_root.achievements[8] = 1;
}
var _local2 = SharedObject.getLocal("meatyData");
_local2.data.characterAppearance = new Array(_root.character.head, _root.character.body, _root.character.foot, _root.character.face);
_local2.data.kill = _root.character.kill;
_local2.data.keyMap = _root.character.k;
_local2.data.hasGuns = _root.arm.have;
_local2.data.ammo = _root.arm.ammo;
_local2.data.gun = _root.arm.gun;
_local2.data.m = _root.multiplier;
_local2.data.playerName = _root.playerName;
_local2.data.haveCollected = haveCollected;
_local2.data.sfxVol = _root.sfxSaveVol;
_local2.data.musicVol = _root.musicSaveVol;
_local2.data.levelOn = _root.levelOn;
_local2.data.levelOn2 = _root.levelOn2;
_local2.data.achievements = _root.achievements;
_local2.data.meleeKills = _root.meleeKills;
_local2.data.shotsFired = _root.shotsFired;
_local2.data.hardMode = _root.hardMode;
_local2.data.saveFile = true;
_local2.flush();
};
saveCharacter = function () {
var _local2 = SharedObject.getLocal("meatyData");
_root.saveFile = _local2.data.saveFile;
if (_root.saveFile == true) {
_local2.data.characterAppearance = new Array(_root.character.head, _root.character.body, _root.character.foot, _root.character.face);
_local2.data.playerName = _root.playerName;
_local2.data.sfxVol = _root.sfxSaveVol;
_local2.data.musicVol = _root.musicSaveVol;
_local2.data.hardMode = _root.hardMode;
} else {
_root.character.kill = 0;
_root.character.k = new Array(87, 83, 65, 68, 69, 81, 32, 4, 80);
_root.arm.have = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.arm.ammo = new Array(0, 50, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1);
_root.arm.gun = 16;
_root.arm.gotoAndStop(_root.arm.gun);
_root.multiplier = random(100);
_root.playerName = "Enter Name Here";
_root.sfxSaveVol = 70;
_root.musicSaveVol = 100;
_root.levelOn = 7;
_root.levelOn2 = 7;
_root.meleeKills = 0;
_root.hardMode = false;
_root.shotsFired = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.achievements = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
haveCollected = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
saveGame();
}
};
clearData = function () {
var _local1 = SharedObject.getLocal("meatyData");
_local1.clear();
};
loadGame = function () {
var _local2 = SharedObject.getLocal("meatyData");
_root.saveFile = _local2.data.saveFile;
if (_root.saveFile == true) {
_root.character.head = _local2.data.characterAppearance[0];
_root.character.body = _local2.data.characterAppearance[1];
_root.character.foot = _local2.data.characterAppearance[2];
_root.character.face = _local2.data.characterAppearance[3];
_root.character.kill = _local2.data.kill;
_root.character.k = _local2.data.keyMap;
_root.arm.have = _local2.data.hasGuns;
_root.arm.ammo = _local2.data.ammo;
_root.arm.calculateWeps();
_root.arm.gun = _local2.data.gun;
_root.arm.gotoAndStop(_root.arm.gun);
_root.wpn = _root.arm.name[_root.arm.gun];
_root.multiplier = _local2.data.m;
_root.playerName = _local2.data.playerName;
haveCollected = _local2.data.haveCollected;
_root.sfxSaveVol = _local2.data.sfxVol;
_root.musicSaveVol = _local2.data.musicVol;
_root.levelOn = _local2.data.levelOn;
_root.levelOn2 = _local2.data.levelOn2;
_root.achievements = _local2.data.achievements;
_root.meleeKills = _local2.data.meleeKills;
_root.shotsFired = _local2.data.shotsFired;
_root.hardMode = _local2.data.hardMode;
} else {
_root.character.head = random(49) + 1;
_root.character.body = random(37) + 1;
_root.character.foot = random(24) + 1;
_root.character.face = random(11);
_root.character.kill = 0;
_root.character.k = new Array(87, 83, 65, 68, 69, 81, 32, 4, 80, 16);
_root.arm.have = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.arm.ammo = new Array(0, 50, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1);
_root.arm.gun = 16;
_root.arm.gotoAndStop(_root.arm.gun);
_root.arm.calculateWeps();
_root.multiplier = random(100);
_root.playerName = "Enter Name Here";
_root.sfxSaveVol = 70;
_root.musicSaveVol = 100;
_root.levelOn = 7;
_root.levelOn2 = 7;
_root.meleeKills = 0;
_root.hardMode = false;
_root.achievements = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.shotsFired = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
haveCollected = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
saveGame();
}
};
saveGame2 = function () {
var _local2 = SharedObject.getLocal("meatyData");
_local2.data.kill = _root.character.kill;
_local2.data.sfxVol = _root.sfxSaveVol;
_local2.data.musicVol = _root.musicSaveVol;
_local2.data.levelOn = _root.levelOn;
_local2.data.levelOn2 = _root.levelOn2;
_local2.data.achievements = _root.achievements;
_local2.data.shotsFired = _root.shotsFired;
_local2.data.hardMode = _root.hardMode;
_local2.data.saveFile = true;
_local2.flush();
};
outfit1 = new Array(63, 52, 4, 10);
outfit2 = new Array(67, 52, 4, 10);
outfit3 = new Array(68, 52, 4, 10);
outfit4 = new Array(69, 52, 4, 10);
outfit5 = new Array(70, 52, 4, 10);
outfit6 = new Array(64, 55, 10, 15);
outfit7 = new Array(65, 58, 8, 20);
outfit8 = new Array(66, 59, 7, 25);
name = new Array(0, "1911 Custom", "Viper .44 Magnum", "Steyr TMP", "Krinkov", "HK 416", "Tavor", "HK-91", "Benelli M4", "Pancor Jackhammer", "EX-41", "GL-06 Flechette", "Laser Cannon", "X6 Flechette Rifle", "XM-345 Skull Drill", "Lead Pipe", "1911 A1", "CZ-75b", "USP Tactical", "Bren 10", "Desert Eagle", "Beretta 93r", "MP-5K", "MAC-10", "AK-47", "XM-8", "SOCOM-16", "USAS-12", "Gauss Pistol", "Gauss Shotgun", "Hades Rifle", "Hades Rifle", "HK-21", "HK-21", "Universal Bean Pistol MK23", "N.U.K.E.");
fullAuto = new Array(0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 1, 1, 1, 1, 1, 2, 0, 0, 0, 0, 1, 1, 0, 0);
recoil = new Array(0, 20, 30, 12, 12, 12, 12, 16, 30, 16, 30, 30, 30, 20, 20, 0, 20, 20, 20, 25, 30, 12, 12, 12, 15, 12, 20, 20, 20, 20, 30, 30, 12, 12, 20, 20);
recoilAng = new Array(0, 50, 120, 20, 20, 10, 10, 16, 90, 20, 90, 90, 90, 20, 30, 0, 50, 50, 50, 90, 120, 20, 20, 20, 20, 20, 20, 30, 50, 90, 120, 120, 20, 20, 50, 50);
recoilRec = new Array(0, 5, 5, 4, 4, 4, 4, 4, 5, 4, 2, 2, 2, 5, 4, 0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 4, 10, 5);
recoveryTime = new Array(0, 7, 15, 4, 4, 4, 4, 5, 10, 4, 30, 30, 20, 5, 30, 8, 7, 4, 4, 5, 12, 6, 5, 3, 5, 4, 5, 10, 5, 30, 30, 30, 3, 3, 3, 100);
casing = new Array(0, 1, 4, 1, 5, 6, 6, 8, 9, 9, 7, 7, 11, 2, 12, 0, 1, 1, 1, 2, 3, 1, 1, 1, 5, 6, 8, 9, 12, 12, 8, 8, 8, 8, 7, 11);
weaponType = new Array(0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 4, 5, 6, 7, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 8, 9, 6, 6, 1, 1, 10, 11);
pow = new Array(0, 2, 5, 1, 2, 1, 1, 3, 2, 1, 20, 20, 6, 1, 1, 1, 2, 1, 1, 3, 10, 1, 2, 1, 2, 1, 3, 1, 1, 2, 5, 5, 2, 2, 3, 100);
shake = new Array(0, 8, 20, 5, 10, 5, 5, 15, 30, 15, 20, 20, 30, 10, 20, 0, 8, 8, 8, 12, 25, 5, 5, 5, 5, 5, 10, 10, 10, 20, 25, 25, 10, 10, 10, 50);
inAcc = new Array(0, 5, 1, 20, 20, 10, 10, 15, 50, 60, 5, 5, 5, 15, 1, 0, 5, 5, 5, 5, 5, 10, 10, 10, 10, 10, 10, 60, 10, 50, 1, 1, 20, 20, 10, 1);
sound = new Array(0, 2, 6, 10, 12, 14, 16, 18, 8, 20, 22, 24, 26, 28, 30, 40, 2, 60, 54, 56, 52, 58, 64, 62, 66, 68, 70, 72, 74, 76, 52, 52, 28, 28, 110, 26);
capacity = new Array(0, 10, 6, 32, 30, 30, 30, 25, 9, 20, 5, 5, 5, 30, 5, 0, 7, 15, 18, 12, 7, 21, 32, 32, 30, 30, 25, 20, 15, 6, 25, 25, 50, 50, 5, 1);
ammoName = new Array(0, "Handgun", "Magnum", "SMG", "7.62x39mm", "5.56x45mm", ".308 Win", "12 Gauge", "Grenade", "Flechette Grenade", "Laser Cannon", "Flechette", "Brain Drill", "Gauss", "Gauss Shotgun", "Bean", "N.U.K.E.");
ammoType = new Array(0, 1, 2, 3, 4, 5, 5, 6, 7, 7, 8, 9, 10, 11, 12, 0, 1, 1, 1, 1, 2, 3, 3, 3, 4, 5, 6, 7, 13, 14, 6, 6, 6, 6, 15, 16);
_root.meleeRequirement = 500;
}
Instance of Symbol 553 MovieClip "pauseScreen" in Frame 1
onClipEvent (load) {
_root.pause = false;
_root.pause2 = false;
gotoAndStop (2);
kReady = true;
pausable = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0);
}
onClipEvent (enterFrame) {
if (pausable[_root._currentframe] == 1) {
if (!Key.isDown(_root.character.k[8])) {
kReady = true;
}
if ((Key.isDown(_root.character.k[8]) && (kReady == true)) && (_currentframe == 2)) {
_root.pause = true;
kReady = false;
gotoAndStop (1);
}
if ((Key.isDown(_root.character.k[8]) && (kReady == true)) && (_currentframe == 1)) {
_root.pause = false;
kReady = false;
gotoAndStop (2);
}
if (_root.pause == true) {
_root.cursor._visible = false;
Mouse.show();
} else {
_root.cursor._visible = true;
Mouse.hide();
}
} else {
gotoAndStop (2);
_root.pause = false;
Mouse.show();
}
}
Instance of Symbol 616 MovieClip "sfx" in Frame 1
onClipEvent (load) {
mySound = new Sound(this);
mySound.setVolume(0);
vol = 0;
nuke = false;
}
onClipEvent (enterFrame) {
maxVol = _root.sfxSaveVol;
if (nuke == true) {
if (vol < maxVol) {
vol = vol + (maxVol / 90);
if (vol >= maxVol) {
vol = maxVol;
nuke = false;
}
}
} else {
vol = maxVol;
}
mySound.setVolume(vol);
}
Instance of Symbol 628 MovieClip "music" in Frame 1
onClipEvent (load) {
song = new Array(0, 0, 0, 0, 4, 0, 0, 2, 0, 0, 6, 0, 6, 0, 6, 0, 10, 0, 8, 0, 8, 0, 8, 0, 10, 0, 12, 0, 12, 0, 12, 12, 14, 16, 16, 0, 16, 0, 16, 0, 18, 0, 18, 0, 18, 0, 18, 0, 18, 0, 18, 0, 18, 0, 10, 2, 14, 0, 2, 0, 14, 2, 10, 0, 0, 2);
mySound = new Sound(this);
mySound.setVolume(0);
vol = 0;
}
onClipEvent (enterFrame) {
maxVol = _root.musicSaveVol;
if (_root.pause == true) {
if (vol > 0) {
vol = vol - 2;
}
} else if (vol < maxVol) {
vol = vol + 2;
}
mySound.setVolume(vol);
}
Instance of Symbol 631 MovieClip "sfx2" in Frame 1
onClipEvent (load) {
mySound = new Sound(this);
}
onClipEvent (enterFrame) {
maxVol = _root.sfxSaveVol;
mySound.setVolume(maxVol);
}
Instance of Symbol 676 MovieClip in Frame 3
on (release) {
getURL ("http://www.diseasedproductions.net", _blank);
}
onClipEvent (load) {
stX = _x;
stY = _y;
_alpha = 0;
timer = 180;
}
onClipEvent (enterFrame) {
timer = timer - 1;
if (timer < 21) {
if (_alpha > 0) {
_alpha = (_alpha - 5);
}
} else if (_alpha < 100) {
_alpha = (_alpha + 5);
}
if (timer < 1) {
_root.gotoAndStop(4);
}
_x = ((stX + random(10)) - 5);
_y = ((stY + random(10)) - 5);
}
Frame 4
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
stop();
Instance of Symbol 688 MovieClip in Frame 4
onClipEvent (enterFrame) {
_alpha = (random(50) + 50);
}
Instance of Symbol 753 MovieClip "character" in Frame 4
onClipEvent (load) {
_root.gameFun.loadGame();
if (_root.hardMode == false) {
if (levelOn == 7) {
_root.cga1._visible = false;
_root.cga2._visible = false;
_root.cga3._visible = false;
_root.cga4._visible = false;
}
if (_root.achievements[0] == 0) {
_root.lvSel._visible = false;
_root.lvSel2._visible = false;
_root.lvSel3._visible = false;
_root.lvSel4._visible = false;
}
} else {
if (levelOn2 == 7) {
_root.cga1._visible = false;
_root.cga2._visible = false;
_root.cga3._visible = false;
_root.cga4._visible = false;
}
if (_root.achievements[1] == 0) {
_root.lvSel._visible = false;
_root.lvSel2._visible = false;
_root.lvSel3._visible = false;
_root.lvSel4._visible = false;
}
}
gotoAndStop (1);
}
onClipEvent (enterFrame) {
myRadians = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
}
Instance of Symbol 957 MovieClip "arm" in Frame 4
onClipEvent (load) {
x = 0;
y = 0;
a = 0;
a2 = 0;
d = 40;
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_x < (_root.character._x - 10)) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 70) / Math.PI));
_yscale = -100;
_root.character._xscale = -100;
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (getDepth() < _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_x > (_root.character._x + 10)) {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 70) / Math.PI));
_yscale = 100;
_root.character._xscale = 100;
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
if (getDepth() > _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_root.character._xscale == -100) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 30) / Math.PI));
} else {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 30) / Math.PI));
}
if (_yscale == 100) {
a = ((_x - _root._xmouse) + 10) / 3;
} else {
a = ((_x - _root._xmouse) - 10) / 3;
}
x = ((0.9 * x) - x) + a;
a2 = (_y - _root._ymouse) / 3;
y = ((0.9 * y) - y) + a2;
_x = (_x - x);
_y = (_y - y);
dx = _x - _root.character._x;
dy = _y - _root.character._y;
alpha = Math.atan2(dy, dx);
xDis = _root.character._x - _x;
yDis = _root.character._y - _y;
dist = Math.round(Math.sqrt((xDis * xDis) + (yDis * yDis)));
if (Math.abs(dist) > d) {
_x = (_root.character._x + (Math.cos(alpha) * d));
_y = (_root.character._y + (Math.sin(alpha) * d));
}
}
Instance of Symbol 989 MovieClip "ele" in Frame 4
onClipEvent (load) {
time = 0;
_root.sfx.gotoAndPlay(80);
headExclude = new Array();
bodyExclude = new Array();
faceExclude = new Array();
footExclude = new Array();
protocol = _url.substr(0, _url.indexOf(":"));
if (protocol == "file") {
trace("local game");
zx = 92;
while (zx < 123) {
headExclude.push(zx);
zx++;
}
zx = 69;
while (zx < 105) {
bodyExclude.push(zx);
zx++;
}
} else if (protocol == "http") {
doubleSlash = _url.indexOf("//");
server = _url.substr(doubleSlash + 2, (_url.indexOf("/", doubleSlash + 2) - doubleSlash) - 2);
server = server.toUpperCase();
if (server.indexOf("WWW.") != -1) {
server = server.substr(server.indexOf("WWW.") + 4, server.length);
}
if ((server.indexOf("CRAZYMONKEYGAMES.COM") != -1) or (server.indexOf("DISEASEDPRODUCTIONS.NET") != -1)) {
_root.message = "Game was loaded from CMG or DP";
_root.moar._visible = false;
} else {
zx = 92;
while (zx < 123) {
headExclude.push(zx);
zx++;
}
zx = 69;
while (zx < 105) {
bodyExclude.push(zx);
zx++;
}
_root.message = "Exclusive costumes only available on www.crazymonkeygames.com";
}
}
box1 = prefix;
if (_root.achievements[3] == 0) {
headExclude.push(73);
headExclude.push(74);
headExclude.push(75);
faceExclude.push(74);
faceExclude.push(75);
faceExclude.push(76);
faceExclude.push(77);
faceExclude.push(78);
faceExclude.push(79);
bodyExclude.push(61);
bodyExclude.push(62);
bodyExclude.push(63);
}
if (_root.achievements[5] == 0) {
headExclude.push(63);
headExclude.push(64);
headExclude.push(67);
headExclude.push(68);
headExclude.push(69);
headExclude.push(70);
bodyExclude.push(49);
bodyExclude.push(50);
bodyExclude.push(51);
bodyExclude.push(52);
bodyExclude.push(53);
bodyExclude.push(54);
bodyExclude.push(55);
bodyExclude.push(56);
bodyExclude.push(57);
}
if (_root.achievements[6] == 0) {
headExclude.push(65);
headExclude.push(66);
bodyExclude.push(58);
bodyExclude.push(59);
bodyExclude.push(60);
}
if (_root.achievements[7] == 0) {
headExclude.push(71);
headExclude.push(72);
headExclude.push(76);
headExclude.push(77);
headExclude.push(78);
headExclude.push(79);
headExclude.push(80);
headExclude.push(81);
headExclude.push(82);
headExclude.push(83);
headExclude.push(84);
headExclude.push(85);
headExclude.push(86);
headExclude.push(87);
headExclude.push(88);
headExclude.push(89);
headExclude.push(90);
headExclude.push(91);
faceExclude.push(61);
faceExclude.push(62);
faceExclude.push(63);
faceExclude.push(64);
faceExclude.push(65);
faceExclude.push(66);
faceExclude.push(73);
faceExclude.push(80);
faceExclude.push(81);
faceExclude.push(82);
bodyExclude.push(64);
bodyExclude.push(65);
bodyExclude.push(66);
bodyExclude.push(67);
bodyExclude.push(68);
footExclude.push(31);
footExclude.push(32);
footExclude.push(33);
footExclude.push(34);
footExclude.push(35);
}
}
onClipEvent (enterFrame) {
time++;
if (time > 11) {
gotoAndStop (12);
}
}
Frame 7
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
Instance of Symbol 812 MovieClip "character" in Frame 7
onClipEvent (load) {
_root.gameFun.loadGame();
}
Instance of Symbol 1411 MovieClip in Frame 7
onClipEvent (load) {
while ((point._x + this._x) > 275) {
_x = (_x - 0.5);
textBox._x = textBox._x + 0.5;
}
while ((point._x + this._x) < 275) {
_x = (_x + 0.5);
textBox._x = textBox._x - 0.5;
}
while ((point._y + this._y) > 200) {
_y = (_y - 0.5);
textBox._y = textBox._y + 0.5;
}
while ((point._y + this._y) < 200) {
_y = (_y + 0.5);
textBox._y = textBox._y - 0.5;
}
}
onClipEvent (enterFrame) {
while ((point._x + this._x) > 275) {
_x = (_x - 0.5);
textBox._x = textBox._x + 0.5;
}
while ((point._x + this._x) < 275) {
_x = (_x + 0.5);
textBox._x = textBox._x - 0.5;
}
while ((point._y + this._y) > 200) {
_y = (_y - 0.5);
textBox._y = textBox._y + 0.5;
}
while ((point._y + this._y) < 200) {
_y = (_y + 0.5);
textBox._y = textBox._y - 0.5;
}
}
Instance of Symbol 957 MovieClip "arm" in Frame 8
onClipEvent (load) {
calculateWeps = function () {
weps = 0;
rr = 0;
while (rr < have.length) {
if ((have[rr] == 1) && (rr != 15)) {
weps = weps + 1;
}
rr++;
}
if (weps == 0) {
gotoAndStop (15);
gun = 15;
_root.wpn = name[gun];
}
};
changeWeapons = function () {
gunMaxLoop = 1;
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
do {
if (have[gun] == 1) {
break;
}
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
gunMaxLoop++;
} while (gunMaxLoop <= weaponAmt);
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
};
fireFun = function () {
ammo[ammoType[gun]] = ammo[ammoType[gun]] - 1;
_root.character.modifier = random(shake[gun]) + 1;
_root.character.yModifier = random(shake[gun]) + 1;
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
i++;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
} else {
i++;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
}
if (gun != 2) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 2 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 3 :
i++;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 4 :
i++;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 5 :
i++;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 6 :
i++;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 7 :
i++;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].tar = drillTarget;
break;
case 8 :
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 9 :
z = 0;
for(;;){
if (z >= 6) {
break;
}
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
z++;
};
}
if (_yscale == 100) {
_rotation = (_rotation - int(recoilAng[gun]));
} else {
_rotation = (_rotation + int(recoilAng[gun]));
}
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
}
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
};
name = _root.gameFun.name;
fullAuto = _root.gameFun.fullAuto;
recoil = _root.gameFun.recoil;
recoilAng = _root.gameFun.recoilAng;
recoilRec = _root.gameFun.recoilRec;
recoveryTime = _root.gameFun.recoveryTime;
casing = _root.gameFun.casing;
weaponType = _root.gameFun.weaponType;
pow = _root.gameFun.pow;
shake = _root.gameFun.shake;
inAcc = _root.gameFun.inAcc;
sound = _root.gameFun.sound;
capacity = _root.gameFun.capacity;
ammoName = _root.gameFun.ammoName;
ammoType = _root.gameFun.ammoType;
ready = true;
x = 0;
y = 0;
a = 0;
a2 = 0;
d = 40;
kReady = true;
threeRound = 0;
fire = false;
drillTarget = "";
coolDown = 0;
i = 0;
revolverShots = 0;
weaponAmt = inAcc.length - 1;
mouseListener = new Object();
changeWeapons();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (!Key.isDown(_root.character.k[6])) {
spReady = true;
}
if (Key.isDown(_root.character.k[6]) && (spReady == true)) {
spReady = false;
if (gun != 15) {
weps = weps - 1;
i++;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].rot = _rotation + 90;
_root.item["item" + i].gotoAndStop(gun);
if (ammo[ammoType[gun]] < 1) {
_root.item["item" + i].cap = -1;
} else {
_root.item["item" + i].cap = ammo[ammoType[gun]];
}
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = 25;
have[gun] = 0;
ammo[ammoType[gun]] = -1;
changeWeapons();
}
}
_root.ammo.amm = ammo[ammoType[gun]];
if (_x < (_root.character._x - 10)) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 70) / Math.PI));
_yscale = -100;
_root.character._xscale = -100;
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
if (getDepth() > _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_x > (_root.character._x + 10)) {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 70) / Math.PI));
_yscale = 100;
_root.character._xscale = 100;
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (getDepth() < _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_root.character._xscale == -100) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 30) / Math.PI));
} else {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 30) / Math.PI));
}
if (_yscale == 100) {
a = ((_x - _root._xmouse) + 10) / 3;
} else {
a = ((_x - _root._xmouse) - 10) / 3;
}
x = ((0.9 * x) - x) + a;
a2 = (_y - _root._ymouse) / 3;
y = ((0.9 * y) - y) + a2;
_x = (_x - x);
_y = (_y - y);
dx = _x - _root.character._x;
dy = _y - _root.character._y;
alpha = Math.atan2(dy, dx);
xDis = _root.character._x - _x;
yDis = _root.character._y - _y;
dist = Math.round(Math.sqrt((xDis * xDis) + (yDis * yDis)));
if (Math.abs(dist) > d) {
_x = (_root.character._x + (Math.cos(alpha) * d));
_y = (_root.character._y + (Math.sin(alpha) * d));
}
if (wpn._x < 0) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < 0) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (ammo[ammoType[gun]] > 0) {
if (coolDown < 1) {
fireFun();
}
} else {
fire = false;
_root.sfx.gotoAndPlay(78);
}
}
if ((!Key.isDown(_root.character.k[4])) && (!Key.isDown(_root.character.k[5]))) {
kReady = true;
}
if (kReady == true) {
if (Key.isDown(_root.character.k[4])) {
changeWeapons();
}
if (Key.isDown(_root.character.k[5])) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
}
}
alreadyChangedWeps = false;
mouseListener.onMouseWheel = function (delta) {
trace(delta);
if (delta != 0) {
if (alreadyChangedWeps != true) {
changeWeapons();
alreadyChangedWeps = true;
}
}
};
Mouse.addListener(mouseListener);
if (!Key.isDown(_root.character.k[7])) {
mwReady = true;
}
if (Key.isDown(_root.character.k[7]) && (mwReady == true)) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
mwReady = false;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (gun != 15) {
if (ammo[ammoType[gun]] > 0) {
if (fullAuto[gun] == 0) {
if (coolDown < 1) {
if (gun != 14) {
fireFun();
} else if (drillTarget != "") {
fireFun();
}
}
} else {
fire = true;
}
} else {
_root.sfx.gotoAndPlay(78);
}
} else if (coolDown < 1) {
fireFun();
}
}
}
onClipEvent (mouseUp) {
if (fullAuto[gun] == 1) {
threeRound = 0;
fire = false;
coolDown = 0;
}
}
Instance of Symbol 753 MovieClip "character" in Frame 8
onClipEvent (load) {
_root.gameFun.loadGame();
createCorpse = function () {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse, "obj" + i, i);
_root.obj["obj" + i]._x = _x - _root.obj._x;
_root.obj["obj" + i]._y = _y - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(_currentframe - 14);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
if (drill == false) {
_root.obj["obj" + i].head.gore.gotoAndStop(gore);
_root.obj["obj" + i].body.gore.gotoAndStop(bodyGore);
}
_root.obj["obj" + i].body.gotoAndStop(body);
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
swapDepths(1);
removeMovieClip("");
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 25) - _root.item._y;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 30) - _root.item._y;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 10) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 15) - _root.item._x;
_root.item["item" + i]._y = (_y + 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x + 15) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = ((_x + _parent._x) - _root.obj._x) - _root.item._x;
_root.obj["obj" + i]._y = ((_y + _parent._y) - _root.obj._y) - _root.item._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
swapDepths(1);
removeMovieClip("");
};
targets = new Array();
xMax = _root.lvObj.xMax;
xMin = _root.lvObj.xMin;
yMax = _root.lvObj.yMax;
yMin = _root.lvObj.yMin;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
modifier = 0;
yModifier = 0;
pan = 0;
panMax = 100;
djkReady = false;
jump = false;
jumpBack = false;
fall = false;
modThing = 0;
doubleJump = false;
gravity = 0;
xVel = 0;
gravAccel = 2;
moveSpeed = 12;
jumpHeight = 24;
hurt = false;
headHurt = false;
health = 50;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
char.play();
if (health > 0) {
if (health < 50) {
health = health + 0.2;
} else {
health = 50;
}
health = Math.round(health * 10) / 10;
_root.hBlood._alpha = Math.round((70 - health) * 2);
_root.hBlood._alpha = Math.round((50 - health) * 2);
_root.hp = health;
_root.kill = "Kills: " + (kill / _root.multiplier);
myRadians = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
if (((jump == false) && (jumpBack == false)) && (fall == false)) {
if (Key.isDown(k[2])) {
hurt = false;
headHurt = false;
if (Key.isDown(16)) {
xVel = -moveSpeed;
if (_xscale == 100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = (-moveSpeed) / 2;
if (_xscale == 100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[3])) {
hurt = false;
headHurt = false;
if (Key.isDown(16)) {
xVel = moveSpeed;
if (_xscale == -100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = moveSpeed / 2;
if (_xscale == -100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[1])) {
hurt = false;
headHurt = false;
xVel = 0;
gotoAndStop (10);
} else if ((hurt == false) && (headHurt == false)) {
xVel = 0;
gotoAndStop (1);
}
if (Key.isDown(k[0])) {
hurt = false;
headHurt = false;
djkReady = false;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
if (!_root.bound.hitTest(_x, (_y + boundHeight) + 1, true)) {
fall = true;
}
} else {
if (jump == true) {
if (gravity < 0) {
if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (6);
}
} else if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
if (!Key.isDown(k[0])) {
djkReady = true;
}
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
jump = false;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
} else if (jumpBack == true) {
gotoAndStop (9);
} else if (fall == true) {
if (!Key.isDown(k[0])) {
djkReady = true;
}
gotoAndStop (7);
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
}
if (Key.isDown(k[2])) {
xVel = -moveSpeed;
} else if (Key.isDown(k[3])) {
xVel = moveSpeed;
} else {
xVel = 0;
}
n = 0;
while (n < Math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
} else {
_y = (_y - 1);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
}
if (_root.bound.hitTest(_x, _y + boundHeight, true)) {
while (_root.bound.hitTest(_x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
fall = false;
jump = false;
jumpBack = false;
doubleJump = false;
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
gravity = 0;
}
n++;
}
gravity = gravity + gravAccel;
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((fall == false) && (jump == false)) {
if (health < -4) {
gib();
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else if (_currentframe < 15) {
if (headHealth < maxHealth) {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < 1) {
if (_currentframe != 19) {
gotoAndStop (19);
}
gore = 0;
} else {
gotoAndStop(14 + (random(2) + 1));
gore = random(3) + 2;
}
} else {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
gotoAndStop(14 + (random(2) + 1));
gore = 0;
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
}
} else if (health < -4) {
gib();
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else {
if (headHealth < 1) {
if (_currentframe != 21) {
xVel = random(8) - 4;
gotoAndStop (21);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
}
} else if (_currentframe != 20) {
xVel = random(8) - 4;
gotoAndStop (20);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < maxHealth) {
gore = random(7) + 2;
}
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
if (!_root.bound.hitTest(_x, _y + boundHeight, true)) {
_y = (_y + gravity);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
} else if (char._currentframe < 8) {
char.gotoAndPlay(8);
}
}
if (_xscale == 100) {
if (modThing < panMax) {
modThing = modThing + Math.round((panMax - modThing) / 5);
}
} else if (modThing > (-panMax)) {
modThing = modThing - Math.round((panMax + modThing) / 5);
}
pan = -modThing;
times = 0;
while (_x > ((275 + pan) + modifier)) {
if (_root.level._x > (-xMax)) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x > (-(xMax - modifier))) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
}
}
}
times = 0;
while (_x < ((275 + pan) + modifier)) {
if (_root.level._x < xMin) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x < (xMin + modifier)) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
}
}
}
times = 0;
while (_y > (250 + yModifier)) {
if (_root.level._y > (-yMax)) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y > (-(yMax - yModifier))) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
}
}
}
times = 0;
while (_y < (250 + yModifier)) {
if (_root.level._y < yMin) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y < (yMin + yModifier)) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
}
}
}
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
} else {
char.stop();
}
}
Frame 10
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
stop();
Instance of Symbol 1416 MovieClip "level" in Frame 10
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(2000, 2000, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.levelDrawArea);
_root.levelDrawArea.swapDepths(1);
_root.levelDrawArea.removeMovieClip("");
}
Instance of Symbol 1416 MovieClip "bound" in Frame 10
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 1428 MovieClip "lvObj" in Frame 10
onClipEvent (load) {
_x = 0;
_y = 0;
xMax = 1400;
xMin = 0;
yMax = 550;
yMin = -50;
}
Instance of Symbol 1430 MovieClip "stuff" in Frame 10
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(_width, _height, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
}
Instance of Symbol 957 MovieClip "arm" in Frame 10
onClipEvent (load) {
calculateWeps = function () {
weps = 0;
rr = 0;
while (rr < have.length) {
if ((have[rr] == 1) && (rr != 15)) {
weps = weps + 1;
}
rr++;
}
if (weps == 0) {
gotoAndStop (15);
gun = 15;
_root.wpn = name[gun];
}
};
changeWeapons = function () {
if ((gun == 35) && (weps > 1)) {
coolDown = 0;
}
gunMaxLoop = 1;
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
do {
if (have[gun] == 1) {
break;
}
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
gunMaxLoop++;
} while (gunMaxLoop <= weaponAmt);
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
};
fireFun = function () {
_root.shotsFired[gun] = _root.shotsFired[gun] + 1;
ammo[ammoType[gun]] = ammo[ammoType[gun]] - 1;
_root.character.modifier = random(shake[gun]) + 1;
_root.character.yModifier = random(shake[gun]) + 1;
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
i++;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
} else {
i++;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
}
if (gun != 2) {
if (gun != 35) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
}
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 2 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 3 :
i++;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 4 :
i++;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 5 :
i++;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 6 :
i++;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 7 :
i++;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].tar = drillTarget;
break;
case 8 :
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 9 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 10 :
i++;
duplicateMovieClip (_root.item.beanBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 11 :
i++;
duplicateMovieClip (_root.item.nukeBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i].speed = -10;
ammo[ammoType[gun]] = ammo[ammoType[gun]] + 1;
}
if (_yscale == 100) {
_rotation = (_rotation - int(recoilAng[gun]));
} else {
_rotation = (_rotation + int(recoilAng[gun]));
}
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
}
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
};
name = _root.gameFun.name;
if (_root.achievements[4] == 1) {
name[15] = "Sword";
}
fullAuto = _root.gameFun.fullAuto;
recoil = _root.gameFun.recoil;
recoilAng = _root.gameFun.recoilAng;
recoilRec = _root.gameFun.recoilRec;
recoveryTime = _root.gameFun.recoveryTime;
casing = _root.gameFun.casing;
weaponType = _root.gameFun.weaponType;
pow = _root.gameFun.pow;
shake = _root.gameFun.shake;
inAcc = _root.gameFun.inAcc;
sound = _root.gameFun.sound;
capacity = _root.gameFun.capacity;
ammoName = _root.gameFun.ammoName;
ammoType = _root.gameFun.ammoType;
ready = true;
x = 0;
y = 0;
a = 0;
a2 = 0;
d = 40;
kReady = true;
threeRound = 0;
fire = false;
drillTarget = "";
coolDown = 0;
i = 0;
revolverShots = 0;
weaponAmt = inAcc.length - 1;
mouseListener = new Object();
changeWeapons();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (!Key.isDown(_root.character.k[6])) {
spReady = true;
}
if (Key.isDown(_root.character.k[6]) && (spReady == true)) {
spReady = false;
if (gun != 15) {
weps = weps - 1;
i++;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].rot = _rotation + 90;
_root.item["item" + i].gotoAndStop(gun);
if (ammo[ammoType[gun]] < 1) {
_root.item["item" + i].cap = -1;
} else {
_root.item["item" + i].cap = ammo[ammoType[gun]];
}
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = 25;
have[gun] = 0;
ammo[ammoType[gun]] = -1;
changeWeapons();
}
}
_root.ammo.amm = ammo[ammoType[gun]];
if (_x < (_root.character._x - 10)) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 70) / Math.PI));
_yscale = -100;
_root.character._xscale = -100;
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
if (getDepth() > _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_x > (_root.character._x + 10)) {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 70) / Math.PI));
_yscale = 100;
_root.character._xscale = 100;
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (getDepth() < _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_root.character._xscale == -100) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 30) / Math.PI));
} else {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 30) / Math.PI));
}
if (_yscale == 100) {
a = ((_x - _root._xmouse) + 10) / 3;
} else {
a = ((_x - _root._xmouse) - 10) / 3;
}
x = ((0.9 * x) - x) + a;
a2 = (_y - _root._ymouse) / 3;
y = ((0.9 * y) - y) + a2;
_x = (_x - x);
_y = (_y - y);
dx = _x - _root.character._x;
dy = _y - _root.character._y;
alpha = Math.atan2(dy, dx);
xDis = _root.character._x - _x;
yDis = _root.character._y - _y;
dist = Math.round(Math.sqrt((xDis * xDis) + (yDis * yDis)));
if (Math.abs(dist) > d) {
_x = (_root.character._x + (Math.cos(alpha) * d));
_y = (_root.character._y + (Math.sin(alpha) * d));
}
if (wpn._x < 0) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < 0) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (ammo[ammoType[gun]] > 0) {
if (coolDown < 1) {
fireFun();
}
} else {
fire = false;
_root.sfx.gotoAndPlay(78);
}
}
if ((!Key.isDown(_root.character.k[4])) && (!Key.isDown(_root.character.k[5]))) {
kReady = true;
}
if (kReady == true) {
if (Key.isDown(_root.character.k[4])) {
changeWeapons();
}
if (Key.isDown(_root.character.k[5])) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
}
}
alreadyChangedWeps = false;
mouseListener.onMouseWheel = function (delta) {
trace(delta);
if (delta != 0) {
if (alreadyChangedWeps != true) {
changeWeapons();
alreadyChangedWeps = true;
}
}
};
Mouse.addListener(mouseListener);
if (!Key.isDown(_root.character.k[7])) {
mwReady = true;
}
if (Key.isDown(_root.character.k[7]) && (mwReady == true)) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
mwReady = false;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (gun != 15) {
if (ammo[ammoType[gun]] > 0) {
if (fullAuto[gun] == 0) {
if (coolDown < 1) {
if (gun != 14) {
fireFun();
} else if (drillTarget != "") {
fireFun();
}
}
} else {
fire = true;
}
} else {
_root.sfx.gotoAndPlay(78);
}
} else if (coolDown < 1) {
fireFun();
}
}
}
onClipEvent (mouseUp) {
if (fullAuto[gun] == 1) {
threeRound = 0;
fire = false;
coolDown = 0;
}
}
Instance of Symbol 753 MovieClip "character" in Frame 10
onClipEvent (load) {
_root.gameFun.loadGame();
if (_root.meleeKills > _root.meleeRequirement) {
_root.achievements[4] = 1;
}
createCorpse = function () {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse, "obj" + i, i);
_root.obj["obj" + i]._x = _x - _root.obj._x;
_root.obj["obj" + i]._y = _y - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(_currentframe - 14);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
if (drill == false) {
_root.obj["obj" + i].head.gore.gotoAndStop(gore);
_root.obj["obj" + i].body.gore.gotoAndStop(bodyGore);
}
_root.obj["obj" + i].body.gotoAndStop(body);
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 25) - _root.item._y;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 30) - _root.item._y;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 10) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 15) - _root.item._x;
_root.item["item" + i]._y = (_y + 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x + 15) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = ((_x + _parent._x) - _root.obj._x) - _root.item._x;
_root.obj["obj" + i]._y = ((_y + _parent._y) - _root.obj._y) - _root.item._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
targets = new Array();
xMax = _root.lvObj.xMax;
xMin = _root.lvObj.xMin;
yMax = _root.lvObj.yMax;
yMin = _root.lvObj.yMin;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
modifier = 0;
yModifier = 0;
pan = 0;
panMax = 100;
djkReady = false;
jump = false;
jumpBack = false;
fall = false;
modThing = 0;
doubleJump = false;
gravity = 0;
xVel = 0;
gravAccel = 2;
moveSpeed = 12;
jumpHeight = 24;
hurt = false;
headHurt = false;
health = 50;
deadTime = 0;
if (_root.hardMode == true) {
healthRegen = 0.1;
} else {
healthRegen = 0.2;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
char.play();
if (health > 0) {
if (health < 50) {
health = health + healthRegen;
} else {
health = 50;
}
health = Math.round(health * 10) / 10;
_root.hBlood._alpha = Math.round((70 - health) * 2);
_root.hBlood._alpha = Math.round((50 - health) * 2);
_root.hp = health;
_root.kill = "Kills: " + (kill / _root.multiplier);
myRadians = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
if (((jump == false) && (jumpBack == false)) && (fall == false)) {
if (Key.isDown(k[2])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = -moveSpeed;
if (_xscale == 100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = (-moveSpeed) / 2;
if (_xscale == 100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[3])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = moveSpeed;
if (_xscale == -100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = moveSpeed / 2;
if (_xscale == -100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[1])) {
hurt = false;
headHurt = false;
xVel = 0;
gotoAndStop (10);
} else if ((hurt == false) && (headHurt == false)) {
xVel = 0;
gotoAndStop (1);
}
if (Key.isDown(k[0])) {
hurt = false;
headHurt = false;
djkReady = false;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
if (!_root.bound.hitTest(_x, (_y + boundHeight) + 1, true)) {
fall = true;
}
} else {
if (jump == true) {
if (gravity < 0) {
if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (6);
}
} else if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
if (!Key.isDown(k[0])) {
djkReady = true;
}
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
jump = false;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
} else if (jumpBack == true) {
gotoAndStop (9);
} else if (fall == true) {
if (!Key.isDown(k[0])) {
djkReady = true;
}
gotoAndStop (7);
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
}
if (Key.isDown(k[2])) {
xVel = -moveSpeed;
} else if (Key.isDown(k[3])) {
xVel = moveSpeed;
} else {
xVel = 0;
}
n = 0;
while (n < Math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
} else {
_y = (_y - 1);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
}
if (_root.bound.hitTest(_x, _y + boundHeight, true)) {
while (_root.bound.hitTest(_x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
fall = false;
jump = false;
jumpBack = false;
doubleJump = false;
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
gravity = 0;
}
n++;
}
gravity = gravity + gravAccel;
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
} else {
if ((_root._currentframe == 60) && (saveOnce != true)) {
saveOnce = true;
_root.gameFun.saveGame();
}
if ((fall == false) && (jump == false)) {
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else if (_currentframe < 15) {
if (headHealth < maxHealth) {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < 1) {
if (_currentframe != 19) {
gotoAndStop (19);
}
gore = 0;
} else {
gotoAndStop(14 + (random(2) + 1));
gore = random(3) + 2;
}
} else {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
gotoAndStop(14 + (random(2) + 1));
gore = 0;
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
}
} else {
deadTime++;
if (deadTime > 180) {
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
}
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else {
if (headHealth < 1) {
if (_currentframe != 21) {
xVel = random(8) - 4;
gotoAndStop (21);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
}
} else if (_currentframe != 20) {
xVel = random(8) - 4;
gotoAndStop (20);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < maxHealth) {
gore = random(7) + 2;
}
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
if (!_root.bound.hitTest(_x, _y + boundHeight, true)) {
_y = (_y + gravity);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
} else if (char._currentframe < 8) {
char.gotoAndPlay(8);
}
}
}
}
if (_xscale == 100) {
if (modThing < panMax) {
modThing = modThing + Math.round((panMax - modThing) / 5);
}
} else if (modThing > (-panMax)) {
modThing = modThing - Math.round((panMax + modThing) / 5);
}
pan = -modThing;
times = 0;
while (_x > ((275 + pan) + modifier)) {
if (_root.level._x > (-xMax)) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x > (-(xMax - modifier))) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
}
}
}
times = 0;
while (_x < ((275 + pan) + modifier)) {
if (_root.level._x < xMin) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x < (xMin + modifier)) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
}
}
}
times = 0;
while (_y > (250 + yModifier)) {
if (_root.level._y > (-yMax)) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y > (-(yMax - yModifier))) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
}
}
}
times = 0;
while (_y < (250 + yModifier)) {
if (_root.level._y < yMin) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y < (yMin + yModifier)) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
}
}
}
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
} else {
char.stop();
}
}
Instance of Symbol 1435 MovieClip "cursor" in Frame 10
onClipEvent (load) {
gotoAndStop (3);
Mouse.hide();
}
onClipEvent (enterFrame) {
if (_root.arm.gun == 14) {
if (_currentframe < 3) {
gotoAndStop (3);
}
} else if (_currentframe > 2) {
gotoAndStop (1);
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 1470 MovieClip "swap" in Frame 10
onClipEvent (load) {
gotoAndStop (2);
time = 60;
}
onClipEvent (enterFrame) {
if (time < 20) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1546 MovieClip "obj" in Frame 10
onClipEvent (load) {
i = 0;
gotoAndStop (1);
_x = 0;
_y = 0;
}
Instance of Symbol 1742 MovieClip "screenBox" in Frame 10
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 508 MovieClip "hBlood" in Frame 10
onClipEvent (load) {
gotoAndStop (2);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
gotoAndStop (1);
if (_alpha > 100) {
_alpha = 100;
}
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1751 MovieClip "ammo" in Frame 10
onClipEvent (enterFrame) {
if (_root.arm.gun != 15) {
if (_root.arm.gun != 35) {
if (amm < 31) {
gotoAndStop(amm + 1);
} else {
gotoAndStop (31);
}
amm2 = amm;
} else {
gotoAndStop (33);
bar._xscale = 100 - _root.arm.coolDown;
}
} else {
gotoAndStop (32);
}
}
Instance of Symbol 1754 MovieClip in Frame 10
onClipEvent (load) {
lev = "Bio Waste Incineration Floor";
_alpha = 0;
time = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (time < 90) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "ammoMes" in Frame 10
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 60) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "mes2" in Frame 10
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 100) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1826 MovieClip "levelDrawArea" in Frame 10
onClipEvent (load) {
_x = 0;
_y = 0;
}
Frame 12
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
stop();
Instance of Symbol 1828 MovieClip "level" in Frame 12
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(2000, 2000, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.levelDrawArea);
_root.levelDrawArea.swapDepths(1);
_root.levelDrawArea.removeMovieClip("");
}
Instance of Symbol 1829 MovieClip "lvObj" in Frame 12
onClipEvent (load) {
_x = 0;
_y = 0;
xMax = 1435;
xMin = 0;
yMax = 1150;
yMin = 0;
}
Instance of Symbol 1828 MovieClip "bound" in Frame 12
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 1430 MovieClip "stuff" in Frame 12
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(_width, _height, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.fl);
_root.fl.swapDepths(1000);
_root.fl.removeMovieClip("");
}
Instance of Symbol 1435 MovieClip "cursor" in Frame 12
onClipEvent (load) {
gotoAndStop (3);
Mouse.hide();
}
onClipEvent (enterFrame) {
if (_root.arm.gun == 14) {
if (_currentframe < 3) {
gotoAndStop (3);
}
} else if (_currentframe > 2) {
gotoAndStop (1);
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 957 MovieClip "arm" in Frame 12
onClipEvent (load) {
calculateWeps = function () {
weps = 0;
rr = 0;
while (rr < have.length) {
if ((have[rr] == 1) && (rr != 15)) {
weps = weps + 1;
}
rr++;
}
if (weps == 0) {
gotoAndStop (15);
gun = 15;
_root.wpn = name[gun];
}
};
changeWeapons = function () {
if ((gun == 35) && (weps > 1)) {
coolDown = 0;
}
gunMaxLoop = 1;
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
do {
if (have[gun] == 1) {
break;
}
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
gunMaxLoop++;
} while (gunMaxLoop <= weaponAmt);
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
};
fireFun = function () {
_root.shotsFired[gun] = _root.shotsFired[gun] + 1;
ammo[ammoType[gun]] = ammo[ammoType[gun]] - 1;
_root.character.modifier = random(shake[gun]) + 1;
_root.character.yModifier = random(shake[gun]) + 1;
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
i++;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
} else {
i++;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
}
if (gun != 2) {
if (gun != 35) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
}
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 2 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 3 :
i++;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 4 :
i++;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 5 :
i++;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 6 :
i++;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 7 :
i++;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].tar = drillTarget;
break;
case 8 :
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 9 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 10 :
i++;
duplicateMovieClip (_root.item.beanBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 11 :
i++;
duplicateMovieClip (_root.item.nukeBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i].speed = -10;
ammo[ammoType[gun]] = ammo[ammoType[gun]] + 1;
}
if (_yscale == 100) {
_rotation = (_rotation - int(recoilAng[gun]));
} else {
_rotation = (_rotation + int(recoilAng[gun]));
}
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
}
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
};
name = _root.gameFun.name;
if (_root.achievements[4] == 1) {
name[15] = "Sword";
}
fullAuto = _root.gameFun.fullAuto;
recoil = _root.gameFun.recoil;
recoilAng = _root.gameFun.recoilAng;
recoilRec = _root.gameFun.recoilRec;
recoveryTime = _root.gameFun.recoveryTime;
casing = _root.gameFun.casing;
weaponType = _root.gameFun.weaponType;
pow = _root.gameFun.pow;
shake = _root.gameFun.shake;
inAcc = _root.gameFun.inAcc;
sound = _root.gameFun.sound;
capacity = _root.gameFun.capacity;
ammoName = _root.gameFun.ammoName;
ammoType = _root.gameFun.ammoType;
ready = true;
x = 0;
y = 0;
a = 0;
a2 = 0;
d = 40;
kReady = true;
threeRound = 0;
fire = false;
drillTarget = "";
coolDown = 0;
i = 0;
revolverShots = 0;
weaponAmt = inAcc.length - 1;
mouseListener = new Object();
changeWeapons();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (!Key.isDown(_root.character.k[6])) {
spReady = true;
}
if (Key.isDown(_root.character.k[6]) && (spReady == true)) {
spReady = false;
if (gun != 15) {
weps = weps - 1;
i++;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].rot = _rotation + 90;
_root.item["item" + i].gotoAndStop(gun);
if (ammo[ammoType[gun]] < 1) {
_root.item["item" + i].cap = -1;
} else {
_root.item["item" + i].cap = ammo[ammoType[gun]];
}
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = 25;
have[gun] = 0;
ammo[ammoType[gun]] = -1;
changeWeapons();
}
}
_root.ammo.amm = ammo[ammoType[gun]];
if (_x < (_root.character._x - 10)) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 70) / Math.PI));
_yscale = -100;
_root.character._xscale = -100;
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
if (getDepth() > _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_x > (_root.character._x + 10)) {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 70) / Math.PI));
_yscale = 100;
_root.character._xscale = 100;
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (getDepth() < _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_root.character._xscale == -100) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 30) / Math.PI));
} else {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 30) / Math.PI));
}
if (_yscale == 100) {
a = ((_x - _root._xmouse) + 10) / 3;
} else {
a = ((_x - _root._xmouse) - 10) / 3;
}
x = ((0.9 * x) - x) + a;
a2 = (_y - _root._ymouse) / 3;
y = ((0.9 * y) - y) + a2;
_x = (_x - x);
_y = (_y - y);
dx = _x - _root.character._x;
dy = _y - _root.character._y;
alpha = Math.atan2(dy, dx);
xDis = _root.character._x - _x;
yDis = _root.character._y - _y;
dist = Math.round(Math.sqrt((xDis * xDis) + (yDis * yDis)));
if (Math.abs(dist) > d) {
_x = (_root.character._x + (Math.cos(alpha) * d));
_y = (_root.character._y + (Math.sin(alpha) * d));
}
if (wpn._x < 0) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < 0) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (ammo[ammoType[gun]] > 0) {
if (coolDown < 1) {
fireFun();
}
} else {
fire = false;
_root.sfx.gotoAndPlay(78);
}
}
if ((!Key.isDown(_root.character.k[4])) && (!Key.isDown(_root.character.k[5]))) {
kReady = true;
}
if (kReady == true) {
if (Key.isDown(_root.character.k[4])) {
changeWeapons();
}
if (Key.isDown(_root.character.k[5])) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
}
}
alreadyChangedWeps = false;
mouseListener.onMouseWheel = function (delta) {
trace(delta);
if (delta != 0) {
if (alreadyChangedWeps != true) {
changeWeapons();
alreadyChangedWeps = true;
}
}
};
Mouse.addListener(mouseListener);
if (!Key.isDown(_root.character.k[7])) {
mwReady = true;
}
if (Key.isDown(_root.character.k[7]) && (mwReady == true)) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
mwReady = false;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (gun != 15) {
if (ammo[ammoType[gun]] > 0) {
if (fullAuto[gun] == 0) {
if (coolDown < 1) {
if (gun != 14) {
fireFun();
} else if (drillTarget != "") {
fireFun();
}
}
} else {
fire = true;
}
} else {
_root.sfx.gotoAndPlay(78);
}
} else if (coolDown < 1) {
fireFun();
}
}
}
onClipEvent (mouseUp) {
if (fullAuto[gun] == 1) {
threeRound = 0;
fire = false;
coolDown = 0;
}
}
Instance of Symbol 753 MovieClip "character" in Frame 12
onClipEvent (load) {
_root.gameFun.loadGame();
if (_root.meleeKills > _root.meleeRequirement) {
_root.achievements[4] = 1;
}
createCorpse = function () {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse, "obj" + i, i);
_root.obj["obj" + i]._x = _x - _root.obj._x;
_root.obj["obj" + i]._y = _y - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(_currentframe - 14);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
if (drill == false) {
_root.obj["obj" + i].head.gore.gotoAndStop(gore);
_root.obj["obj" + i].body.gore.gotoAndStop(bodyGore);
}
_root.obj["obj" + i].body.gotoAndStop(body);
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 25) - _root.item._y;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 30) - _root.item._y;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 10) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 15) - _root.item._x;
_root.item["item" + i]._y = (_y + 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x + 15) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = ((_x + _parent._x) - _root.obj._x) - _root.item._x;
_root.obj["obj" + i]._y = ((_y + _parent._y) - _root.obj._y) - _root.item._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
targets = new Array();
xMax = _root.lvObj.xMax;
xMin = _root.lvObj.xMin;
yMax = _root.lvObj.yMax;
yMin = _root.lvObj.yMin;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
modifier = 0;
yModifier = 0;
pan = 0;
panMax = 100;
djkReady = false;
jump = false;
jumpBack = false;
fall = false;
modThing = 0;
doubleJump = false;
gravity = 0;
xVel = 0;
gravAccel = 2;
moveSpeed = 12;
jumpHeight = 24;
hurt = false;
headHurt = false;
health = 50;
deadTime = 0;
if (_root.hardMode == true) {
healthRegen = 0.1;
} else {
healthRegen = 0.2;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
char.play();
if (health > 0) {
if (health < 50) {
health = health + healthRegen;
} else {
health = 50;
}
health = Math.round(health * 10) / 10;
_root.hBlood._alpha = Math.round((70 - health) * 2);
_root.hBlood._alpha = Math.round((50 - health) * 2);
_root.hp = health;
_root.kill = "Kills: " + (kill / _root.multiplier);
myRadians = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
if (((jump == false) && (jumpBack == false)) && (fall == false)) {
if (Key.isDown(k[2])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = -moveSpeed;
if (_xscale == 100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = (-moveSpeed) / 2;
if (_xscale == 100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[3])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = moveSpeed;
if (_xscale == -100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = moveSpeed / 2;
if (_xscale == -100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[1])) {
hurt = false;
headHurt = false;
xVel = 0;
gotoAndStop (10);
} else if ((hurt == false) && (headHurt == false)) {
xVel = 0;
gotoAndStop (1);
}
if (Key.isDown(k[0])) {
hurt = false;
headHurt = false;
djkReady = false;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
if (!_root.bound.hitTest(_x, (_y + boundHeight) + 1, true)) {
fall = true;
}
} else {
if (jump == true) {
if (gravity < 0) {
if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (6);
}
} else if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
if (!Key.isDown(k[0])) {
djkReady = true;
}
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
jump = false;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
} else if (jumpBack == true) {
gotoAndStop (9);
} else if (fall == true) {
if (!Key.isDown(k[0])) {
djkReady = true;
}
gotoAndStop (7);
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
}
if (Key.isDown(k[2])) {
xVel = -moveSpeed;
} else if (Key.isDown(k[3])) {
xVel = moveSpeed;
} else {
xVel = 0;
}
n = 0;
while (n < Math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
} else {
_y = (_y - 1);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
}
if (_root.bound.hitTest(_x, _y + boundHeight, true)) {
while (_root.bound.hitTest(_x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
fall = false;
jump = false;
jumpBack = false;
doubleJump = false;
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
gravity = 0;
}
n++;
}
gravity = gravity + gravAccel;
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
} else {
if ((_root._currentframe == 60) && (saveOnce != true)) {
saveOnce = true;
_root.gameFun.saveGame();
}
if ((fall == false) && (jump == false)) {
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else if (_currentframe < 15) {
if (headHealth < maxHealth) {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < 1) {
if (_currentframe != 19) {
gotoAndStop (19);
}
gore = 0;
} else {
gotoAndStop(14 + (random(2) + 1));
gore = random(3) + 2;
}
} else {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
gotoAndStop(14 + (random(2) + 1));
gore = 0;
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
}
} else {
deadTime++;
if (deadTime > 180) {
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
}
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else {
if (headHealth < 1) {
if (_currentframe != 21) {
xVel = random(8) - 4;
gotoAndStop (21);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
}
} else if (_currentframe != 20) {
xVel = random(8) - 4;
gotoAndStop (20);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < maxHealth) {
gore = random(7) + 2;
}
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
if (!_root.bound.hitTest(_x, _y + boundHeight, true)) {
_y = (_y + gravity);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
} else if (char._currentframe < 8) {
char.gotoAndPlay(8);
}
}
}
}
if (_xscale == 100) {
if (modThing < panMax) {
modThing = modThing + Math.round((panMax - modThing) / 5);
}
} else if (modThing > (-panMax)) {
modThing = modThing - Math.round((panMax + modThing) / 5);
}
pan = -modThing;
times = 0;
while (_x > ((275 + pan) + modifier)) {
if (_root.level._x > (-xMax)) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x > (-(xMax - modifier))) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
}
}
}
times = 0;
while (_x < ((275 + pan) + modifier)) {
if (_root.level._x < xMin) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x < (xMin + modifier)) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
}
}
}
times = 0;
while (_y > (250 + yModifier)) {
if (_root.level._y > (-yMax)) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y > (-(yMax - yModifier))) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
}
}
}
times = 0;
while (_y < (250 + yModifier)) {
if (_root.level._y < yMin) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y < (yMin + yModifier)) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
}
}
}
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
} else {
char.stop();
}
}
Instance of Symbol 1546 MovieClip "obj" in Frame 12
onClipEvent (load) {
i = 0;
gotoAndStop (2);
_x = 0;
_y = 0;
}
Instance of Symbol 1470 MovieClip "swap" in Frame 12
onClipEvent (load) {
gotoAndStop (2);
time = 60;
}
onClipEvent (enterFrame) {
if (time < 20) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1742 MovieClip "screenBox" in Frame 12
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 508 MovieClip "hBlood" in Frame 12
onClipEvent (load) {
gotoAndStop (2);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
gotoAndStop (1);
if (_alpha > 100) {
_alpha = 100;
}
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1751 MovieClip "ammo" in Frame 12
onClipEvent (enterFrame) {
if (_root.arm.gun != 15) {
if (_root.arm.gun != 35) {
if (amm < 31) {
gotoAndStop(amm + 1);
} else {
gotoAndStop (31);
}
amm2 = amm;
} else {
gotoAndStop (33);
bar._xscale = 100 - _root.arm.coolDown;
}
} else {
gotoAndStop (32);
}
}
Instance of Symbol 1754 MovieClip in Frame 12
onClipEvent (load) {
lev = "Bio Waste Incineration Floor: Area B";
_alpha = 0;
time = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (time < 90) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "ammoMes" in Frame 12
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 60) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "mes2" in Frame 12
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 100) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1833 MovieClip "levelDrawArea" in Frame 12
onClipEvent (load) {
_x = 0;
_y = 0;
}
Frame 14
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
stop();
Instance of Symbol 1835 MovieClip "level" in Frame 14
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(2000, 2000, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.levelDrawArea);
_root.levelDrawArea.swapDepths(1);
_root.levelDrawArea.removeMovieClip("");
}
Instance of Symbol 1836 MovieClip "lvObj" in Frame 14
onClipEvent (load) {
_x = 0;
_y = 0;
xMax = 1435;
xMin = 0;
yMax = 1150;
yMin = 0;
}
Instance of Symbol 1835 MovieClip "bound" in Frame 14
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 1430 MovieClip "stuff" in Frame 14
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(_width, _height, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.fl);
_root.fl.swapDepths(1000);
_root.fl.removeMovieClip("");
}
Instance of Symbol 1435 MovieClip "cursor" in Frame 14
onClipEvent (load) {
gotoAndStop (3);
Mouse.hide();
}
onClipEvent (enterFrame) {
if (_root.arm.gun == 14) {
if (_currentframe < 3) {
gotoAndStop (3);
}
} else if (_currentframe > 2) {
gotoAndStop (1);
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 957 MovieClip "arm" in Frame 14
onClipEvent (load) {
calculateWeps = function () {
weps = 0;
rr = 0;
while (rr < have.length) {
if ((have[rr] == 1) && (rr != 15)) {
weps = weps + 1;
}
rr++;
}
if (weps == 0) {
gotoAndStop (15);
gun = 15;
_root.wpn = name[gun];
}
};
changeWeapons = function () {
if ((gun == 35) && (weps > 1)) {
coolDown = 0;
}
gunMaxLoop = 1;
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
do {
if (have[gun] == 1) {
break;
}
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
gunMaxLoop++;
} while (gunMaxLoop <= weaponAmt);
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
};
fireFun = function () {
_root.shotsFired[gun] = _root.shotsFired[gun] + 1;
ammo[ammoType[gun]] = ammo[ammoType[gun]] - 1;
_root.character.modifier = random(shake[gun]) + 1;
_root.character.yModifier = random(shake[gun]) + 1;
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
i++;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
} else {
i++;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
}
if (gun != 2) {
if (gun != 35) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
}
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 2 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 3 :
i++;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 4 :
i++;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 5 :
i++;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 6 :
i++;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 7 :
i++;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].tar = drillTarget;
break;
case 8 :
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 9 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 10 :
i++;
duplicateMovieClip (_root.item.beanBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 11 :
i++;
duplicateMovieClip (_root.item.nukeBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i].speed = -10;
ammo[ammoType[gun]] = ammo[ammoType[gun]] + 1;
}
if (_yscale == 100) {
_rotation = (_rotation - int(recoilAng[gun]));
} else {
_rotation = (_rotation + int(recoilAng[gun]));
}
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
}
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
};
name = _root.gameFun.name;
if (_root.achievements[4] == 1) {
name[15] = "Sword";
}
fullAuto = _root.gameFun.fullAuto;
recoil = _root.gameFun.recoil;
recoilAng = _root.gameFun.recoilAng;
recoilRec = _root.gameFun.recoilRec;
recoveryTime = _root.gameFun.recoveryTime;
casing = _root.gameFun.casing;
weaponType = _root.gameFun.weaponType;
pow = _root.gameFun.pow;
shake = _root.gameFun.shake;
inAcc = _root.gameFun.inAcc;
sound = _root.gameFun.sound;
capacity = _root.gameFun.capacity;
ammoName = _root.gameFun.ammoName;
ammoType = _root.gameFun.ammoType;
ready = true;
x = 0;
y = 0;
a = 0;
a2 = 0;
d = 40;
kReady = true;
threeRound = 0;
fire = false;
drillTarget = "";
coolDown = 0;
i = 0;
revolverShots = 0;
weaponAmt = inAcc.length - 1;
mouseListener = new Object();
changeWeapons();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (!Key.isDown(_root.character.k[6])) {
spReady = true;
}
if (Key.isDown(_root.character.k[6]) && (spReady == true)) {
spReady = false;
if (gun != 15) {
weps = weps - 1;
i++;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].rot = _rotation + 90;
_root.item["item" + i].gotoAndStop(gun);
if (ammo[ammoType[gun]] < 1) {
_root.item["item" + i].cap = -1;
} else {
_root.item["item" + i].cap = ammo[ammoType[gun]];
}
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = 25;
have[gun] = 0;
ammo[ammoType[gun]] = -1;
changeWeapons();
}
}
_root.ammo.amm = ammo[ammoType[gun]];
if (_x < (_root.character._x - 10)) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 70) / Math.PI));
_yscale = -100;
_root.character._xscale = -100;
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
if (getDepth() > _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_x > (_root.character._x + 10)) {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 70) / Math.PI));
_yscale = 100;
_root.character._xscale = 100;
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (getDepth() < _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_root.character._xscale == -100) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 30) / Math.PI));
} else {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 30) / Math.PI));
}
if (_yscale == 100) {
a = ((_x - _root._xmouse) + 10) / 3;
} else {
a = ((_x - _root._xmouse) - 10) / 3;
}
x = ((0.9 * x) - x) + a;
a2 = (_y - _root._ymouse) / 3;
y = ((0.9 * y) - y) + a2;
_x = (_x - x);
_y = (_y - y);
dx = _x - _root.character._x;
dy = _y - _root.character._y;
alpha = Math.atan2(dy, dx);
xDis = _root.character._x - _x;
yDis = _root.character._y - _y;
dist = Math.round(Math.sqrt((xDis * xDis) + (yDis * yDis)));
if (Math.abs(dist) > d) {
_x = (_root.character._x + (Math.cos(alpha) * d));
_y = (_root.character._y + (Math.sin(alpha) * d));
}
if (wpn._x < 0) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < 0) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (ammo[ammoType[gun]] > 0) {
if (coolDown < 1) {
fireFun();
}
} else {
fire = false;
_root.sfx.gotoAndPlay(78);
}
}
if ((!Key.isDown(_root.character.k[4])) && (!Key.isDown(_root.character.k[5]))) {
kReady = true;
}
if (kReady == true) {
if (Key.isDown(_root.character.k[4])) {
changeWeapons();
}
if (Key.isDown(_root.character.k[5])) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
}
}
alreadyChangedWeps = false;
mouseListener.onMouseWheel = function (delta) {
trace(delta);
if (delta != 0) {
if (alreadyChangedWeps != true) {
changeWeapons();
alreadyChangedWeps = true;
}
}
};
Mouse.addListener(mouseListener);
if (!Key.isDown(_root.character.k[7])) {
mwReady = true;
}
if (Key.isDown(_root.character.k[7]) && (mwReady == true)) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
mwReady = false;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (gun != 15) {
if (ammo[ammoType[gun]] > 0) {
if (fullAuto[gun] == 0) {
if (coolDown < 1) {
if (gun != 14) {
fireFun();
} else if (drillTarget != "") {
fireFun();
}
}
} else {
fire = true;
}
} else {
_root.sfx.gotoAndPlay(78);
}
} else if (coolDown < 1) {
fireFun();
}
}
}
onClipEvent (mouseUp) {
if (fullAuto[gun] == 1) {
threeRound = 0;
fire = false;
coolDown = 0;
}
}
Instance of Symbol 753 MovieClip "character" in Frame 14
onClipEvent (load) {
_root.gameFun.loadGame();
if (_root.meleeKills > _root.meleeRequirement) {
_root.achievements[4] = 1;
}
createCorpse = function () {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse, "obj" + i, i);
_root.obj["obj" + i]._x = _x - _root.obj._x;
_root.obj["obj" + i]._y = _y - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(_currentframe - 14);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
if (drill == false) {
_root.obj["obj" + i].head.gore.gotoAndStop(gore);
_root.obj["obj" + i].body.gore.gotoAndStop(bodyGore);
}
_root.obj["obj" + i].body.gotoAndStop(body);
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 25) - _root.item._y;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 30) - _root.item._y;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 10) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 15) - _root.item._x;
_root.item["item" + i]._y = (_y + 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x + 15) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = ((_x + _parent._x) - _root.obj._x) - _root.item._x;
_root.obj["obj" + i]._y = ((_y + _parent._y) - _root.obj._y) - _root.item._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
targets = new Array();
xMax = _root.lvObj.xMax;
xMin = _root.lvObj.xMin;
yMax = _root.lvObj.yMax;
yMin = _root.lvObj.yMin;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
modifier = 0;
yModifier = 0;
pan = 0;
panMax = 100;
djkReady = false;
jump = false;
jumpBack = false;
fall = false;
modThing = 0;
doubleJump = false;
gravity = 0;
xVel = 0;
gravAccel = 2;
moveSpeed = 12;
jumpHeight = 24;
hurt = false;
headHurt = false;
health = 50;
deadTime = 0;
if (_root.hardMode == true) {
healthRegen = 0.1;
} else {
healthRegen = 0.2;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
char.play();
if (health > 0) {
if (health < 50) {
health = health + healthRegen;
} else {
health = 50;
}
health = Math.round(health * 10) / 10;
_root.hBlood._alpha = Math.round((70 - health) * 2);
_root.hBlood._alpha = Math.round((50 - health) * 2);
_root.hp = health;
_root.kill = "Kills: " + (kill / _root.multiplier);
myRadians = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
if (((jump == false) && (jumpBack == false)) && (fall == false)) {
if (Key.isDown(k[2])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = -moveSpeed;
if (_xscale == 100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = (-moveSpeed) / 2;
if (_xscale == 100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[3])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = moveSpeed;
if (_xscale == -100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = moveSpeed / 2;
if (_xscale == -100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[1])) {
hurt = false;
headHurt = false;
xVel = 0;
gotoAndStop (10);
} else if ((hurt == false) && (headHurt == false)) {
xVel = 0;
gotoAndStop (1);
}
if (Key.isDown(k[0])) {
hurt = false;
headHurt = false;
djkReady = false;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
if (!_root.bound.hitTest(_x, (_y + boundHeight) + 1, true)) {
fall = true;
}
} else {
if (jump == true) {
if (gravity < 0) {
if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (6);
}
} else if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
if (!Key.isDown(k[0])) {
djkReady = true;
}
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
jump = false;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
} else if (jumpBack == true) {
gotoAndStop (9);
} else if (fall == true) {
if (!Key.isDown(k[0])) {
djkReady = true;
}
gotoAndStop (7);
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
}
if (Key.isDown(k[2])) {
xVel = -moveSpeed;
} else if (Key.isDown(k[3])) {
xVel = moveSpeed;
} else {
xVel = 0;
}
n = 0;
while (n < Math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
} else {
_y = (_y - 1);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
}
if (_root.bound.hitTest(_x, _y + boundHeight, true)) {
while (_root.bound.hitTest(_x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
fall = false;
jump = false;
jumpBack = false;
doubleJump = false;
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
gravity = 0;
}
n++;
}
gravity = gravity + gravAccel;
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
} else {
if ((_root._currentframe == 60) && (saveOnce != true)) {
saveOnce = true;
_root.gameFun.saveGame();
}
if ((fall == false) && (jump == false)) {
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else if (_currentframe < 15) {
if (headHealth < maxHealth) {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < 1) {
if (_currentframe != 19) {
gotoAndStop (19);
}
gore = 0;
} else {
gotoAndStop(14 + (random(2) + 1));
gore = random(3) + 2;
}
} else {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
gotoAndStop(14 + (random(2) + 1));
gore = 0;
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
}
} else {
deadTime++;
if (deadTime > 180) {
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
}
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else {
if (headHealth < 1) {
if (_currentframe != 21) {
xVel = random(8) - 4;
gotoAndStop (21);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
}
} else if (_currentframe != 20) {
xVel = random(8) - 4;
gotoAndStop (20);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < maxHealth) {
gore = random(7) + 2;
}
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
if (!_root.bound.hitTest(_x, _y + boundHeight, true)) {
_y = (_y + gravity);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
} else if (char._currentframe < 8) {
char.gotoAndPlay(8);
}
}
}
}
if (_xscale == 100) {
if (modThing < panMax) {
modThing = modThing + Math.round((panMax - modThing) / 5);
}
} else if (modThing > (-panMax)) {
modThing = modThing - Math.round((panMax + modThing) / 5);
}
pan = -modThing;
times = 0;
while (_x > ((275 + pan) + modifier)) {
if (_root.level._x > (-xMax)) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x > (-(xMax - modifier))) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
}
}
}
times = 0;
while (_x < ((275 + pan) + modifier)) {
if (_root.level._x < xMin) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x < (xMin + modifier)) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
}
}
}
times = 0;
while (_y > (250 + yModifier)) {
if (_root.level._y > (-yMax)) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y > (-(yMax - yModifier))) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
}
}
}
times = 0;
while (_y < (250 + yModifier)) {
if (_root.level._y < yMin) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y < (yMin + yModifier)) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
}
}
}
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
} else {
char.stop();
}
}
Instance of Symbol 1546 MovieClip "obj" in Frame 14
onClipEvent (load) {
i = 0;
gotoAndStop (3);
_x = 0;
_y = 0;
}
Instance of Symbol 1470 MovieClip "swap" in Frame 14
onClipEvent (load) {
gotoAndStop (2);
time = 60;
}
onClipEvent (enterFrame) {
if (time < 20) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1742 MovieClip "screenBox" in Frame 14
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 508 MovieClip "hBlood" in Frame 14
onClipEvent (load) {
gotoAndStop (2);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
gotoAndStop (1);
if (_alpha > 100) {
_alpha = 100;
}
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1751 MovieClip "ammo" in Frame 14
onClipEvent (enterFrame) {
if (_root.arm.gun != 15) {
if (_root.arm.gun != 35) {
if (amm < 31) {
gotoAndStop(amm + 1);
} else {
gotoAndStop (31);
}
amm2 = amm;
} else {
gotoAndStop (33);
bar._xscale = 100 - _root.arm.coolDown;
}
} else {
gotoAndStop (32);
}
}
Instance of Symbol 1754 MovieClip in Frame 14
onClipEvent (load) {
lev = "Bio Waste Incineration Floor: Area C";
_alpha = 0;
time = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (time < 90) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "ammoMes" in Frame 14
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 60) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "mes2" in Frame 14
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 100) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1842 MovieClip "levelDrawArea" in Frame 14
onClipEvent (load) {
_x = 0;
_y = 0;
}
Frame 16
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
stop();
Instance of Symbol 1848 MovieClip "lvBG" in Frame 16
onClipEvent (load) {
time = 0;
timeMax = 1500;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
time++;
if (_currentframe != 176) {
play();
}
} else {
stop();
}
}
Instance of Symbol 917 MovieClip "level" in Frame 16
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(2000, 2000, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.levelDrawArea);
_root.levelDrawArea.swapDepths(1);
_root.levelDrawArea.removeMovieClip("");
}
Instance of Symbol 1850 MovieClip "bound" in Frame 16
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 1852 MovieClip "lvObj" in Frame 16
onClipEvent (load) {
_x = 0;
_y = 0;
xMax = 0;
xMin = 0;
yMax = 600;
yMin = -400;
}
Instance of Symbol 1430 MovieClip "stuff" in Frame 16
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(_width, _height, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.fl);
_root.fl.swapDepths(1000);
_root.fl.removeMovieClip("");
}
Instance of Symbol 1435 MovieClip "cursor" in Frame 16
onClipEvent (load) {
gotoAndStop (3);
Mouse.hide();
}
onClipEvent (enterFrame) {
if (_root.arm.gun == 14) {
if (_currentframe < 3) {
gotoAndStop (3);
}
} else if (_currentframe > 2) {
gotoAndStop (1);
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 957 MovieClip "arm" in Frame 16
onClipEvent (load) {
calculateWeps = function () {
weps = 0;
rr = 0;
while (rr < have.length) {
if ((have[rr] == 1) && (rr != 15)) {
weps = weps + 1;
}
rr++;
}
if (weps == 0) {
gotoAndStop (15);
gun = 15;
_root.wpn = name[gun];
}
};
changeWeapons = function () {
if ((gun == 35) && (weps > 1)) {
coolDown = 0;
}
gunMaxLoop = 1;
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
do {
if (have[gun] == 1) {
break;
}
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
gunMaxLoop++;
} while (gunMaxLoop <= weaponAmt);
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
};
fireFun = function () {
_root.shotsFired[gun] = _root.shotsFired[gun] + 1;
ammo[ammoType[gun]] = ammo[ammoType[gun]] - 1;
_root.character.modifier = random(shake[gun]) + 1;
_root.character.yModifier = random(shake[gun]) + 1;
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
i++;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
} else {
i++;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
}
if (gun != 2) {
if (gun != 35) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
}
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 2 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 3 :
i++;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 4 :
i++;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 5 :
i++;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 6 :
i++;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 7 :
i++;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].tar = drillTarget;
break;
case 8 :
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 9 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 10 :
i++;
duplicateMovieClip (_root.item.beanBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 11 :
i++;
duplicateMovieClip (_root.item.nukeBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i].speed = -10;
ammo[ammoType[gun]] = ammo[ammoType[gun]] + 1;
}
if (_yscale == 100) {
_rotation = (_rotation - int(recoilAng[gun]));
} else {
_rotation = (_rotation + int(recoilAng[gun]));
}
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
}
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
};
name = _root.gameFun.name;
if (_root.achievements[4] == 1) {
name[15] = "Sword";
}
fullAuto = _root.gameFun.fullAuto;
recoil = _root.gameFun.recoil;
recoilAng = _root.gameFun.recoilAng;
recoilRec = _root.gameFun.recoilRec;
recoveryTime = _root.gameFun.recoveryTime;
casing = _root.gameFun.casing;
weaponType = _root.gameFun.weaponType;
pow = _root.gameFun.pow;
shake = _root.gameFun.shake;
inAcc = _root.gameFun.inAcc;
sound = _root.gameFun.sound;
capacity = _root.gameFun.capacity;
ammoName = _root.gameFun.ammoName;
ammoType = _root.gameFun.ammoType;
ready = true;
x = 0;
y = 0;
a = 0;
a2 = 0;
d = 40;
kReady = true;
threeRound = 0;
fire = false;
drillTarget = "";
coolDown = 0;
i = 0;
revolverShots = 0;
weaponAmt = inAcc.length - 1;
mouseListener = new Object();
changeWeapons();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (!Key.isDown(_root.character.k[6])) {
spReady = true;
}
if (Key.isDown(_root.character.k[6]) && (spReady == true)) {
spReady = false;
if (gun != 15) {
weps = weps - 1;
i++;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].rot = _rotation + 90;
_root.item["item" + i].gotoAndStop(gun);
if (ammo[ammoType[gun]] < 1) {
_root.item["item" + i].cap = -1;
} else {
_root.item["item" + i].cap = ammo[ammoType[gun]];
}
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = 25;
have[gun] = 0;
ammo[ammoType[gun]] = -1;
changeWeapons();
}
}
_root.ammo.amm = ammo[ammoType[gun]];
if (_x < (_root.character._x - 10)) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 70) / Math.PI));
_yscale = -100;
_root.character._xscale = -100;
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
if (getDepth() > _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_x > (_root.character._x + 10)) {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 70) / Math.PI));
_yscale = 100;
_root.character._xscale = 100;
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (getDepth() < _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_root.character._xscale == -100) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 30) / Math.PI));
} else {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 30) / Math.PI));
}
if (_yscale == 100) {
a = ((_x - _root._xmouse) + 10) / 3;
} else {
a = ((_x - _root._xmouse) - 10) / 3;
}
x = ((0.9 * x) - x) + a;
a2 = (_y - _root._ymouse) / 3;
y = ((0.9 * y) - y) + a2;
_x = (_x - x);
_y = (_y - y);
dx = _x - _root.character._x;
dy = _y - _root.character._y;
alpha = Math.atan2(dy, dx);
xDis = _root.character._x - _x;
yDis = _root.character._y - _y;
dist = Math.round(Math.sqrt((xDis * xDis) + (yDis * yDis)));
if (Math.abs(dist) > d) {
_x = (_root.character._x + (Math.cos(alpha) * d));
_y = (_root.character._y + (Math.sin(alpha) * d));
}
if (wpn._x < 0) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < 0) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (ammo[ammoType[gun]] > 0) {
if (coolDown < 1) {
fireFun();
}
} else {
fire = false;
_root.sfx.gotoAndPlay(78);
}
}
if ((!Key.isDown(_root.character.k[4])) && (!Key.isDown(_root.character.k[5]))) {
kReady = true;
}
if (kReady == true) {
if (Key.isDown(_root.character.k[4])) {
changeWeapons();
}
if (Key.isDown(_root.character.k[5])) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
}
}
alreadyChangedWeps = false;
mouseListener.onMouseWheel = function (delta) {
trace(delta);
if (delta != 0) {
if (alreadyChangedWeps != true) {
changeWeapons();
alreadyChangedWeps = true;
}
}
};
Mouse.addListener(mouseListener);
if (!Key.isDown(_root.character.k[7])) {
mwReady = true;
}
if (Key.isDown(_root.character.k[7]) && (mwReady == true)) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
mwReady = false;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (gun != 15) {
if (ammo[ammoType[gun]] > 0) {
if (fullAuto[gun] == 0) {
if (coolDown < 1) {
if (gun != 14) {
fireFun();
} else if (drillTarget != "") {
fireFun();
}
}
} else {
fire = true;
}
} else {
_root.sfx.gotoAndPlay(78);
}
} else if (coolDown < 1) {
fireFun();
}
}
}
onClipEvent (mouseUp) {
if (fullAuto[gun] == 1) {
threeRound = 0;
fire = false;
coolDown = 0;
}
}
Instance of Symbol 753 MovieClip "character" in Frame 16
onClipEvent (load) {
_root.gameFun.loadGame();
if (_root.meleeKills > _root.meleeRequirement) {
_root.achievements[4] = 1;
}
createCorpse = function () {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse, "obj" + i, i);
_root.obj["obj" + i]._x = _x - _root.obj._x;
_root.obj["obj" + i]._y = _y - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(_currentframe - 14);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
if (drill == false) {
_root.obj["obj" + i].head.gore.gotoAndStop(gore);
_root.obj["obj" + i].body.gore.gotoAndStop(bodyGore);
}
_root.obj["obj" + i].body.gotoAndStop(body);
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 25) - _root.item._y;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 30) - _root.item._y;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 10) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 15) - _root.item._x;
_root.item["item" + i]._y = (_y + 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x + 15) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = ((_x + _parent._x) - _root.obj._x) - _root.item._x;
_root.obj["obj" + i]._y = ((_y + _parent._y) - _root.obj._y) - _root.item._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
targets = new Array();
xMax = _root.lvObj.xMax;
xMin = _root.lvObj.xMin;
yMax = _root.lvObj.yMax;
yMin = _root.lvObj.yMin;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
modifier = 0;
yModifier = 0;
pan = 0;
panMax = 100;
djkReady = false;
jump = false;
jumpBack = false;
fall = false;
modThing = 0;
doubleJump = false;
gravity = 0;
xVel = 0;
gravAccel = 2;
moveSpeed = 12;
jumpHeight = 24;
hurt = false;
headHurt = false;
health = 50;
deadTime = 0;
if (_root.hardMode == true) {
healthRegen = 0.1;
} else {
healthRegen = 0.2;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
char.play();
if (health > 0) {
if (health < 50) {
health = health + healthRegen;
} else {
health = 50;
}
health = Math.round(health * 10) / 10;
_root.hBlood._alpha = Math.round((70 - health) * 2);
_root.hBlood._alpha = Math.round((50 - health) * 2);
_root.hp = health;
_root.kill = "Kills: " + (kill / _root.multiplier);
myRadians = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
if (((jump == false) && (jumpBack == false)) && (fall == false)) {
if (Key.isDown(k[2])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = -moveSpeed;
if (_xscale == 100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = (-moveSpeed) / 2;
if (_xscale == 100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[3])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = moveSpeed;
if (_xscale == -100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = moveSpeed / 2;
if (_xscale == -100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[1])) {
hurt = false;
headHurt = false;
xVel = 0;
gotoAndStop (10);
} else if ((hurt == false) && (headHurt == false)) {
xVel = 0;
gotoAndStop (1);
}
if (Key.isDown(k[0])) {
hurt = false;
headHurt = false;
djkReady = false;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
if (!_root.bound.hitTest(_x, (_y + boundHeight) + 1, true)) {
fall = true;
}
} else {
if (jump == true) {
if (gravity < 0) {
if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (6);
}
} else if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
if (!Key.isDown(k[0])) {
djkReady = true;
}
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
jump = false;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
} else if (jumpBack == true) {
gotoAndStop (9);
} else if (fall == true) {
if (!Key.isDown(k[0])) {
djkReady = true;
}
gotoAndStop (7);
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
}
if (Key.isDown(k[2])) {
xVel = -moveSpeed;
} else if (Key.isDown(k[3])) {
xVel = moveSpeed;
} else {
xVel = 0;
}
n = 0;
while (n < Math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
} else {
_y = (_y - 1);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
}
if (_root.bound.hitTest(_x, _y + boundHeight, true)) {
while (_root.bound.hitTest(_x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
fall = false;
jump = false;
jumpBack = false;
doubleJump = false;
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
gravity = 0;
}
n++;
}
gravity = gravity + gravAccel;
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
} else {
if ((_root._currentframe == 60) && (saveOnce != true)) {
saveOnce = true;
_root.gameFun.saveGame();
}
if ((fall == false) && (jump == false)) {
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else if (_currentframe < 15) {
if (headHealth < maxHealth) {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < 1) {
if (_currentframe != 19) {
gotoAndStop (19);
}
gore = 0;
} else {
gotoAndStop(14 + (random(2) + 1));
gore = random(3) + 2;
}
} else {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
gotoAndStop(14 + (random(2) + 1));
gore = 0;
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
}
} else {
deadTime++;
if (deadTime > 180) {
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
}
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else {
if (headHealth < 1) {
if (_currentframe != 21) {
xVel = random(8) - 4;
gotoAndStop (21);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
}
} else if (_currentframe != 20) {
xVel = random(8) - 4;
gotoAndStop (20);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < maxHealth) {
gore = random(7) + 2;
}
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
if (!_root.bound.hitTest(_x, _y + boundHeight, true)) {
_y = (_y + gravity);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
} else if (char._currentframe < 8) {
char.gotoAndPlay(8);
}
}
}
}
if (_xscale == 100) {
if (modThing < panMax) {
modThing = modThing + Math.round((panMax - modThing) / 5);
}
} else if (modThing > (-panMax)) {
modThing = modThing - Math.round((panMax + modThing) / 5);
}
pan = -modThing;
times = 0;
while (_x > ((275 + pan) + modifier)) {
if (_root.level._x > (-xMax)) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x > (-(xMax - modifier))) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
}
}
}
times = 0;
while (_x < ((275 + pan) + modifier)) {
if (_root.level._x < xMin) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x < (xMin + modifier)) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
}
}
}
times = 0;
while (_y > (250 + yModifier)) {
if (_root.level._y > (-yMax)) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y > (-(yMax - yModifier))) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
}
}
}
times = 0;
while (_y < (250 + yModifier)) {
if (_root.level._y < yMin) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y < (yMin + yModifier)) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
}
}
}
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
} else {
char.stop();
}
}
Instance of Symbol 1546 MovieClip "obj" in Frame 16
onClipEvent (load) {
i = 0;
gotoAndStop (4);
_x = 0;
_y = 0;
}
Instance of Symbol 1470 MovieClip "swap" in Frame 16
onClipEvent (load) {
gotoAndStop (2);
time = 60;
}
onClipEvent (enterFrame) {
if (time < 20) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1742 MovieClip "screenBox" in Frame 16
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 508 MovieClip "hBlood" in Frame 16
onClipEvent (load) {
gotoAndStop (2);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
gotoAndStop (1);
if (_alpha > 100) {
_alpha = 100;
}
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1751 MovieClip "ammo" in Frame 16
onClipEvent (enterFrame) {
if (_root.arm.gun != 15) {
if (_root.arm.gun != 35) {
if (amm < 31) {
gotoAndStop(amm + 1);
} else {
gotoAndStop (31);
}
amm2 = amm;
} else {
gotoAndStop (33);
bar._xscale = 100 - _root.arm.coolDown;
}
} else {
gotoAndStop (32);
}
}
Instance of Symbol 1754 MovieClip in Frame 16
onClipEvent (load) {
lev = "Cargo Elevator";
_alpha = 0;
time = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (time < 90) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "ammoMes" in Frame 16
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 60) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "mes2" in Frame 16
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 100) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1868 MovieClip "levelDrawArea" in Frame 16
onClipEvent (load) {
_x = 0;
_y = 0;
}
Frame 18
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
stop();
Instance of Symbol 463 MovieClip "level" in Frame 18
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(2000, 2000, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.levelDrawArea);
_root.levelDrawArea.swapDepths(1);
_root.levelDrawArea.removeMovieClip("");
}
Instance of Symbol 1870 MovieClip "bound" in Frame 18
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 1871 MovieClip "lvObj" in Frame 18
onClipEvent (load) {
_x = 0;
_y = 0;
xMax = 1435;
xMin = 0;
yMax = 1150;
yMin = 0;
}
Instance of Symbol 1430 MovieClip "stuff" in Frame 18
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(_width, _height, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.fl);
_root.fl.swapDepths(1000);
_root.fl.removeMovieClip("");
}
Instance of Symbol 1435 MovieClip "cursor" in Frame 18
onClipEvent (load) {
gotoAndStop (3);
Mouse.hide();
}
onClipEvent (enterFrame) {
if (_root.arm.gun == 14) {
if (_currentframe < 3) {
gotoAndStop (3);
}
} else if (_currentframe > 2) {
gotoAndStop (1);
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 957 MovieClip "arm" in Frame 18
onClipEvent (load) {
calculateWeps = function () {
weps = 0;
rr = 0;
while (rr < have.length) {
if ((have[rr] == 1) && (rr != 15)) {
weps = weps + 1;
}
rr++;
}
if (weps == 0) {
gotoAndStop (15);
gun = 15;
_root.wpn = name[gun];
}
};
changeWeapons = function () {
if ((gun == 35) && (weps > 1)) {
coolDown = 0;
}
gunMaxLoop = 1;
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
do {
if (have[gun] == 1) {
break;
}
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
gunMaxLoop++;
} while (gunMaxLoop <= weaponAmt);
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
};
fireFun = function () {
_root.shotsFired[gun] = _root.shotsFired[gun] + 1;
ammo[ammoType[gun]] = ammo[ammoType[gun]] - 1;
_root.character.modifier = random(shake[gun]) + 1;
_root.character.yModifier = random(shake[gun]) + 1;
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
i++;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
} else {
i++;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
}
if (gun != 2) {
if (gun != 35) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
}
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 2 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 3 :
i++;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 4 :
i++;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 5 :
i++;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 6 :
i++;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 7 :
i++;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].tar = drillTarget;
break;
case 8 :
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 9 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 10 :
i++;
duplicateMovieClip (_root.item.beanBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 11 :
i++;
duplicateMovieClip (_root.item.nukeBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i].speed = -10;
ammo[ammoType[gun]] = ammo[ammoType[gun]] + 1;
}
if (_yscale == 100) {
_rotation = (_rotation - int(recoilAng[gun]));
} else {
_rotation = (_rotation + int(recoilAng[gun]));
}
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
}
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
};
name = _root.gameFun.name;
if (_root.achievements[4] == 1) {
name[15] = "Sword";
}
fullAuto = _root.gameFun.fullAuto;
recoil = _root.gameFun.recoil;
recoilAng = _root.gameFun.recoilAng;
recoilRec = _root.gameFun.recoilRec;
recoveryTime = _root.gameFun.recoveryTime;
casing = _root.gameFun.casing;
weaponType = _root.gameFun.weaponType;
pow = _root.gameFun.pow;
shake = _root.gameFun.shake;
inAcc = _root.gameFun.inAcc;
sound = _root.gameFun.sound;
capacity = _root.gameFun.capacity;
ammoName = _root.gameFun.ammoName;
ammoType = _root.gameFun.ammoType;
ready = true;
x = 0;
y = 0;
a = 0;
a2 = 0;
d = 40;
kReady = true;
threeRound = 0;
fire = false;
drillTarget = "";
coolDown = 0;
i = 0;
revolverShots = 0;
weaponAmt = inAcc.length - 1;
mouseListener = new Object();
changeWeapons();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (!Key.isDown(_root.character.k[6])) {
spReady = true;
}
if (Key.isDown(_root.character.k[6]) && (spReady == true)) {
spReady = false;
if (gun != 15) {
weps = weps - 1;
i++;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].rot = _rotation + 90;
_root.item["item" + i].gotoAndStop(gun);
if (ammo[ammoType[gun]] < 1) {
_root.item["item" + i].cap = -1;
} else {
_root.item["item" + i].cap = ammo[ammoType[gun]];
}
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = 25;
have[gun] = 0;
ammo[ammoType[gun]] = -1;
changeWeapons();
}
}
_root.ammo.amm = ammo[ammoType[gun]];
if (_x < (_root.character._x - 10)) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 70) / Math.PI));
_yscale = -100;
_root.character._xscale = -100;
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
if (getDepth() > _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_x > (_root.character._x + 10)) {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 70) / Math.PI));
_yscale = 100;
_root.character._xscale = 100;
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (getDepth() < _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_root.character._xscale == -100) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 30) / Math.PI));
} else {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 30) / Math.PI));
}
if (_yscale == 100) {
a = ((_x - _root._xmouse) + 10) / 3;
} else {
a = ((_x - _root._xmouse) - 10) / 3;
}
x = ((0.9 * x) - x) + a;
a2 = (_y - _root._ymouse) / 3;
y = ((0.9 * y) - y) + a2;
_x = (_x - x);
_y = (_y - y);
dx = _x - _root.character._x;
dy = _y - _root.character._y;
alpha = Math.atan2(dy, dx);
xDis = _root.character._x - _x;
yDis = _root.character._y - _y;
dist = Math.round(Math.sqrt((xDis * xDis) + (yDis * yDis)));
if (Math.abs(dist) > d) {
_x = (_root.character._x + (Math.cos(alpha) * d));
_y = (_root.character._y + (Math.sin(alpha) * d));
}
if (wpn._x < 0) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < 0) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (ammo[ammoType[gun]] > 0) {
if (coolDown < 1) {
fireFun();
}
} else {
fire = false;
_root.sfx.gotoAndPlay(78);
}
}
if ((!Key.isDown(_root.character.k[4])) && (!Key.isDown(_root.character.k[5]))) {
kReady = true;
}
if (kReady == true) {
if (Key.isDown(_root.character.k[4])) {
changeWeapons();
}
if (Key.isDown(_root.character.k[5])) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
}
}
alreadyChangedWeps = false;
mouseListener.onMouseWheel = function (delta) {
trace(delta);
if (delta != 0) {
if (alreadyChangedWeps != true) {
changeWeapons();
alreadyChangedWeps = true;
}
}
};
Mouse.addListener(mouseListener);
if (!Key.isDown(_root.character.k[7])) {
mwReady = true;
}
if (Key.isDown(_root.character.k[7]) && (mwReady == true)) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
mwReady = false;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (gun != 15) {
if (ammo[ammoType[gun]] > 0) {
if (fullAuto[gun] == 0) {
if (coolDown < 1) {
if (gun != 14) {
fireFun();
} else if (drillTarget != "") {
fireFun();
}
}
} else {
fire = true;
}
} else {
_root.sfx.gotoAndPlay(78);
}
} else if (coolDown < 1) {
fireFun();
}
}
}
onClipEvent (mouseUp) {
if (fullAuto[gun] == 1) {
threeRound = 0;
fire = false;
coolDown = 0;
}
}
Instance of Symbol 753 MovieClip "character" in Frame 18
onClipEvent (load) {
_root.gameFun.loadGame();
if (_root.meleeKills > _root.meleeRequirement) {
_root.achievements[4] = 1;
}
createCorpse = function () {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse, "obj" + i, i);
_root.obj["obj" + i]._x = _x - _root.obj._x;
_root.obj["obj" + i]._y = _y - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(_currentframe - 14);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
if (drill == false) {
_root.obj["obj" + i].head.gore.gotoAndStop(gore);
_root.obj["obj" + i].body.gore.gotoAndStop(bodyGore);
}
_root.obj["obj" + i].body.gotoAndStop(body);
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 25) - _root.item._y;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 30) - _root.item._y;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 10) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 15) - _root.item._x;
_root.item["item" + i]._y = (_y + 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x + 15) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = ((_x + _parent._x) - _root.obj._x) - _root.item._x;
_root.obj["obj" + i]._y = ((_y + _parent._y) - _root.obj._y) - _root.item._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
targets = new Array();
xMax = _root.lvObj.xMax;
xMin = _root.lvObj.xMin;
yMax = _root.lvObj.yMax;
yMin = _root.lvObj.yMin;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
modifier = 0;
yModifier = 0;
pan = 0;
panMax = 100;
djkReady = false;
jump = false;
jumpBack = false;
fall = false;
modThing = 0;
doubleJump = false;
gravity = 0;
xVel = 0;
gravAccel = 2;
moveSpeed = 12;
jumpHeight = 24;
hurt = false;
headHurt = false;
health = 50;
deadTime = 0;
if (_root.hardMode == true) {
healthRegen = 0.1;
} else {
healthRegen = 0.2;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
char.play();
if (health > 0) {
if (health < 50) {
health = health + healthRegen;
} else {
health = 50;
}
health = Math.round(health * 10) / 10;
_root.hBlood._alpha = Math.round((70 - health) * 2);
_root.hBlood._alpha = Math.round((50 - health) * 2);
_root.hp = health;
_root.kill = "Kills: " + (kill / _root.multiplier);
myRadians = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
if (((jump == false) && (jumpBack == false)) && (fall == false)) {
if (Key.isDown(k[2])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = -moveSpeed;
if (_xscale == 100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = (-moveSpeed) / 2;
if (_xscale == 100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[3])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = moveSpeed;
if (_xscale == -100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = moveSpeed / 2;
if (_xscale == -100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[1])) {
hurt = false;
headHurt = false;
xVel = 0;
gotoAndStop (10);
} else if ((hurt == false) && (headHurt == false)) {
xVel = 0;
gotoAndStop (1);
}
if (Key.isDown(k[0])) {
hurt = false;
headHurt = false;
djkReady = false;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
if (!_root.bound.hitTest(_x, (_y + boundHeight) + 1, true)) {
fall = true;
}
} else {
if (jump == true) {
if (gravity < 0) {
if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (6);
}
} else if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
if (!Key.isDown(k[0])) {
djkReady = true;
}
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
jump = false;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
} else if (jumpBack == true) {
gotoAndStop (9);
} else if (fall == true) {
if (!Key.isDown(k[0])) {
djkReady = true;
}
gotoAndStop (7);
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
}
if (Key.isDown(k[2])) {
xVel = -moveSpeed;
} else if (Key.isDown(k[3])) {
xVel = moveSpeed;
} else {
xVel = 0;
}
n = 0;
while (n < Math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
} else {
_y = (_y - 1);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
}
if (_root.bound.hitTest(_x, _y + boundHeight, true)) {
while (_root.bound.hitTest(_x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
fall = false;
jump = false;
jumpBack = false;
doubleJump = false;
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
gravity = 0;
}
n++;
}
gravity = gravity + gravAccel;
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
} else {
if ((_root._currentframe == 60) && (saveOnce != true)) {
saveOnce = true;
_root.gameFun.saveGame();
}
if ((fall == false) && (jump == false)) {
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else if (_currentframe < 15) {
if (headHealth < maxHealth) {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < 1) {
if (_currentframe != 19) {
gotoAndStop (19);
}
gore = 0;
} else {
gotoAndStop(14 + (random(2) + 1));
gore = random(3) + 2;
}
} else {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
gotoAndStop(14 + (random(2) + 1));
gore = 0;
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
}
} else {
deadTime++;
if (deadTime > 180) {
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
}
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else {
if (headHealth < 1) {
if (_currentframe != 21) {
xVel = random(8) - 4;
gotoAndStop (21);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
}
} else if (_currentframe != 20) {
xVel = random(8) - 4;
gotoAndStop (20);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < maxHealth) {
gore = random(7) + 2;
}
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
if (!_root.bound.hitTest(_x, _y + boundHeight, true)) {
_y = (_y + gravity);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
} else if (char._currentframe < 8) {
char.gotoAndPlay(8);
}
}
}
}
if (_xscale == 100) {
if (modThing < panMax) {
modThing = modThing + Math.round((panMax - modThing) / 5);
}
} else if (modThing > (-panMax)) {
modThing = modThing - Math.round((panMax + modThing) / 5);
}
pan = -modThing;
times = 0;
while (_x > ((275 + pan) + modifier)) {
if (_root.level._x > (-xMax)) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x > (-(xMax - modifier))) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
}
}
}
times = 0;
while (_x < ((275 + pan) + modifier)) {
if (_root.level._x < xMin) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x < (xMin + modifier)) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
}
}
}
times = 0;
while (_y > (250 + yModifier)) {
if (_root.level._y > (-yMax)) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y > (-(yMax - yModifier))) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
}
}
}
times = 0;
while (_y < (250 + yModifier)) {
if (_root.level._y < yMin) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y < (yMin + yModifier)) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
}
}
}
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
} else {
char.stop();
}
}
Instance of Symbol 1546 MovieClip "obj" in Frame 18
onClipEvent (load) {
i = 0;
gotoAndStop (5);
_x = 0;
_y = 0;
}
Instance of Symbol 1470 MovieClip "swap" in Frame 18
onClipEvent (load) {
gotoAndStop (2);
time = 60;
}
onClipEvent (enterFrame) {
if (time < 20) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1742 MovieClip "screenBox" in Frame 18
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 508 MovieClip "hBlood" in Frame 18
onClipEvent (load) {
gotoAndStop (2);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
gotoAndStop (1);
if (_alpha > 100) {
_alpha = 100;
}
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1751 MovieClip "ammo" in Frame 18
onClipEvent (enterFrame) {
if (_root.arm.gun != 15) {
if (_root.arm.gun != 35) {
if (amm < 31) {
gotoAndStop(amm + 1);
} else {
gotoAndStop (31);
}
amm2 = amm;
} else {
gotoAndStop (33);
bar._xscale = 100 - _root.arm.coolDown;
}
} else {
gotoAndStop (32);
}
}
Instance of Symbol 1754 MovieClip in Frame 18
onClipEvent (load) {
lev = "Service Tunnel: West";
_alpha = 0;
time = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (time < 90) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "ammoMes" in Frame 18
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 60) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "mes2" in Frame 18
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 100) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1893 MovieClip "levelDrawArea" in Frame 18
onClipEvent (load) {
_x = 0;
_y = 0;
}
Frame 20
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
stop();
Instance of Symbol 463 MovieClip "level" in Frame 20
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(2000, 2000, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.levelDrawArea);
_root.levelDrawArea.swapDepths(1);
_root.levelDrawArea.removeMovieClip("");
}
Instance of Symbol 1895 MovieClip "bound" in Frame 20
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 1903 MovieClip "lvObj" in Frame 20
onClipEvent (load) {
_x = 0;
_y = 0;
xMax = 1435;
xMin = 0;
yMax = 1550;
yMin = 0;
}
Instance of Symbol 1430 MovieClip "stuff" in Frame 20
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(_width, _height, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.fl);
_root.fl.swapDepths(1000);
_root.fl.removeMovieClip("");
}
Instance of Symbol 1435 MovieClip "cursor" in Frame 20
onClipEvent (load) {
gotoAndStop (3);
Mouse.hide();
}
onClipEvent (enterFrame) {
if (_root.arm.gun == 14) {
if (_currentframe < 3) {
gotoAndStop (3);
}
} else if (_currentframe > 2) {
gotoAndStop (1);
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 957 MovieClip "arm" in Frame 20
onClipEvent (load) {
calculateWeps = function () {
weps = 0;
rr = 0;
while (rr < have.length) {
if ((have[rr] == 1) && (rr != 15)) {
weps = weps + 1;
}
rr++;
}
if (weps == 0) {
gotoAndStop (15);
gun = 15;
_root.wpn = name[gun];
}
};
changeWeapons = function () {
if ((gun == 35) && (weps > 1)) {
coolDown = 0;
}
gunMaxLoop = 1;
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
do {
if (have[gun] == 1) {
break;
}
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
gunMaxLoop++;
} while (gunMaxLoop <= weaponAmt);
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
};
fireFun = function () {
_root.shotsFired[gun] = _root.shotsFired[gun] + 1;
ammo[ammoType[gun]] = ammo[ammoType[gun]] - 1;
_root.character.modifier = random(shake[gun]) + 1;
_root.character.yModifier = random(shake[gun]) + 1;
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
i++;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
} else {
i++;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
}
if (gun != 2) {
if (gun != 35) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
}
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 2 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 3 :
i++;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 4 :
i++;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 5 :
i++;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 6 :
i++;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 7 :
i++;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].tar = drillTarget;
break;
case 8 :
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 9 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 10 :
i++;
duplicateMovieClip (_root.item.beanBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 11 :
i++;
duplicateMovieClip (_root.item.nukeBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i].speed = -10;
ammo[ammoType[gun]] = ammo[ammoType[gun]] + 1;
}
if (_yscale == 100) {
_rotation = (_rotation - int(recoilAng[gun]));
} else {
_rotation = (_rotation + int(recoilAng[gun]));
}
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
}
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
};
name = _root.gameFun.name;
if (_root.achievements[4] == 1) {
name[15] = "Sword";
}
fullAuto = _root.gameFun.fullAuto;
recoil = _root.gameFun.recoil;
recoilAng = _root.gameFun.recoilAng;
recoilRec = _root.gameFun.recoilRec;
recoveryTime = _root.gameFun.recoveryTime;
casing = _root.gameFun.casing;
weaponType = _root.gameFun.weaponType;
pow = _root.gameFun.pow;
shake = _root.gameFun.shake;
inAcc = _root.gameFun.inAcc;
sound = _root.gameFun.sound;
capacity = _root.gameFun.capacity;
ammoName = _root.gameFun.ammoName;
ammoType = _root.gameFun.ammoType;
ready = true;
x = 0;
y = 0;
a = 0;
a2 = 0;
d = 40;
kReady = true;
threeRound = 0;
fire = false;
drillTarget = "";
coolDown = 0;
i = 0;
revolverShots = 0;
weaponAmt = inAcc.length - 1;
mouseListener = new Object();
changeWeapons();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (!Key.isDown(_root.character.k[6])) {
spReady = true;
}
if (Key.isDown(_root.character.k[6]) && (spReady == true)) {
spReady = false;
if (gun != 15) {
weps = weps - 1;
i++;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].rot = _rotation + 90;
_root.item["item" + i].gotoAndStop(gun);
if (ammo[ammoType[gun]] < 1) {
_root.item["item" + i].cap = -1;
} else {
_root.item["item" + i].cap = ammo[ammoType[gun]];
}
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = 25;
have[gun] = 0;
ammo[ammoType[gun]] = -1;
changeWeapons();
}
}
_root.ammo.amm = ammo[ammoType[gun]];
if (_x < (_root.character._x - 10)) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 70) / Math.PI));
_yscale = -100;
_root.character._xscale = -100;
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
if (getDepth() > _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_x > (_root.character._x + 10)) {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 70) / Math.PI));
_yscale = 100;
_root.character._xscale = 100;
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (getDepth() < _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_root.character._xscale == -100) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 30) / Math.PI));
} else {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 30) / Math.PI));
}
if (_yscale == 100) {
a = ((_x - _root._xmouse) + 10) / 3;
} else {
a = ((_x - _root._xmouse) - 10) / 3;
}
x = ((0.9 * x) - x) + a;
a2 = (_y - _root._ymouse) / 3;
y = ((0.9 * y) - y) + a2;
_x = (_x - x);
_y = (_y - y);
dx = _x - _root.character._x;
dy = _y - _root.character._y;
alpha = Math.atan2(dy, dx);
xDis = _root.character._x - _x;
yDis = _root.character._y - _y;
dist = Math.round(Math.sqrt((xDis * xDis) + (yDis * yDis)));
if (Math.abs(dist) > d) {
_x = (_root.character._x + (Math.cos(alpha) * d));
_y = (_root.character._y + (Math.sin(alpha) * d));
}
if (wpn._x < 0) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < 0) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (ammo[ammoType[gun]] > 0) {
if (coolDown < 1) {
fireFun();
}
} else {
fire = false;
_root.sfx.gotoAndPlay(78);
}
}
if ((!Key.isDown(_root.character.k[4])) && (!Key.isDown(_root.character.k[5]))) {
kReady = true;
}
if (kReady == true) {
if (Key.isDown(_root.character.k[4])) {
changeWeapons();
}
if (Key.isDown(_root.character.k[5])) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
}
}
alreadyChangedWeps = false;
mouseListener.onMouseWheel = function (delta) {
trace(delta);
if (delta != 0) {
if (alreadyChangedWeps != true) {
changeWeapons();
alreadyChangedWeps = true;
}
}
};
Mouse.addListener(mouseListener);
if (!Key.isDown(_root.character.k[7])) {
mwReady = true;
}
if (Key.isDown(_root.character.k[7]) && (mwReady == true)) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
mwReady = false;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (gun != 15) {
if (ammo[ammoType[gun]] > 0) {
if (fullAuto[gun] == 0) {
if (coolDown < 1) {
if (gun != 14) {
fireFun();
} else if (drillTarget != "") {
fireFun();
}
}
} else {
fire = true;
}
} else {
_root.sfx.gotoAndPlay(78);
}
} else if (coolDown < 1) {
fireFun();
}
}
}
onClipEvent (mouseUp) {
if (fullAuto[gun] == 1) {
threeRound = 0;
fire = false;
coolDown = 0;
}
}
Instance of Symbol 753 MovieClip "character" in Frame 20
onClipEvent (load) {
_root.gameFun.loadGame();
if (_root.meleeKills > _root.meleeRequirement) {
_root.achievements[4] = 1;
}
createCorpse = function () {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse, "obj" + i, i);
_root.obj["obj" + i]._x = _x - _root.obj._x;
_root.obj["obj" + i]._y = _y - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(_currentframe - 14);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
if (drill == false) {
_root.obj["obj" + i].head.gore.gotoAndStop(gore);
_root.obj["obj" + i].body.gore.gotoAndStop(bodyGore);
}
_root.obj["obj" + i].body.gotoAndStop(body);
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 25) - _root.item._y;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 30) - _root.item._y;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 10) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 15) - _root.item._x;
_root.item["item" + i]._y = (_y + 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x + 15) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = ((_x + _parent._x) - _root.obj._x) - _root.item._x;
_root.obj["obj" + i]._y = ((_y + _parent._y) - _root.obj._y) - _root.item._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
targets = new Array();
xMax = _root.lvObj.xMax;
xMin = _root.lvObj.xMin;
yMax = _root.lvObj.yMax;
yMin = _root.lvObj.yMin;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
modifier = 0;
yModifier = 0;
pan = 0;
panMax = 100;
djkReady = false;
jump = false;
jumpBack = false;
fall = false;
modThing = 0;
doubleJump = false;
gravity = 0;
xVel = 0;
gravAccel = 2;
moveSpeed = 12;
jumpHeight = 24;
hurt = false;
headHurt = false;
health = 50;
deadTime = 0;
if (_root.hardMode == true) {
healthRegen = 0.1;
} else {
healthRegen = 0.2;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
char.play();
if (health > 0) {
if (health < 50) {
health = health + healthRegen;
} else {
health = 50;
}
health = Math.round(health * 10) / 10;
_root.hBlood._alpha = Math.round((70 - health) * 2);
_root.hBlood._alpha = Math.round((50 - health) * 2);
_root.hp = health;
_root.kill = "Kills: " + (kill / _root.multiplier);
myRadians = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
if (((jump == false) && (jumpBack == false)) && (fall == false)) {
if (Key.isDown(k[2])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = -moveSpeed;
if (_xscale == 100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = (-moveSpeed) / 2;
if (_xscale == 100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[3])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = moveSpeed;
if (_xscale == -100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = moveSpeed / 2;
if (_xscale == -100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[1])) {
hurt = false;
headHurt = false;
xVel = 0;
gotoAndStop (10);
} else if ((hurt == false) && (headHurt == false)) {
xVel = 0;
gotoAndStop (1);
}
if (Key.isDown(k[0])) {
hurt = false;
headHurt = false;
djkReady = false;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
if (!_root.bound.hitTest(_x, (_y + boundHeight) + 1, true)) {
fall = true;
}
} else {
if (jump == true) {
if (gravity < 0) {
if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (6);
}
} else if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
if (!Key.isDown(k[0])) {
djkReady = true;
}
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
jump = false;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
} else if (jumpBack == true) {
gotoAndStop (9);
} else if (fall == true) {
if (!Key.isDown(k[0])) {
djkReady = true;
}
gotoAndStop (7);
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
}
if (Key.isDown(k[2])) {
xVel = -moveSpeed;
} else if (Key.isDown(k[3])) {
xVel = moveSpeed;
} else {
xVel = 0;
}
n = 0;
while (n < Math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
} else {
_y = (_y - 1);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
}
if (_root.bound.hitTest(_x, _y + boundHeight, true)) {
while (_root.bound.hitTest(_x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
fall = false;
jump = false;
jumpBack = false;
doubleJump = false;
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
gravity = 0;
}
n++;
}
gravity = gravity + gravAccel;
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
} else {
if ((_root._currentframe == 60) && (saveOnce != true)) {
saveOnce = true;
_root.gameFun.saveGame();
}
if ((fall == false) && (jump == false)) {
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else if (_currentframe < 15) {
if (headHealth < maxHealth) {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < 1) {
if (_currentframe != 19) {
gotoAndStop (19);
}
gore = 0;
} else {
gotoAndStop(14 + (random(2) + 1));
gore = random(3) + 2;
}
} else {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
gotoAndStop(14 + (random(2) + 1));
gore = 0;
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
}
} else {
deadTime++;
if (deadTime > 180) {
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
}
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else {
if (headHealth < 1) {
if (_currentframe != 21) {
xVel = random(8) - 4;
gotoAndStop (21);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
}
} else if (_currentframe != 20) {
xVel = random(8) - 4;
gotoAndStop (20);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < maxHealth) {
gore = random(7) + 2;
}
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
if (!_root.bound.hitTest(_x, _y + boundHeight, true)) {
_y = (_y + gravity);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
} else if (char._currentframe < 8) {
char.gotoAndPlay(8);
}
}
}
}
if (_xscale == 100) {
if (modThing < panMax) {
modThing = modThing + Math.round((panMax - modThing) / 5);
}
} else if (modThing > (-panMax)) {
modThing = modThing - Math.round((panMax + modThing) / 5);
}
pan = -modThing;
times = 0;
while (_x > ((275 + pan) + modifier)) {
if (_root.level._x > (-xMax)) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x > (-(xMax - modifier))) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
}
}
}
times = 0;
while (_x < ((275 + pan) + modifier)) {
if (_root.level._x < xMin) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x < (xMin + modifier)) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
}
}
}
times = 0;
while (_y > (250 + yModifier)) {
if (_root.level._y > (-yMax)) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y > (-(yMax - yModifier))) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
}
}
}
times = 0;
while (_y < (250 + yModifier)) {
if (_root.level._y < yMin) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y < (yMin + yModifier)) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
}
}
}
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
} else {
char.stop();
}
}
Instance of Symbol 1546 MovieClip "obj" in Frame 20
onClipEvent (load) {
i = 0;
gotoAndStop (6);
_x = 0;
_y = 0;
}
Instance of Symbol 1470 MovieClip "swap" in Frame 20
onClipEvent (load) {
gotoAndStop (2);
time = 60;
}
onClipEvent (enterFrame) {
if (time < 20) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1742 MovieClip "screenBox" in Frame 20
onClipEvent (load) {
gotoAndStop (6);
}
Instance of Symbol 508 MovieClip "hBlood" in Frame 20
onClipEvent (load) {
gotoAndStop (2);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
gotoAndStop (1);
if (_alpha > 100) {
_alpha = 100;
}
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1751 MovieClip "ammo" in Frame 20
onClipEvent (enterFrame) {
if (_root.arm.gun != 15) {
if (_root.arm.gun != 35) {
if (amm < 31) {
gotoAndStop(amm + 1);
} else {
gotoAndStop (31);
}
amm2 = amm;
} else {
gotoAndStop (33);
bar._xscale = 100 - _root.arm.coolDown;
}
} else {
gotoAndStop (32);
}
}
Instance of Symbol 1754 MovieClip in Frame 20
onClipEvent (load) {
lev = "Service Tunnel: Central";
_alpha = 0;
time = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (time < 90) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "ammoMes" in Frame 20
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 60) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "mes2" in Frame 20
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 100) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1906 MovieClip "levelDrawArea" in Frame 20
onClipEvent (load) {
_x = 0;
_y = 0;
}
Frame 22
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
stop();
Instance of Symbol 463 MovieClip "level" in Frame 22
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(2000, 2000, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.levelDrawArea);
_root.levelDrawArea.swapDepths(1);
_root.levelDrawArea.removeMovieClip("");
}
Instance of Symbol 1908 MovieClip "bound" in Frame 22
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 1909 MovieClip "lvObj" in Frame 22
onClipEvent (load) {
_x = 0;
_y = 0;
xMax = 1435;
xMin = 0;
yMax = 1550;
yMin = 0;
}
Instance of Symbol 1430 MovieClip "stuff" in Frame 22
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(_width, _height, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.fl);
_root.fl.swapDepths(1000);
_root.fl.removeMovieClip("");
}
Instance of Symbol 1435 MovieClip "cursor" in Frame 22
onClipEvent (load) {
gotoAndStop (3);
Mouse.hide();
}
onClipEvent (enterFrame) {
if (_root.arm.gun == 14) {
if (_currentframe < 3) {
gotoAndStop (3);
}
} else if (_currentframe > 2) {
gotoAndStop (1);
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 957 MovieClip "arm" in Frame 22
onClipEvent (load) {
calculateWeps = function () {
weps = 0;
rr = 0;
while (rr < have.length) {
if ((have[rr] == 1) && (rr != 15)) {
weps = weps + 1;
}
rr++;
}
if (weps == 0) {
gotoAndStop (15);
gun = 15;
_root.wpn = name[gun];
}
};
changeWeapons = function () {
if ((gun == 35) && (weps > 1)) {
coolDown = 0;
}
gunMaxLoop = 1;
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
do {
if (have[gun] == 1) {
break;
}
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
gunMaxLoop++;
} while (gunMaxLoop <= weaponAmt);
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
};
fireFun = function () {
_root.shotsFired[gun] = _root.shotsFired[gun] + 1;
ammo[ammoType[gun]] = ammo[ammoType[gun]] - 1;
_root.character.modifier = random(shake[gun]) + 1;
_root.character.yModifier = random(shake[gun]) + 1;
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
i++;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
} else {
i++;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
}
if (gun != 2) {
if (gun != 35) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
}
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 2 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 3 :
i++;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 4 :
i++;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 5 :
i++;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 6 :
i++;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 7 :
i++;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].tar = drillTarget;
break;
case 8 :
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 9 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 10 :
i++;
duplicateMovieClip (_root.item.beanBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 11 :
i++;
duplicateMovieClip (_root.item.nukeBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i].speed = -10;
ammo[ammoType[gun]] = ammo[ammoType[gun]] + 1;
}
if (_yscale == 100) {
_rotation = (_rotation - int(recoilAng[gun]));
} else {
_rotation = (_rotation + int(recoilAng[gun]));
}
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
}
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
};
name = _root.gameFun.name;
if (_root.achievements[4] == 1) {
name[15] = "Sword";
}
fullAuto = _root.gameFun.fullAuto;
recoil = _root.gameFun.recoil;
recoilAng = _root.gameFun.recoilAng;
recoilRec = _root.gameFun.recoilRec;
recoveryTime = _root.gameFun.recoveryTime;
casing = _root.gameFun.casing;
weaponType = _root.gameFun.weaponType;
pow = _root.gameFun.pow;
shake = _root.gameFun.shake;
inAcc = _root.gameFun.inAcc;
sound = _root.gameFun.sound;
capacity = _root.gameFun.capacity;
ammoName = _root.gameFun.ammoName;
ammoType = _root.gameFun.ammoType;
ready = true;
x = 0;
y = 0;
a = 0;
a2 = 0;
d = 40;
kReady = true;
threeRound = 0;
fire = false;
drillTarget = "";
coolDown = 0;
i = 0;
revolverShots = 0;
weaponAmt = inAcc.length - 1;
mouseListener = new Object();
changeWeapons();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (!Key.isDown(_root.character.k[6])) {
spReady = true;
}
if (Key.isDown(_root.character.k[6]) && (spReady == true)) {
spReady = false;
if (gun != 15) {
weps = weps - 1;
i++;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].rot = _rotation + 90;
_root.item["item" + i].gotoAndStop(gun);
if (ammo[ammoType[gun]] < 1) {
_root.item["item" + i].cap = -1;
} else {
_root.item["item" + i].cap = ammo[ammoType[gun]];
}
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = 25;
have[gun] = 0;
ammo[ammoType[gun]] = -1;
changeWeapons();
}
}
_root.ammo.amm = ammo[ammoType[gun]];
if (_x < (_root.character._x - 10)) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 70) / Math.PI));
_yscale = -100;
_root.character._xscale = -100;
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
if (getDepth() > _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_x > (_root.character._x + 10)) {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 70) / Math.PI));
_yscale = 100;
_root.character._xscale = 100;
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (getDepth() < _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_root.character._xscale == -100) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 30) / Math.PI));
} else {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 30) / Math.PI));
}
if (_yscale == 100) {
a = ((_x - _root._xmouse) + 10) / 3;
} else {
a = ((_x - _root._xmouse) - 10) / 3;
}
x = ((0.9 * x) - x) + a;
a2 = (_y - _root._ymouse) / 3;
y = ((0.9 * y) - y) + a2;
_x = (_x - x);
_y = (_y - y);
dx = _x - _root.character._x;
dy = _y - _root.character._y;
alpha = Math.atan2(dy, dx);
xDis = _root.character._x - _x;
yDis = _root.character._y - _y;
dist = Math.round(Math.sqrt((xDis * xDis) + (yDis * yDis)));
if (Math.abs(dist) > d) {
_x = (_root.character._x + (Math.cos(alpha) * d));
_y = (_root.character._y + (Math.sin(alpha) * d));
}
if (wpn._x < 0) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < 0) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (ammo[ammoType[gun]] > 0) {
if (coolDown < 1) {
fireFun();
}
} else {
fire = false;
_root.sfx.gotoAndPlay(78);
}
}
if ((!Key.isDown(_root.character.k[4])) && (!Key.isDown(_root.character.k[5]))) {
kReady = true;
}
if (kReady == true) {
if (Key.isDown(_root.character.k[4])) {
changeWeapons();
}
if (Key.isDown(_root.character.k[5])) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
}
}
alreadyChangedWeps = false;
mouseListener.onMouseWheel = function (delta) {
trace(delta);
if (delta != 0) {
if (alreadyChangedWeps != true) {
changeWeapons();
alreadyChangedWeps = true;
}
}
};
Mouse.addListener(mouseListener);
if (!Key.isDown(_root.character.k[7])) {
mwReady = true;
}
if (Key.isDown(_root.character.k[7]) && (mwReady == true)) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
mwReady = false;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (gun != 15) {
if (ammo[ammoType[gun]] > 0) {
if (fullAuto[gun] == 0) {
if (coolDown < 1) {
if (gun != 14) {
fireFun();
} else if (drillTarget != "") {
fireFun();
}
}
} else {
fire = true;
}
} else {
_root.sfx.gotoAndPlay(78);
}
} else if (coolDown < 1) {
fireFun();
}
}
}
onClipEvent (mouseUp) {
if (fullAuto[gun] == 1) {
threeRound = 0;
fire = false;
coolDown = 0;
}
}
Instance of Symbol 753 MovieClip "character" in Frame 22
onClipEvent (load) {
_root.gameFun.loadGame();
if (_root.meleeKills > _root.meleeRequirement) {
_root.achievements[4] = 1;
}
createCorpse = function () {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse, "obj" + i, i);
_root.obj["obj" + i]._x = _x - _root.obj._x;
_root.obj["obj" + i]._y = _y - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(_currentframe - 14);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
if (drill == false) {
_root.obj["obj" + i].head.gore.gotoAndStop(gore);
_root.obj["obj" + i].body.gore.gotoAndStop(bodyGore);
}
_root.obj["obj" + i].body.gotoAndStop(body);
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 25) - _root.item._y;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 30) - _root.item._y;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 10) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 15) - _root.item._x;
_root.item["item" + i]._y = (_y + 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x + 15) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = ((_x + _parent._x) - _root.obj._x) - _root.item._x;
_root.obj["obj" + i]._y = ((_y + _parent._y) - _root.obj._y) - _root.item._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
targets = new Array();
xMax = _root.lvObj.xMax;
xMin = _root.lvObj.xMin;
yMax = _root.lvObj.yMax;
yMin = _root.lvObj.yMin;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
modifier = 0;
yModifier = 0;
pan = 0;
panMax = 100;
djkReady = false;
jump = false;
jumpBack = false;
fall = false;
modThing = 0;
doubleJump = false;
gravity = 0;
xVel = 0;
gravAccel = 2;
moveSpeed = 12;
jumpHeight = 24;
hurt = false;
headHurt = false;
health = 50;
deadTime = 0;
if (_root.hardMode == true) {
healthRegen = 0.1;
} else {
healthRegen = 0.2;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
char.play();
if (health > 0) {
if (health < 50) {
health = health + healthRegen;
} else {
health = 50;
}
health = Math.round(health * 10) / 10;
_root.hBlood._alpha = Math.round((70 - health) * 2);
_root.hBlood._alpha = Math.round((50 - health) * 2);
_root.hp = health;
_root.kill = "Kills: " + (kill / _root.multiplier);
myRadians = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
if (((jump == false) && (jumpBack == false)) && (fall == false)) {
if (Key.isDown(k[2])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = -moveSpeed;
if (_xscale == 100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = (-moveSpeed) / 2;
if (_xscale == 100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[3])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = moveSpeed;
if (_xscale == -100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = moveSpeed / 2;
if (_xscale == -100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[1])) {
hurt = false;
headHurt = false;
xVel = 0;
gotoAndStop (10);
} else if ((hurt == false) && (headHurt == false)) {
xVel = 0;
gotoAndStop (1);
}
if (Key.isDown(k[0])) {
hurt = false;
headHurt = false;
djkReady = false;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
if (!_root.bound.hitTest(_x, (_y + boundHeight) + 1, true)) {
fall = true;
}
} else {
if (jump == true) {
if (gravity < 0) {
if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (6);
}
} else if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
if (!Key.isDown(k[0])) {
djkReady = true;
}
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
jump = false;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
} else if (jumpBack == true) {
gotoAndStop (9);
} else if (fall == true) {
if (!Key.isDown(k[0])) {
djkReady = true;
}
gotoAndStop (7);
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
}
if (Key.isDown(k[2])) {
xVel = -moveSpeed;
} else if (Key.isDown(k[3])) {
xVel = moveSpeed;
} else {
xVel = 0;
}
n = 0;
while (n < Math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
} else {
_y = (_y - 1);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
}
if (_root.bound.hitTest(_x, _y + boundHeight, true)) {
while (_root.bound.hitTest(_x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
fall = false;
jump = false;
jumpBack = false;
doubleJump = false;
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
gravity = 0;
}
n++;
}
gravity = gravity + gravAccel;
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
} else {
if ((_root._currentframe == 60) && (saveOnce != true)) {
saveOnce = true;
_root.gameFun.saveGame();
}
if ((fall == false) && (jump == false)) {
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else if (_currentframe < 15) {
if (headHealth < maxHealth) {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < 1) {
if (_currentframe != 19) {
gotoAndStop (19);
}
gore = 0;
} else {
gotoAndStop(14 + (random(2) + 1));
gore = random(3) + 2;
}
} else {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
gotoAndStop(14 + (random(2) + 1));
gore = 0;
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
}
} else {
deadTime++;
if (deadTime > 180) {
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
}
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else {
if (headHealth < 1) {
if (_currentframe != 21) {
xVel = random(8) - 4;
gotoAndStop (21);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
}
} else if (_currentframe != 20) {
xVel = random(8) - 4;
gotoAndStop (20);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < maxHealth) {
gore = random(7) + 2;
}
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
if (!_root.bound.hitTest(_x, _y + boundHeight, true)) {
_y = (_y + gravity);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
} else if (char._currentframe < 8) {
char.gotoAndPlay(8);
}
}
}
}
if (_xscale == 100) {
if (modThing < panMax) {
modThing = modThing + Math.round((panMax - modThing) / 5);
}
} else if (modThing > (-panMax)) {
modThing = modThing - Math.round((panMax + modThing) / 5);
}
pan = -modThing;
times = 0;
while (_x > ((275 + pan) + modifier)) {
if (_root.level._x > (-xMax)) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x > (-(xMax - modifier))) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
}
}
}
times = 0;
while (_x < ((275 + pan) + modifier)) {
if (_root.level._x < xMin) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x < (xMin + modifier)) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
}
}
}
times = 0;
while (_y > (250 + yModifier)) {
if (_root.level._y > (-yMax)) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y > (-(yMax - yModifier))) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
}
}
}
times = 0;
while (_y < (250 + yModifier)) {
if (_root.level._y < yMin) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y < (yMin + yModifier)) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
}
}
}
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
} else {
char.stop();
}
}
Instance of Symbol 1546 MovieClip "obj" in Frame 22
onClipEvent (load) {
i = 0;
gotoAndStop (7);
_x = 0;
_y = 0;
}
Instance of Symbol 1470 MovieClip "swap" in Frame 22
onClipEvent (load) {
gotoAndStop (2);
time = 60;
}
onClipEvent (enterFrame) {
if (time < 20) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1742 MovieClip "screenBox" in Frame 22
onClipEvent (load) {
gotoAndStop (6);
}
Instance of Symbol 508 MovieClip "hBlood" in Frame 22
onClipEvent (load) {
gotoAndStop (2);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
gotoAndStop (1);
if (_alpha > 100) {
_alpha = 100;
}
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1751 MovieClip "ammo" in Frame 22
onClipEvent (enterFrame) {
if (_root.arm.gun != 15) {
if (_root.arm.gun != 35) {
if (amm < 31) {
gotoAndStop(amm + 1);
} else {
gotoAndStop (31);
}
amm2 = amm;
} else {
gotoAndStop (33);
bar._xscale = 100 - _root.arm.coolDown;
}
} else {
gotoAndStop (32);
}
}
Instance of Symbol 1754 MovieClip in Frame 22
onClipEvent (load) {
lev = "Service Tunnel: East";
_alpha = 0;
time = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (time < 90) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "ammoMes" in Frame 22
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 60) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "mes2" in Frame 22
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 100) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1912 MovieClip "levelDrawArea" in Frame 22
onClipEvent (load) {
_x = 0;
_y = 0;
}
Frame 24
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
stop();
Instance of Symbol 1848 MovieClip "lvBG" in Frame 24
onClipEvent (load) {
time = 0;
timeMax = 2000;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
time++;
if (_currentframe != 176) {
play();
}
} else {
stop();
}
}
Instance of Symbol 917 MovieClip "level" in Frame 24
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(2000, 2000, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.levelDrawArea);
_root.levelDrawArea.swapDepths(1);
_root.levelDrawArea.removeMovieClip("");
}
Instance of Symbol 1850 MovieClip "bound" in Frame 24
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 1913 MovieClip "lvObj" in Frame 24
onClipEvent (load) {
_x = 0;
_y = 0;
xMax = 0;
xMin = 0;
yMax = 600;
yMin = -400;
}
Instance of Symbol 1430 MovieClip "stuff" in Frame 24
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(_width, _height, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.fl);
_root.fl.swapDepths(1000);
_root.fl.removeMovieClip("");
}
Instance of Symbol 1435 MovieClip "cursor" in Frame 24
onClipEvent (load) {
gotoAndStop (3);
Mouse.hide();
}
onClipEvent (enterFrame) {
if (_root.arm.gun == 14) {
if (_currentframe < 3) {
gotoAndStop (3);
}
} else if (_currentframe > 2) {
gotoAndStop (1);
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 957 MovieClip "arm" in Frame 24
onClipEvent (load) {
calculateWeps = function () {
weps = 0;
rr = 0;
while (rr < have.length) {
if ((have[rr] == 1) && (rr != 15)) {
weps = weps + 1;
}
rr++;
}
if (weps == 0) {
gotoAndStop (15);
gun = 15;
_root.wpn = name[gun];
}
};
changeWeapons = function () {
if ((gun == 35) && (weps > 1)) {
coolDown = 0;
}
gunMaxLoop = 1;
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
do {
if (have[gun] == 1) {
break;
}
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
gunMaxLoop++;
} while (gunMaxLoop <= weaponAmt);
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
};
fireFun = function () {
_root.shotsFired[gun] = _root.shotsFired[gun] + 1;
ammo[ammoType[gun]] = ammo[ammoType[gun]] - 1;
_root.character.modifier = random(shake[gun]) + 1;
_root.character.yModifier = random(shake[gun]) + 1;
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
i++;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
} else {
i++;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
}
if (gun != 2) {
if (gun != 35) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
}
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 2 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 3 :
i++;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 4 :
i++;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 5 :
i++;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 6 :
i++;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 7 :
i++;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].tar = drillTarget;
break;
case 8 :
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 9 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 10 :
i++;
duplicateMovieClip (_root.item.beanBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 11 :
i++;
duplicateMovieClip (_root.item.nukeBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i].speed = -10;
ammo[ammoType[gun]] = ammo[ammoType[gun]] + 1;
}
if (_yscale == 100) {
_rotation = (_rotation - int(recoilAng[gun]));
} else {
_rotation = (_rotation + int(recoilAng[gun]));
}
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
}
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
};
name = _root.gameFun.name;
if (_root.achievements[4] == 1) {
name[15] = "Sword";
}
fullAuto = _root.gameFun.fullAuto;
recoil = _root.gameFun.recoil;
recoilAng = _root.gameFun.recoilAng;
recoilRec = _root.gameFun.recoilRec;
recoveryTime = _root.gameFun.recoveryTime;
casing = _root.gameFun.casing;
weaponType = _root.gameFun.weaponType;
pow = _root.gameFun.pow;
shake = _root.gameFun.shake;
inAcc = _root.gameFun.inAcc;
sound = _root.gameFun.sound;
capacity = _root.gameFun.capacity;
ammoName = _root.gameFun.ammoName;
ammoType = _root.gameFun.ammoType;
ready = true;
x = 0;
y = 0;
a = 0;
a2 = 0;
d = 40;
kReady = true;
threeRound = 0;
fire = false;
drillTarget = "";
coolDown = 0;
i = 0;
revolverShots = 0;
weaponAmt = inAcc.length - 1;
mouseListener = new Object();
changeWeapons();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (!Key.isDown(_root.character.k[6])) {
spReady = true;
}
if (Key.isDown(_root.character.k[6]) && (spReady == true)) {
spReady = false;
if (gun != 15) {
weps = weps - 1;
i++;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].rot = _rotation + 90;
_root.item["item" + i].gotoAndStop(gun);
if (ammo[ammoType[gun]] < 1) {
_root.item["item" + i].cap = -1;
} else {
_root.item["item" + i].cap = ammo[ammoType[gun]];
}
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = 25;
have[gun] = 0;
ammo[ammoType[gun]] = -1;
changeWeapons();
}
}
_root.ammo.amm = ammo[ammoType[gun]];
if (_x < (_root.character._x - 10)) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 70) / Math.PI));
_yscale = -100;
_root.character._xscale = -100;
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
if (getDepth() > _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_x > (_root.character._x + 10)) {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 70) / Math.PI));
_yscale = 100;
_root.character._xscale = 100;
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (getDepth() < _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_root.character._xscale == -100) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 30) / Math.PI));
} else {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 30) / Math.PI));
}
if (_yscale == 100) {
a = ((_x - _root._xmouse) + 10) / 3;
} else {
a = ((_x - _root._xmouse) - 10) / 3;
}
x = ((0.9 * x) - x) + a;
a2 = (_y - _root._ymouse) / 3;
y = ((0.9 * y) - y) + a2;
_x = (_x - x);
_y = (_y - y);
dx = _x - _root.character._x;
dy = _y - _root.character._y;
alpha = Math.atan2(dy, dx);
xDis = _root.character._x - _x;
yDis = _root.character._y - _y;
dist = Math.round(Math.sqrt((xDis * xDis) + (yDis * yDis)));
if (Math.abs(dist) > d) {
_x = (_root.character._x + (Math.cos(alpha) * d));
_y = (_root.character._y + (Math.sin(alpha) * d));
}
if (wpn._x < 0) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < 0) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (ammo[ammoType[gun]] > 0) {
if (coolDown < 1) {
fireFun();
}
} else {
fire = false;
_root.sfx.gotoAndPlay(78);
}
}
if ((!Key.isDown(_root.character.k[4])) && (!Key.isDown(_root.character.k[5]))) {
kReady = true;
}
if (kReady == true) {
if (Key.isDown(_root.character.k[4])) {
changeWeapons();
}
if (Key.isDown(_root.character.k[5])) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
}
}
alreadyChangedWeps = false;
mouseListener.onMouseWheel = function (delta) {
trace(delta);
if (delta != 0) {
if (alreadyChangedWeps != true) {
changeWeapons();
alreadyChangedWeps = true;
}
}
};
Mouse.addListener(mouseListener);
if (!Key.isDown(_root.character.k[7])) {
mwReady = true;
}
if (Key.isDown(_root.character.k[7]) && (mwReady == true)) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
mwReady = false;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (gun != 15) {
if (ammo[ammoType[gun]] > 0) {
if (fullAuto[gun] == 0) {
if (coolDown < 1) {
if (gun != 14) {
fireFun();
} else if (drillTarget != "") {
fireFun();
}
}
} else {
fire = true;
}
} else {
_root.sfx.gotoAndPlay(78);
}
} else if (coolDown < 1) {
fireFun();
}
}
}
onClipEvent (mouseUp) {
if (fullAuto[gun] == 1) {
threeRound = 0;
fire = false;
coolDown = 0;
}
}
Instance of Symbol 753 MovieClip "character" in Frame 24
onClipEvent (load) {
_root.gameFun.loadGame();
if (_root.meleeKills > _root.meleeRequirement) {
_root.achievements[4] = 1;
}
createCorpse = function () {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse, "obj" + i, i);
_root.obj["obj" + i]._x = _x - _root.obj._x;
_root.obj["obj" + i]._y = _y - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(_currentframe - 14);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
if (drill == false) {
_root.obj["obj" + i].head.gore.gotoAndStop(gore);
_root.obj["obj" + i].body.gore.gotoAndStop(bodyGore);
}
_root.obj["obj" + i].body.gotoAndStop(body);
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 25) - _root.item._y;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 30) - _root.item._y;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 10) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 15) - _root.item._x;
_root.item["item" + i]._y = (_y + 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x + 15) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = ((_x + _parent._x) - _root.obj._x) - _root.item._x;
_root.obj["obj" + i]._y = ((_y + _parent._y) - _root.obj._y) - _root.item._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
targets = new Array();
xMax = _root.lvObj.xMax;
xMin = _root.lvObj.xMin;
yMax = _root.lvObj.yMax;
yMin = _root.lvObj.yMin;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
modifier = 0;
yModifier = 0;
pan = 0;
panMax = 100;
djkReady = false;
jump = false;
jumpBack = false;
fall = false;
modThing = 0;
doubleJump = false;
gravity = 0;
xVel = 0;
gravAccel = 2;
moveSpeed = 12;
jumpHeight = 24;
hurt = false;
headHurt = false;
health = 50;
deadTime = 0;
if (_root.hardMode == true) {
healthRegen = 0.1;
} else {
healthRegen = 0.2;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
char.play();
if (health > 0) {
if (health < 50) {
health = health + healthRegen;
} else {
health = 50;
}
health = Math.round(health * 10) / 10;
_root.hBlood._alpha = Math.round((70 - health) * 2);
_root.hBlood._alpha = Math.round((50 - health) * 2);
_root.hp = health;
_root.kill = "Kills: " + (kill / _root.multiplier);
myRadians = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
if (((jump == false) && (jumpBack == false)) && (fall == false)) {
if (Key.isDown(k[2])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = -moveSpeed;
if (_xscale == 100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = (-moveSpeed) / 2;
if (_xscale == 100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[3])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = moveSpeed;
if (_xscale == -100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = moveSpeed / 2;
if (_xscale == -100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[1])) {
hurt = false;
headHurt = false;
xVel = 0;
gotoAndStop (10);
} else if ((hurt == false) && (headHurt == false)) {
xVel = 0;
gotoAndStop (1);
}
if (Key.isDown(k[0])) {
hurt = false;
headHurt = false;
djkReady = false;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
if (!_root.bound.hitTest(_x, (_y + boundHeight) + 1, true)) {
fall = true;
}
} else {
if (jump == true) {
if (gravity < 0) {
if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (6);
}
} else if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
if (!Key.isDown(k[0])) {
djkReady = true;
}
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
jump = false;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
} else if (jumpBack == true) {
gotoAndStop (9);
} else if (fall == true) {
if (!Key.isDown(k[0])) {
djkReady = true;
}
gotoAndStop (7);
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
}
if (Key.isDown(k[2])) {
xVel = -moveSpeed;
} else if (Key.isDown(k[3])) {
xVel = moveSpeed;
} else {
xVel = 0;
}
n = 0;
while (n < Math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
} else {
_y = (_y - 1);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
}
if (_root.bound.hitTest(_x, _y + boundHeight, true)) {
while (_root.bound.hitTest(_x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
fall = false;
jump = false;
jumpBack = false;
doubleJump = false;
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
gravity = 0;
}
n++;
}
gravity = gravity + gravAccel;
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
} else {
if ((_root._currentframe == 60) && (saveOnce != true)) {
saveOnce = true;
_root.gameFun.saveGame();
}
if ((fall == false) && (jump == false)) {
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else if (_currentframe < 15) {
if (headHealth < maxHealth) {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < 1) {
if (_currentframe != 19) {
gotoAndStop (19);
}
gore = 0;
} else {
gotoAndStop(14 + (random(2) + 1));
gore = random(3) + 2;
}
} else {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
gotoAndStop(14 + (random(2) + 1));
gore = 0;
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
}
} else {
deadTime++;
if (deadTime > 180) {
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
}
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else {
if (headHealth < 1) {
if (_currentframe != 21) {
xVel = random(8) - 4;
gotoAndStop (21);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
}
} else if (_currentframe != 20) {
xVel = random(8) - 4;
gotoAndStop (20);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < maxHealth) {
gore = random(7) + 2;
}
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
if (!_root.bound.hitTest(_x, _y + boundHeight, true)) {
_y = (_y + gravity);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
} else if (char._currentframe < 8) {
char.gotoAndPlay(8);
}
}
}
}
if (_xscale == 100) {
if (modThing < panMax) {
modThing = modThing + Math.round((panMax - modThing) / 5);
}
} else if (modThing > (-panMax)) {
modThing = modThing - Math.round((panMax + modThing) / 5);
}
pan = -modThing;
times = 0;
while (_x > ((275 + pan) + modifier)) {
if (_root.level._x > (-xMax)) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x > (-(xMax - modifier))) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
}
}
}
times = 0;
while (_x < ((275 + pan) + modifier)) {
if (_root.level._x < xMin) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x < (xMin + modifier)) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
}
}
}
times = 0;
while (_y > (250 + yModifier)) {
if (_root.level._y > (-yMax)) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y > (-(yMax - yModifier))) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
}
}
}
times = 0;
while (_y < (250 + yModifier)) {
if (_root.level._y < yMin) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y < (yMin + yModifier)) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
}
}
}
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
} else {
char.stop();
}
}
Instance of Symbol 1546 MovieClip "obj" in Frame 24
onClipEvent (load) {
i = 0;
gotoAndStop (4);
_x = 0;
_y = 0;
}
Instance of Symbol 1470 MovieClip "swap" in Frame 24
onClipEvent (load) {
gotoAndStop (2);
time = 60;
}
onClipEvent (enterFrame) {
if (time < 20) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1742 MovieClip "screenBox" in Frame 24
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 508 MovieClip "hBlood" in Frame 24
onClipEvent (load) {
gotoAndStop (2);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
gotoAndStop (1);
if (_alpha > 100) {
_alpha = 100;
}
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1751 MovieClip "ammo" in Frame 24
onClipEvent (enterFrame) {
if (_root.arm.gun != 15) {
if (_root.arm.gun != 35) {
if (amm < 31) {
gotoAndStop(amm + 1);
} else {
gotoAndStop (31);
}
amm2 = amm;
} else {
gotoAndStop (33);
bar._xscale = 100 - _root.arm.coolDown;
}
} else {
gotoAndStop (32);
}
}
Instance of Symbol 1754 MovieClip in Frame 24
onClipEvent (load) {
lev = "Office Cargo Elevator";
_alpha = 0;
time = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (time < 90) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "ammoMes" in Frame 24
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 60) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "mes2" in Frame 24
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 100) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1926 MovieClip "levelDrawArea" in Frame 24
onClipEvent (load) {
_x = 0;
_y = 0;
}
Frame 26
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
stop();
Instance of Symbol 463 MovieClip "level" in Frame 26
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(2000, 2000, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.levelDrawArea);
_root.levelDrawArea.swapDepths(1);
_root.levelDrawArea.removeMovieClip("");
}
Instance of Symbol 1966 MovieClip "bound" in Frame 26
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 1967 MovieClip "lvObj" in Frame 26
onClipEvent (load) {
_x = 0;
_y = 0;
xMax = 1435;
xMin = 0;
yMax = 1550;
yMin = 0;
}
Instance of Symbol 1430 MovieClip "stuff" in Frame 26
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(_width, _height, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.fl);
_root.fl.swapDepths(1000);
_root.fl.removeMovieClip("");
}
Instance of Symbol 1435 MovieClip "cursor" in Frame 26
onClipEvent (load) {
gotoAndStop (3);
Mouse.hide();
}
onClipEvent (enterFrame) {
if (_root.arm.gun == 14) {
if (_currentframe < 3) {
gotoAndStop (3);
}
} else if (_currentframe > 2) {
gotoAndStop (1);
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 957 MovieClip "arm" in Frame 26
onClipEvent (load) {
calculateWeps = function () {
weps = 0;
rr = 0;
while (rr < have.length) {
if ((have[rr] == 1) && (rr != 15)) {
weps = weps + 1;
}
rr++;
}
if (weps == 0) {
gotoAndStop (15);
gun = 15;
_root.wpn = name[gun];
}
};
changeWeapons = function () {
if ((gun == 35) && (weps > 1)) {
coolDown = 0;
}
gunMaxLoop = 1;
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
do {
if (have[gun] == 1) {
break;
}
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
gunMaxLoop++;
} while (gunMaxLoop <= weaponAmt);
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
};
fireFun = function () {
_root.shotsFired[gun] = _root.shotsFired[gun] + 1;
ammo[ammoType[gun]] = ammo[ammoType[gun]] - 1;
_root.character.modifier = random(shake[gun]) + 1;
_root.character.yModifier = random(shake[gun]) + 1;
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
i++;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
} else {
i++;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
}
if (gun != 2) {
if (gun != 35) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
}
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 2 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 3 :
i++;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 4 :
i++;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 5 :
i++;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 6 :
i++;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 7 :
i++;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].tar = drillTarget;
break;
case 8 :
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 9 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 10 :
i++;
duplicateMovieClip (_root.item.beanBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 11 :
i++;
duplicateMovieClip (_root.item.nukeBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i].speed = -10;
ammo[ammoType[gun]] = ammo[ammoType[gun]] + 1;
}
if (_yscale == 100) {
_rotation = (_rotation - int(recoilAng[gun]));
} else {
_rotation = (_rotation + int(recoilAng[gun]));
}
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
}
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
};
name = _root.gameFun.name;
if (_root.achievements[4] == 1) {
name[15] = "Sword";
}
fullAuto = _root.gameFun.fullAuto;
recoil = _root.gameFun.recoil;
recoilAng = _root.gameFun.recoilAng;
recoilRec = _root.gameFun.recoilRec;
recoveryTime = _root.gameFun.recoveryTime;
casing = _root.gameFun.casing;
weaponType = _root.gameFun.weaponType;
pow = _root.gameFun.pow;
shake = _root.gameFun.shake;
inAcc = _root.gameFun.inAcc;
sound = _root.gameFun.sound;
capacity = _root.gameFun.capacity;
ammoName = _root.gameFun.ammoName;
ammoType = _root.gameFun.ammoType;
ready = true;
x = 0;
y = 0;
a = 0;
a2 = 0;
d = 40;
kReady = true;
threeRound = 0;
fire = false;
drillTarget = "";
coolDown = 0;
i = 0;
revolverShots = 0;
weaponAmt = inAcc.length - 1;
mouseListener = new Object();
changeWeapons();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (!Key.isDown(_root.character.k[6])) {
spReady = true;
}
if (Key.isDown(_root.character.k[6]) && (spReady == true)) {
spReady = false;
if (gun != 15) {
weps = weps - 1;
i++;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].rot = _rotation + 90;
_root.item["item" + i].gotoAndStop(gun);
if (ammo[ammoType[gun]] < 1) {
_root.item["item" + i].cap = -1;
} else {
_root.item["item" + i].cap = ammo[ammoType[gun]];
}
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = 25;
have[gun] = 0;
ammo[ammoType[gun]] = -1;
changeWeapons();
}
}
_root.ammo.amm = ammo[ammoType[gun]];
if (_x < (_root.character._x - 10)) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 70) / Math.PI));
_yscale = -100;
_root.character._xscale = -100;
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
if (getDepth() > _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_x > (_root.character._x + 10)) {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 70) / Math.PI));
_yscale = 100;
_root.character._xscale = 100;
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (getDepth() < _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_root.character._xscale == -100) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 30) / Math.PI));
} else {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 30) / Math.PI));
}
if (_yscale == 100) {
a = ((_x - _root._xmouse) + 10) / 3;
} else {
a = ((_x - _root._xmouse) - 10) / 3;
}
x = ((0.9 * x) - x) + a;
a2 = (_y - _root._ymouse) / 3;
y = ((0.9 * y) - y) + a2;
_x = (_x - x);
_y = (_y - y);
dx = _x - _root.character._x;
dy = _y - _root.character._y;
alpha = Math.atan2(dy, dx);
xDis = _root.character._x - _x;
yDis = _root.character._y - _y;
dist = Math.round(Math.sqrt((xDis * xDis) + (yDis * yDis)));
if (Math.abs(dist) > d) {
_x = (_root.character._x + (Math.cos(alpha) * d));
_y = (_root.character._y + (Math.sin(alpha) * d));
}
if (wpn._x < 0) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < 0) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (ammo[ammoType[gun]] > 0) {
if (coolDown < 1) {
fireFun();
}
} else {
fire = false;
_root.sfx.gotoAndPlay(78);
}
}
if ((!Key.isDown(_root.character.k[4])) && (!Key.isDown(_root.character.k[5]))) {
kReady = true;
}
if (kReady == true) {
if (Key.isDown(_root.character.k[4])) {
changeWeapons();
}
if (Key.isDown(_root.character.k[5])) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
}
}
alreadyChangedWeps = false;
mouseListener.onMouseWheel = function (delta) {
trace(delta);
if (delta != 0) {
if (alreadyChangedWeps != true) {
changeWeapons();
alreadyChangedWeps = true;
}
}
};
Mouse.addListener(mouseListener);
if (!Key.isDown(_root.character.k[7])) {
mwReady = true;
}
if (Key.isDown(_root.character.k[7]) && (mwReady == true)) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
mwReady = false;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (gun != 15) {
if (ammo[ammoType[gun]] > 0) {
if (fullAuto[gun] == 0) {
if (coolDown < 1) {
if (gun != 14) {
fireFun();
} else if (drillTarget != "") {
fireFun();
}
}
} else {
fire = true;
}
} else {
_root.sfx.gotoAndPlay(78);
}
} else if (coolDown < 1) {
fireFun();
}
}
}
onClipEvent (mouseUp) {
if (fullAuto[gun] == 1) {
threeRound = 0;
fire = false;
coolDown = 0;
}
}
Instance of Symbol 753 MovieClip "character" in Frame 26
onClipEvent (load) {
_root.gameFun.loadGame();
if (_root.meleeKills > _root.meleeRequirement) {
_root.achievements[4] = 1;
}
createCorpse = function () {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse, "obj" + i, i);
_root.obj["obj" + i]._x = _x - _root.obj._x;
_root.obj["obj" + i]._y = _y - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(_currentframe - 14);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
if (drill == false) {
_root.obj["obj" + i].head.gore.gotoAndStop(gore);
_root.obj["obj" + i].body.gore.gotoAndStop(bodyGore);
}
_root.obj["obj" + i].body.gotoAndStop(body);
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 25) - _root.item._y;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 30) - _root.item._y;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 10) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 15) - _root.item._x;
_root.item["item" + i]._y = (_y + 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x + 15) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = ((_x + _parent._x) - _root.obj._x) - _root.item._x;
_root.obj["obj" + i]._y = ((_y + _parent._y) - _root.obj._y) - _root.item._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
targets = new Array();
xMax = _root.lvObj.xMax;
xMin = _root.lvObj.xMin;
yMax = _root.lvObj.yMax;
yMin = _root.lvObj.yMin;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
modifier = 0;
yModifier = 0;
pan = 0;
panMax = 100;
djkReady = false;
jump = false;
jumpBack = false;
fall = false;
modThing = 0;
doubleJump = false;
gravity = 0;
xVel = 0;
gravAccel = 2;
moveSpeed = 12;
jumpHeight = 24;
hurt = false;
headHurt = false;
health = 50;
deadTime = 0;
if (_root.hardMode == true) {
healthRegen = 0.1;
} else {
healthRegen = 0.2;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
char.play();
if (health > 0) {
if (health < 50) {
health = health + healthRegen;
} else {
health = 50;
}
health = Math.round(health * 10) / 10;
_root.hBlood._alpha = Math.round((70 - health) * 2);
_root.hBlood._alpha = Math.round((50 - health) * 2);
_root.hp = health;
_root.kill = "Kills: " + (kill / _root.multiplier);
myRadians = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
if (((jump == false) && (jumpBack == false)) && (fall == false)) {
if (Key.isDown(k[2])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = -moveSpeed;
if (_xscale == 100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = (-moveSpeed) / 2;
if (_xscale == 100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[3])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = moveSpeed;
if (_xscale == -100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = moveSpeed / 2;
if (_xscale == -100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[1])) {
hurt = false;
headHurt = false;
xVel = 0;
gotoAndStop (10);
} else if ((hurt == false) && (headHurt == false)) {
xVel = 0;
gotoAndStop (1);
}
if (Key.isDown(k[0])) {
hurt = false;
headHurt = false;
djkReady = false;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
if (!_root.bound.hitTest(_x, (_y + boundHeight) + 1, true)) {
fall = true;
}
} else {
if (jump == true) {
if (gravity < 0) {
if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (6);
}
} else if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
if (!Key.isDown(k[0])) {
djkReady = true;
}
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
jump = false;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
} else if (jumpBack == true) {
gotoAndStop (9);
} else if (fall == true) {
if (!Key.isDown(k[0])) {
djkReady = true;
}
gotoAndStop (7);
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
}
if (Key.isDown(k[2])) {
xVel = -moveSpeed;
} else if (Key.isDown(k[3])) {
xVel = moveSpeed;
} else {
xVel = 0;
}
n = 0;
while (n < Math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
} else {
_y = (_y - 1);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
}
if (_root.bound.hitTest(_x, _y + boundHeight, true)) {
while (_root.bound.hitTest(_x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
fall = false;
jump = false;
jumpBack = false;
doubleJump = false;
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
gravity = 0;
}
n++;
}
gravity = gravity + gravAccel;
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
} else {
if ((_root._currentframe == 60) && (saveOnce != true)) {
saveOnce = true;
_root.gameFun.saveGame();
}
if ((fall == false) && (jump == false)) {
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else if (_currentframe < 15) {
if (headHealth < maxHealth) {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < 1) {
if (_currentframe != 19) {
gotoAndStop (19);
}
gore = 0;
} else {
gotoAndStop(14 + (random(2) + 1));
gore = random(3) + 2;
}
} else {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
gotoAndStop(14 + (random(2) + 1));
gore = 0;
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
}
} else {
deadTime++;
if (deadTime > 180) {
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
}
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else {
if (headHealth < 1) {
if (_currentframe != 21) {
xVel = random(8) - 4;
gotoAndStop (21);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
}
} else if (_currentframe != 20) {
xVel = random(8) - 4;
gotoAndStop (20);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < maxHealth) {
gore = random(7) + 2;
}
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
if (!_root.bound.hitTest(_x, _y + boundHeight, true)) {
_y = (_y + gravity);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
} else if (char._currentframe < 8) {
char.gotoAndPlay(8);
}
}
}
}
if (_xscale == 100) {
if (modThing < panMax) {
modThing = modThing + Math.round((panMax - modThing) / 5);
}
} else if (modThing > (-panMax)) {
modThing = modThing - Math.round((panMax + modThing) / 5);
}
pan = -modThing;
times = 0;
while (_x > ((275 + pan) + modifier)) {
if (_root.level._x > (-xMax)) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x > (-(xMax - modifier))) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
}
}
}
times = 0;
while (_x < ((275 + pan) + modifier)) {
if (_root.level._x < xMin) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x < (xMin + modifier)) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
}
}
}
times = 0;
while (_y > (250 + yModifier)) {
if (_root.level._y > (-yMax)) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y > (-(yMax - yModifier))) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
}
}
}
times = 0;
while (_y < (250 + yModifier)) {
if (_root.level._y < yMin) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y < (yMin + yModifier)) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
}
}
}
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
} else {
char.stop();
}
}
Instance of Symbol 1546 MovieClip "obj" in Frame 26
onClipEvent (load) {
i = 0;
gotoAndStop (8);
_x = 0;
_y = 0;
}
Instance of Symbol 1470 MovieClip "swap" in Frame 26
onClipEvent (load) {
gotoAndStop (2);
time = 60;
}
onClipEvent (enterFrame) {
if (time < 20) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1742 MovieClip "screenBox" in Frame 26
onClipEvent (load) {
gotoAndStop (6);
}
Instance of Symbol 508 MovieClip "hBlood" in Frame 26
onClipEvent (load) {
gotoAndStop (2);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
gotoAndStop (1);
if (_alpha > 100) {
_alpha = 100;
}
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1751 MovieClip "ammo" in Frame 26
onClipEvent (enterFrame) {
if (_root.arm.gun != 15) {
if (_root.arm.gun != 35) {
if (amm < 31) {
gotoAndStop(amm + 1);
} else {
gotoAndStop (31);
}
amm2 = amm;
} else {
gotoAndStop (33);
bar._xscale = 100 - _root.arm.coolDown;
}
} else {
gotoAndStop (32);
}
}
Instance of Symbol 1754 MovieClip in Frame 26
onClipEvent (load) {
lev = "Systems Corp. Offices: West Wing";
_alpha = 0;
time = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (time < 90) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "ammoMes" in Frame 26
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 60) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "mes2" in Frame 26
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 100) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1972 MovieClip "levelDrawArea" in Frame 26
onClipEvent (load) {
_x = 0;
_y = 0;
}
Frame 28
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
stop();
Instance of Symbol 463 MovieClip "level" in Frame 28
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(2000, 2000, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.levelDrawArea);
_root.levelDrawArea.swapDepths(1);
_root.levelDrawArea.removeMovieClip("");
}
Instance of Symbol 1974 MovieClip "bound" in Frame 28
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 1975 MovieClip "lvObj" in Frame 28
onClipEvent (load) {
_x = 0;
_y = 0;
xMax = 1435;
xMin = 0;
yMax = 1550;
yMin = 0;
}
Instance of Symbol 1430 MovieClip "stuff" in Frame 28
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(_width, _height, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.fl);
_root.fl.swapDepths(1000);
_root.fl.removeMovieClip("");
}
Instance of Symbol 1435 MovieClip "cursor" in Frame 28
onClipEvent (load) {
gotoAndStop (3);
Mouse.hide();
}
onClipEvent (enterFrame) {
if (_root.arm.gun == 14) {
if (_currentframe < 3) {
gotoAndStop (3);
}
} else if (_currentframe > 2) {
gotoAndStop (1);
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 957 MovieClip "arm" in Frame 28
onClipEvent (load) {
calculateWeps = function () {
weps = 0;
rr = 0;
while (rr < have.length) {
if ((have[rr] == 1) && (rr != 15)) {
weps = weps + 1;
}
rr++;
}
if (weps == 0) {
gotoAndStop (15);
gun = 15;
_root.wpn = name[gun];
}
};
changeWeapons = function () {
if ((gun == 35) && (weps > 1)) {
coolDown = 0;
}
gunMaxLoop = 1;
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
do {
if (have[gun] == 1) {
break;
}
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
gunMaxLoop++;
} while (gunMaxLoop <= weaponAmt);
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
};
fireFun = function () {
_root.shotsFired[gun] = _root.shotsFired[gun] + 1;
ammo[ammoType[gun]] = ammo[ammoType[gun]] - 1;
_root.character.modifier = random(shake[gun]) + 1;
_root.character.yModifier = random(shake[gun]) + 1;
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
i++;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
} else {
i++;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
}
if (gun != 2) {
if (gun != 35) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
}
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 2 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 3 :
i++;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 4 :
i++;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 5 :
i++;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 6 :
i++;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 7 :
i++;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].tar = drillTarget;
break;
case 8 :
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 9 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 10 :
i++;
duplicateMovieClip (_root.item.beanBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 11 :
i++;
duplicateMovieClip (_root.item.nukeBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i].speed = -10;
ammo[ammoType[gun]] = ammo[ammoType[gun]] + 1;
}
if (_yscale == 100) {
_rotation = (_rotation - int(recoilAng[gun]));
} else {
_rotation = (_rotation + int(recoilAng[gun]));
}
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
}
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
};
name = _root.gameFun.name;
if (_root.achievements[4] == 1) {
name[15] = "Sword";
}
fullAuto = _root.gameFun.fullAuto;
recoil = _root.gameFun.recoil;
recoilAng = _root.gameFun.recoilAng;
recoilRec = _root.gameFun.recoilRec;
recoveryTime = _root.gameFun.recoveryTime;
casing = _root.gameFun.casing;
weaponType = _root.gameFun.weaponType;
pow = _root.gameFun.pow;
shake = _root.gameFun.shake;
inAcc = _root.gameFun.inAcc;
sound = _root.gameFun.sound;
capacity = _root.gameFun.capacity;
ammoName = _root.gameFun.ammoName;
ammoType = _root.gameFun.ammoType;
ready = true;
x = 0;
y = 0;
a = 0;
a2 = 0;
d = 40;
kReady = true;
threeRound = 0;
fire = false;
drillTarget = "";
coolDown = 0;
i = 0;
revolverShots = 0;
weaponAmt = inAcc.length - 1;
mouseListener = new Object();
changeWeapons();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (!Key.isDown(_root.character.k[6])) {
spReady = true;
}
if (Key.isDown(_root.character.k[6]) && (spReady == true)) {
spReady = false;
if (gun != 15) {
weps = weps - 1;
i++;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].rot = _rotation + 90;
_root.item["item" + i].gotoAndStop(gun);
if (ammo[ammoType[gun]] < 1) {
_root.item["item" + i].cap = -1;
} else {
_root.item["item" + i].cap = ammo[ammoType[gun]];
}
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = 25;
have[gun] = 0;
ammo[ammoType[gun]] = -1;
changeWeapons();
}
}
_root.ammo.amm = ammo[ammoType[gun]];
if (_x < (_root.character._x - 10)) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 70) / Math.PI));
_yscale = -100;
_root.character._xscale = -100;
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
if (getDepth() > _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_x > (_root.character._x + 10)) {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 70) / Math.PI));
_yscale = 100;
_root.character._xscale = 100;
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (getDepth() < _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_root.character._xscale == -100) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 30) / Math.PI));
} else {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 30) / Math.PI));
}
if (_yscale == 100) {
a = ((_x - _root._xmouse) + 10) / 3;
} else {
a = ((_x - _root._xmouse) - 10) / 3;
}
x = ((0.9 * x) - x) + a;
a2 = (_y - _root._ymouse) / 3;
y = ((0.9 * y) - y) + a2;
_x = (_x - x);
_y = (_y - y);
dx = _x - _root.character._x;
dy = _y - _root.character._y;
alpha = Math.atan2(dy, dx);
xDis = _root.character._x - _x;
yDis = _root.character._y - _y;
dist = Math.round(Math.sqrt((xDis * xDis) + (yDis * yDis)));
if (Math.abs(dist) > d) {
_x = (_root.character._x + (Math.cos(alpha) * d));
_y = (_root.character._y + (Math.sin(alpha) * d));
}
if (wpn._x < 0) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < 0) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (ammo[ammoType[gun]] > 0) {
if (coolDown < 1) {
fireFun();
}
} else {
fire = false;
_root.sfx.gotoAndPlay(78);
}
}
if ((!Key.isDown(_root.character.k[4])) && (!Key.isDown(_root.character.k[5]))) {
kReady = true;
}
if (kReady == true) {
if (Key.isDown(_root.character.k[4])) {
changeWeapons();
}
if (Key.isDown(_root.character.k[5])) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
}
}
alreadyChangedWeps = false;
mouseListener.onMouseWheel = function (delta) {
trace(delta);
if (delta != 0) {
if (alreadyChangedWeps != true) {
changeWeapons();
alreadyChangedWeps = true;
}
}
};
Mouse.addListener(mouseListener);
if (!Key.isDown(_root.character.k[7])) {
mwReady = true;
}
if (Key.isDown(_root.character.k[7]) && (mwReady == true)) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
mwReady = false;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (gun != 15) {
if (ammo[ammoType[gun]] > 0) {
if (fullAuto[gun] == 0) {
if (coolDown < 1) {
if (gun != 14) {
fireFun();
} else if (drillTarget != "") {
fireFun();
}
}
} else {
fire = true;
}
} else {
_root.sfx.gotoAndPlay(78);
}
} else if (coolDown < 1) {
fireFun();
}
}
}
onClipEvent (mouseUp) {
if (fullAuto[gun] == 1) {
threeRound = 0;
fire = false;
coolDown = 0;
}
}
Instance of Symbol 753 MovieClip "character" in Frame 28
onClipEvent (load) {
_root.gameFun.loadGame();
if (_root.meleeKills > _root.meleeRequirement) {
_root.achievements[4] = 1;
}
createCorpse = function () {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse, "obj" + i, i);
_root.obj["obj" + i]._x = _x - _root.obj._x;
_root.obj["obj" + i]._y = _y - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(_currentframe - 14);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
if (drill == false) {
_root.obj["obj" + i].head.gore.gotoAndStop(gore);
_root.obj["obj" + i].body.gore.gotoAndStop(bodyGore);
}
_root.obj["obj" + i].body.gotoAndStop(body);
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 25) - _root.item._y;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 30) - _root.item._y;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 10) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 15) - _root.item._x;
_root.item["item" + i]._y = (_y + 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x + 15) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = ((_x + _parent._x) - _root.obj._x) - _root.item._x;
_root.obj["obj" + i]._y = ((_y + _parent._y) - _root.obj._y) - _root.item._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
targets = new Array();
xMax = _root.lvObj.xMax;
xMin = _root.lvObj.xMin;
yMax = _root.lvObj.yMax;
yMin = _root.lvObj.yMin;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
modifier = 0;
yModifier = 0;
pan = 0;
panMax = 100;
djkReady = false;
jump = false;
jumpBack = false;
fall = false;
modThing = 0;
doubleJump = false;
gravity = 0;
xVel = 0;
gravAccel = 2;
moveSpeed = 12;
jumpHeight = 24;
hurt = false;
headHurt = false;
health = 50;
deadTime = 0;
if (_root.hardMode == true) {
healthRegen = 0.1;
} else {
healthRegen = 0.2;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
char.play();
if (health > 0) {
if (health < 50) {
health = health + healthRegen;
} else {
health = 50;
}
health = Math.round(health * 10) / 10;
_root.hBlood._alpha = Math.round((70 - health) * 2);
_root.hBlood._alpha = Math.round((50 - health) * 2);
_root.hp = health;
_root.kill = "Kills: " + (kill / _root.multiplier);
myRadians = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
if (((jump == false) && (jumpBack == false)) && (fall == false)) {
if (Key.isDown(k[2])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = -moveSpeed;
if (_xscale == 100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = (-moveSpeed) / 2;
if (_xscale == 100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[3])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = moveSpeed;
if (_xscale == -100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = moveSpeed / 2;
if (_xscale == -100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[1])) {
hurt = false;
headHurt = false;
xVel = 0;
gotoAndStop (10);
} else if ((hurt == false) && (headHurt == false)) {
xVel = 0;
gotoAndStop (1);
}
if (Key.isDown(k[0])) {
hurt = false;
headHurt = false;
djkReady = false;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
if (!_root.bound.hitTest(_x, (_y + boundHeight) + 1, true)) {
fall = true;
}
} else {
if (jump == true) {
if (gravity < 0) {
if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (6);
}
} else if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
if (!Key.isDown(k[0])) {
djkReady = true;
}
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
jump = false;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
} else if (jumpBack == true) {
gotoAndStop (9);
} else if (fall == true) {
if (!Key.isDown(k[0])) {
djkReady = true;
}
gotoAndStop (7);
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
}
if (Key.isDown(k[2])) {
xVel = -moveSpeed;
} else if (Key.isDown(k[3])) {
xVel = moveSpeed;
} else {
xVel = 0;
}
n = 0;
while (n < Math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
} else {
_y = (_y - 1);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
}
if (_root.bound.hitTest(_x, _y + boundHeight, true)) {
while (_root.bound.hitTest(_x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
fall = false;
jump = false;
jumpBack = false;
doubleJump = false;
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
gravity = 0;
}
n++;
}
gravity = gravity + gravAccel;
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
} else {
if ((_root._currentframe == 60) && (saveOnce != true)) {
saveOnce = true;
_root.gameFun.saveGame();
}
if ((fall == false) && (jump == false)) {
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else if (_currentframe < 15) {
if (headHealth < maxHealth) {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < 1) {
if (_currentframe != 19) {
gotoAndStop (19);
}
gore = 0;
} else {
gotoAndStop(14 + (random(2) + 1));
gore = random(3) + 2;
}
} else {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
gotoAndStop(14 + (random(2) + 1));
gore = 0;
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
}
} else {
deadTime++;
if (deadTime > 180) {
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
}
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else {
if (headHealth < 1) {
if (_currentframe != 21) {
xVel = random(8) - 4;
gotoAndStop (21);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
}
} else if (_currentframe != 20) {
xVel = random(8) - 4;
gotoAndStop (20);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < maxHealth) {
gore = random(7) + 2;
}
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
if (!_root.bound.hitTest(_x, _y + boundHeight, true)) {
_y = (_y + gravity);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
} else if (char._currentframe < 8) {
char.gotoAndPlay(8);
}
}
}
}
if (_xscale == 100) {
if (modThing < panMax) {
modThing = modThing + Math.round((panMax - modThing) / 5);
}
} else if (modThing > (-panMax)) {
modThing = modThing - Math.round((panMax + modThing) / 5);
}
pan = -modThing;
times = 0;
while (_x > ((275 + pan) + modifier)) {
if (_root.level._x > (-xMax)) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x > (-(xMax - modifier))) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
}
}
}
times = 0;
while (_x < ((275 + pan) + modifier)) {
if (_root.level._x < xMin) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x < (xMin + modifier)) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
}
}
}
times = 0;
while (_y > (250 + yModifier)) {
if (_root.level._y > (-yMax)) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y > (-(yMax - yModifier))) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
}
}
}
times = 0;
while (_y < (250 + yModifier)) {
if (_root.level._y < yMin) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y < (yMin + yModifier)) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
}
}
}
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
} else {
char.stop();
}
}
Instance of Symbol 1546 MovieClip "obj" in Frame 28
onClipEvent (load) {
i = 0;
gotoAndStop (9);
_x = 0;
_y = 0;
}
Instance of Symbol 1470 MovieClip "swap" in Frame 28
onClipEvent (load) {
gotoAndStop (2);
time = 60;
}
onClipEvent (enterFrame) {
if (time < 20) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1742 MovieClip "screenBox" in Frame 28
onClipEvent (load) {
gotoAndStop (6);
}
Instance of Symbol 508 MovieClip "hBlood" in Frame 28
onClipEvent (load) {
gotoAndStop (2);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
gotoAndStop (1);
if (_alpha > 100) {
_alpha = 100;
}
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1751 MovieClip "ammo" in Frame 28
onClipEvent (enterFrame) {
if (_root.arm.gun != 15) {
if (_root.arm.gun != 35) {
if (amm < 31) {
gotoAndStop(amm + 1);
} else {
gotoAndStop (31);
}
amm2 = amm;
} else {
gotoAndStop (33);
bar._xscale = 100 - _root.arm.coolDown;
}
} else {
gotoAndStop (32);
}
}
Instance of Symbol 1754 MovieClip in Frame 28
onClipEvent (load) {
lev = "Systems Corp. Offices: Central Wing";
_alpha = 0;
time = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (time < 90) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "ammoMes" in Frame 28
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 60) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "mes2" in Frame 28
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 100) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1980 MovieClip "levelDrawArea" in Frame 28
onClipEvent (load) {
_x = 0;
_y = 0;
}
Frame 30
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
stop();
Instance of Symbol 463 MovieClip "level" in Frame 30
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(2000, 2000, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.levelDrawArea);
_root.levelDrawArea.swapDepths(1);
_root.levelDrawArea.removeMovieClip("");
}
Instance of Symbol 1982 MovieClip "bound" in Frame 30
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 1983 MovieClip "lvObj" in Frame 30
onClipEvent (load) {
_x = 0;
_y = 0;
xMax = 1435;
xMin = 0;
yMax = 1550;
yMin = 0;
}
Instance of Symbol 1430 MovieClip "stuff" in Frame 30
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(_width, _height, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.fl);
_root.fl.swapDepths(1000);
_root.fl.removeMovieClip("");
}
Instance of Symbol 1435 MovieClip "cursor" in Frame 30
onClipEvent (load) {
gotoAndStop (3);
Mouse.hide();
}
onClipEvent (enterFrame) {
if (_root.arm.gun == 14) {
if (_currentframe < 3) {
gotoAndStop (3);
}
} else if (_currentframe > 2) {
gotoAndStop (1);
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 957 MovieClip "arm" in Frame 30
onClipEvent (load) {
calculateWeps = function () {
weps = 0;
rr = 0;
while (rr < have.length) {
if ((have[rr] == 1) && (rr != 15)) {
weps = weps + 1;
}
rr++;
}
if (weps == 0) {
gotoAndStop (15);
gun = 15;
_root.wpn = name[gun];
}
};
changeWeapons = function () {
if ((gun == 35) && (weps > 1)) {
coolDown = 0;
}
gunMaxLoop = 1;
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
do {
if (have[gun] == 1) {
break;
}
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
gunMaxLoop++;
} while (gunMaxLoop <= weaponAmt);
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
};
fireFun = function () {
_root.shotsFired[gun] = _root.shotsFired[gun] + 1;
ammo[ammoType[gun]] = ammo[ammoType[gun]] - 1;
_root.character.modifier = random(shake[gun]) + 1;
_root.character.yModifier = random(shake[gun]) + 1;
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
i++;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
} else {
i++;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
}
if (gun != 2) {
if (gun != 35) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
}
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 2 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 3 :
i++;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 4 :
i++;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 5 :
i++;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 6 :
i++;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 7 :
i++;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].tar = drillTarget;
break;
case 8 :
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 9 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 10 :
i++;
duplicateMovieClip (_root.item.beanBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 11 :
i++;
duplicateMovieClip (_root.item.nukeBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i].speed = -10;
ammo[ammoType[gun]] = ammo[ammoType[gun]] + 1;
}
if (_yscale == 100) {
_rotation = (_rotation - int(recoilAng[gun]));
} else {
_rotation = (_rotation + int(recoilAng[gun]));
}
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
}
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
};
name = _root.gameFun.name;
if (_root.achievements[4] == 1) {
name[15] = "Sword";
}
fullAuto = _root.gameFun.fullAuto;
recoil = _root.gameFun.recoil;
recoilAng = _root.gameFun.recoilAng;
recoilRec = _root.gameFun.recoilRec;
recoveryTime = _root.gameFun.recoveryTime;
casing = _root.gameFun.casing;
weaponType = _root.gameFun.weaponType;
pow = _root.gameFun.pow;
shake = _root.gameFun.shake;
inAcc = _root.gameFun.inAcc;
sound = _root.gameFun.sound;
capacity = _root.gameFun.capacity;
ammoName = _root.gameFun.ammoName;
ammoType = _root.gameFun.ammoType;
ready = true;
x = 0;
y = 0;
a = 0;
a2 = 0;
d = 40;
kReady = true;
threeRound = 0;
fire = false;
drillTarget = "";
coolDown = 0;
i = 0;
revolverShots = 0;
weaponAmt = inAcc.length - 1;
mouseListener = new Object();
changeWeapons();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (!Key.isDown(_root.character.k[6])) {
spReady = true;
}
if (Key.isDown(_root.character.k[6]) && (spReady == true)) {
spReady = false;
if (gun != 15) {
weps = weps - 1;
i++;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].rot = _rotation + 90;
_root.item["item" + i].gotoAndStop(gun);
if (ammo[ammoType[gun]] < 1) {
_root.item["item" + i].cap = -1;
} else {
_root.item["item" + i].cap = ammo[ammoType[gun]];
}
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = 25;
have[gun] = 0;
ammo[ammoType[gun]] = -1;
changeWeapons();
}
}
_root.ammo.amm = ammo[ammoType[gun]];
if (_x < (_root.character._x - 10)) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 70) / Math.PI));
_yscale = -100;
_root.character._xscale = -100;
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
if (getDepth() > _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_x > (_root.character._x + 10)) {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 70) / Math.PI));
_yscale = 100;
_root.character._xscale = 100;
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (getDepth() < _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_root.character._xscale == -100) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 30) / Math.PI));
} else {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 30) / Math.PI));
}
if (_yscale == 100) {
a = ((_x - _root._xmouse) + 10) / 3;
} else {
a = ((_x - _root._xmouse) - 10) / 3;
}
x = ((0.9 * x) - x) + a;
a2 = (_y - _root._ymouse) / 3;
y = ((0.9 * y) - y) + a2;
_x = (_x - x);
_y = (_y - y);
dx = _x - _root.character._x;
dy = _y - _root.character._y;
alpha = Math.atan2(dy, dx);
xDis = _root.character._x - _x;
yDis = _root.character._y - _y;
dist = Math.round(Math.sqrt((xDis * xDis) + (yDis * yDis)));
if (Math.abs(dist) > d) {
_x = (_root.character._x + (Math.cos(alpha) * d));
_y = (_root.character._y + (Math.sin(alpha) * d));
}
if (wpn._x < 0) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < 0) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (ammo[ammoType[gun]] > 0) {
if (coolDown < 1) {
fireFun();
}
} else {
fire = false;
_root.sfx.gotoAndPlay(78);
}
}
if ((!Key.isDown(_root.character.k[4])) && (!Key.isDown(_root.character.k[5]))) {
kReady = true;
}
if (kReady == true) {
if (Key.isDown(_root.character.k[4])) {
changeWeapons();
}
if (Key.isDown(_root.character.k[5])) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
}
}
alreadyChangedWeps = false;
mouseListener.onMouseWheel = function (delta) {
trace(delta);
if (delta != 0) {
if (alreadyChangedWeps != true) {
changeWeapons();
alreadyChangedWeps = true;
}
}
};
Mouse.addListener(mouseListener);
if (!Key.isDown(_root.character.k[7])) {
mwReady = true;
}
if (Key.isDown(_root.character.k[7]) && (mwReady == true)) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
mwReady = false;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (gun != 15) {
if (ammo[ammoType[gun]] > 0) {
if (fullAuto[gun] == 0) {
if (coolDown < 1) {
if (gun != 14) {
fireFun();
} else if (drillTarget != "") {
fireFun();
}
}
} else {
fire = true;
}
} else {
_root.sfx.gotoAndPlay(78);
}
} else if (coolDown < 1) {
fireFun();
}
}
}
onClipEvent (mouseUp) {
if (fullAuto[gun] == 1) {
threeRound = 0;
fire = false;
coolDown = 0;
}
}
Instance of Symbol 753 MovieClip "character" in Frame 30
onClipEvent (load) {
_root.gameFun.loadGame();
if (_root.meleeKills > _root.meleeRequirement) {
_root.achievements[4] = 1;
}
createCorpse = function () {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse, "obj" + i, i);
_root.obj["obj" + i]._x = _x - _root.obj._x;
_root.obj["obj" + i]._y = _y - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(_currentframe - 14);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
if (drill == false) {
_root.obj["obj" + i].head.gore.gotoAndStop(gore);
_root.obj["obj" + i].body.gore.gotoAndStop(bodyGore);
}
_root.obj["obj" + i].body.gotoAndStop(body);
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 25) - _root.item._y;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 30) - _root.item._y;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 10) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 15) - _root.item._x;
_root.item["item" + i]._y = (_y + 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x + 15) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = ((_x + _parent._x) - _root.obj._x) - _root.item._x;
_root.obj["obj" + i]._y = ((_y + _parent._y) - _root.obj._y) - _root.item._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
targets = new Array();
xMax = _root.lvObj.xMax;
xMin = _root.lvObj.xMin;
yMax = _root.lvObj.yMax;
yMin = _root.lvObj.yMin;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
modifier = 0;
yModifier = 0;
pan = 0;
panMax = 100;
djkReady = false;
jump = false;
jumpBack = false;
fall = false;
modThing = 0;
doubleJump = false;
gravity = 0;
xVel = 0;
gravAccel = 2;
moveSpeed = 12;
jumpHeight = 24;
hurt = false;
headHurt = false;
health = 50;
deadTime = 0;
if (_root.hardMode == true) {
healthRegen = 0.1;
} else {
healthRegen = 0.2;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
char.play();
if (health > 0) {
if (health < 50) {
health = health + healthRegen;
} else {
health = 50;
}
health = Math.round(health * 10) / 10;
_root.hBlood._alpha = Math.round((70 - health) * 2);
_root.hBlood._alpha = Math.round((50 - health) * 2);
_root.hp = health;
_root.kill = "Kills: " + (kill / _root.multiplier);
myRadians = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
if (((jump == false) && (jumpBack == false)) && (fall == false)) {
if (Key.isDown(k[2])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = -moveSpeed;
if (_xscale == 100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = (-moveSpeed) / 2;
if (_xscale == 100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[3])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = moveSpeed;
if (_xscale == -100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = moveSpeed / 2;
if (_xscale == -100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[1])) {
hurt = false;
headHurt = false;
xVel = 0;
gotoAndStop (10);
} else if ((hurt == false) && (headHurt == false)) {
xVel = 0;
gotoAndStop (1);
}
if (Key.isDown(k[0])) {
hurt = false;
headHurt = false;
djkReady = false;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
if (!_root.bound.hitTest(_x, (_y + boundHeight) + 1, true)) {
fall = true;
}
} else {
if (jump == true) {
if (gravity < 0) {
if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (6);
}
} else if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
if (!Key.isDown(k[0])) {
djkReady = true;
}
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
jump = false;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
} else if (jumpBack == true) {
gotoAndStop (9);
} else if (fall == true) {
if (!Key.isDown(k[0])) {
djkReady = true;
}
gotoAndStop (7);
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
}
if (Key.isDown(k[2])) {
xVel = -moveSpeed;
} else if (Key.isDown(k[3])) {
xVel = moveSpeed;
} else {
xVel = 0;
}
n = 0;
while (n < Math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
} else {
_y = (_y - 1);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
}
if (_root.bound.hitTest(_x, _y + boundHeight, true)) {
while (_root.bound.hitTest(_x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
fall = false;
jump = false;
jumpBack = false;
doubleJump = false;
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
gravity = 0;
}
n++;
}
gravity = gravity + gravAccel;
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
} else {
if ((_root._currentframe == 60) && (saveOnce != true)) {
saveOnce = true;
_root.gameFun.saveGame();
}
if ((fall == false) && (jump == false)) {
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else if (_currentframe < 15) {
if (headHealth < maxHealth) {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < 1) {
if (_currentframe != 19) {
gotoAndStop (19);
}
gore = 0;
} else {
gotoAndStop(14 + (random(2) + 1));
gore = random(3) + 2;
}
} else {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
gotoAndStop(14 + (random(2) + 1));
gore = 0;
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
}
} else {
deadTime++;
if (deadTime > 180) {
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
}
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else {
if (headHealth < 1) {
if (_currentframe != 21) {
xVel = random(8) - 4;
gotoAndStop (21);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
}
} else if (_currentframe != 20) {
xVel = random(8) - 4;
gotoAndStop (20);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < maxHealth) {
gore = random(7) + 2;
}
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
if (!_root.bound.hitTest(_x, _y + boundHeight, true)) {
_y = (_y + gravity);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
} else if (char._currentframe < 8) {
char.gotoAndPlay(8);
}
}
}
}
if (_xscale == 100) {
if (modThing < panMax) {
modThing = modThing + Math.round((panMax - modThing) / 5);
}
} else if (modThing > (-panMax)) {
modThing = modThing - Math.round((panMax + modThing) / 5);
}
pan = -modThing;
times = 0;
while (_x > ((275 + pan) + modifier)) {
if (_root.level._x > (-xMax)) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x > (-(xMax - modifier))) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
}
}
}
times = 0;
while (_x < ((275 + pan) + modifier)) {
if (_root.level._x < xMin) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x < (xMin + modifier)) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
}
}
}
times = 0;
while (_y > (250 + yModifier)) {
if (_root.level._y > (-yMax)) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y > (-(yMax - yModifier))) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
}
}
}
times = 0;
while (_y < (250 + yModifier)) {
if (_root.level._y < yMin) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y < (yMin + yModifier)) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
}
}
}
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
} else {
char.stop();
}
}
Instance of Symbol 1546 MovieClip "obj" in Frame 30
onClipEvent (load) {
i = 0;
gotoAndStop (10);
_x = 0;
_y = 0;
}
Instance of Symbol 1470 MovieClip "swap" in Frame 30
onClipEvent (load) {
gotoAndStop (2);
time = 60;
}
onClipEvent (enterFrame) {
if (time < 20) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1742 MovieClip "screenBox" in Frame 30
onClipEvent (load) {
gotoAndStop (6);
}
Instance of Symbol 508 MovieClip "hBlood" in Frame 30
onClipEvent (load) {
gotoAndStop (2);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
gotoAndStop (1);
if (_alpha > 100) {
_alpha = 100;
}
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1751 MovieClip "ammo" in Frame 30
onClipEvent (enterFrame) {
if (_root.arm.gun != 15) {
if (_root.arm.gun != 35) {
if (amm < 31) {
gotoAndStop(amm + 1);
} else {
gotoAndStop (31);
}
amm2 = amm;
} else {
gotoAndStop (33);
bar._xscale = 100 - _root.arm.coolDown;
}
} else {
gotoAndStop (32);
}
}
Instance of Symbol 1754 MovieClip in Frame 30
onClipEvent (load) {
lev = "Systems Corp. Offices: East Wing";
_alpha = 0;
time = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (time < 90) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "ammoMes" in Frame 30
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 60) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "mes2" in Frame 30
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 100) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1988 MovieClip "levelDrawArea" in Frame 30
onClipEvent (load) {
_x = 0;
_y = 0;
}
Frame 31
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
Instance of Symbol 812 MovieClip "character" in Frame 31
onClipEvent (load) {
_root.gameFun.loadGame();
}
Instance of Symbol 2079 MovieClip in Frame 31
onClipEvent (load) {
while ((point._x + this._x) > 275) {
_x = (_x - 0.5);
textBox._x = textBox._x + 0.5;
}
while ((point._x + this._x) < 275) {
_x = (_x + 0.5);
textBox._x = textBox._x - 0.5;
}
while ((point._y + this._y) > 200) {
_y = (_y - 0.5);
textBox._y = textBox._y + 0.5;
}
while ((point._y + this._y) < 200) {
_y = (_y + 0.5);
textBox._y = textBox._y - 0.5;
}
}
onClipEvent (enterFrame) {
while ((point._x + this._x) > 275) {
_x = (_x - 0.5);
textBox._x = textBox._x + 0.5;
}
while ((point._x + this._x) < 275) {
_x = (_x + 0.5);
textBox._x = textBox._x - 0.5;
}
while ((point._y + this._y) > 200) {
_y = (_y - 0.5);
textBox._y = textBox._y + 0.5;
}
while ((point._y + this._y) < 200) {
_y = (_y + 0.5);
textBox._y = textBox._y - 0.5;
}
}
Frame 32
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
Instance of Symbol 753 MovieClip "character" in Frame 32
onClipEvent (load) {
_root.gameFun.loadGame();
createCorpse = function () {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse, "obj" + i, i);
_root.obj["obj" + i]._x = _x - _root.obj._x;
_root.obj["obj" + i]._y = _y - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(_currentframe - 14);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
if (drill == false) {
_root.obj["obj" + i].head.gore.gotoAndStop(gore);
_root.obj["obj" + i].body.gore.gotoAndStop(bodyGore);
}
_root.obj["obj" + i].body.gotoAndStop(body);
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 25) - _root.item._y;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 30) - _root.item._y;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 10) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 15) - _root.item._x;
_root.item["item" + i]._y = (_y + 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x + 15) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = ((_x + _parent._x) - _root.obj._x) - _root.item._x;
_root.obj["obj" + i]._y = ((_y + _parent._y) - _root.obj._y) - _root.item._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
targets = new Array();
xMax = _root.lvObj.xMax;
xMin = _root.lvObj.xMin;
yMax = _root.lvObj.yMax;
yMin = _root.lvObj.yMin;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
modifier = 0;
yModifier = 0;
pan = 0;
panMax = 100;
djkReady = false;
jump = false;
jumpBack = false;
fall = false;
modThing = 0;
doubleJump = false;
gravity = 0;
xVel = 0;
gravAccel = 2;
moveSpeed = 12;
jumpHeight = 24;
hurt = false;
headHurt = false;
health = 50;
endLevel = false;
engineTime = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (endLevel == false) {
if (health > 0) {
engineTime++;
if (engineTime > 20) {
_root.sfx.gotoAndPlay(118);
engineTime = 0;
}
if (health < 50) {
health = health + 0.2;
} else {
health = 50;
}
health = Math.round(health * 10) / 10;
_root.hBlood._alpha = Math.round((70 - health) * 2);
_root.hBlood._alpha = Math.round((50 - health) * 2);
_root.hp = health;
_root.kill = "Kills: " + (kill / _root.multiplier);
if (Key.isDown(k[2])) {
if (xVel < 10) {
xVel = xVel + 1;
}
} else if (Key.isDown(k[3])) {
if (xVel > -10) {
xVel = xVel - 1;
}
} else {
if (xVel > 0) {
xVel = xVel - 1;
}
if (xVel < 0) {
xVel = xVel + 1;
}
}
_x = (_x - xVel);
_root.car._x = _root.car._x - xVel;
_root.car.w1._rotation = _root.car.w1._rotation - (25 - xVel);
_root.car.w2._rotation = _root.car.w2._rotation - (25 - xVel);
_root.arm._x = _root.arm._x - xVel;
if (_x > 410) {
if (xVel < 4) {
xVel = xVel + 2;
}
}
if (_x < 60) {
if (xVel > -4) {
xVel = xVel - 2;
}
}
} else {
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
if ((fall == false) && (jump == false)) {
if (health < -4) {
gib();
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else if (_currentframe < 15) {
if (headHealth < maxHealth) {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < 1) {
if (_currentframe != 19) {
gotoAndStop (19);
}
gore = 0;
} else {
gotoAndStop(14 + (random(2) + 1));
gore = random(3) + 2;
}
} else {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
gotoAndStop(14 + (random(2) + 1));
gore = 0;
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
}
} else if (health < -4) {
gib();
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else {
if (headHealth < 1) {
if (_currentframe != 21) {
xVel = random(8) - 4;
gotoAndStop (21);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
}
} else if (_currentframe != 20) {
xVel = random(8) - 4;
gotoAndStop (20);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < maxHealth) {
gore = random(7) + 2;
}
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
if (!_root.bound.hitTest(_x, _y + boundHeight, true)) {
_y = (_y + gravity);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
} else if (char._currentframe < 8) {
char.gotoAndPlay(8);
}
}
}
} else {
if (xVel > -10) {
xVel = xVel - 1;
}
_x = (_x - xVel);
_root.car._x = _root.car._x - xVel;
_root.car.w1._rotation = _root.car.w1._rotation - (25 - xVel);
_root.car.w2._rotation = _root.car.w2._rotation - (25 - xVel);
_root.arm._x = _root.arm._x - xVel;
if (_x > 700) {
_root.arm.gun = _root.arm.restoreGun;
_root.arm.gotoAndStop(_root.arm.gun);
_root.gameFun.saveGame2();
_root.gotoAndStop(33);
}
}
} else {
char.stop();
}
}
Instance of Symbol 957 MovieClip "arm" in Frame 32
onClipEvent (load) {
calculateWeps = function () {
weps = 0;
rr = 0;
while (rr < have.length) {
if ((have[rr] == 1) && (rr != 15)) {
weps = weps + 1;
}
rr++;
}
if (weps == 0) {
gotoAndStop (15);
gun = 15;
_root.wpn = name[gun];
}
};
fireFun = function () {
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
i++;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
} else {
i++;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = 40;
_root.item["item" + i]._yscale = 40;
}
if (gun != 2) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation - 180;
_root.item["item" + i]._xscale = -50;
_root.item["item" + i]._yscale = 50;
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 2 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 3 :
i++;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 4 :
i++;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 5 :
i++;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 6 :
i++;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 7 :
i++;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].tar = drillTarget;
break;
case 8 :
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 9 :
z = 0;
for(;;){
if (z >= 6) {
break;
}
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
z++;
};
}
if (_yscale == 100) {
_rotation = (_rotation - int(recoilAng[gun]));
} else {
_rotation = (_rotation + int(recoilAng[gun]));
}
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
}
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
};
name = _root.gameFun.name;
fullAuto = _root.gameFun.fullAuto;
recoil = _root.gameFun.recoil;
recoilAng = _root.gameFun.recoilAng;
recoilRec = _root.gameFun.recoilRec;
recoveryTime = _root.gameFun.recoveryTime;
casing = _root.gameFun.casing;
weaponType = _root.gameFun.weaponType;
pow = _root.gameFun.pow;
shake = _root.gameFun.shake;
inAcc = _root.gameFun.inAcc;
sound = _root.gameFun.sound;
capacity = _root.gameFun.capacity;
ammoName = _root.gameFun.ammoName;
ammoType = _root.gameFun.ammoType;
ready = true;
x = 0;
y = 0;
a = 0;
a2 = 0;
d = 20;
kReady = true;
threeRound = 0;
fire = false;
drillTarget = "";
coolDown = 0;
i = 0;
revolverShots = 0;
weaponAmt = inAcc.length - 1;
mouseListener = new Object();
restoreWeapon = gun;
changeWeapons();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (doOnce != true) {
gun = 33;
gotoAndStop (33);
doOnce = true;
_root.wpn = name[gun];
}
_rotation = (_rotation - ((Math.atan2(-_ymouse, _xmouse) * 70) / Math.PI));
wpn.hand1.gotoAndStop(1);
if (_rotation < -100) {
_rotation = -100;
}
if (_rotation > 0) {
_rotation = 0;
}
if (_yscale == 100) {
a = ((_x - _root._xmouse) + 10) / 3;
} else {
a = ((_x - _root._xmouse) - 10) / 3;
}
x = ((0.9 * x) - x) + a;
a2 = (_y - _root._ymouse) / 3;
y = ((0.9 * y) - y) + a2;
_x = (_x - x);
_y = (_y - y);
dx = _x - _root.character._x;
dy = _y - _root.character._y;
alpha = Math.atan2(dy, dx);
xDis = _root.character._x - _x;
yDis = _root.character._y - _y;
dist = Math.round(Math.sqrt((xDis * xDis) + (yDis * yDis)));
if (Math.abs(dist) > d) {
_x = (_root.character._x + (Math.cos(alpha) * d));
_y = (_root.character._y + (Math.sin(alpha) * d));
}
if (_x < _root.character._x) {
_x = _root.character._x;
}
if (_y > _root.character._y) {
_y = _root.character._y;
}
if (wpn._x < 0) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < 0) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (coolDown < 1) {
fireFun();
}
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
fire = true;
}
}
onClipEvent (mouseUp) {
if (fullAuto[gun] == 1) {
threeRound = 0;
fire = false;
coolDown = 0;
}
}
Instance of Symbol 2042 MovieClip "car" in Frame 32
onClipEvent (load) {
if (_root.hardMode == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 2078 MovieClip "hind" in Frame 32
onClipEvent (load) {
time = 0;
chance = 0;
chance2 = 0;
xPoint = random(400);
yPoint = random(200);
xVel = 0;
yVel = 0;
velMax = 5;
smTime = 0;
grav = -20;
if (_root.hardMode == true) {
health = 1300;
h = new Array(300, 600, 800, 1050);
} else {
health = 1000;
h = new Array(300, 500, 700, 850);
}
dead = false;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (health < h[0]) {
smTime++;
if (smTime > 4) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.explode, "bomb" + i, i);
_root.item["bomb" + i]._x = ((_x + random(400)) - 200) - _root.item._x;
_root.item["bomb" + i]._y = ((_y + random(100)) - 50) - _root.item._y;
smTime = 0;
}
dead = true;
if (!_root.bound.hitTest(_x, _y + 60, true)) {
_y = (_y + grav);
_x = (_x + xVel);
_rotation = xVel;
xVel = xVel + 0.2;
grav = grav + 2;
} else {
while (_root.bound.hitTest(_x, _y + 59, true)) {
_y = (_y - 1);
}
_rotation = 0;
_x = (_x - 8);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.spark1, "bomb" + i, i);
_root.item["bomb" + i]._x = ((_x + random(500)) - 200) - _root.item._x;
_root.item["bomb" + i]._y = (_y + 65) - _root.item._y;
_root.item["bomb" + i]._rotation = 90 + (random(30) - 15);
if (_x < -400) {
_root.character.kill = _root.character.kill + _root.multiplier;
_root.sfx.gotoAndPlay(106);
_root.character.endLevel = true;
swapDepths(1);
removeMovieClip("");
}
}
} else if (health < h[1]) {
if (splode3Once != true) {
splode3Once = true;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.explode, "bomb" + i, i);
b2.fun();
_root.item["bomb" + i]._x = ((b2.x - _root.item._x) + random(8)) - 4;
_root.item["bomb" + i]._y = ((b2.y - _root.item._y) + random(8)) - 4;
}
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.smoke, "bomb" + i, i);
b2.fun();
_root.item["bomb" + i]._x = ((b2.x - _root.item._x) + random(8)) - 4;
_root.item["bomb" + i]._y = ((b2.y - _root.item._y) + random(8)) - 4;
smTime++;
if (smTime > 1) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.smoke, "bomb" + i, i);
b3.fun();
_root.item["bomb" + i]._x = ((b3.x - _root.item._x) + random(8)) - 4;
_root.item["bomb" + i]._y = ((b3.y - _root.item._y) + random(8)) - 4;
smTime = 0;
} else {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.smoke, "bomb" + i, i);
b4.fun();
_root.item["bomb" + i]._x = ((b4.x - _root.item._x) + random(8)) - 4;
_root.item["bomb" + i]._y = ((b4.y - _root.item._y) + random(8)) - 4;
}
myRadians = Math.atan2(_root.character._y - (gun._y + _y), _root.character._x - (gun._x + _x));
myDegrees = Math.round((myRadians * 180) / Math.PI);
gun._rotation = gun._rotation - ((gun._rotation - myDegrees) / 10);
ch = random(50) + 1;
if (ch == 1) {
xPoint = random(400);
yPoint = random(200);
}
time++;
if (time > 30) {
if (time < 60) {
chance2++;
if (chance2 > 1) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.fla, "bomb" + i, i);
gun.b1.fun();
_root.item["bomb" + i]._x = gun.b1.x - _root.item._x;
_root.item["bomb" + i]._y = gun.b1.y - _root.item._y;
_root.item["bomb" + i]._rotation = gun._rotation;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.bullet, "bomb" + i, i);
_root.item["bomb" + i]._x = gun.b1.x - _root.item._x;
_root.item["bomb" + i]._y = gun.b1.y - _root.item._y;
_root.item["bomb" + i].enemyBullet = true;
_root.item["bomb" + i]._rotation = gun._rotation;
_root.item["bomb" + i].speed = -10;
_root.item["bomb" + i].pow = 1;
chance2 = 0;
_root.sfx.gotoAndPlay(68);
}
} else if (time > 60) {
chance++;
if (chance > 5) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.bomb, "bomb" + i, i);
b1.fun();
_root.item["bomb" + i]._x = b1.x - _root.item._x;
_root.item["bomb" + i]._y = b1.y - _root.item._y;
chance = 0;
}
if (time > 90) {
time = 0;
}
}
}
} else if (health < h[2]) {
if (splode2Once != true) {
splode2Once = true;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.explode, "bomb" + i, i);
b3.fun();
_root.item["bomb" + i]._x = ((b3.x - _root.item._x) + random(8)) - 4;
_root.item["bomb" + i]._y = ((b3.y - _root.item._y) + random(8)) - 4;
}
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.smoke, "bomb" + i, i);
b4.fun();
_root.item["bomb" + i]._x = ((b4.x - _root.item._x) + random(8)) - 4;
_root.item["bomb" + i]._y = ((b4.y - _root.item._y) + random(8)) - 4;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.smoke, "bomb" + i, i);
b3.fun();
_root.item["bomb" + i]._x = ((b3.x - _root.item._x) + random(8)) - 4;
_root.item["bomb" + i]._y = ((b3.y - _root.item._y) + random(8)) - 4;
myRadians = Math.atan2(_root.character._y - (gun._y + _y), _root.character._x - (gun._x + _x));
myDegrees = Math.round((myRadians * 180) / Math.PI);
gun._rotation = gun._rotation - ((gun._rotation - myDegrees) / 10);
time++;
if (time > 60) {
if (time < 100) {
chance2++;
if (chance2 > 1) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.fla, "bomb" + i, i);
gun.b1.fun();
_root.item["bomb" + i]._x = gun.b1.x - _root.item._x;
_root.item["bomb" + i]._y = gun.b1.y - _root.item._y;
_root.item["bomb" + i]._rotation = gun._rotation;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.bullet, "bomb" + i, i);
_root.item["bomb" + i]._x = gun.b1.x - _root.item._x;
_root.item["bomb" + i]._y = gun.b1.y - _root.item._y;
_root.item["bomb" + i].enemyBullet = true;
_root.item["bomb" + i]._rotation = gun._rotation;
_root.item["bomb" + i].speed = -10;
_root.item["bomb" + i].pow = 1;
chance2 = 0;
_root.sfx.gotoAndPlay(68);
}
if (time > 99) {
xPoint = random(400);
yPoint = random(200);
}
} else if (time > 120) {
chance++;
if (chance > 5) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.bomb, "bomb" + i, i);
b1.fun();
_root.item["bomb" + i]._x = b1.x - _root.item._x;
_root.item["bomb" + i]._y = b1.y - _root.item._y;
chance = 0;
}
if (time > 150) {
time = 0;
xPoint = random(400);
yPoint = random(200);
}
}
}
} else if (health < h[3]) {
if (splode1Once != true) {
splode1Once = true;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.explode, "bomb" + i, i);
b4.fun();
_root.item["bomb" + i]._x = ((b4.x - _root.item._x) + random(8)) - 4;
_root.item["bomb" + i]._y = ((b4.y - _root.item._y) + random(8)) - 4;
}
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.smoke, "bomb" + i, i);
b4.fun();
_root.item["bomb" + i]._x = ((b4.x - _root.item._x) + random(8)) - 4;
_root.item["bomb" + i]._y = ((b4.y - _root.item._y) + random(8)) - 4;
myRadians = Math.atan2(_root.character._y - (gun._y + _y), _root.character._x - (gun._x + _x));
myDegrees = Math.round((myRadians * 180) / Math.PI);
gun._rotation = gun._rotation - ((gun._rotation - myDegrees) / 10);
time++;
if (time > 70) {
if (time < 100) {
chance2++;
if (chance2 > 1) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.fla, "bomb" + i, i);
gun.b1.fun();
_root.item["bomb" + i]._x = gun.b1.x - _root.item._x;
_root.item["bomb" + i]._y = gun.b1.y - _root.item._y;
_root.item["bomb" + i]._rotation = gun._rotation;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.bullet, "bomb" + i, i);
_root.item["bomb" + i]._x = gun.b1.x - _root.item._x;
_root.item["bomb" + i]._y = gun.b1.y - _root.item._y;
_root.item["bomb" + i].enemyBullet = true;
_root.item["bomb" + i]._rotation = gun._rotation;
_root.item["bomb" + i].speed = -10;
_root.item["bomb" + i].pow = 1;
chance2 = 0;
_root.sfx.gotoAndPlay(68);
}
} else if (time > 140) {
chance++;
if (chance > 5) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.bomb, "bomb" + i, i);
b1.fun();
_root.item["bomb" + i]._x = b1.x - _root.item._x;
_root.item["bomb" + i]._y = b1.y - _root.item._y;
chance = 0;
}
if (time > 170) {
time = 0;
xPoint = random(400);
yPoint = random(200);
}
}
}
} else {
time++;
if (time > 90) {
chance++;
if (chance > 5) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.bomb, "bomb" + i, i);
b1.fun();
_root.item["bomb" + i]._x = b1.x - _root.item._x;
_root.item["bomb" + i]._y = b1.y - _root.item._y;
chance = 0;
}
if (time > 120) {
time = 0;
xPoint = random(400);
yPoint = random(200);
}
}
}
if (dead == false) {
if (_x < xPoint) {
if (xVel < velMax) {
xVel = xVel + 0.4;
}
} else if (yVel > (-velMax)) {
xVel = xVel - 0.4;
}
if (_y < yPoint) {
if (yVel < velMax) {
yVel = yVel + 0.4;
}
} else if (yVel > (-velMax)) {
yVel = yVel - 0.4;
}
_x = (_x + xVel);
_y = (_y + yVel);
_rotation = xVel;
}
}
}
Instance of Symbol 1435 MovieClip "cursor" in Frame 32
onClipEvent (load) {
gotoAndStop (3);
Mouse.hide();
}
onClipEvent (enterFrame) {
if (_root.arm.gun == 14) {
if (_currentframe < 3) {
gotoAndStop (3);
}
} else if (_currentframe > 2) {
gotoAndStop (1);
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 508 MovieClip "hBlood" in Frame 32
onClipEvent (load) {
gotoAndStop (2);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
gotoAndStop (1);
if (_alpha > 100) {
_alpha = 100;
}
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "ammoMes" in Frame 32
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 60) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "mes2" in Frame 32
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 100) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Frame 33
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
Instance of Symbol 753 MovieClip "character" in Frame 33
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 1218 MovieClip "textBox" in Frame 33
onClipEvent (load) {
t0 = "...153 is dead...";
t1 = "At least that's one problem out of the way.";
t2 = "Looks like Systems Corp.'s secret genetics lab isn't far from here.";
t3 = "That's where he'll be...";
tx = 0;
tNu = 0;
txt = "";
}
onClipEvent (enterFrame) {
if (txt.length < this["t" + tx].length) {
txt = txt + this["t" + tx].charAt(tNu);
_root.sfx.gotoAndPlay(134);
tNu++;
}
if (tx > 3) {
_root.gotoAndStop(34);
}
}
Frame 34
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
stop();
Instance of Symbol 463 MovieClip "level" in Frame 34
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(2000, 2000, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
if (_root.hardMode == true) {
_root.levelDrawArea.car.gotoAndStop(2);
} else {
_root.levelDrawArea.car.gotoAndStop(1);
}
myBitmap.draw(_root.levelDrawArea);
_root.levelDrawArea.swapDepths(1);
_root.levelDrawArea.removeMovieClip("");
}
Instance of Symbol 2098 MovieClip "bound" in Frame 34
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 2099 MovieClip "lvObj" in Frame 34
onClipEvent (load) {
_x = 0;
_y = 0;
xMax = 1435;
xMin = 0;
yMax = 100;
yMin = 0;
}
Instance of Symbol 1430 MovieClip "stuff" in Frame 34
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(_width, _height, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.fl);
_root.fl.swapDepths(1000);
_root.fl.removeMovieClip("");
}
Instance of Symbol 1435 MovieClip "cursor" in Frame 34
onClipEvent (load) {
gotoAndStop (3);
Mouse.hide();
}
onClipEvent (enterFrame) {
if (_root.arm.gun == 14) {
if (_currentframe < 3) {
gotoAndStop (3);
}
} else if (_currentframe > 2) {
gotoAndStop (1);
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 957 MovieClip "arm" in Frame 34
onClipEvent (load) {
calculateWeps = function () {
weps = 0;
rr = 0;
while (rr < have.length) {
if ((have[rr] == 1) && (rr != 15)) {
weps = weps + 1;
}
rr++;
}
if (weps == 0) {
gotoAndStop (15);
gun = 15;
_root.wpn = name[gun];
}
};
changeWeapons = function () {
if ((gun == 35) && (weps > 1)) {
coolDown = 0;
}
gunMaxLoop = 1;
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
do {
if (have[gun] == 1) {
break;
}
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
gunMaxLoop++;
} while (gunMaxLoop <= weaponAmt);
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
};
fireFun = function () {
_root.shotsFired[gun] = _root.shotsFired[gun] + 1;
ammo[ammoType[gun]] = ammo[ammoType[gun]] - 1;
_root.character.modifier = random(shake[gun]) + 1;
_root.character.yModifier = random(shake[gun]) + 1;
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
i++;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
} else {
i++;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
}
if (gun != 2) {
if (gun != 35) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
}
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 2 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 3 :
i++;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 4 :
i++;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 5 :
i++;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 6 :
i++;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 7 :
i++;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].tar = drillTarget;
break;
case 8 :
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 9 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 10 :
i++;
duplicateMovieClip (_root.item.beanBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 11 :
i++;
duplicateMovieClip (_root.item.nukeBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i].speed = -10;
ammo[ammoType[gun]] = ammo[ammoType[gun]] + 1;
}
if (_yscale == 100) {
_rotation = (_rotation - int(recoilAng[gun]));
} else {
_rotation = (_rotation + int(recoilAng[gun]));
}
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
}
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
};
name = _root.gameFun.name;
if (_root.achievements[4] == 1) {
name[15] = "Sword";
}
fullAuto = _root.gameFun.fullAuto;
recoil = _root.gameFun.recoil;
recoilAng = _root.gameFun.recoilAng;
recoilRec = _root.gameFun.recoilRec;
recoveryTime = _root.gameFun.recoveryTime;
casing = _root.gameFun.casing;
weaponType = _root.gameFun.weaponType;
pow = _root.gameFun.pow;
shake = _root.gameFun.shake;
inAcc = _root.gameFun.inAcc;
sound = _root.gameFun.sound;
capacity = _root.gameFun.capacity;
ammoName = _root.gameFun.ammoName;
ammoType = _root.gameFun.ammoType;
ready = true;
x = 0;
y = 0;
a = 0;
a2 = 0;
d = 40;
kReady = true;
threeRound = 0;
fire = false;
drillTarget = "";
coolDown = 0;
i = 0;
revolverShots = 0;
weaponAmt = inAcc.length - 1;
mouseListener = new Object();
changeWeapons();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (!Key.isDown(_root.character.k[6])) {
spReady = true;
}
if (Key.isDown(_root.character.k[6]) && (spReady == true)) {
spReady = false;
if (gun != 15) {
weps = weps - 1;
i++;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].rot = _rotation + 90;
_root.item["item" + i].gotoAndStop(gun);
if (ammo[ammoType[gun]] < 1) {
_root.item["item" + i].cap = -1;
} else {
_root.item["item" + i].cap = ammo[ammoType[gun]];
}
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = 25;
have[gun] = 0;
ammo[ammoType[gun]] = -1;
changeWeapons();
}
}
_root.ammo.amm = ammo[ammoType[gun]];
if (_x < (_root.character._x - 10)) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 70) / Math.PI));
_yscale = -100;
_root.character._xscale = -100;
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
if (getDepth() > _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_x > (_root.character._x + 10)) {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 70) / Math.PI));
_yscale = 100;
_root.character._xscale = 100;
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (getDepth() < _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_root.character._xscale == -100) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 30) / Math.PI));
} else {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 30) / Math.PI));
}
if (_yscale == 100) {
a = ((_x - _root._xmouse) + 10) / 3;
} else {
a = ((_x - _root._xmouse) - 10) / 3;
}
x = ((0.9 * x) - x) + a;
a2 = (_y - _root._ymouse) / 3;
y = ((0.9 * y) - y) + a2;
_x = (_x - x);
_y = (_y - y);
dx = _x - _root.character._x;
dy = _y - _root.character._y;
alpha = Math.atan2(dy, dx);
xDis = _root.character._x - _x;
yDis = _root.character._y - _y;
dist = Math.round(Math.sqrt((xDis * xDis) + (yDis * yDis)));
if (Math.abs(dist) > d) {
_x = (_root.character._x + (Math.cos(alpha) * d));
_y = (_root.character._y + (Math.sin(alpha) * d));
}
if (wpn._x < 0) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < 0) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (ammo[ammoType[gun]] > 0) {
if (coolDown < 1) {
fireFun();
}
} else {
fire = false;
_root.sfx.gotoAndPlay(78);
}
}
if ((!Key.isDown(_root.character.k[4])) && (!Key.isDown(_root.character.k[5]))) {
kReady = true;
}
if (kReady == true) {
if (Key.isDown(_root.character.k[4])) {
changeWeapons();
}
if (Key.isDown(_root.character.k[5])) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
}
}
alreadyChangedWeps = false;
mouseListener.onMouseWheel = function (delta) {
trace(delta);
if (delta != 0) {
if (alreadyChangedWeps != true) {
changeWeapons();
alreadyChangedWeps = true;
}
}
};
Mouse.addListener(mouseListener);
if (!Key.isDown(_root.character.k[7])) {
mwReady = true;
}
if (Key.isDown(_root.character.k[7]) && (mwReady == true)) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
mwReady = false;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (gun != 15) {
if (ammo[ammoType[gun]] > 0) {
if (fullAuto[gun] == 0) {
if (coolDown < 1) {
if (gun != 14) {
fireFun();
} else if (drillTarget != "") {
fireFun();
}
}
} else {
fire = true;
}
} else {
_root.sfx.gotoAndPlay(78);
}
} else if (coolDown < 1) {
fireFun();
}
}
}
onClipEvent (mouseUp) {
if (fullAuto[gun] == 1) {
threeRound = 0;
fire = false;
coolDown = 0;
}
}
Instance of Symbol 753 MovieClip "character" in Frame 34
onClipEvent (load) {
_root.gameFun.loadGame();
if (_root.meleeKills > _root.meleeRequirement) {
_root.achievements[4] = 1;
}
createCorpse = function () {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse, "obj" + i, i);
_root.obj["obj" + i]._x = _x - _root.obj._x;
_root.obj["obj" + i]._y = _y - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(_currentframe - 14);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
if (drill == false) {
_root.obj["obj" + i].head.gore.gotoAndStop(gore);
_root.obj["obj" + i].body.gore.gotoAndStop(bodyGore);
}
_root.obj["obj" + i].body.gotoAndStop(body);
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 25) - _root.item._y;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 30) - _root.item._y;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 10) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 15) - _root.item._x;
_root.item["item" + i]._y = (_y + 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x + 15) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = ((_x + _parent._x) - _root.obj._x) - _root.item._x;
_root.obj["obj" + i]._y = ((_y + _parent._y) - _root.obj._y) - _root.item._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
targets = new Array();
xMax = _root.lvObj.xMax;
xMin = _root.lvObj.xMin;
yMax = _root.lvObj.yMax;
yMin = _root.lvObj.yMin;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
modifier = 0;
yModifier = 0;
pan = 0;
panMax = 100;
djkReady = false;
jump = false;
jumpBack = false;
fall = false;
modThing = 0;
doubleJump = false;
gravity = 0;
xVel = 0;
gravAccel = 2;
moveSpeed = 12;
jumpHeight = 24;
hurt = false;
headHurt = false;
health = 50;
deadTime = 0;
if (_root.hardMode == true) {
healthRegen = 0.1;
} else {
healthRegen = 0.2;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
char.play();
if (health > 0) {
if (health < 50) {
health = health + healthRegen;
} else {
health = 50;
}
health = Math.round(health * 10) / 10;
_root.hBlood._alpha = Math.round((70 - health) * 2);
_root.hBlood._alpha = Math.round((50 - health) * 2);
_root.hp = health;
_root.kill = "Kills: " + (kill / _root.multiplier);
myRadians = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
if (((jump == false) && (jumpBack == false)) && (fall == false)) {
if (Key.isDown(k[2])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = -moveSpeed;
if (_xscale == 100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = (-moveSpeed) / 2;
if (_xscale == 100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[3])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = moveSpeed;
if (_xscale == -100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = moveSpeed / 2;
if (_xscale == -100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[1])) {
hurt = false;
headHurt = false;
xVel = 0;
gotoAndStop (10);
} else if ((hurt == false) && (headHurt == false)) {
xVel = 0;
gotoAndStop (1);
}
if (Key.isDown(k[0])) {
hurt = false;
headHurt = false;
djkReady = false;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
if (!_root.bound.hitTest(_x, (_y + boundHeight) + 1, true)) {
fall = true;
}
} else {
if (jump == true) {
if (gravity < 0) {
if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (6);
}
} else if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
if (!Key.isDown(k[0])) {
djkReady = true;
}
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
jump = false;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
} else if (jumpBack == true) {
gotoAndStop (9);
} else if (fall == true) {
if (!Key.isDown(k[0])) {
djkReady = true;
}
gotoAndStop (7);
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
}
if (Key.isDown(k[2])) {
xVel = -moveSpeed;
} else if (Key.isDown(k[3])) {
xVel = moveSpeed;
} else {
xVel = 0;
}
n = 0;
while (n < Math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
} else {
_y = (_y - 1);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
}
if (_root.bound.hitTest(_x, _y + boundHeight, true)) {
while (_root.bound.hitTest(_x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
fall = false;
jump = false;
jumpBack = false;
doubleJump = false;
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
gravity = 0;
}
n++;
}
gravity = gravity + gravAccel;
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
} else {
if ((_root._currentframe == 60) && (saveOnce != true)) {
saveOnce = true;
_root.gameFun.saveGame();
}
if ((fall == false) && (jump == false)) {
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else if (_currentframe < 15) {
if (headHealth < maxHealth) {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < 1) {
if (_currentframe != 19) {
gotoAndStop (19);
}
gore = 0;
} else {
gotoAndStop(14 + (random(2) + 1));
gore = random(3) + 2;
}
} else {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
gotoAndStop(14 + (random(2) + 1));
gore = 0;
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
}
} else {
deadTime++;
if (deadTime > 180) {
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
}
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else {
if (headHealth < 1) {
if (_currentframe != 21) {
xVel = random(8) - 4;
gotoAndStop (21);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
}
} else if (_currentframe != 20) {
xVel = random(8) - 4;
gotoAndStop (20);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < maxHealth) {
gore = random(7) + 2;
}
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
if (!_root.bound.hitTest(_x, _y + boundHeight, true)) {
_y = (_y + gravity);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
} else if (char._currentframe < 8) {
char.gotoAndPlay(8);
}
}
}
}
if (_xscale == 100) {
if (modThing < panMax) {
modThing = modThing + Math.round((panMax - modThing) / 5);
}
} else if (modThing > (-panMax)) {
modThing = modThing - Math.round((panMax + modThing) / 5);
}
pan = -modThing;
times = 0;
while (_x > ((275 + pan) + modifier)) {
if (_root.level._x > (-xMax)) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x > (-(xMax - modifier))) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
}
}
}
times = 0;
while (_x < ((275 + pan) + modifier)) {
if (_root.level._x < xMin) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x < (xMin + modifier)) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
}
}
}
times = 0;
while (_y > (250 + yModifier)) {
if (_root.level._y > (-yMax)) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y > (-(yMax - yModifier))) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
}
}
}
times = 0;
while (_y < (250 + yModifier)) {
if (_root.level._y < yMin) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y < (yMin + yModifier)) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
}
}
}
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
} else {
char.stop();
}
}
Instance of Symbol 1546 MovieClip "obj" in Frame 34
onClipEvent (load) {
i = 0;
gotoAndStop (11);
_x = 0;
_y = 0;
}
Instance of Symbol 1470 MovieClip "swap" in Frame 34
onClipEvent (load) {
gotoAndStop (2);
time = 60;
}
onClipEvent (enterFrame) {
if (time < 20) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1742 MovieClip "screenBox" in Frame 34
onClipEvent (load) {
gotoAndStop (6);
}
Instance of Symbol 508 MovieClip "hBlood" in Frame 34
onClipEvent (load) {
gotoAndStop (2);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
gotoAndStop (1);
if (_alpha > 100) {
_alpha = 100;
}
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1751 MovieClip "ammo" in Frame 34
onClipEvent (enterFrame) {
if (_root.arm.gun != 15) {
if (_root.arm.gun != 35) {
if (amm < 31) {
gotoAndStop(amm + 1);
} else {
gotoAndStop (31);
}
amm2 = amm;
} else {
gotoAndStop (33);
bar._xscale = 100 - _root.arm.coolDown;
}
} else {
gotoAndStop (32);
}
}
Instance of Symbol 1754 MovieClip in Frame 34
onClipEvent (load) {
lev = "Forest";
_alpha = 0;
time = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (time < 90) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "ammoMes" in Frame 34
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 60) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "mes2" in Frame 34
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 100) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 2132 MovieClip "levelDrawArea" in Frame 34
onClipEvent (load) {
_x = 0;
_y = 0;
}
Frame 36
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
stop();
Instance of Symbol 463 MovieClip "level" in Frame 36
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(2000, 2000, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.levelDrawArea);
_root.levelDrawArea.swapDepths(1);
_root.levelDrawArea.removeMovieClip("");
}
Instance of Symbol 2098 MovieClip "bound" in Frame 36
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 2133 MovieClip "lvObj" in Frame 36
onClipEvent (load) {
_x = 0;
_y = 0;
xMax = 1435;
xMin = 0;
yMax = 100;
yMin = 0;
}
Instance of Symbol 1430 MovieClip "stuff" in Frame 36
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(_width, _height, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.fl);
_root.fl.swapDepths(1000);
_root.fl.removeMovieClip("");
}
Instance of Symbol 1435 MovieClip "cursor" in Frame 36
onClipEvent (load) {
gotoAndStop (3);
Mouse.hide();
}
onClipEvent (enterFrame) {
if (_root.arm.gun == 14) {
if (_currentframe < 3) {
gotoAndStop (3);
}
} else if (_currentframe > 2) {
gotoAndStop (1);
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 957 MovieClip "arm" in Frame 36
onClipEvent (load) {
calculateWeps = function () {
weps = 0;
rr = 0;
while (rr < have.length) {
if ((have[rr] == 1) && (rr != 15)) {
weps = weps + 1;
}
rr++;
}
if (weps == 0) {
gotoAndStop (15);
gun = 15;
_root.wpn = name[gun];
}
};
changeWeapons = function () {
if ((gun == 35) && (weps > 1)) {
coolDown = 0;
}
gunMaxLoop = 1;
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
do {
if (have[gun] == 1) {
break;
}
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
gunMaxLoop++;
} while (gunMaxLoop <= weaponAmt);
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
};
fireFun = function () {
_root.shotsFired[gun] = _root.shotsFired[gun] + 1;
ammo[ammoType[gun]] = ammo[ammoType[gun]] - 1;
_root.character.modifier = random(shake[gun]) + 1;
_root.character.yModifier = random(shake[gun]) + 1;
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
i++;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
} else {
i++;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
}
if (gun != 2) {
if (gun != 35) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
}
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 2 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 3 :
i++;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 4 :
i++;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 5 :
i++;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 6 :
i++;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 7 :
i++;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].tar = drillTarget;
break;
case 8 :
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 9 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 10 :
i++;
duplicateMovieClip (_root.item.beanBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 11 :
i++;
duplicateMovieClip (_root.item.nukeBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i].speed = -10;
ammo[ammoType[gun]] = ammo[ammoType[gun]] + 1;
}
if (_yscale == 100) {
_rotation = (_rotation - int(recoilAng[gun]));
} else {
_rotation = (_rotation + int(recoilAng[gun]));
}
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
}
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
};
name = _root.gameFun.name;
if (_root.achievements[4] == 1) {
name[15] = "Sword";
}
fullAuto = _root.gameFun.fullAuto;
recoil = _root.gameFun.recoil;
recoilAng = _root.gameFun.recoilAng;
recoilRec = _root.gameFun.recoilRec;
recoveryTime = _root.gameFun.recoveryTime;
casing = _root.gameFun.casing;
weaponType = _root.gameFun.weaponType;
pow = _root.gameFun.pow;
shake = _root.gameFun.shake;
inAcc = _root.gameFun.inAcc;
sound = _root.gameFun.sound;
capacity = _root.gameFun.capacity;
ammoName = _root.gameFun.ammoName;
ammoType = _root.gameFun.ammoType;
ready = true;
x = 0;
y = 0;
a = 0;
a2 = 0;
d = 40;
kReady = true;
threeRound = 0;
fire = false;
drillTarget = "";
coolDown = 0;
i = 0;
revolverShots = 0;
weaponAmt = inAcc.length - 1;
mouseListener = new Object();
changeWeapons();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (!Key.isDown(_root.character.k[6])) {
spReady = true;
}
if (Key.isDown(_root.character.k[6]) && (spReady == true)) {
spReady = false;
if (gun != 15) {
weps = weps - 1;
i++;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].rot = _rotation + 90;
_root.item["item" + i].gotoAndStop(gun);
if (ammo[ammoType[gun]] < 1) {
_root.item["item" + i].cap = -1;
} else {
_root.item["item" + i].cap = ammo[ammoType[gun]];
}
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = 25;
have[gun] = 0;
ammo[ammoType[gun]] = -1;
changeWeapons();
}
}
_root.ammo.amm = ammo[ammoType[gun]];
if (_x < (_root.character._x - 10)) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 70) / Math.PI));
_yscale = -100;
_root.character._xscale = -100;
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
if (getDepth() > _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_x > (_root.character._x + 10)) {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 70) / Math.PI));
_yscale = 100;
_root.character._xscale = 100;
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (getDepth() < _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_root.character._xscale == -100) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 30) / Math.PI));
} else {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 30) / Math.PI));
}
if (_yscale == 100) {
a = ((_x - _root._xmouse) + 10) / 3;
} else {
a = ((_x - _root._xmouse) - 10) / 3;
}
x = ((0.9 * x) - x) + a;
a2 = (_y - _root._ymouse) / 3;
y = ((0.9 * y) - y) + a2;
_x = (_x - x);
_y = (_y - y);
dx = _x - _root.character._x;
dy = _y - _root.character._y;
alpha = Math.atan2(dy, dx);
xDis = _root.character._x - _x;
yDis = _root.character._y - _y;
dist = Math.round(Math.sqrt((xDis * xDis) + (yDis * yDis)));
if (Math.abs(dist) > d) {
_x = (_root.character._x + (Math.cos(alpha) * d));
_y = (_root.character._y + (Math.sin(alpha) * d));
}
if (wpn._x < 0) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < 0) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (ammo[ammoType[gun]] > 0) {
if (coolDown < 1) {
fireFun();
}
} else {
fire = false;
_root.sfx.gotoAndPlay(78);
}
}
if ((!Key.isDown(_root.character.k[4])) && (!Key.isDown(_root.character.k[5]))) {
kReady = true;
}
if (kReady == true) {
if (Key.isDown(_root.character.k[4])) {
changeWeapons();
}
if (Key.isDown(_root.character.k[5])) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
}
}
alreadyChangedWeps = false;
mouseListener.onMouseWheel = function (delta) {
trace(delta);
if (delta != 0) {
if (alreadyChangedWeps != true) {
changeWeapons();
alreadyChangedWeps = true;
}
}
};
Mouse.addListener(mouseListener);
if (!Key.isDown(_root.character.k[7])) {
mwReady = true;
}
if (Key.isDown(_root.character.k[7]) && (mwReady == true)) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
mwReady = false;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (gun != 15) {
if (ammo[ammoType[gun]] > 0) {
if (fullAuto[gun] == 0) {
if (coolDown < 1) {
if (gun != 14) {
fireFun();
} else if (drillTarget != "") {
fireFun();
}
}
} else {
fire = true;
}
} else {
_root.sfx.gotoAndPlay(78);
}
} else if (coolDown < 1) {
fireFun();
}
}
}
onClipEvent (mouseUp) {
if (fullAuto[gun] == 1) {
threeRound = 0;
fire = false;
coolDown = 0;
}
}
Instance of Symbol 753 MovieClip "character" in Frame 36
onClipEvent (load) {
_root.gameFun.loadGame();
if (_root.meleeKills > _root.meleeRequirement) {
_root.achievements[4] = 1;
}
createCorpse = function () {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse, "obj" + i, i);
_root.obj["obj" + i]._x = _x - _root.obj._x;
_root.obj["obj" + i]._y = _y - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(_currentframe - 14);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
if (drill == false) {
_root.obj["obj" + i].head.gore.gotoAndStop(gore);
_root.obj["obj" + i].body.gore.gotoAndStop(bodyGore);
}
_root.obj["obj" + i].body.gotoAndStop(body);
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 25) - _root.item._y;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 30) - _root.item._y;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 10) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 15) - _root.item._x;
_root.item["item" + i]._y = (_y + 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x + 15) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = ((_x + _parent._x) - _root.obj._x) - _root.item._x;
_root.obj["obj" + i]._y = ((_y + _parent._y) - _root.obj._y) - _root.item._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
targets = new Array();
xMax = _root.lvObj.xMax;
xMin = _root.lvObj.xMin;
yMax = _root.lvObj.yMax;
yMin = _root.lvObj.yMin;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
modifier = 0;
yModifier = 0;
pan = 0;
panMax = 100;
djkReady = false;
jump = false;
jumpBack = false;
fall = false;
modThing = 0;
doubleJump = false;
gravity = 0;
xVel = 0;
gravAccel = 2;
moveSpeed = 12;
jumpHeight = 24;
hurt = false;
headHurt = false;
health = 50;
deadTime = 0;
if (_root.hardMode == true) {
healthRegen = 0.1;
} else {
healthRegen = 0.2;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
char.play();
if (health > 0) {
if (health < 50) {
health = health + healthRegen;
} else {
health = 50;
}
health = Math.round(health * 10) / 10;
_root.hBlood._alpha = Math.round((70 - health) * 2);
_root.hBlood._alpha = Math.round((50 - health) * 2);
_root.hp = health;
_root.kill = "Kills: " + (kill / _root.multiplier);
myRadians = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
if (((jump == false) && (jumpBack == false)) && (fall == false)) {
if (Key.isDown(k[2])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = -moveSpeed;
if (_xscale == 100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = (-moveSpeed) / 2;
if (_xscale == 100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[3])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = moveSpeed;
if (_xscale == -100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = moveSpeed / 2;
if (_xscale == -100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[1])) {
hurt = false;
headHurt = false;
xVel = 0;
gotoAndStop (10);
} else if ((hurt == false) && (headHurt == false)) {
xVel = 0;
gotoAndStop (1);
}
if (Key.isDown(k[0])) {
hurt = false;
headHurt = false;
djkReady = false;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
if (!_root.bound.hitTest(_x, (_y + boundHeight) + 1, true)) {
fall = true;
}
} else {
if (jump == true) {
if (gravity < 0) {
if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (6);
}
} else if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
if (!Key.isDown(k[0])) {
djkReady = true;
}
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
jump = false;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
} else if (jumpBack == true) {
gotoAndStop (9);
} else if (fall == true) {
if (!Key.isDown(k[0])) {
djkReady = true;
}
gotoAndStop (7);
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
}
if (Key.isDown(k[2])) {
xVel = -moveSpeed;
} else if (Key.isDown(k[3])) {
xVel = moveSpeed;
} else {
xVel = 0;
}
n = 0;
while (n < Math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
} else {
_y = (_y - 1);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
}
if (_root.bound.hitTest(_x, _y + boundHeight, true)) {
while (_root.bound.hitTest(_x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
fall = false;
jump = false;
jumpBack = false;
doubleJump = false;
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
gravity = 0;
}
n++;
}
gravity = gravity + gravAccel;
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
} else {
if ((_root._currentframe == 60) && (saveOnce != true)) {
saveOnce = true;
_root.gameFun.saveGame();
}
if ((fall == false) && (jump == false)) {
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else if (_currentframe < 15) {
if (headHealth < maxHealth) {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < 1) {
if (_currentframe != 19) {
gotoAndStop (19);
}
gore = 0;
} else {
gotoAndStop(14 + (random(2) + 1));
gore = random(3) + 2;
}
} else {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
gotoAndStop(14 + (random(2) + 1));
gore = 0;
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
}
} else {
deadTime++;
if (deadTime > 180) {
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
}
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else {
if (headHealth < 1) {
if (_currentframe != 21) {
xVel = random(8) - 4;
gotoAndStop (21);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
}
} else if (_currentframe != 20) {
xVel = random(8) - 4;
gotoAndStop (20);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < maxHealth) {
gore = random(7) + 2;
}
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
if (!_root.bound.hitTest(_x, _y + boundHeight, true)) {
_y = (_y + gravity);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
} else if (char._currentframe < 8) {
char.gotoAndPlay(8);
}
}
}
}
if (_xscale == 100) {
if (modThing < panMax) {
modThing = modThing + Math.round((panMax - modThing) / 5);
}
} else if (modThing > (-panMax)) {
modThing = modThing - Math.round((panMax + modThing) / 5);
}
pan = -modThing;
times = 0;
while (_x > ((275 + pan) + modifier)) {
if (_root.level._x > (-xMax)) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x > (-(xMax - modifier))) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
}
}
}
times = 0;
while (_x < ((275 + pan) + modifier)) {
if (_root.level._x < xMin) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x < (xMin + modifier)) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
}
}
}
times = 0;
while (_y > (250 + yModifier)) {
if (_root.level._y > (-yMax)) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y > (-(yMax - yModifier))) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
}
}
}
times = 0;
while (_y < (250 + yModifier)) {
if (_root.level._y < yMin) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y < (yMin + yModifier)) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
}
}
}
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
} else {
char.stop();
}
}
Instance of Symbol 1546 MovieClip "obj" in Frame 36
onClipEvent (load) {
i = 0;
gotoAndStop (11);
_x = 0;
_y = 0;
}
Instance of Symbol 1470 MovieClip "swap" in Frame 36
onClipEvent (load) {
gotoAndStop (2);
time = 60;
}
onClipEvent (enterFrame) {
if (time < 20) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1742 MovieClip "screenBox" in Frame 36
onClipEvent (load) {
gotoAndStop (6);
}
Instance of Symbol 508 MovieClip "hBlood" in Frame 36
onClipEvent (load) {
gotoAndStop (2);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
gotoAndStop (1);
if (_alpha > 100) {
_alpha = 100;
}
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1751 MovieClip "ammo" in Frame 36
onClipEvent (enterFrame) {
if (_root.arm.gun != 15) {
if (_root.arm.gun != 35) {
if (amm < 31) {
gotoAndStop(amm + 1);
} else {
gotoAndStop (31);
}
amm2 = amm;
} else {
gotoAndStop (33);
bar._xscale = 100 - _root.arm.coolDown;
}
} else {
gotoAndStop (32);
}
}
Instance of Symbol 1754 MovieClip in Frame 36
onClipEvent (load) {
lev = "Forest";
_alpha = 0;
time = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (time < 90) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "ammoMes" in Frame 36
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 60) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "mes2" in Frame 36
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 100) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 2136 MovieClip "levelDrawArea" in Frame 36
onClipEvent (load) {
_x = 0;
_y = 0;
}
Frame 38
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
stop();
Instance of Symbol 463 MovieClip "level" in Frame 38
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(2000, 2000, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.levelDrawArea);
_root.levelDrawArea.swapDepths(1);
_root.levelDrawArea.removeMovieClip("");
}
Instance of Symbol 2138 MovieClip "bound" in Frame 38
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 2139 MovieClip "lvObj" in Frame 38
onClipEvent (load) {
_x = 0;
_y = 0;
xMax = 1435;
xMin = 0;
yMax = 1250;
yMin = 0;
}
Instance of Symbol 1430 MovieClip "stuff" in Frame 38
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(_width, _height, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.fl);
_root.fl.swapDepths(1000);
_root.fl.removeMovieClip("");
}
Instance of Symbol 1435 MovieClip "cursor" in Frame 38
onClipEvent (load) {
gotoAndStop (3);
Mouse.hide();
}
onClipEvent (enterFrame) {
if (_root.arm.gun == 14) {
if (_currentframe < 3) {
gotoAndStop (3);
}
} else if (_currentframe > 2) {
gotoAndStop (1);
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 957 MovieClip "arm" in Frame 38
onClipEvent (load) {
calculateWeps = function () {
weps = 0;
rr = 0;
while (rr < have.length) {
if ((have[rr] == 1) && (rr != 15)) {
weps = weps + 1;
}
rr++;
}
if (weps == 0) {
gotoAndStop (15);
gun = 15;
_root.wpn = name[gun];
}
};
changeWeapons = function () {
if ((gun == 35) && (weps > 1)) {
coolDown = 0;
}
gunMaxLoop = 1;
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
do {
if (have[gun] == 1) {
break;
}
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
gunMaxLoop++;
} while (gunMaxLoop <= weaponAmt);
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
};
fireFun = function () {
_root.shotsFired[gun] = _root.shotsFired[gun] + 1;
ammo[ammoType[gun]] = ammo[ammoType[gun]] - 1;
_root.character.modifier = random(shake[gun]) + 1;
_root.character.yModifier = random(shake[gun]) + 1;
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
i++;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
} else {
i++;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
}
if (gun != 2) {
if (gun != 35) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
}
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 2 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 3 :
i++;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 4 :
i++;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 5 :
i++;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 6 :
i++;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 7 :
i++;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].tar = drillTarget;
break;
case 8 :
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 9 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 10 :
i++;
duplicateMovieClip (_root.item.beanBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 11 :
i++;
duplicateMovieClip (_root.item.nukeBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i].speed = -10;
ammo[ammoType[gun]] = ammo[ammoType[gun]] + 1;
}
if (_yscale == 100) {
_rotation = (_rotation - int(recoilAng[gun]));
} else {
_rotation = (_rotation + int(recoilAng[gun]));
}
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
}
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
};
name = _root.gameFun.name;
if (_root.achievements[4] == 1) {
name[15] = "Sword";
}
fullAuto = _root.gameFun.fullAuto;
recoil = _root.gameFun.recoil;
recoilAng = _root.gameFun.recoilAng;
recoilRec = _root.gameFun.recoilRec;
recoveryTime = _root.gameFun.recoveryTime;
casing = _root.gameFun.casing;
weaponType = _root.gameFun.weaponType;
pow = _root.gameFun.pow;
shake = _root.gameFun.shake;
inAcc = _root.gameFun.inAcc;
sound = _root.gameFun.sound;
capacity = _root.gameFun.capacity;
ammoName = _root.gameFun.ammoName;
ammoType = _root.gameFun.ammoType;
ready = true;
x = 0;
y = 0;
a = 0;
a2 = 0;
d = 40;
kReady = true;
threeRound = 0;
fire = false;
drillTarget = "";
coolDown = 0;
i = 0;
revolverShots = 0;
weaponAmt = inAcc.length - 1;
mouseListener = new Object();
changeWeapons();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (!Key.isDown(_root.character.k[6])) {
spReady = true;
}
if (Key.isDown(_root.character.k[6]) && (spReady == true)) {
spReady = false;
if (gun != 15) {
weps = weps - 1;
i++;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].rot = _rotation + 90;
_root.item["item" + i].gotoAndStop(gun);
if (ammo[ammoType[gun]] < 1) {
_root.item["item" + i].cap = -1;
} else {
_root.item["item" + i].cap = ammo[ammoType[gun]];
}
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = 25;
have[gun] = 0;
ammo[ammoType[gun]] = -1;
changeWeapons();
}
}
_root.ammo.amm = ammo[ammoType[gun]];
if (_x < (_root.character._x - 10)) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 70) / Math.PI));
_yscale = -100;
_root.character._xscale = -100;
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
if (getDepth() > _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_x > (_root.character._x + 10)) {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 70) / Math.PI));
_yscale = 100;
_root.character._xscale = 100;
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (getDepth() < _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_root.character._xscale == -100) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 30) / Math.PI));
} else {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 30) / Math.PI));
}
if (_yscale == 100) {
a = ((_x - _root._xmouse) + 10) / 3;
} else {
a = ((_x - _root._xmouse) - 10) / 3;
}
x = ((0.9 * x) - x) + a;
a2 = (_y - _root._ymouse) / 3;
y = ((0.9 * y) - y) + a2;
_x = (_x - x);
_y = (_y - y);
dx = _x - _root.character._x;
dy = _y - _root.character._y;
alpha = Math.atan2(dy, dx);
xDis = _root.character._x - _x;
yDis = _root.character._y - _y;
dist = Math.round(Math.sqrt((xDis * xDis) + (yDis * yDis)));
if (Math.abs(dist) > d) {
_x = (_root.character._x + (Math.cos(alpha) * d));
_y = (_root.character._y + (Math.sin(alpha) * d));
}
if (wpn._x < 0) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < 0) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (ammo[ammoType[gun]] > 0) {
if (coolDown < 1) {
fireFun();
}
} else {
fire = false;
_root.sfx.gotoAndPlay(78);
}
}
if ((!Key.isDown(_root.character.k[4])) && (!Key.isDown(_root.character.k[5]))) {
kReady = true;
}
if (kReady == true) {
if (Key.isDown(_root.character.k[4])) {
changeWeapons();
}
if (Key.isDown(_root.character.k[5])) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
}
}
alreadyChangedWeps = false;
mouseListener.onMouseWheel = function (delta) {
trace(delta);
if (delta != 0) {
if (alreadyChangedWeps != true) {
changeWeapons();
alreadyChangedWeps = true;
}
}
};
Mouse.addListener(mouseListener);
if (!Key.isDown(_root.character.k[7])) {
mwReady = true;
}
if (Key.isDown(_root.character.k[7]) && (mwReady == true)) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
mwReady = false;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (gun != 15) {
if (ammo[ammoType[gun]] > 0) {
if (fullAuto[gun] == 0) {
if (coolDown < 1) {
if (gun != 14) {
fireFun();
} else if (drillTarget != "") {
fireFun();
}
}
} else {
fire = true;
}
} else {
_root.sfx.gotoAndPlay(78);
}
} else if (coolDown < 1) {
fireFun();
}
}
}
onClipEvent (mouseUp) {
if (fullAuto[gun] == 1) {
threeRound = 0;
fire = false;
coolDown = 0;
}
}
Instance of Symbol 753 MovieClip "character" in Frame 38
onClipEvent (load) {
_root.gameFun.loadGame();
if (_root.meleeKills > _root.meleeRequirement) {
_root.achievements[4] = 1;
}
createCorpse = function () {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse, "obj" + i, i);
_root.obj["obj" + i]._x = _x - _root.obj._x;
_root.obj["obj" + i]._y = _y - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(_currentframe - 14);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
if (drill == false) {
_root.obj["obj" + i].head.gore.gotoAndStop(gore);
_root.obj["obj" + i].body.gore.gotoAndStop(bodyGore);
}
_root.obj["obj" + i].body.gotoAndStop(body);
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 25) - _root.item._y;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 30) - _root.item._y;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 10) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 15) - _root.item._x;
_root.item["item" + i]._y = (_y + 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x + 15) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = ((_x + _parent._x) - _root.obj._x) - _root.item._x;
_root.obj["obj" + i]._y = ((_y + _parent._y) - _root.obj._y) - _root.item._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
targets = new Array();
xMax = _root.lvObj.xMax;
xMin = _root.lvObj.xMin;
yMax = _root.lvObj.yMax;
yMin = _root.lvObj.yMin;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
modifier = 0;
yModifier = 0;
pan = 0;
panMax = 100;
djkReady = false;
jump = false;
jumpBack = false;
fall = false;
modThing = 0;
doubleJump = false;
gravity = 0;
xVel = 0;
gravAccel = 2;
moveSpeed = 12;
jumpHeight = 24;
hurt = false;
headHurt = false;
health = 50;
deadTime = 0;
if (_root.hardMode == true) {
healthRegen = 0.1;
} else {
healthRegen = 0.2;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
char.play();
if (health > 0) {
if (health < 50) {
health = health + healthRegen;
} else {
health = 50;
}
health = Math.round(health * 10) / 10;
_root.hBlood._alpha = Math.round((70 - health) * 2);
_root.hBlood._alpha = Math.round((50 - health) * 2);
_root.hp = health;
_root.kill = "Kills: " + (kill / _root.multiplier);
myRadians = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
if (((jump == false) && (jumpBack == false)) && (fall == false)) {
if (Key.isDown(k[2])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = -moveSpeed;
if (_xscale == 100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = (-moveSpeed) / 2;
if (_xscale == 100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[3])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = moveSpeed;
if (_xscale == -100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = moveSpeed / 2;
if (_xscale == -100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[1])) {
hurt = false;
headHurt = false;
xVel = 0;
gotoAndStop (10);
} else if ((hurt == false) && (headHurt == false)) {
xVel = 0;
gotoAndStop (1);
}
if (Key.isDown(k[0])) {
hurt = false;
headHurt = false;
djkReady = false;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
if (!_root.bound.hitTest(_x, (_y + boundHeight) + 1, true)) {
fall = true;
}
} else {
if (jump == true) {
if (gravity < 0) {
if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (6);
}
} else if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
if (!Key.isDown(k[0])) {
djkReady = true;
}
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
jump = false;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
} else if (jumpBack == true) {
gotoAndStop (9);
} else if (fall == true) {
if (!Key.isDown(k[0])) {
djkReady = true;
}
gotoAndStop (7);
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
}
if (Key.isDown(k[2])) {
xVel = -moveSpeed;
} else if (Key.isDown(k[3])) {
xVel = moveSpeed;
} else {
xVel = 0;
}
n = 0;
while (n < Math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
} else {
_y = (_y - 1);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
}
if (_root.bound.hitTest(_x, _y + boundHeight, true)) {
while (_root.bound.hitTest(_x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
fall = false;
jump = false;
jumpBack = false;
doubleJump = false;
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
gravity = 0;
}
n++;
}
gravity = gravity + gravAccel;
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
} else {
if ((_root._currentframe == 60) && (saveOnce != true)) {
saveOnce = true;
_root.gameFun.saveGame();
}
if ((fall == false) && (jump == false)) {
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else if (_currentframe < 15) {
if (headHealth < maxHealth) {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < 1) {
if (_currentframe != 19) {
gotoAndStop (19);
}
gore = 0;
} else {
gotoAndStop(14 + (random(2) + 1));
gore = random(3) + 2;
}
} else {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
gotoAndStop(14 + (random(2) + 1));
gore = 0;
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
}
} else {
deadTime++;
if (deadTime > 180) {
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
}
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else {
if (headHealth < 1) {
if (_currentframe != 21) {
xVel = random(8) - 4;
gotoAndStop (21);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
}
} else if (_currentframe != 20) {
xVel = random(8) - 4;
gotoAndStop (20);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < maxHealth) {
gore = random(7) + 2;
}
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
if (!_root.bound.hitTest(_x, _y + boundHeight, true)) {
_y = (_y + gravity);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
} else if (char._currentframe < 8) {
char.gotoAndPlay(8);
}
}
}
}
if (_xscale == 100) {
if (modThing < panMax) {
modThing = modThing + Math.round((panMax - modThing) / 5);
}
} else if (modThing > (-panMax)) {
modThing = modThing - Math.round((panMax + modThing) / 5);
}
pan = -modThing;
times = 0;
while (_x > ((275 + pan) + modifier)) {
if (_root.level._x > (-xMax)) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x > (-(xMax - modifier))) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
}
}
}
times = 0;
while (_x < ((275 + pan) + modifier)) {
if (_root.level._x < xMin) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x < (xMin + modifier)) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
}
}
}
times = 0;
while (_y > (250 + yModifier)) {
if (_root.level._y > (-yMax)) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y > (-(yMax - yModifier))) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
}
}
}
times = 0;
while (_y < (250 + yModifier)) {
if (_root.level._y < yMin) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y < (yMin + yModifier)) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
}
}
}
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
} else {
char.stop();
}
}
Instance of Symbol 1546 MovieClip "obj" in Frame 38
onClipEvent (load) {
i = 0;
gotoAndStop (12);
_x = 0;
_y = 0;
}
Instance of Symbol 1470 MovieClip "swap" in Frame 38
onClipEvent (load) {
gotoAndStop (2);
time = 60;
}
onClipEvent (enterFrame) {
if (time < 20) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1742 MovieClip "screenBox" in Frame 38
onClipEvent (load) {
gotoAndStop (6);
}
Instance of Symbol 508 MovieClip "hBlood" in Frame 38
onClipEvent (load) {
gotoAndStop (2);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
gotoAndStop (1);
if (_alpha > 100) {
_alpha = 100;
}
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1751 MovieClip "ammo" in Frame 38
onClipEvent (enterFrame) {
if (_root.arm.gun != 15) {
if (_root.arm.gun != 35) {
if (amm < 31) {
gotoAndStop(amm + 1);
} else {
gotoAndStop (31);
}
amm2 = amm;
} else {
gotoAndStop (33);
bar._xscale = 100 - _root.arm.coolDown;
}
} else {
gotoAndStop (32);
}
}
Instance of Symbol 1754 MovieClip in Frame 38
onClipEvent (load) {
lev = "Forest";
_alpha = 0;
time = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (time < 90) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "ammoMes" in Frame 38
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 60) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "mes2" in Frame 38
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 100) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 2163 MovieClip "levelDrawArea" in Frame 38
onClipEvent (load) {
_x = 0;
_y = 0;
}
Frame 40
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
stop();
Instance of Symbol 463 MovieClip "level" in Frame 40
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(2000, 2000, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
i = 0;
while (i < 30) {
_root.levelDrawArea["a" + i].t.gotoAndStop(random(8) + 1);
i++;
}
myBitmap.draw(_root.levelDrawArea);
_root.levelDrawArea.swapDepths(1);
_root.levelDrawArea.removeMovieClip("");
}
Instance of Symbol 2165 MovieClip "bound" in Frame 40
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 2166 MovieClip "lvObj" in Frame 40
onClipEvent (load) {
_x = 0;
_y = 0;
xMax = 1435;
xMin = 0;
yMax = 1250;
yMin = 0;
}
Instance of Symbol 1430 MovieClip "stuff" in Frame 40
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(_width, _height, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.fl);
_root.fl.swapDepths(1000);
_root.fl.removeMovieClip("");
}
Instance of Symbol 1435 MovieClip "cursor" in Frame 40
onClipEvent (load) {
gotoAndStop (3);
Mouse.hide();
}
onClipEvent (enterFrame) {
if (_root.arm.gun == 14) {
if (_currentframe < 3) {
gotoAndStop (3);
}
} else if (_currentframe > 2) {
gotoAndStop (1);
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 957 MovieClip "arm" in Frame 40
onClipEvent (load) {
calculateWeps = function () {
weps = 0;
rr = 0;
while (rr < have.length) {
if ((have[rr] == 1) && (rr != 15)) {
weps = weps + 1;
}
rr++;
}
if (weps == 0) {
gotoAndStop (15);
gun = 15;
_root.wpn = name[gun];
}
};
changeWeapons = function () {
if ((gun == 35) && (weps > 1)) {
coolDown = 0;
}
gunMaxLoop = 1;
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
do {
if (have[gun] == 1) {
break;
}
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
gunMaxLoop++;
} while (gunMaxLoop <= weaponAmt);
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
};
fireFun = function () {
_root.shotsFired[gun] = _root.shotsFired[gun] + 1;
ammo[ammoType[gun]] = ammo[ammoType[gun]] - 1;
_root.character.modifier = random(shake[gun]) + 1;
_root.character.yModifier = random(shake[gun]) + 1;
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
i++;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
} else {
i++;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
}
if (gun != 2) {
if (gun != 35) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
}
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 2 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 3 :
i++;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 4 :
i++;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 5 :
i++;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 6 :
i++;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 7 :
i++;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].tar = drillTarget;
break;
case 8 :
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 9 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 10 :
i++;
duplicateMovieClip (_root.item.beanBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 11 :
i++;
duplicateMovieClip (_root.item.nukeBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i].speed = -10;
ammo[ammoType[gun]] = ammo[ammoType[gun]] + 1;
}
if (_yscale == 100) {
_rotation = (_rotation - int(recoilAng[gun]));
} else {
_rotation = (_rotation + int(recoilAng[gun]));
}
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
}
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
};
name = _root.gameFun.name;
if (_root.achievements[4] == 1) {
name[15] = "Sword";
}
fullAuto = _root.gameFun.fullAuto;
recoil = _root.gameFun.recoil;
recoilAng = _root.gameFun.recoilAng;
recoilRec = _root.gameFun.recoilRec;
recoveryTime = _root.gameFun.recoveryTime;
casing = _root.gameFun.casing;
weaponType = _root.gameFun.weaponType;
pow = _root.gameFun.pow;
shake = _root.gameFun.shake;
inAcc = _root.gameFun.inAcc;
sound = _root.gameFun.sound;
capacity = _root.gameFun.capacity;
ammoName = _root.gameFun.ammoName;
ammoType = _root.gameFun.ammoType;
ready = true;
x = 0;
y = 0;
a = 0;
a2 = 0;
d = 40;
kReady = true;
threeRound = 0;
fire = false;
drillTarget = "";
coolDown = 0;
i = 0;
revolverShots = 0;
weaponAmt = inAcc.length - 1;
mouseListener = new Object();
changeWeapons();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (!Key.isDown(_root.character.k[6])) {
spReady = true;
}
if (Key.isDown(_root.character.k[6]) && (spReady == true)) {
spReady = false;
if (gun != 15) {
weps = weps - 1;
i++;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].rot = _rotation + 90;
_root.item["item" + i].gotoAndStop(gun);
if (ammo[ammoType[gun]] < 1) {
_root.item["item" + i].cap = -1;
} else {
_root.item["item" + i].cap = ammo[ammoType[gun]];
}
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = 25;
have[gun] = 0;
ammo[ammoType[gun]] = -1;
changeWeapons();
}
}
_root.ammo.amm = ammo[ammoType[gun]];
if (_x < (_root.character._x - 10)) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 70) / Math.PI));
_yscale = -100;
_root.character._xscale = -100;
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
if (getDepth() > _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_x > (_root.character._x + 10)) {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 70) / Math.PI));
_yscale = 100;
_root.character._xscale = 100;
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (getDepth() < _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_root.character._xscale == -100) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 30) / Math.PI));
} else {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 30) / Math.PI));
}
if (_yscale == 100) {
a = ((_x - _root._xmouse) + 10) / 3;
} else {
a = ((_x - _root._xmouse) - 10) / 3;
}
x = ((0.9 * x) - x) + a;
a2 = (_y - _root._ymouse) / 3;
y = ((0.9 * y) - y) + a2;
_x = (_x - x);
_y = (_y - y);
dx = _x - _root.character._x;
dy = _y - _root.character._y;
alpha = Math.atan2(dy, dx);
xDis = _root.character._x - _x;
yDis = _root.character._y - _y;
dist = Math.round(Math.sqrt((xDis * xDis) + (yDis * yDis)));
if (Math.abs(dist) > d) {
_x = (_root.character._x + (Math.cos(alpha) * d));
_y = (_root.character._y + (Math.sin(alpha) * d));
}
if (wpn._x < 0) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < 0) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (ammo[ammoType[gun]] > 0) {
if (coolDown < 1) {
fireFun();
}
} else {
fire = false;
_root.sfx.gotoAndPlay(78);
}
}
if ((!Key.isDown(_root.character.k[4])) && (!Key.isDown(_root.character.k[5]))) {
kReady = true;
}
if (kReady == true) {
if (Key.isDown(_root.character.k[4])) {
changeWeapons();
}
if (Key.isDown(_root.character.k[5])) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
}
}
alreadyChangedWeps = false;
mouseListener.onMouseWheel = function (delta) {
trace(delta);
if (delta != 0) {
if (alreadyChangedWeps != true) {
changeWeapons();
alreadyChangedWeps = true;
}
}
};
Mouse.addListener(mouseListener);
if (!Key.isDown(_root.character.k[7])) {
mwReady = true;
}
if (Key.isDown(_root.character.k[7]) && (mwReady == true)) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
mwReady = false;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (gun != 15) {
if (ammo[ammoType[gun]] > 0) {
if (fullAuto[gun] == 0) {
if (coolDown < 1) {
if (gun != 14) {
fireFun();
} else if (drillTarget != "") {
fireFun();
}
}
} else {
fire = true;
}
} else {
_root.sfx.gotoAndPlay(78);
}
} else if (coolDown < 1) {
fireFun();
}
}
}
onClipEvent (mouseUp) {
if (fullAuto[gun] == 1) {
threeRound = 0;
fire = false;
coolDown = 0;
}
}
Instance of Symbol 753 MovieClip "character" in Frame 40
onClipEvent (load) {
_root.gameFun.loadGame();
if (_root.meleeKills > _root.meleeRequirement) {
_root.achievements[4] = 1;
}
createCorpse = function () {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse, "obj" + i, i);
_root.obj["obj" + i]._x = _x - _root.obj._x;
_root.obj["obj" + i]._y = _y - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(_currentframe - 14);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
if (drill == false) {
_root.obj["obj" + i].head.gore.gotoAndStop(gore);
_root.obj["obj" + i].body.gore.gotoAndStop(bodyGore);
}
_root.obj["obj" + i].body.gotoAndStop(body);
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 25) - _root.item._y;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 30) - _root.item._y;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 10) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 15) - _root.item._x;
_root.item["item" + i]._y = (_y + 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x + 15) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = ((_x + _parent._x) - _root.obj._x) - _root.item._x;
_root.obj["obj" + i]._y = ((_y + _parent._y) - _root.obj._y) - _root.item._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
targets = new Array();
xMax = _root.lvObj.xMax;
xMin = _root.lvObj.xMin;
yMax = _root.lvObj.yMax;
yMin = _root.lvObj.yMin;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
modifier = 0;
yModifier = 0;
pan = 0;
panMax = 100;
djkReady = false;
jump = false;
jumpBack = false;
fall = false;
modThing = 0;
doubleJump = false;
gravity = 0;
xVel = 0;
gravAccel = 2;
moveSpeed = 12;
jumpHeight = 24;
hurt = false;
headHurt = false;
health = 50;
deadTime = 0;
if (_root.hardMode == true) {
healthRegen = 0.1;
} else {
healthRegen = 0.2;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
char.play();
if (health > 0) {
if (health < 50) {
health = health + healthRegen;
} else {
health = 50;
}
health = Math.round(health * 10) / 10;
_root.hBlood._alpha = Math.round((70 - health) * 2);
_root.hBlood._alpha = Math.round((50 - health) * 2);
_root.hp = health;
_root.kill = "Kills: " + (kill / _root.multiplier);
myRadians = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
if (((jump == false) && (jumpBack == false)) && (fall == false)) {
if (Key.isDown(k[2])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = -moveSpeed;
if (_xscale == 100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = (-moveSpeed) / 2;
if (_xscale == 100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[3])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = moveSpeed;
if (_xscale == -100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = moveSpeed / 2;
if (_xscale == -100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[1])) {
hurt = false;
headHurt = false;
xVel = 0;
gotoAndStop (10);
} else if ((hurt == false) && (headHurt == false)) {
xVel = 0;
gotoAndStop (1);
}
if (Key.isDown(k[0])) {
hurt = false;
headHurt = false;
djkReady = false;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
if (!_root.bound.hitTest(_x, (_y + boundHeight) + 1, true)) {
fall = true;
}
} else {
if (jump == true) {
if (gravity < 0) {
if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (6);
}
} else if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
if (!Key.isDown(k[0])) {
djkReady = true;
}
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
jump = false;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
} else if (jumpBack == true) {
gotoAndStop (9);
} else if (fall == true) {
if (!Key.isDown(k[0])) {
djkReady = true;
}
gotoAndStop (7);
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
}
if (Key.isDown(k[2])) {
xVel = -moveSpeed;
} else if (Key.isDown(k[3])) {
xVel = moveSpeed;
} else {
xVel = 0;
}
n = 0;
while (n < Math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
} else {
_y = (_y - 1);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
}
if (_root.bound.hitTest(_x, _y + boundHeight, true)) {
while (_root.bound.hitTest(_x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
fall = false;
jump = false;
jumpBack = false;
doubleJump = false;
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
gravity = 0;
}
n++;
}
gravity = gravity + gravAccel;
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
} else {
if ((_root._currentframe == 60) && (saveOnce != true)) {
saveOnce = true;
_root.gameFun.saveGame();
}
if ((fall == false) && (jump == false)) {
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else if (_currentframe < 15) {
if (headHealth < maxHealth) {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < 1) {
if (_currentframe != 19) {
gotoAndStop (19);
}
gore = 0;
} else {
gotoAndStop(14 + (random(2) + 1));
gore = random(3) + 2;
}
} else {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
gotoAndStop(14 + (random(2) + 1));
gore = 0;
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
}
} else {
deadTime++;
if (deadTime > 180) {
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
}
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else {
if (headHealth < 1) {
if (_currentframe != 21) {
xVel = random(8) - 4;
gotoAndStop (21);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
}
} else if (_currentframe != 20) {
xVel = random(8) - 4;
gotoAndStop (20);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < maxHealth) {
gore = random(7) + 2;
}
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
if (!_root.bound.hitTest(_x, _y + boundHeight, true)) {
_y = (_y + gravity);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
} else if (char._currentframe < 8) {
char.gotoAndPlay(8);
}
}
}
}
if (_xscale == 100) {
if (modThing < panMax) {
modThing = modThing + Math.round((panMax - modThing) / 5);
}
} else if (modThing > (-panMax)) {
modThing = modThing - Math.round((panMax + modThing) / 5);
}
pan = -modThing;
times = 0;
while (_x > ((275 + pan) + modifier)) {
if (_root.level._x > (-xMax)) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x > (-(xMax - modifier))) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
}
}
}
times = 0;
while (_x < ((275 + pan) + modifier)) {
if (_root.level._x < xMin) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x < (xMin + modifier)) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
}
}
}
times = 0;
while (_y > (250 + yModifier)) {
if (_root.level._y > (-yMax)) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y > (-(yMax - yModifier))) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
}
}
}
times = 0;
while (_y < (250 + yModifier)) {
if (_root.level._y < yMin) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y < (yMin + yModifier)) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
}
}
}
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
} else {
char.stop();
}
}
Instance of Symbol 1546 MovieClip "obj" in Frame 40
onClipEvent (load) {
i = 0;
gotoAndStop (13);
_x = 0;
_y = 0;
}
Instance of Symbol 1470 MovieClip "swap" in Frame 40
onClipEvent (load) {
gotoAndStop (2);
time = 60;
}
onClipEvent (enterFrame) {
if (time < 20) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1742 MovieClip "screenBox" in Frame 40
onClipEvent (load) {
gotoAndStop (6);
}
Instance of Symbol 508 MovieClip "hBlood" in Frame 40
onClipEvent (load) {
gotoAndStop (2);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
gotoAndStop (1);
if (_alpha > 100) {
_alpha = 100;
}
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1751 MovieClip "ammo" in Frame 40
onClipEvent (enterFrame) {
if (_root.arm.gun != 15) {
if (_root.arm.gun != 35) {
if (amm < 31) {
gotoAndStop(amm + 1);
} else {
gotoAndStop (31);
}
amm2 = amm;
} else {
gotoAndStop (33);
bar._xscale = 100 - _root.arm.coolDown;
}
} else {
gotoAndStop (32);
}
}
Instance of Symbol 1754 MovieClip in Frame 40
onClipEvent (load) {
lev = "Genetic Research Lab";
_alpha = 0;
time = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (time < 90) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "ammoMes" in Frame 40
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 60) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "mes2" in Frame 40
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 100) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 2209 MovieClip "levelDrawArea" in Frame 40
onClipEvent (load) {
_x = 0;
_y = 0;
}
Frame 42
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
stop();
Instance of Symbol 463 MovieClip "level" in Frame 42
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(2000, 2000, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
i = 0;
while (i < 30) {
_root.levelDrawArea["a" + i].t.gotoAndStop(random(8) + 1);
i++;
}
myBitmap.draw(_root.levelDrawArea);
_root.levelDrawArea.swapDepths(1);
_root.levelDrawArea.removeMovieClip("");
}
Instance of Symbol 2211 MovieClip "bound" in Frame 42
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 2212 MovieClip "lvObj" in Frame 42
onClipEvent (load) {
_x = 0;
_y = 0;
xMax = 1435;
xMin = 0;
yMax = 1250;
yMin = -350;
}
Instance of Symbol 1430 MovieClip "stuff" in Frame 42
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(_width, _height, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.fl);
_root.fl.swapDepths(1000);
_root.fl.removeMovieClip("");
}
Instance of Symbol 1435 MovieClip "cursor" in Frame 42
onClipEvent (load) {
gotoAndStop (3);
Mouse.hide();
}
onClipEvent (enterFrame) {
if (_root.arm.gun == 14) {
if (_currentframe < 3) {
gotoAndStop (3);
}
} else if (_currentframe > 2) {
gotoAndStop (1);
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 957 MovieClip "arm" in Frame 42
onClipEvent (load) {
calculateWeps = function () {
weps = 0;
rr = 0;
while (rr < have.length) {
if ((have[rr] == 1) && (rr != 15)) {
weps = weps + 1;
}
rr++;
}
if (weps == 0) {
gotoAndStop (15);
gun = 15;
_root.wpn = name[gun];
}
};
changeWeapons = function () {
if ((gun == 35) && (weps > 1)) {
coolDown = 0;
}
gunMaxLoop = 1;
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
do {
if (have[gun] == 1) {
break;
}
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
gunMaxLoop++;
} while (gunMaxLoop <= weaponAmt);
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
};
fireFun = function () {
_root.shotsFired[gun] = _root.shotsFired[gun] + 1;
ammo[ammoType[gun]] = ammo[ammoType[gun]] - 1;
_root.character.modifier = random(shake[gun]) + 1;
_root.character.yModifier = random(shake[gun]) + 1;
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
i++;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
} else {
i++;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
}
if (gun != 2) {
if (gun != 35) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
}
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 2 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 3 :
i++;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 4 :
i++;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 5 :
i++;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 6 :
i++;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 7 :
i++;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].tar = drillTarget;
break;
case 8 :
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 9 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 10 :
i++;
duplicateMovieClip (_root.item.beanBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 11 :
i++;
duplicateMovieClip (_root.item.nukeBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i].speed = -10;
ammo[ammoType[gun]] = ammo[ammoType[gun]] + 1;
}
if (_yscale == 100) {
_rotation = (_rotation - int(recoilAng[gun]));
} else {
_rotation = (_rotation + int(recoilAng[gun]));
}
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
}
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
};
name = _root.gameFun.name;
if (_root.achievements[4] == 1) {
name[15] = "Sword";
}
fullAuto = _root.gameFun.fullAuto;
recoil = _root.gameFun.recoil;
recoilAng = _root.gameFun.recoilAng;
recoilRec = _root.gameFun.recoilRec;
recoveryTime = _root.gameFun.recoveryTime;
casing = _root.gameFun.casing;
weaponType = _root.gameFun.weaponType;
pow = _root.gameFun.pow;
shake = _root.gameFun.shake;
inAcc = _root.gameFun.inAcc;
sound = _root.gameFun.sound;
capacity = _root.gameFun.capacity;
ammoName = _root.gameFun.ammoName;
ammoType = _root.gameFun.ammoType;
ready = true;
x = 0;
y = 0;
a = 0;
a2 = 0;
d = 40;
kReady = true;
threeRound = 0;
fire = false;
drillTarget = "";
coolDown = 0;
i = 0;
revolverShots = 0;
weaponAmt = inAcc.length - 1;
mouseListener = new Object();
changeWeapons();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (!Key.isDown(_root.character.k[6])) {
spReady = true;
}
if (Key.isDown(_root.character.k[6]) && (spReady == true)) {
spReady = false;
if (gun != 15) {
weps = weps - 1;
i++;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].rot = _rotation + 90;
_root.item["item" + i].gotoAndStop(gun);
if (ammo[ammoType[gun]] < 1) {
_root.item["item" + i].cap = -1;
} else {
_root.item["item" + i].cap = ammo[ammoType[gun]];
}
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = 25;
have[gun] = 0;
ammo[ammoType[gun]] = -1;
changeWeapons();
}
}
_root.ammo.amm = ammo[ammoType[gun]];
if (_x < (_root.character._x - 10)) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 70) / Math.PI));
_yscale = -100;
_root.character._xscale = -100;
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
if (getDepth() > _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_x > (_root.character._x + 10)) {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 70) / Math.PI));
_yscale = 100;
_root.character._xscale = 100;
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (getDepth() < _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_root.character._xscale == -100) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 30) / Math.PI));
} else {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 30) / Math.PI));
}
if (_yscale == 100) {
a = ((_x - _root._xmouse) + 10) / 3;
} else {
a = ((_x - _root._xmouse) - 10) / 3;
}
x = ((0.9 * x) - x) + a;
a2 = (_y - _root._ymouse) / 3;
y = ((0.9 * y) - y) + a2;
_x = (_x - x);
_y = (_y - y);
dx = _x - _root.character._x;
dy = _y - _root.character._y;
alpha = Math.atan2(dy, dx);
xDis = _root.character._x - _x;
yDis = _root.character._y - _y;
dist = Math.round(Math.sqrt((xDis * xDis) + (yDis * yDis)));
if (Math.abs(dist) > d) {
_x = (_root.character._x + (Math.cos(alpha) * d));
_y = (_root.character._y + (Math.sin(alpha) * d));
}
if (wpn._x < 0) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < 0) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (ammo[ammoType[gun]] > 0) {
if (coolDown < 1) {
fireFun();
}
} else {
fire = false;
_root.sfx.gotoAndPlay(78);
}
}
if ((!Key.isDown(_root.character.k[4])) && (!Key.isDown(_root.character.k[5]))) {
kReady = true;
}
if (kReady == true) {
if (Key.isDown(_root.character.k[4])) {
changeWeapons();
}
if (Key.isDown(_root.character.k[5])) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
}
}
alreadyChangedWeps = false;
mouseListener.onMouseWheel = function (delta) {
trace(delta);
if (delta != 0) {
if (alreadyChangedWeps != true) {
changeWeapons();
alreadyChangedWeps = true;
}
}
};
Mouse.addListener(mouseListener);
if (!Key.isDown(_root.character.k[7])) {
mwReady = true;
}
if (Key.isDown(_root.character.k[7]) && (mwReady == true)) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
mwReady = false;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (gun != 15) {
if (ammo[ammoType[gun]] > 0) {
if (fullAuto[gun] == 0) {
if (coolDown < 1) {
if (gun != 14) {
fireFun();
} else if (drillTarget != "") {
fireFun();
}
}
} else {
fire = true;
}
} else {
_root.sfx.gotoAndPlay(78);
}
} else if (coolDown < 1) {
fireFun();
}
}
}
onClipEvent (mouseUp) {
if (fullAuto[gun] == 1) {
threeRound = 0;
fire = false;
coolDown = 0;
}
}
Instance of Symbol 753 MovieClip "character" in Frame 42
onClipEvent (load) {
_root.gameFun.loadGame();
if (_root.meleeKills > _root.meleeRequirement) {
_root.achievements[4] = 1;
}
createCorpse = function () {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse, "obj" + i, i);
_root.obj["obj" + i]._x = _x - _root.obj._x;
_root.obj["obj" + i]._y = _y - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(_currentframe - 14);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
if (drill == false) {
_root.obj["obj" + i].head.gore.gotoAndStop(gore);
_root.obj["obj" + i].body.gore.gotoAndStop(bodyGore);
}
_root.obj["obj" + i].body.gotoAndStop(body);
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 25) - _root.item._y;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 30) - _root.item._y;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 10) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 15) - _root.item._x;
_root.item["item" + i]._y = (_y + 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x + 15) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = ((_x + _parent._x) - _root.obj._x) - _root.item._x;
_root.obj["obj" + i]._y = ((_y + _parent._y) - _root.obj._y) - _root.item._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
targets = new Array();
xMax = _root.lvObj.xMax;
xMin = _root.lvObj.xMin;
yMax = _root.lvObj.yMax;
yMin = _root.lvObj.yMin;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
modifier = 0;
yModifier = 0;
pan = 0;
panMax = 100;
djkReady = false;
jump = false;
jumpBack = false;
fall = false;
modThing = 0;
doubleJump = false;
gravity = 0;
xVel = 0;
gravAccel = 2;
moveSpeed = 12;
jumpHeight = 24;
hurt = false;
headHurt = false;
health = 50;
deadTime = 0;
if (_root.hardMode == true) {
healthRegen = 0.1;
} else {
healthRegen = 0.2;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
char.play();
if (health > 0) {
if (health < 50) {
health = health + healthRegen;
} else {
health = 50;
}
health = Math.round(health * 10) / 10;
_root.hBlood._alpha = Math.round((70 - health) * 2);
_root.hBlood._alpha = Math.round((50 - health) * 2);
_root.hp = health;
_root.kill = "Kills: " + (kill / _root.multiplier);
myRadians = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
if (((jump == false) && (jumpBack == false)) && (fall == false)) {
if (Key.isDown(k[2])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = -moveSpeed;
if (_xscale == 100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = (-moveSpeed) / 2;
if (_xscale == 100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[3])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = moveSpeed;
if (_xscale == -100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = moveSpeed / 2;
if (_xscale == -100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[1])) {
hurt = false;
headHurt = false;
xVel = 0;
gotoAndStop (10);
} else if ((hurt == false) && (headHurt == false)) {
xVel = 0;
gotoAndStop (1);
}
if (Key.isDown(k[0])) {
hurt = false;
headHurt = false;
djkReady = false;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
if (!_root.bound.hitTest(_x, (_y + boundHeight) + 1, true)) {
fall = true;
}
} else {
if (jump == true) {
if (gravity < 0) {
if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (6);
}
} else if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
if (!Key.isDown(k[0])) {
djkReady = true;
}
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
jump = false;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
} else if (jumpBack == true) {
gotoAndStop (9);
} else if (fall == true) {
if (!Key.isDown(k[0])) {
djkReady = true;
}
gotoAndStop (7);
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
}
if (Key.isDown(k[2])) {
xVel = -moveSpeed;
} else if (Key.isDown(k[3])) {
xVel = moveSpeed;
} else {
xVel = 0;
}
n = 0;
while (n < Math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
} else {
_y = (_y - 1);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
}
if (_root.bound.hitTest(_x, _y + boundHeight, true)) {
while (_root.bound.hitTest(_x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
fall = false;
jump = false;
jumpBack = false;
doubleJump = false;
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
gravity = 0;
}
n++;
}
gravity = gravity + gravAccel;
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
} else {
if ((_root._currentframe == 60) && (saveOnce != true)) {
saveOnce = true;
_root.gameFun.saveGame();
}
if ((fall == false) && (jump == false)) {
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else if (_currentframe < 15) {
if (headHealth < maxHealth) {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < 1) {
if (_currentframe != 19) {
gotoAndStop (19);
}
gore = 0;
} else {
gotoAndStop(14 + (random(2) + 1));
gore = random(3) + 2;
}
} else {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
gotoAndStop(14 + (random(2) + 1));
gore = 0;
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
}
} else {
deadTime++;
if (deadTime > 180) {
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
}
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else {
if (headHealth < 1) {
if (_currentframe != 21) {
xVel = random(8) - 4;
gotoAndStop (21);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
}
} else if (_currentframe != 20) {
xVel = random(8) - 4;
gotoAndStop (20);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < maxHealth) {
gore = random(7) + 2;
}
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
if (!_root.bound.hitTest(_x, _y + boundHeight, true)) {
_y = (_y + gravity);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
} else if (char._currentframe < 8) {
char.gotoAndPlay(8);
}
}
}
}
if (_xscale == 100) {
if (modThing < panMax) {
modThing = modThing + Math.round((panMax - modThing) / 5);
}
} else if (modThing > (-panMax)) {
modThing = modThing - Math.round((panMax + modThing) / 5);
}
pan = -modThing;
times = 0;
while (_x > ((275 + pan) + modifier)) {
if (_root.level._x > (-xMax)) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x > (-(xMax - modifier))) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
}
}
}
times = 0;
while (_x < ((275 + pan) + modifier)) {
if (_root.level._x < xMin) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x < (xMin + modifier)) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
}
}
}
times = 0;
while (_y > (250 + yModifier)) {
if (_root.level._y > (-yMax)) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y > (-(yMax - yModifier))) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
}
}
}
times = 0;
while (_y < (250 + yModifier)) {
if (_root.level._y < yMin) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y < (yMin + yModifier)) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
}
}
}
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
} else {
char.stop();
}
}
Instance of Symbol 1546 MovieClip "obj" in Frame 42
onClipEvent (load) {
i = 0;
gotoAndStop (14);
_x = 0;
_y = 0;
}
Instance of Symbol 1470 MovieClip "swap" in Frame 42
onClipEvent (load) {
gotoAndStop (2);
time = 60;
}
onClipEvent (enterFrame) {
if (time < 20) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1742 MovieClip "screenBox" in Frame 42
onClipEvent (load) {
gotoAndStop (6);
}
Instance of Symbol 508 MovieClip "hBlood" in Frame 42
onClipEvent (load) {
gotoAndStop (2);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
gotoAndStop (1);
if (_alpha > 100) {
_alpha = 100;
}
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1751 MovieClip "ammo" in Frame 42
onClipEvent (enterFrame) {
if (_root.arm.gun != 15) {
if (_root.arm.gun != 35) {
if (amm < 31) {
gotoAndStop(amm + 1);
} else {
gotoAndStop (31);
}
amm2 = amm;
} else {
gotoAndStop (33);
bar._xscale = 100 - _root.arm.coolDown;
}
} else {
gotoAndStop (32);
}
}
Instance of Symbol 1754 MovieClip in Frame 42
onClipEvent (load) {
lev = "Genetic Research Lab";
_alpha = 0;
time = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (time < 90) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "ammoMes" in Frame 42
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 60) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "mes2" in Frame 42
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 100) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 2222 MovieClip "levelDrawArea" in Frame 42
onClipEvent (load) {
_x = 0;
_y = 0;
}
Frame 44
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
stop();
Instance of Symbol 463 MovieClip "level" in Frame 44
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(2000, 2000, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
i = 0;
while (i < 30) {
_root.levelDrawArea["a" + i].t.gotoAndStop(random(8) + 1);
i++;
}
myBitmap.draw(_root.levelDrawArea);
_root.levelDrawArea.swapDepths(1);
_root.levelDrawArea.removeMovieClip("");
}
Instance of Symbol 2224 MovieClip "bound" in Frame 44
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 2225 MovieClip "lvObj" in Frame 44
onClipEvent (load) {
_x = 0;
_y = 0;
xMax = 1435;
xMin = 0;
yMax = 1250;
yMin = -350;
}
Instance of Symbol 1430 MovieClip "stuff" in Frame 44
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(_width, _height, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.fl);
_root.fl.swapDepths(1000);
_root.fl.removeMovieClip("");
}
Instance of Symbol 1435 MovieClip "cursor" in Frame 44
onClipEvent (load) {
gotoAndStop (3);
Mouse.hide();
}
onClipEvent (enterFrame) {
if (_root.arm.gun == 14) {
if (_currentframe < 3) {
gotoAndStop (3);
}
} else if (_currentframe > 2) {
gotoAndStop (1);
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 957 MovieClip "arm" in Frame 44
onClipEvent (load) {
calculateWeps = function () {
weps = 0;
rr = 0;
while (rr < have.length) {
if ((have[rr] == 1) && (rr != 15)) {
weps = weps + 1;
}
rr++;
}
if (weps == 0) {
gotoAndStop (15);
gun = 15;
_root.wpn = name[gun];
}
};
changeWeapons = function () {
if ((gun == 35) && (weps > 1)) {
coolDown = 0;
}
gunMaxLoop = 1;
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
do {
if (have[gun] == 1) {
break;
}
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
gunMaxLoop++;
} while (gunMaxLoop <= weaponAmt);
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
};
fireFun = function () {
_root.shotsFired[gun] = _root.shotsFired[gun] + 1;
ammo[ammoType[gun]] = ammo[ammoType[gun]] - 1;
_root.character.modifier = random(shake[gun]) + 1;
_root.character.yModifier = random(shake[gun]) + 1;
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
i++;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
} else {
i++;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
}
if (gun != 2) {
if (gun != 35) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
}
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 2 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 3 :
i++;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 4 :
i++;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 5 :
i++;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 6 :
i++;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 7 :
i++;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].tar = drillTarget;
break;
case 8 :
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 9 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 10 :
i++;
duplicateMovieClip (_root.item.beanBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 11 :
i++;
duplicateMovieClip (_root.item.nukeBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i].speed = -10;
ammo[ammoType[gun]] = ammo[ammoType[gun]] + 1;
}
if (_yscale == 100) {
_rotation = (_rotation - int(recoilAng[gun]));
} else {
_rotation = (_rotation + int(recoilAng[gun]));
}
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
}
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
};
name = _root.gameFun.name;
if (_root.achievements[4] == 1) {
name[15] = "Sword";
}
fullAuto = _root.gameFun.fullAuto;
recoil = _root.gameFun.recoil;
recoilAng = _root.gameFun.recoilAng;
recoilRec = _root.gameFun.recoilRec;
recoveryTime = _root.gameFun.recoveryTime;
casing = _root.gameFun.casing;
weaponType = _root.gameFun.weaponType;
pow = _root.gameFun.pow;
shake = _root.gameFun.shake;
inAcc = _root.gameFun.inAcc;
sound = _root.gameFun.sound;
capacity = _root.gameFun.capacity;
ammoName = _root.gameFun.ammoName;
ammoType = _root.gameFun.ammoType;
ready = true;
x = 0;
y = 0;
a = 0;
a2 = 0;
d = 40;
kReady = true;
threeRound = 0;
fire = false;
drillTarget = "";
coolDown = 0;
i = 0;
revolverShots = 0;
weaponAmt = inAcc.length - 1;
mouseListener = new Object();
changeWeapons();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (!Key.isDown(_root.character.k[6])) {
spReady = true;
}
if (Key.isDown(_root.character.k[6]) && (spReady == true)) {
spReady = false;
if (gun != 15) {
weps = weps - 1;
i++;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].rot = _rotation + 90;
_root.item["item" + i].gotoAndStop(gun);
if (ammo[ammoType[gun]] < 1) {
_root.item["item" + i].cap = -1;
} else {
_root.item["item" + i].cap = ammo[ammoType[gun]];
}
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = 25;
have[gun] = 0;
ammo[ammoType[gun]] = -1;
changeWeapons();
}
}
_root.ammo.amm = ammo[ammoType[gun]];
if (_x < (_root.character._x - 10)) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 70) / Math.PI));
_yscale = -100;
_root.character._xscale = -100;
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
if (getDepth() > _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_x > (_root.character._x + 10)) {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 70) / Math.PI));
_yscale = 100;
_root.character._xscale = 100;
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (getDepth() < _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_root.character._xscale == -100) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 30) / Math.PI));
} else {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 30) / Math.PI));
}
if (_yscale == 100) {
a = ((_x - _root._xmouse) + 10) / 3;
} else {
a = ((_x - _root._xmouse) - 10) / 3;
}
x = ((0.9 * x) - x) + a;
a2 = (_y - _root._ymouse) / 3;
y = ((0.9 * y) - y) + a2;
_x = (_x - x);
_y = (_y - y);
dx = _x - _root.character._x;
dy = _y - _root.character._y;
alpha = Math.atan2(dy, dx);
xDis = _root.character._x - _x;
yDis = _root.character._y - _y;
dist = Math.round(Math.sqrt((xDis * xDis) + (yDis * yDis)));
if (Math.abs(dist) > d) {
_x = (_root.character._x + (Math.cos(alpha) * d));
_y = (_root.character._y + (Math.sin(alpha) * d));
}
if (wpn._x < 0) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < 0) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (ammo[ammoType[gun]] > 0) {
if (coolDown < 1) {
fireFun();
}
} else {
fire = false;
_root.sfx.gotoAndPlay(78);
}
}
if ((!Key.isDown(_root.character.k[4])) && (!Key.isDown(_root.character.k[5]))) {
kReady = true;
}
if (kReady == true) {
if (Key.isDown(_root.character.k[4])) {
changeWeapons();
}
if (Key.isDown(_root.character.k[5])) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
}
}
alreadyChangedWeps = false;
mouseListener.onMouseWheel = function (delta) {
trace(delta);
if (delta != 0) {
if (alreadyChangedWeps != true) {
changeWeapons();
alreadyChangedWeps = true;
}
}
};
Mouse.addListener(mouseListener);
if (!Key.isDown(_root.character.k[7])) {
mwReady = true;
}
if (Key.isDown(_root.character.k[7]) && (mwReady == true)) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
mwReady = false;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (gun != 15) {
if (ammo[ammoType[gun]] > 0) {
if (fullAuto[gun] == 0) {
if (coolDown < 1) {
if (gun != 14) {
fireFun();
} else if (drillTarget != "") {
fireFun();
}
}
} else {
fire = true;
}
} else {
_root.sfx.gotoAndPlay(78);
}
} else if (coolDown < 1) {
fireFun();
}
}
}
onClipEvent (mouseUp) {
if (fullAuto[gun] == 1) {
threeRound = 0;
fire = false;
coolDown = 0;
}
}
Instance of Symbol 753 MovieClip "character" in Frame 44
onClipEvent (load) {
_root.gameFun.loadGame();
if (_root.meleeKills > _root.meleeRequirement) {
_root.achievements[4] = 1;
}
createCorpse = function () {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse, "obj" + i, i);
_root.obj["obj" + i]._x = _x - _root.obj._x;
_root.obj["obj" + i]._y = _y - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(_currentframe - 14);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
if (drill == false) {
_root.obj["obj" + i].head.gore.gotoAndStop(gore);
_root.obj["obj" + i].body.gore.gotoAndStop(bodyGore);
}
_root.obj["obj" + i].body.gotoAndStop(body);
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 25) - _root.item._y;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 30) - _root.item._y;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 10) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 15) - _root.item._x;
_root.item["item" + i]._y = (_y + 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x + 15) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = ((_x + _parent._x) - _root.obj._x) - _root.item._x;
_root.obj["obj" + i]._y = ((_y + _parent._y) - _root.obj._y) - _root.item._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
targets = new Array();
xMax = _root.lvObj.xMax;
xMin = _root.lvObj.xMin;
yMax = _root.lvObj.yMax;
yMin = _root.lvObj.yMin;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
modifier = 0;
yModifier = 0;
pan = 0;
panMax = 100;
djkReady = false;
jump = false;
jumpBack = false;
fall = false;
modThing = 0;
doubleJump = false;
gravity = 0;
xVel = 0;
gravAccel = 2;
moveSpeed = 12;
jumpHeight = 24;
hurt = false;
headHurt = false;
health = 50;
deadTime = 0;
if (_root.hardMode == true) {
healthRegen = 0.1;
} else {
healthRegen = 0.2;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
char.play();
if (health > 0) {
if (health < 50) {
health = health + healthRegen;
} else {
health = 50;
}
health = Math.round(health * 10) / 10;
_root.hBlood._alpha = Math.round((70 - health) * 2);
_root.hBlood._alpha = Math.round((50 - health) * 2);
_root.hp = health;
_root.kill = "Kills: " + (kill / _root.multiplier);
myRadians = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
if (((jump == false) && (jumpBack == false)) && (fall == false)) {
if (Key.isDown(k[2])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = -moveSpeed;
if (_xscale == 100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = (-moveSpeed) / 2;
if (_xscale == 100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[3])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = moveSpeed;
if (_xscale == -100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = moveSpeed / 2;
if (_xscale == -100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[1])) {
hurt = false;
headHurt = false;
xVel = 0;
gotoAndStop (10);
} else if ((hurt == false) && (headHurt == false)) {
xVel = 0;
gotoAndStop (1);
}
if (Key.isDown(k[0])) {
hurt = false;
headHurt = false;
djkReady = false;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
if (!_root.bound.hitTest(_x, (_y + boundHeight) + 1, true)) {
fall = true;
}
} else {
if (jump == true) {
if (gravity < 0) {
if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (6);
}
} else if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
if (!Key.isDown(k[0])) {
djkReady = true;
}
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
jump = false;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
} else if (jumpBack == true) {
gotoAndStop (9);
} else if (fall == true) {
if (!Key.isDown(k[0])) {
djkReady = true;
}
gotoAndStop (7);
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
}
if (Key.isDown(k[2])) {
xVel = -moveSpeed;
} else if (Key.isDown(k[3])) {
xVel = moveSpeed;
} else {
xVel = 0;
}
n = 0;
while (n < Math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
} else {
_y = (_y - 1);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
}
if (_root.bound.hitTest(_x, _y + boundHeight, true)) {
while (_root.bound.hitTest(_x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
fall = false;
jump = false;
jumpBack = false;
doubleJump = false;
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
gravity = 0;
}
n++;
}
gravity = gravity + gravAccel;
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
} else {
if ((_root._currentframe == 60) && (saveOnce != true)) {
saveOnce = true;
_root.gameFun.saveGame();
}
if ((fall == false) && (jump == false)) {
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else if (_currentframe < 15) {
if (headHealth < maxHealth) {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < 1) {
if (_currentframe != 19) {
gotoAndStop (19);
}
gore = 0;
} else {
gotoAndStop(14 + (random(2) + 1));
gore = random(3) + 2;
}
} else {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
gotoAndStop(14 + (random(2) + 1));
gore = 0;
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
}
} else {
deadTime++;
if (deadTime > 180) {
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
}
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else {
if (headHealth < 1) {
if (_currentframe != 21) {
xVel = random(8) - 4;
gotoAndStop (21);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
}
} else if (_currentframe != 20) {
xVel = random(8) - 4;
gotoAndStop (20);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < maxHealth) {
gore = random(7) + 2;
}
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
if (!_root.bound.hitTest(_x, _y + boundHeight, true)) {
_y = (_y + gravity);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
} else if (char._currentframe < 8) {
char.gotoAndPlay(8);
}
}
}
}
if (_xscale == 100) {
if (modThing < panMax) {
modThing = modThing + Math.round((panMax - modThing) / 5);
}
} else if (modThing > (-panMax)) {
modThing = modThing - Math.round((panMax + modThing) / 5);
}
pan = -modThing;
times = 0;
while (_x > ((275 + pan) + modifier)) {
if (_root.level._x > (-xMax)) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x > (-(xMax - modifier))) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
}
}
}
times = 0;
while (_x < ((275 + pan) + modifier)) {
if (_root.level._x < xMin) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x < (xMin + modifier)) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
}
}
}
times = 0;
while (_y > (250 + yModifier)) {
if (_root.level._y > (-yMax)) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y > (-(yMax - yModifier))) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
}
}
}
times = 0;
while (_y < (250 + yModifier)) {
if (_root.level._y < yMin) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y < (yMin + yModifier)) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
}
}
}
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
} else {
char.stop();
}
}
Instance of Symbol 1546 MovieClip "obj" in Frame 44
onClipEvent (load) {
i = 0;
gotoAndStop (15);
_x = 0;
_y = 0;
}
Instance of Symbol 1470 MovieClip "swap" in Frame 44
onClipEvent (load) {
gotoAndStop (2);
time = 60;
}
onClipEvent (enterFrame) {
if (time < 20) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1742 MovieClip "screenBox" in Frame 44
onClipEvent (load) {
gotoAndStop (6);
}
Instance of Symbol 508 MovieClip "hBlood" in Frame 44
onClipEvent (load) {
gotoAndStop (2);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
gotoAndStop (1);
if (_alpha > 100) {
_alpha = 100;
}
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1751 MovieClip "ammo" in Frame 44
onClipEvent (enterFrame) {
if (_root.arm.gun != 15) {
if (_root.arm.gun != 35) {
if (amm < 31) {
gotoAndStop(amm + 1);
} else {
gotoAndStop (31);
}
amm2 = amm;
} else {
gotoAndStop (33);
bar._xscale = 100 - _root.arm.coolDown;
}
} else {
gotoAndStop (32);
}
}
Instance of Symbol 1754 MovieClip in Frame 44
onClipEvent (load) {
lev = "Genetic Research Lab";
_alpha = 0;
time = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (time < 90) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "ammoMes" in Frame 44
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 60) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "mes2" in Frame 44
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 100) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 2238 MovieClip "levelDrawArea" in Frame 44
onClipEvent (load) {
_x = 0;
_y = 0;
}
Frame 46
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
stop();
Instance of Symbol 463 MovieClip "level" in Frame 46
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(2000, 2000, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
i = 0;
while (i < 30) {
_root.levelDrawArea["a" + i].t.gotoAndStop(random(8) + 1);
i++;
}
myBitmap.draw(_root.levelDrawArea);
_root.levelDrawArea.swapDepths(1);
_root.levelDrawArea.removeMovieClip("");
}
Instance of Symbol 2240 MovieClip "bound" in Frame 46
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 2241 MovieClip "lvObj" in Frame 46
onClipEvent (load) {
_x = 0;
_y = 0;
xMax = 1435;
xMin = 0;
yMax = 1250;
yMin = 0;
}
Instance of Symbol 1430 MovieClip "stuff" in Frame 46
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(_width, _height, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.fl);
_root.fl.swapDepths(1000);
_root.fl.removeMovieClip("");
}
Instance of Symbol 1435 MovieClip "cursor" in Frame 46
onClipEvent (load) {
gotoAndStop (3);
Mouse.hide();
}
onClipEvent (enterFrame) {
if (_root.arm.gun == 14) {
if (_currentframe < 3) {
gotoAndStop (3);
}
} else if (_currentframe > 2) {
gotoAndStop (1);
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 957 MovieClip "arm" in Frame 46
onClipEvent (load) {
calculateWeps = function () {
weps = 0;
rr = 0;
while (rr < have.length) {
if ((have[rr] == 1) && (rr != 15)) {
weps = weps + 1;
}
rr++;
}
if (weps == 0) {
gotoAndStop (15);
gun = 15;
_root.wpn = name[gun];
}
};
changeWeapons = function () {
if ((gun == 35) && (weps > 1)) {
coolDown = 0;
}
gunMaxLoop = 1;
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
do {
if (have[gun] == 1) {
break;
}
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
gunMaxLoop++;
} while (gunMaxLoop <= weaponAmt);
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
};
fireFun = function () {
_root.shotsFired[gun] = _root.shotsFired[gun] + 1;
ammo[ammoType[gun]] = ammo[ammoType[gun]] - 1;
_root.character.modifier = random(shake[gun]) + 1;
_root.character.yModifier = random(shake[gun]) + 1;
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
i++;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
} else {
i++;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
}
if (gun != 2) {
if (gun != 35) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
}
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 2 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 3 :
i++;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 4 :
i++;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 5 :
i++;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 6 :
i++;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 7 :
i++;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].tar = drillTarget;
break;
case 8 :
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 9 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 10 :
i++;
duplicateMovieClip (_root.item.beanBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 11 :
i++;
duplicateMovieClip (_root.item.nukeBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i].speed = -10;
ammo[ammoType[gun]] = ammo[ammoType[gun]] + 1;
}
if (_yscale == 100) {
_rotation = (_rotation - int(recoilAng[gun]));
} else {
_rotation = (_rotation + int(recoilAng[gun]));
}
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
}
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
};
name = _root.gameFun.name;
if (_root.achievements[4] == 1) {
name[15] = "Sword";
}
fullAuto = _root.gameFun.fullAuto;
recoil = _root.gameFun.recoil;
recoilAng = _root.gameFun.recoilAng;
recoilRec = _root.gameFun.recoilRec;
recoveryTime = _root.gameFun.recoveryTime;
casing = _root.gameFun.casing;
weaponType = _root.gameFun.weaponType;
pow = _root.gameFun.pow;
shake = _root.gameFun.shake;
inAcc = _root.gameFun.inAcc;
sound = _root.gameFun.sound;
capacity = _root.gameFun.capacity;
ammoName = _root.gameFun.ammoName;
ammoType = _root.gameFun.ammoType;
ready = true;
x = 0;
y = 0;
a = 0;
a2 = 0;
d = 40;
kReady = true;
threeRound = 0;
fire = false;
drillTarget = "";
coolDown = 0;
i = 0;
revolverShots = 0;
weaponAmt = inAcc.length - 1;
mouseListener = new Object();
changeWeapons();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (!Key.isDown(_root.character.k[6])) {
spReady = true;
}
if (Key.isDown(_root.character.k[6]) && (spReady == true)) {
spReady = false;
if (gun != 15) {
weps = weps - 1;
i++;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].rot = _rotation + 90;
_root.item["item" + i].gotoAndStop(gun);
if (ammo[ammoType[gun]] < 1) {
_root.item["item" + i].cap = -1;
} else {
_root.item["item" + i].cap = ammo[ammoType[gun]];
}
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = 25;
have[gun] = 0;
ammo[ammoType[gun]] = -1;
changeWeapons();
}
}
_root.ammo.amm = ammo[ammoType[gun]];
if (_x < (_root.character._x - 10)) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 70) / Math.PI));
_yscale = -100;
_root.character._xscale = -100;
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
if (getDepth() > _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_x > (_root.character._x + 10)) {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 70) / Math.PI));
_yscale = 100;
_root.character._xscale = 100;
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (getDepth() < _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_root.character._xscale == -100) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 30) / Math.PI));
} else {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 30) / Math.PI));
}
if (_yscale == 100) {
a = ((_x - _root._xmouse) + 10) / 3;
} else {
a = ((_x - _root._xmouse) - 10) / 3;
}
x = ((0.9 * x) - x) + a;
a2 = (_y - _root._ymouse) / 3;
y = ((0.9 * y) - y) + a2;
_x = (_x - x);
_y = (_y - y);
dx = _x - _root.character._x;
dy = _y - _root.character._y;
alpha = Math.atan2(dy, dx);
xDis = _root.character._x - _x;
yDis = _root.character._y - _y;
dist = Math.round(Math.sqrt((xDis * xDis) + (yDis * yDis)));
if (Math.abs(dist) > d) {
_x = (_root.character._x + (Math.cos(alpha) * d));
_y = (_root.character._y + (Math.sin(alpha) * d));
}
if (wpn._x < 0) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < 0) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (ammo[ammoType[gun]] > 0) {
if (coolDown < 1) {
fireFun();
}
} else {
fire = false;
_root.sfx.gotoAndPlay(78);
}
}
if ((!Key.isDown(_root.character.k[4])) && (!Key.isDown(_root.character.k[5]))) {
kReady = true;
}
if (kReady == true) {
if (Key.isDown(_root.character.k[4])) {
changeWeapons();
}
if (Key.isDown(_root.character.k[5])) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
}
}
alreadyChangedWeps = false;
mouseListener.onMouseWheel = function (delta) {
trace(delta);
if (delta != 0) {
if (alreadyChangedWeps != true) {
changeWeapons();
alreadyChangedWeps = true;
}
}
};
Mouse.addListener(mouseListener);
if (!Key.isDown(_root.character.k[7])) {
mwReady = true;
}
if (Key.isDown(_root.character.k[7]) && (mwReady == true)) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
mwReady = false;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (gun != 15) {
if (ammo[ammoType[gun]] > 0) {
if (fullAuto[gun] == 0) {
if (coolDown < 1) {
if (gun != 14) {
fireFun();
} else if (drillTarget != "") {
fireFun();
}
}
} else {
fire = true;
}
} else {
_root.sfx.gotoAndPlay(78);
}
} else if (coolDown < 1) {
fireFun();
}
}
}
onClipEvent (mouseUp) {
if (fullAuto[gun] == 1) {
threeRound = 0;
fire = false;
coolDown = 0;
}
}
Instance of Symbol 753 MovieClip "character" in Frame 46
onClipEvent (load) {
_root.gameFun.loadGame();
if (_root.meleeKills > _root.meleeRequirement) {
_root.achievements[4] = 1;
}
createCorpse = function () {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse, "obj" + i, i);
_root.obj["obj" + i]._x = _x - _root.obj._x;
_root.obj["obj" + i]._y = _y - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(_currentframe - 14);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
if (drill == false) {
_root.obj["obj" + i].head.gore.gotoAndStop(gore);
_root.obj["obj" + i].body.gore.gotoAndStop(bodyGore);
}
_root.obj["obj" + i].body.gotoAndStop(body);
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 25) - _root.item._y;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 30) - _root.item._y;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 10) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 15) - _root.item._x;
_root.item["item" + i]._y = (_y + 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x + 15) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = ((_x + _parent._x) - _root.obj._x) - _root.item._x;
_root.obj["obj" + i]._y = ((_y + _parent._y) - _root.obj._y) - _root.item._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
targets = new Array();
xMax = _root.lvObj.xMax;
xMin = _root.lvObj.xMin;
yMax = _root.lvObj.yMax;
yMin = _root.lvObj.yMin;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
modifier = 0;
yModifier = 0;
pan = 0;
panMax = 100;
djkReady = false;
jump = false;
jumpBack = false;
fall = false;
modThing = 0;
doubleJump = false;
gravity = 0;
xVel = 0;
gravAccel = 2;
moveSpeed = 12;
jumpHeight = 24;
hurt = false;
headHurt = false;
health = 50;
deadTime = 0;
if (_root.hardMode == true) {
healthRegen = 0.1;
} else {
healthRegen = 0.2;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
char.play();
if (health > 0) {
if (health < 50) {
health = health + healthRegen;
} else {
health = 50;
}
health = Math.round(health * 10) / 10;
_root.hBlood._alpha = Math.round((70 - health) * 2);
_root.hBlood._alpha = Math.round((50 - health) * 2);
_root.hp = health;
_root.kill = "Kills: " + (kill / _root.multiplier);
myRadians = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
if (((jump == false) && (jumpBack == false)) && (fall == false)) {
if (Key.isDown(k[2])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = -moveSpeed;
if (_xscale == 100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = (-moveSpeed) / 2;
if (_xscale == 100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[3])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = moveSpeed;
if (_xscale == -100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = moveSpeed / 2;
if (_xscale == -100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[1])) {
hurt = false;
headHurt = false;
xVel = 0;
gotoAndStop (10);
} else if ((hurt == false) && (headHurt == false)) {
xVel = 0;
gotoAndStop (1);
}
if (Key.isDown(k[0])) {
hurt = false;
headHurt = false;
djkReady = false;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
if (!_root.bound.hitTest(_x, (_y + boundHeight) + 1, true)) {
fall = true;
}
} else {
if (jump == true) {
if (gravity < 0) {
if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (6);
}
} else if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
if (!Key.isDown(k[0])) {
djkReady = true;
}
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
jump = false;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
} else if (jumpBack == true) {
gotoAndStop (9);
} else if (fall == true) {
if (!Key.isDown(k[0])) {
djkReady = true;
}
gotoAndStop (7);
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
}
if (Key.isDown(k[2])) {
xVel = -moveSpeed;
} else if (Key.isDown(k[3])) {
xVel = moveSpeed;
} else {
xVel = 0;
}
n = 0;
while (n < Math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
} else {
_y = (_y - 1);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
}
if (_root.bound.hitTest(_x, _y + boundHeight, true)) {
while (_root.bound.hitTest(_x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
fall = false;
jump = false;
jumpBack = false;
doubleJump = false;
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
gravity = 0;
}
n++;
}
gravity = gravity + gravAccel;
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
} else {
if ((_root._currentframe == 60) && (saveOnce != true)) {
saveOnce = true;
_root.gameFun.saveGame();
}
if ((fall == false) && (jump == false)) {
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else if (_currentframe < 15) {
if (headHealth < maxHealth) {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < 1) {
if (_currentframe != 19) {
gotoAndStop (19);
}
gore = 0;
} else {
gotoAndStop(14 + (random(2) + 1));
gore = random(3) + 2;
}
} else {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
gotoAndStop(14 + (random(2) + 1));
gore = 0;
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
}
} else {
deadTime++;
if (deadTime > 180) {
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
}
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else {
if (headHealth < 1) {
if (_currentframe != 21) {
xVel = random(8) - 4;
gotoAndStop (21);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
}
} else if (_currentframe != 20) {
xVel = random(8) - 4;
gotoAndStop (20);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < maxHealth) {
gore = random(7) + 2;
}
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
if (!_root.bound.hitTest(_x, _y + boundHeight, true)) {
_y = (_y + gravity);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
} else if (char._currentframe < 8) {
char.gotoAndPlay(8);
}
}
}
}
if (_xscale == 100) {
if (modThing < panMax) {
modThing = modThing + Math.round((panMax - modThing) / 5);
}
} else if (modThing > (-panMax)) {
modThing = modThing - Math.round((panMax + modThing) / 5);
}
pan = -modThing;
times = 0;
while (_x > ((275 + pan) + modifier)) {
if (_root.level._x > (-xMax)) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x > (-(xMax - modifier))) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
}
}
}
times = 0;
while (_x < ((275 + pan) + modifier)) {
if (_root.level._x < xMin) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x < (xMin + modifier)) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
}
}
}
times = 0;
while (_y > (250 + yModifier)) {
if (_root.level._y > (-yMax)) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y > (-(yMax - yModifier))) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
}
}
}
times = 0;
while (_y < (250 + yModifier)) {
if (_root.level._y < yMin) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y < (yMin + yModifier)) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
}
}
}
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
} else {
char.stop();
}
}
Instance of Symbol 1546 MovieClip "obj" in Frame 46
onClipEvent (load) {
i = 0;
gotoAndStop (16);
_x = 0;
_y = 0;
}
Instance of Symbol 1470 MovieClip "swap" in Frame 46
onClipEvent (load) {
gotoAndStop (2);
time = 60;
}
onClipEvent (enterFrame) {
if (time < 20) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1742 MovieClip "screenBox" in Frame 46
onClipEvent (load) {
gotoAndStop (6);
}
Instance of Symbol 508 MovieClip "hBlood" in Frame 46
onClipEvent (load) {
gotoAndStop (2);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
gotoAndStop (1);
if (_alpha > 100) {
_alpha = 100;
}
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1751 MovieClip "ammo" in Frame 46
onClipEvent (enterFrame) {
if (_root.arm.gun != 15) {
if (_root.arm.gun != 35) {
if (amm < 31) {
gotoAndStop(amm + 1);
} else {
gotoAndStop (31);
}
amm2 = amm;
} else {
gotoAndStop (33);
bar._xscale = 100 - _root.arm.coolDown;
}
} else {
gotoAndStop (32);
}
}
Instance of Symbol 1754 MovieClip in Frame 46
onClipEvent (load) {
lev = "Genetic Research Lab";
_alpha = 0;
time = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (time < 90) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "ammoMes" in Frame 46
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 60) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "mes2" in Frame 46
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 100) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 2255 MovieClip "levelDrawArea" in Frame 46
onClipEvent (load) {
_x = 0;
_y = 0;
}
Frame 48
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
stop();
Instance of Symbol 463 MovieClip "level" in Frame 48
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(2000, 2000, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
i = 0;
while (i < 30) {
_root.levelDrawArea["a" + i].t.gotoAndStop(random(8) + 1);
i++;
}
myBitmap.draw(_root.levelDrawArea);
_root.levelDrawArea.swapDepths(1);
_root.levelDrawArea.removeMovieClip("");
}
Instance of Symbol 2257 MovieClip "bound" in Frame 48
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 2258 MovieClip "lvObj" in Frame 48
onClipEvent (load) {
_x = 0;
_y = 0;
xMax = 1435;
xMin = 0;
yMax = 1250;
yMin = 0;
}
Instance of Symbol 1430 MovieClip "stuff" in Frame 48
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(_width, _height, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.fl);
_root.fl.swapDepths(1000);
_root.fl.removeMovieClip("");
}
Instance of Symbol 1435 MovieClip "cursor" in Frame 48
onClipEvent (load) {
gotoAndStop (3);
Mouse.hide();
}
onClipEvent (enterFrame) {
if (_root.arm.gun == 14) {
if (_currentframe < 3) {
gotoAndStop (3);
}
} else if (_currentframe > 2) {
gotoAndStop (1);
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 957 MovieClip "arm" in Frame 48
onClipEvent (load) {
calculateWeps = function () {
weps = 0;
rr = 0;
while (rr < have.length) {
if ((have[rr] == 1) && (rr != 15)) {
weps = weps + 1;
}
rr++;
}
if (weps == 0) {
gotoAndStop (15);
gun = 15;
_root.wpn = name[gun];
}
};
changeWeapons = function () {
if ((gun == 35) && (weps > 1)) {
coolDown = 0;
}
gunMaxLoop = 1;
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
do {
if (have[gun] == 1) {
break;
}
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
gunMaxLoop++;
} while (gunMaxLoop <= weaponAmt);
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
};
fireFun = function () {
_root.shotsFired[gun] = _root.shotsFired[gun] + 1;
ammo[ammoType[gun]] = ammo[ammoType[gun]] - 1;
_root.character.modifier = random(shake[gun]) + 1;
_root.character.yModifier = random(shake[gun]) + 1;
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
i++;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
} else {
i++;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
}
if (gun != 2) {
if (gun != 35) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
}
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 2 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 3 :
i++;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 4 :
i++;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 5 :
i++;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 6 :
i++;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 7 :
i++;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].tar = drillTarget;
break;
case 8 :
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 9 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 10 :
i++;
duplicateMovieClip (_root.item.beanBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 11 :
i++;
duplicateMovieClip (_root.item.nukeBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i].speed = -10;
ammo[ammoType[gun]] = ammo[ammoType[gun]] + 1;
}
if (_yscale == 100) {
_rotation = (_rotation - int(recoilAng[gun]));
} else {
_rotation = (_rotation + int(recoilAng[gun]));
}
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
}
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
};
name = _root.gameFun.name;
if (_root.achievements[4] == 1) {
name[15] = "Sword";
}
fullAuto = _root.gameFun.fullAuto;
recoil = _root.gameFun.recoil;
recoilAng = _root.gameFun.recoilAng;
recoilRec = _root.gameFun.recoilRec;
recoveryTime = _root.gameFun.recoveryTime;
casing = _root.gameFun.casing;
weaponType = _root.gameFun.weaponType;
pow = _root.gameFun.pow;
shake = _root.gameFun.shake;
inAcc = _root.gameFun.inAcc;
sound = _root.gameFun.sound;
capacity = _root.gameFun.capacity;
ammoName = _root.gameFun.ammoName;
ammoType = _root.gameFun.ammoType;
ready = true;
x = 0;
y = 0;
a = 0;
a2 = 0;
d = 40;
kReady = true;
threeRound = 0;
fire = false;
drillTarget = "";
coolDown = 0;
i = 0;
revolverShots = 0;
weaponAmt = inAcc.length - 1;
mouseListener = new Object();
changeWeapons();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (!Key.isDown(_root.character.k[6])) {
spReady = true;
}
if (Key.isDown(_root.character.k[6]) && (spReady == true)) {
spReady = false;
if (gun != 15) {
weps = weps - 1;
i++;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].rot = _rotation + 90;
_root.item["item" + i].gotoAndStop(gun);
if (ammo[ammoType[gun]] < 1) {
_root.item["item" + i].cap = -1;
} else {
_root.item["item" + i].cap = ammo[ammoType[gun]];
}
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = 25;
have[gun] = 0;
ammo[ammoType[gun]] = -1;
changeWeapons();
}
}
_root.ammo.amm = ammo[ammoType[gun]];
if (_x < (_root.character._x - 10)) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 70) / Math.PI));
_yscale = -100;
_root.character._xscale = -100;
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
if (getDepth() > _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_x > (_root.character._x + 10)) {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 70) / Math.PI));
_yscale = 100;
_root.character._xscale = 100;
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (getDepth() < _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_root.character._xscale == -100) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 30) / Math.PI));
} else {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 30) / Math.PI));
}
if (_yscale == 100) {
a = ((_x - _root._xmouse) + 10) / 3;
} else {
a = ((_x - _root._xmouse) - 10) / 3;
}
x = ((0.9 * x) - x) + a;
a2 = (_y - _root._ymouse) / 3;
y = ((0.9 * y) - y) + a2;
_x = (_x - x);
_y = (_y - y);
dx = _x - _root.character._x;
dy = _y - _root.character._y;
alpha = Math.atan2(dy, dx);
xDis = _root.character._x - _x;
yDis = _root.character._y - _y;
dist = Math.round(Math.sqrt((xDis * xDis) + (yDis * yDis)));
if (Math.abs(dist) > d) {
_x = (_root.character._x + (Math.cos(alpha) * d));
_y = (_root.character._y + (Math.sin(alpha) * d));
}
if (wpn._x < 0) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < 0) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (ammo[ammoType[gun]] > 0) {
if (coolDown < 1) {
fireFun();
}
} else {
fire = false;
_root.sfx.gotoAndPlay(78);
}
}
if ((!Key.isDown(_root.character.k[4])) && (!Key.isDown(_root.character.k[5]))) {
kReady = true;
}
if (kReady == true) {
if (Key.isDown(_root.character.k[4])) {
changeWeapons();
}
if (Key.isDown(_root.character.k[5])) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
}
}
alreadyChangedWeps = false;
mouseListener.onMouseWheel = function (delta) {
trace(delta);
if (delta != 0) {
if (alreadyChangedWeps != true) {
changeWeapons();
alreadyChangedWeps = true;
}
}
};
Mouse.addListener(mouseListener);
if (!Key.isDown(_root.character.k[7])) {
mwReady = true;
}
if (Key.isDown(_root.character.k[7]) && (mwReady == true)) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
mwReady = false;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (gun != 15) {
if (ammo[ammoType[gun]] > 0) {
if (fullAuto[gun] == 0) {
if (coolDown < 1) {
if (gun != 14) {
fireFun();
} else if (drillTarget != "") {
fireFun();
}
}
} else {
fire = true;
}
} else {
_root.sfx.gotoAndPlay(78);
}
} else if (coolDown < 1) {
fireFun();
}
}
}
onClipEvent (mouseUp) {
if (fullAuto[gun] == 1) {
threeRound = 0;
fire = false;
coolDown = 0;
}
}
Instance of Symbol 753 MovieClip "character" in Frame 48
onClipEvent (load) {
_root.gameFun.loadGame();
if (_root.meleeKills > _root.meleeRequirement) {
_root.achievements[4] = 1;
}
createCorpse = function () {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse, "obj" + i, i);
_root.obj["obj" + i]._x = _x - _root.obj._x;
_root.obj["obj" + i]._y = _y - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(_currentframe - 14);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
if (drill == false) {
_root.obj["obj" + i].head.gore.gotoAndStop(gore);
_root.obj["obj" + i].body.gore.gotoAndStop(bodyGore);
}
_root.obj["obj" + i].body.gotoAndStop(body);
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 25) - _root.item._y;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 30) - _root.item._y;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 10) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 15) - _root.item._x;
_root.item["item" + i]._y = (_y + 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x + 15) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = ((_x + _parent._x) - _root.obj._x) - _root.item._x;
_root.obj["obj" + i]._y = ((_y + _parent._y) - _root.obj._y) - _root.item._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
targets = new Array();
xMax = _root.lvObj.xMax;
xMin = _root.lvObj.xMin;
yMax = _root.lvObj.yMax;
yMin = _root.lvObj.yMin;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
modifier = 0;
yModifier = 0;
pan = 0;
panMax = 100;
djkReady = false;
jump = false;
jumpBack = false;
fall = false;
modThing = 0;
doubleJump = false;
gravity = 0;
xVel = 0;
gravAccel = 2;
moveSpeed = 12;
jumpHeight = 24;
hurt = false;
headHurt = false;
health = 50;
deadTime = 0;
if (_root.hardMode == true) {
healthRegen = 0.1;
} else {
healthRegen = 0.2;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
char.play();
if (health > 0) {
if (health < 50) {
health = health + healthRegen;
} else {
health = 50;
}
health = Math.round(health * 10) / 10;
_root.hBlood._alpha = Math.round((70 - health) * 2);
_root.hBlood._alpha = Math.round((50 - health) * 2);
_root.hp = health;
_root.kill = "Kills: " + (kill / _root.multiplier);
myRadians = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
if (((jump == false) && (jumpBack == false)) && (fall == false)) {
if (Key.isDown(k[2])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = -moveSpeed;
if (_xscale == 100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = (-moveSpeed) / 2;
if (_xscale == 100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[3])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = moveSpeed;
if (_xscale == -100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = moveSpeed / 2;
if (_xscale == -100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[1])) {
hurt = false;
headHurt = false;
xVel = 0;
gotoAndStop (10);
} else if ((hurt == false) && (headHurt == false)) {
xVel = 0;
gotoAndStop (1);
}
if (Key.isDown(k[0])) {
hurt = false;
headHurt = false;
djkReady = false;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
if (!_root.bound.hitTest(_x, (_y + boundHeight) + 1, true)) {
fall = true;
}
} else {
if (jump == true) {
if (gravity < 0) {
if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (6);
}
} else if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
if (!Key.isDown(k[0])) {
djkReady = true;
}
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
jump = false;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
} else if (jumpBack == true) {
gotoAndStop (9);
} else if (fall == true) {
if (!Key.isDown(k[0])) {
djkReady = true;
}
gotoAndStop (7);
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
}
if (Key.isDown(k[2])) {
xVel = -moveSpeed;
} else if (Key.isDown(k[3])) {
xVel = moveSpeed;
} else {
xVel = 0;
}
n = 0;
while (n < Math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
} else {
_y = (_y - 1);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
}
if (_root.bound.hitTest(_x, _y + boundHeight, true)) {
while (_root.bound.hitTest(_x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
fall = false;
jump = false;
jumpBack = false;
doubleJump = false;
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
gravity = 0;
}
n++;
}
gravity = gravity + gravAccel;
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
} else {
if ((_root._currentframe == 60) && (saveOnce != true)) {
saveOnce = true;
_root.gameFun.saveGame();
}
if ((fall == false) && (jump == false)) {
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else if (_currentframe < 15) {
if (headHealth < maxHealth) {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < 1) {
if (_currentframe != 19) {
gotoAndStop (19);
}
gore = 0;
} else {
gotoAndStop(14 + (random(2) + 1));
gore = random(3) + 2;
}
} else {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
gotoAndStop(14 + (random(2) + 1));
gore = 0;
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
}
} else {
deadTime++;
if (deadTime > 180) {
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
}
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else {
if (headHealth < 1) {
if (_currentframe != 21) {
xVel = random(8) - 4;
gotoAndStop (21);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
}
} else if (_currentframe != 20) {
xVel = random(8) - 4;
gotoAndStop (20);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < maxHealth) {
gore = random(7) + 2;
}
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
if (!_root.bound.hitTest(_x, _y + boundHeight, true)) {
_y = (_y + gravity);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
} else if (char._currentframe < 8) {
char.gotoAndPlay(8);
}
}
}
}
if (_xscale == 100) {
if (modThing < panMax) {
modThing = modThing + Math.round((panMax - modThing) / 5);
}
} else if (modThing > (-panMax)) {
modThing = modThing - Math.round((panMax + modThing) / 5);
}
pan = -modThing;
times = 0;
while (_x > ((275 + pan) + modifier)) {
if (_root.level._x > (-xMax)) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x > (-(xMax - modifier))) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
}
}
}
times = 0;
while (_x < ((275 + pan) + modifier)) {
if (_root.level._x < xMin) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x < (xMin + modifier)) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
}
}
}
times = 0;
while (_y > (250 + yModifier)) {
if (_root.level._y > (-yMax)) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y > (-(yMax - yModifier))) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
}
}
}
times = 0;
while (_y < (250 + yModifier)) {
if (_root.level._y < yMin) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y < (yMin + yModifier)) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
}
}
}
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
} else {
char.stop();
}
}
Instance of Symbol 1546 MovieClip "obj" in Frame 48
onClipEvent (load) {
i = 0;
gotoAndStop (17);
_x = 0;
_y = 0;
}
Instance of Symbol 1470 MovieClip "swap" in Frame 48
onClipEvent (load) {
gotoAndStop (2);
time = 60;
}
onClipEvent (enterFrame) {
if (time < 20) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1742 MovieClip "screenBox" in Frame 48
onClipEvent (load) {
gotoAndStop (6);
}
Instance of Symbol 508 MovieClip "hBlood" in Frame 48
onClipEvent (load) {
gotoAndStop (2);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
gotoAndStop (1);
if (_alpha > 100) {
_alpha = 100;
}
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1751 MovieClip "ammo" in Frame 48
onClipEvent (enterFrame) {
if (_root.arm.gun != 15) {
if (_root.arm.gun != 35) {
if (amm < 31) {
gotoAndStop(amm + 1);
} else {
gotoAndStop (31);
}
amm2 = amm;
} else {
gotoAndStop (33);
bar._xscale = 100 - _root.arm.coolDown;
}
} else {
gotoAndStop (32);
}
}
Instance of Symbol 1754 MovieClip in Frame 48
onClipEvent (load) {
lev = "Genetic Research Lab";
_alpha = 0;
time = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (time < 90) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "ammoMes" in Frame 48
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 60) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "mes2" in Frame 48
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 100) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 2270 MovieClip "levelDrawArea" in Frame 48
onClipEvent (load) {
_x = 0;
_y = 0;
}
Frame 50
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
stop();
Instance of Symbol 463 MovieClip "level" in Frame 50
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(2000, 2000, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
i = 0;
while (i < 30) {
_root.levelDrawArea["a" + i].t.gotoAndStop(random(8) + 1);
i++;
}
myBitmap.draw(_root.levelDrawArea);
_root.levelDrawArea.swapDepths(1);
_root.levelDrawArea.removeMovieClip("");
}
Instance of Symbol 2211 MovieClip "bound" in Frame 50
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 2271 MovieClip "lvObj" in Frame 50
onClipEvent (load) {
_x = 0;
_y = 0;
xMax = 1435;
xMin = 0;
yMax = 1250;
yMin = -350;
}
Instance of Symbol 1430 MovieClip "stuff" in Frame 50
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(_width, _height, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.fl);
_root.fl.swapDepths(1000);
_root.fl.removeMovieClip("");
}
Instance of Symbol 1435 MovieClip "cursor" in Frame 50
onClipEvent (load) {
gotoAndStop (3);
Mouse.hide();
}
onClipEvent (enterFrame) {
if (_root.arm.gun == 14) {
if (_currentframe < 3) {
gotoAndStop (3);
}
} else if (_currentframe > 2) {
gotoAndStop (1);
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 957 MovieClip "arm" in Frame 50
onClipEvent (load) {
calculateWeps = function () {
weps = 0;
rr = 0;
while (rr < have.length) {
if ((have[rr] == 1) && (rr != 15)) {
weps = weps + 1;
}
rr++;
}
if (weps == 0) {
gotoAndStop (15);
gun = 15;
_root.wpn = name[gun];
}
};
changeWeapons = function () {
if ((gun == 35) && (weps > 1)) {
coolDown = 0;
}
gunMaxLoop = 1;
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
do {
if (have[gun] == 1) {
break;
}
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
gunMaxLoop++;
} while (gunMaxLoop <= weaponAmt);
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
};
fireFun = function () {
_root.shotsFired[gun] = _root.shotsFired[gun] + 1;
ammo[ammoType[gun]] = ammo[ammoType[gun]] - 1;
_root.character.modifier = random(shake[gun]) + 1;
_root.character.yModifier = random(shake[gun]) + 1;
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
i++;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
} else {
i++;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
}
if (gun != 2) {
if (gun != 35) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
}
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 2 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 3 :
i++;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 4 :
i++;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 5 :
i++;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 6 :
i++;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 7 :
i++;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].tar = drillTarget;
break;
case 8 :
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 9 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 10 :
i++;
duplicateMovieClip (_root.item.beanBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 11 :
i++;
duplicateMovieClip (_root.item.nukeBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i].speed = -10;
ammo[ammoType[gun]] = ammo[ammoType[gun]] + 1;
}
if (_yscale == 100) {
_rotation = (_rotation - int(recoilAng[gun]));
} else {
_rotation = (_rotation + int(recoilAng[gun]));
}
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
}
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
};
name = _root.gameFun.name;
if (_root.achievements[4] == 1) {
name[15] = "Sword";
}
fullAuto = _root.gameFun.fullAuto;
recoil = _root.gameFun.recoil;
recoilAng = _root.gameFun.recoilAng;
recoilRec = _root.gameFun.recoilRec;
recoveryTime = _root.gameFun.recoveryTime;
casing = _root.gameFun.casing;
weaponType = _root.gameFun.weaponType;
pow = _root.gameFun.pow;
shake = _root.gameFun.shake;
inAcc = _root.gameFun.inAcc;
sound = _root.gameFun.sound;
capacity = _root.gameFun.capacity;
ammoName = _root.gameFun.ammoName;
ammoType = _root.gameFun.ammoType;
ready = true;
x = 0;
y = 0;
a = 0;
a2 = 0;
d = 40;
kReady = true;
threeRound = 0;
fire = false;
drillTarget = "";
coolDown = 0;
i = 0;
revolverShots = 0;
weaponAmt = inAcc.length - 1;
mouseListener = new Object();
changeWeapons();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (!Key.isDown(_root.character.k[6])) {
spReady = true;
}
if (Key.isDown(_root.character.k[6]) && (spReady == true)) {
spReady = false;
if (gun != 15) {
weps = weps - 1;
i++;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].rot = _rotation + 90;
_root.item["item" + i].gotoAndStop(gun);
if (ammo[ammoType[gun]] < 1) {
_root.item["item" + i].cap = -1;
} else {
_root.item["item" + i].cap = ammo[ammoType[gun]];
}
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = 25;
have[gun] = 0;
ammo[ammoType[gun]] = -1;
changeWeapons();
}
}
_root.ammo.amm = ammo[ammoType[gun]];
if (_x < (_root.character._x - 10)) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 70) / Math.PI));
_yscale = -100;
_root.character._xscale = -100;
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
if (getDepth() > _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_x > (_root.character._x + 10)) {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 70) / Math.PI));
_yscale = 100;
_root.character._xscale = 100;
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (getDepth() < _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_root.character._xscale == -100) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 30) / Math.PI));
} else {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 30) / Math.PI));
}
if (_yscale == 100) {
a = ((_x - _root._xmouse) + 10) / 3;
} else {
a = ((_x - _root._xmouse) - 10) / 3;
}
x = ((0.9 * x) - x) + a;
a2 = (_y - _root._ymouse) / 3;
y = ((0.9 * y) - y) + a2;
_x = (_x - x);
_y = (_y - y);
dx = _x - _root.character._x;
dy = _y - _root.character._y;
alpha = Math.atan2(dy, dx);
xDis = _root.character._x - _x;
yDis = _root.character._y - _y;
dist = Math.round(Math.sqrt((xDis * xDis) + (yDis * yDis)));
if (Math.abs(dist) > d) {
_x = (_root.character._x + (Math.cos(alpha) * d));
_y = (_root.character._y + (Math.sin(alpha) * d));
}
if (wpn._x < 0) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < 0) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (ammo[ammoType[gun]] > 0) {
if (coolDown < 1) {
fireFun();
}
} else {
fire = false;
_root.sfx.gotoAndPlay(78);
}
}
if ((!Key.isDown(_root.character.k[4])) && (!Key.isDown(_root.character.k[5]))) {
kReady = true;
}
if (kReady == true) {
if (Key.isDown(_root.character.k[4])) {
changeWeapons();
}
if (Key.isDown(_root.character.k[5])) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
}
}
alreadyChangedWeps = false;
mouseListener.onMouseWheel = function (delta) {
trace(delta);
if (delta != 0) {
if (alreadyChangedWeps != true) {
changeWeapons();
alreadyChangedWeps = true;
}
}
};
Mouse.addListener(mouseListener);
if (!Key.isDown(_root.character.k[7])) {
mwReady = true;
}
if (Key.isDown(_root.character.k[7]) && (mwReady == true)) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
mwReady = false;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (gun != 15) {
if (ammo[ammoType[gun]] > 0) {
if (fullAuto[gun] == 0) {
if (coolDown < 1) {
if (gun != 14) {
fireFun();
} else if (drillTarget != "") {
fireFun();
}
}
} else {
fire = true;
}
} else {
_root.sfx.gotoAndPlay(78);
}
} else if (coolDown < 1) {
fireFun();
}
}
}
onClipEvent (mouseUp) {
if (fullAuto[gun] == 1) {
threeRound = 0;
fire = false;
coolDown = 0;
}
}
Instance of Symbol 753 MovieClip "character" in Frame 50
onClipEvent (load) {
_root.gameFun.loadGame();
if (_root.meleeKills > _root.meleeRequirement) {
_root.achievements[4] = 1;
}
createCorpse = function () {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse, "obj" + i, i);
_root.obj["obj" + i]._x = _x - _root.obj._x;
_root.obj["obj" + i]._y = _y - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(_currentframe - 14);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
if (drill == false) {
_root.obj["obj" + i].head.gore.gotoAndStop(gore);
_root.obj["obj" + i].body.gore.gotoAndStop(bodyGore);
}
_root.obj["obj" + i].body.gotoAndStop(body);
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 25) - _root.item._y;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 30) - _root.item._y;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 10) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 15) - _root.item._x;
_root.item["item" + i]._y = (_y + 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x + 15) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = ((_x + _parent._x) - _root.obj._x) - _root.item._x;
_root.obj["obj" + i]._y = ((_y + _parent._y) - _root.obj._y) - _root.item._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
targets = new Array();
xMax = _root.lvObj.xMax;
xMin = _root.lvObj.xMin;
yMax = _root.lvObj.yMax;
yMin = _root.lvObj.yMin;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
modifier = 0;
yModifier = 0;
pan = 0;
panMax = 100;
djkReady = false;
jump = false;
jumpBack = false;
fall = false;
modThing = 0;
doubleJump = false;
gravity = 0;
xVel = 0;
gravAccel = 2;
moveSpeed = 12;
jumpHeight = 24;
hurt = false;
headHurt = false;
health = 50;
deadTime = 0;
if (_root.hardMode == true) {
healthRegen = 0.1;
} else {
healthRegen = 0.2;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
char.play();
if (health > 0) {
if (health < 50) {
health = health + healthRegen;
} else {
health = 50;
}
health = Math.round(health * 10) / 10;
_root.hBlood._alpha = Math.round((70 - health) * 2);
_root.hBlood._alpha = Math.round((50 - health) * 2);
_root.hp = health;
_root.kill = "Kills: " + (kill / _root.multiplier);
myRadians = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
if (((jump == false) && (jumpBack == false)) && (fall == false)) {
if (Key.isDown(k[2])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = -moveSpeed;
if (_xscale == 100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = (-moveSpeed) / 2;
if (_xscale == 100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[3])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = moveSpeed;
if (_xscale == -100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = moveSpeed / 2;
if (_xscale == -100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[1])) {
hurt = false;
headHurt = false;
xVel = 0;
gotoAndStop (10);
} else if ((hurt == false) && (headHurt == false)) {
xVel = 0;
gotoAndStop (1);
}
if (Key.isDown(k[0])) {
hurt = false;
headHurt = false;
djkReady = false;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
if (!_root.bound.hitTest(_x, (_y + boundHeight) + 1, true)) {
fall = true;
}
} else {
if (jump == true) {
if (gravity < 0) {
if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (6);
}
} else if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
if (!Key.isDown(k[0])) {
djkReady = true;
}
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
jump = false;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
} else if (jumpBack == true) {
gotoAndStop (9);
} else if (fall == true) {
if (!Key.isDown(k[0])) {
djkReady = true;
}
gotoAndStop (7);
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
}
if (Key.isDown(k[2])) {
xVel = -moveSpeed;
} else if (Key.isDown(k[3])) {
xVel = moveSpeed;
} else {
xVel = 0;
}
n = 0;
while (n < Math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
} else {
_y = (_y - 1);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
}
if (_root.bound.hitTest(_x, _y + boundHeight, true)) {
while (_root.bound.hitTest(_x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
fall = false;
jump = false;
jumpBack = false;
doubleJump = false;
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
gravity = 0;
}
n++;
}
gravity = gravity + gravAccel;
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
} else {
if ((_root._currentframe == 60) && (saveOnce != true)) {
saveOnce = true;
_root.gameFun.saveGame();
}
if ((fall == false) && (jump == false)) {
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else if (_currentframe < 15) {
if (headHealth < maxHealth) {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < 1) {
if (_currentframe != 19) {
gotoAndStop (19);
}
gore = 0;
} else {
gotoAndStop(14 + (random(2) + 1));
gore = random(3) + 2;
}
} else {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
gotoAndStop(14 + (random(2) + 1));
gore = 0;
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
}
} else {
deadTime++;
if (deadTime > 180) {
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
}
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else {
if (headHealth < 1) {
if (_currentframe != 21) {
xVel = random(8) - 4;
gotoAndStop (21);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
}
} else if (_currentframe != 20) {
xVel = random(8) - 4;
gotoAndStop (20);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < maxHealth) {
gore = random(7) + 2;
}
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
if (!_root.bound.hitTest(_x, _y + boundHeight, true)) {
_y = (_y + gravity);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
} else if (char._currentframe < 8) {
char.gotoAndPlay(8);
}
}
}
}
if (_xscale == 100) {
if (modThing < panMax) {
modThing = modThing + Math.round((panMax - modThing) / 5);
}
} else if (modThing > (-panMax)) {
modThing = modThing - Math.round((panMax + modThing) / 5);
}
pan = -modThing;
times = 0;
while (_x > ((275 + pan) + modifier)) {
if (_root.level._x > (-xMax)) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x > (-(xMax - modifier))) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
}
}
}
times = 0;
while (_x < ((275 + pan) + modifier)) {
if (_root.level._x < xMin) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x < (xMin + modifier)) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
}
}
}
times = 0;
while (_y > (250 + yModifier)) {
if (_root.level._y > (-yMax)) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y > (-(yMax - yModifier))) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
}
}
}
times = 0;
while (_y < (250 + yModifier)) {
if (_root.level._y < yMin) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y < (yMin + yModifier)) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
}
}
}
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
} else {
char.stop();
}
}
Instance of Symbol 1546 MovieClip "obj" in Frame 50
onClipEvent (load) {
i = 0;
gotoAndStop (14);
_x = 0;
_y = 0;
}
Instance of Symbol 1470 MovieClip "swap" in Frame 50
onClipEvent (load) {
gotoAndStop (2);
time = 60;
}
onClipEvent (enterFrame) {
if (time < 20) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1742 MovieClip "screenBox" in Frame 50
onClipEvent (load) {
gotoAndStop (6);
}
Instance of Symbol 508 MovieClip "hBlood" in Frame 50
onClipEvent (load) {
gotoAndStop (2);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
gotoAndStop (1);
if (_alpha > 100) {
_alpha = 100;
}
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1751 MovieClip "ammo" in Frame 50
onClipEvent (enterFrame) {
if (_root.arm.gun != 15) {
if (_root.arm.gun != 35) {
if (amm < 31) {
gotoAndStop(amm + 1);
} else {
gotoAndStop (31);
}
amm2 = amm;
} else {
gotoAndStop (33);
bar._xscale = 100 - _root.arm.coolDown;
}
} else {
gotoAndStop (32);
}
}
Instance of Symbol 1754 MovieClip in Frame 50
onClipEvent (load) {
lev = "Genetic Research Lab";
_alpha = 0;
time = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (time < 90) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "ammoMes" in Frame 50
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 60) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "mes2" in Frame 50
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 100) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 2283 MovieClip "levelDrawArea" in Frame 50
onClipEvent (load) {
_x = 0;
_y = 0;
}
Frame 52
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
stop();
Instance of Symbol 463 MovieClip "level" in Frame 52
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(2000, 2000, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
i = 0;
while (i < 30) {
_root.levelDrawArea["a" + i].t.gotoAndStop(random(8) + 1);
i++;
}
myBitmap.draw(_root.levelDrawArea);
_root.levelDrawArea.swapDepths(1);
_root.levelDrawArea.removeMovieClip("");
}
Instance of Symbol 2285 MovieClip "bound" in Frame 52
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 2286 MovieClip "lvObj" in Frame 52
onClipEvent (load) {
_x = 0;
_y = 0;
xMax = 1435;
xMin = 0;
yMax = 1250;
yMin = -350;
}
Instance of Symbol 1430 MovieClip "stuff" in Frame 52
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(_width, _height, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.fl);
_root.fl.swapDepths(1000);
_root.fl.removeMovieClip("");
}
Instance of Symbol 1435 MovieClip "cursor" in Frame 52
onClipEvent (load) {
gotoAndStop (3);
Mouse.hide();
}
onClipEvent (enterFrame) {
if (_root.arm.gun == 14) {
if (_currentframe < 3) {
gotoAndStop (3);
}
} else if (_currentframe > 2) {
gotoAndStop (1);
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 957 MovieClip "arm" in Frame 52
onClipEvent (load) {
calculateWeps = function () {
weps = 0;
rr = 0;
while (rr < have.length) {
if ((have[rr] == 1) && (rr != 15)) {
weps = weps + 1;
}
rr++;
}
if (weps == 0) {
gotoAndStop (15);
gun = 15;
_root.wpn = name[gun];
}
};
changeWeapons = function () {
if ((gun == 35) && (weps > 1)) {
coolDown = 0;
}
gunMaxLoop = 1;
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
do {
if (have[gun] == 1) {
break;
}
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
gunMaxLoop++;
} while (gunMaxLoop <= weaponAmt);
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
};
fireFun = function () {
_root.shotsFired[gun] = _root.shotsFired[gun] + 1;
ammo[ammoType[gun]] = ammo[ammoType[gun]] - 1;
_root.character.modifier = random(shake[gun]) + 1;
_root.character.yModifier = random(shake[gun]) + 1;
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
i++;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
} else {
i++;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
}
if (gun != 2) {
if (gun != 35) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
}
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 2 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 3 :
i++;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 4 :
i++;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 5 :
i++;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 6 :
i++;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 7 :
i++;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].tar = drillTarget;
break;
case 8 :
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 9 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 10 :
i++;
duplicateMovieClip (_root.item.beanBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 11 :
i++;
duplicateMovieClip (_root.item.nukeBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i].speed = -10;
ammo[ammoType[gun]] = ammo[ammoType[gun]] + 1;
}
if (_yscale == 100) {
_rotation = (_rotation - int(recoilAng[gun]));
} else {
_rotation = (_rotation + int(recoilAng[gun]));
}
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
}
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
};
name = _root.gameFun.name;
if (_root.achievements[4] == 1) {
name[15] = "Sword";
}
fullAuto = _root.gameFun.fullAuto;
recoil = _root.gameFun.recoil;
recoilAng = _root.gameFun.recoilAng;
recoilRec = _root.gameFun.recoilRec;
recoveryTime = _root.gameFun.recoveryTime;
casing = _root.gameFun.casing;
weaponType = _root.gameFun.weaponType;
pow = _root.gameFun.pow;
shake = _root.gameFun.shake;
inAcc = _root.gameFun.inAcc;
sound = _root.gameFun.sound;
capacity = _root.gameFun.capacity;
ammoName = _root.gameFun.ammoName;
ammoType = _root.gameFun.ammoType;
ready = true;
x = 0;
y = 0;
a = 0;
a2 = 0;
d = 40;
kReady = true;
threeRound = 0;
fire = false;
drillTarget = "";
coolDown = 0;
i = 0;
revolverShots = 0;
weaponAmt = inAcc.length - 1;
mouseListener = new Object();
changeWeapons();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (!Key.isDown(_root.character.k[6])) {
spReady = true;
}
if (Key.isDown(_root.character.k[6]) && (spReady == true)) {
spReady = false;
if (gun != 15) {
weps = weps - 1;
i++;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].rot = _rotation + 90;
_root.item["item" + i].gotoAndStop(gun);
if (ammo[ammoType[gun]] < 1) {
_root.item["item" + i].cap = -1;
} else {
_root.item["item" + i].cap = ammo[ammoType[gun]];
}
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = 25;
have[gun] = 0;
ammo[ammoType[gun]] = -1;
changeWeapons();
}
}
_root.ammo.amm = ammo[ammoType[gun]];
if (_x < (_root.character._x - 10)) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 70) / Math.PI));
_yscale = -100;
_root.character._xscale = -100;
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
if (getDepth() > _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_x > (_root.character._x + 10)) {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 70) / Math.PI));
_yscale = 100;
_root.character._xscale = 100;
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (getDepth() < _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_root.character._xscale == -100) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 30) / Math.PI));
} else {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 30) / Math.PI));
}
if (_yscale == 100) {
a = ((_x - _root._xmouse) + 10) / 3;
} else {
a = ((_x - _root._xmouse) - 10) / 3;
}
x = ((0.9 * x) - x) + a;
a2 = (_y - _root._ymouse) / 3;
y = ((0.9 * y) - y) + a2;
_x = (_x - x);
_y = (_y - y);
dx = _x - _root.character._x;
dy = _y - _root.character._y;
alpha = Math.atan2(dy, dx);
xDis = _root.character._x - _x;
yDis = _root.character._y - _y;
dist = Math.round(Math.sqrt((xDis * xDis) + (yDis * yDis)));
if (Math.abs(dist) > d) {
_x = (_root.character._x + (Math.cos(alpha) * d));
_y = (_root.character._y + (Math.sin(alpha) * d));
}
if (wpn._x < 0) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < 0) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (ammo[ammoType[gun]] > 0) {
if (coolDown < 1) {
fireFun();
}
} else {
fire = false;
_root.sfx.gotoAndPlay(78);
}
}
if ((!Key.isDown(_root.character.k[4])) && (!Key.isDown(_root.character.k[5]))) {
kReady = true;
}
if (kReady == true) {
if (Key.isDown(_root.character.k[4])) {
changeWeapons();
}
if (Key.isDown(_root.character.k[5])) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
}
}
alreadyChangedWeps = false;
mouseListener.onMouseWheel = function (delta) {
trace(delta);
if (delta != 0) {
if (alreadyChangedWeps != true) {
changeWeapons();
alreadyChangedWeps = true;
}
}
};
Mouse.addListener(mouseListener);
if (!Key.isDown(_root.character.k[7])) {
mwReady = true;
}
if (Key.isDown(_root.character.k[7]) && (mwReady == true)) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
mwReady = false;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (gun != 15) {
if (ammo[ammoType[gun]] > 0) {
if (fullAuto[gun] == 0) {
if (coolDown < 1) {
if (gun != 14) {
fireFun();
} else if (drillTarget != "") {
fireFun();
}
}
} else {
fire = true;
}
} else {
_root.sfx.gotoAndPlay(78);
}
} else if (coolDown < 1) {
fireFun();
}
}
}
onClipEvent (mouseUp) {
if (fullAuto[gun] == 1) {
threeRound = 0;
fire = false;
coolDown = 0;
}
}
Instance of Symbol 753 MovieClip "character" in Frame 52
onClipEvent (load) {
_root.gameFun.loadGame();
if (_root.meleeKills > _root.meleeRequirement) {
_root.achievements[4] = 1;
}
createCorpse = function () {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse, "obj" + i, i);
_root.obj["obj" + i]._x = _x - _root.obj._x;
_root.obj["obj" + i]._y = _y - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(_currentframe - 14);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
if (drill == false) {
_root.obj["obj" + i].head.gore.gotoAndStop(gore);
_root.obj["obj" + i].body.gore.gotoAndStop(bodyGore);
}
_root.obj["obj" + i].body.gotoAndStop(body);
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 25) - _root.item._y;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 30) - _root.item._y;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 10) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 15) - _root.item._x;
_root.item["item" + i]._y = (_y + 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x + 15) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = ((_x + _parent._x) - _root.obj._x) - _root.item._x;
_root.obj["obj" + i]._y = ((_y + _parent._y) - _root.obj._y) - _root.item._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
targets = new Array();
xMax = _root.lvObj.xMax;
xMin = _root.lvObj.xMin;
yMax = _root.lvObj.yMax;
yMin = _root.lvObj.yMin;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
modifier = 0;
yModifier = 0;
pan = 0;
panMax = 100;
djkReady = false;
jump = false;
jumpBack = false;
fall = false;
modThing = 0;
doubleJump = false;
gravity = 0;
xVel = 0;
gravAccel = 2;
moveSpeed = 12;
jumpHeight = 24;
hurt = false;
headHurt = false;
health = 50;
deadTime = 0;
if (_root.hardMode == true) {
healthRegen = 0.1;
} else {
healthRegen = 0.2;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
char.play();
if (health > 0) {
if (health < 50) {
health = health + healthRegen;
} else {
health = 50;
}
health = Math.round(health * 10) / 10;
_root.hBlood._alpha = Math.round((70 - health) * 2);
_root.hBlood._alpha = Math.round((50 - health) * 2);
_root.hp = health;
_root.kill = "Kills: " + (kill / _root.multiplier);
myRadians = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
if (((jump == false) && (jumpBack == false)) && (fall == false)) {
if (Key.isDown(k[2])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = -moveSpeed;
if (_xscale == 100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = (-moveSpeed) / 2;
if (_xscale == 100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[3])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = moveSpeed;
if (_xscale == -100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = moveSpeed / 2;
if (_xscale == -100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[1])) {
hurt = false;
headHurt = false;
xVel = 0;
gotoAndStop (10);
} else if ((hurt == false) && (headHurt == false)) {
xVel = 0;
gotoAndStop (1);
}
if (Key.isDown(k[0])) {
hurt = false;
headHurt = false;
djkReady = false;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
if (!_root.bound.hitTest(_x, (_y + boundHeight) + 1, true)) {
fall = true;
}
} else {
if (jump == true) {
if (gravity < 0) {
if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (6);
}
} else if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
if (!Key.isDown(k[0])) {
djkReady = true;
}
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
jump = false;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
} else if (jumpBack == true) {
gotoAndStop (9);
} else if (fall == true) {
if (!Key.isDown(k[0])) {
djkReady = true;
}
gotoAndStop (7);
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
}
if (Key.isDown(k[2])) {
xVel = -moveSpeed;
} else if (Key.isDown(k[3])) {
xVel = moveSpeed;
} else {
xVel = 0;
}
n = 0;
while (n < Math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
} else {
_y = (_y - 1);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
}
if (_root.bound.hitTest(_x, _y + boundHeight, true)) {
while (_root.bound.hitTest(_x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
fall = false;
jump = false;
jumpBack = false;
doubleJump = false;
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
gravity = 0;
}
n++;
}
gravity = gravity + gravAccel;
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
} else {
if ((_root._currentframe == 60) && (saveOnce != true)) {
saveOnce = true;
_root.gameFun.saveGame();
}
if ((fall == false) && (jump == false)) {
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else if (_currentframe < 15) {
if (headHealth < maxHealth) {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < 1) {
if (_currentframe != 19) {
gotoAndStop (19);
}
gore = 0;
} else {
gotoAndStop(14 + (random(2) + 1));
gore = random(3) + 2;
}
} else {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
gotoAndStop(14 + (random(2) + 1));
gore = 0;
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
}
} else {
deadTime++;
if (deadTime > 180) {
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
}
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else {
if (headHealth < 1) {
if (_currentframe != 21) {
xVel = random(8) - 4;
gotoAndStop (21);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
}
} else if (_currentframe != 20) {
xVel = random(8) - 4;
gotoAndStop (20);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < maxHealth) {
gore = random(7) + 2;
}
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
if (!_root.bound.hitTest(_x, _y + boundHeight, true)) {
_y = (_y + gravity);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
} else if (char._currentframe < 8) {
char.gotoAndPlay(8);
}
}
}
}
if (_xscale == 100) {
if (modThing < panMax) {
modThing = modThing + Math.round((panMax - modThing) / 5);
}
} else if (modThing > (-panMax)) {
modThing = modThing - Math.round((panMax + modThing) / 5);
}
pan = -modThing;
times = 0;
while (_x > ((275 + pan) + modifier)) {
if (_root.level._x > (-xMax)) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x > (-(xMax - modifier))) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
}
}
}
times = 0;
while (_x < ((275 + pan) + modifier)) {
if (_root.level._x < xMin) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x < (xMin + modifier)) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
}
}
}
times = 0;
while (_y > (250 + yModifier)) {
if (_root.level._y > (-yMax)) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y > (-(yMax - yModifier))) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
}
}
}
times = 0;
while (_y < (250 + yModifier)) {
if (_root.level._y < yMin) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y < (yMin + yModifier)) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
}
}
}
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
} else {
char.stop();
}
}
Instance of Symbol 1546 MovieClip "obj" in Frame 52
onClipEvent (load) {
i = 0;
gotoAndStop (18);
_x = 0;
_y = 0;
}
Instance of Symbol 1470 MovieClip "swap" in Frame 52
onClipEvent (load) {
gotoAndStop (2);
time = 60;
}
onClipEvent (enterFrame) {
if (time < 20) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1742 MovieClip "screenBox" in Frame 52
onClipEvent (load) {
gotoAndStop (6);
}
Instance of Symbol 508 MovieClip "hBlood" in Frame 52
onClipEvent (load) {
gotoAndStop (2);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
gotoAndStop (1);
if (_alpha > 100) {
_alpha = 100;
}
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1751 MovieClip "ammo" in Frame 52
onClipEvent (enterFrame) {
if (_root.arm.gun != 15) {
if (_root.arm.gun != 35) {
if (amm < 31) {
gotoAndStop(amm + 1);
} else {
gotoAndStop (31);
}
amm2 = amm;
} else {
gotoAndStop (33);
bar._xscale = 100 - _root.arm.coolDown;
}
} else {
gotoAndStop (32);
}
}
Instance of Symbol 1754 MovieClip in Frame 52
onClipEvent (load) {
lev = "Genetic Research Lab";
_alpha = 0;
time = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (time < 90) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "ammoMes" in Frame 52
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 60) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "mes2" in Frame 52
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 100) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 2289 MovieClip "levelDrawArea" in Frame 52
onClipEvent (load) {
_x = 0;
_y = 0;
}
Frame 54
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
stop();
Instance of Symbol 1848 MovieClip "lvBG" in Frame 54
onClipEvent (load) {
time = 0;
timeMax = 2500;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
time++;
if (_currentframe != 176) {
play();
}
} else {
stop();
}
}
Instance of Symbol 917 MovieClip "level" in Frame 54
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(2000, 2000, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.levelDrawArea);
_root.levelDrawArea.swapDepths(1);
_root.levelDrawArea.removeMovieClip("");
}
Instance of Symbol 1850 MovieClip "bound" in Frame 54
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 2290 MovieClip "lvObj" in Frame 54
onClipEvent (load) {
_x = 0;
_y = 0;
xMax = 0;
xMin = 0;
yMax = 600;
yMin = -400;
}
Instance of Symbol 1430 MovieClip "stuff" in Frame 54
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(_width, _height, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.fl);
_root.fl.swapDepths(1000);
_root.fl.removeMovieClip("");
}
Instance of Symbol 1435 MovieClip "cursor" in Frame 54
onClipEvent (load) {
gotoAndStop (3);
Mouse.hide();
}
onClipEvent (enterFrame) {
if (_root.arm.gun == 14) {
if (_currentframe < 3) {
gotoAndStop (3);
}
} else if (_currentframe > 2) {
gotoAndStop (1);
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 957 MovieClip "arm" in Frame 54
onClipEvent (load) {
calculateWeps = function () {
weps = 0;
rr = 0;
while (rr < have.length) {
if ((have[rr] == 1) && (rr != 15)) {
weps = weps + 1;
}
rr++;
}
if (weps == 0) {
gotoAndStop (15);
gun = 15;
_root.wpn = name[gun];
}
};
changeWeapons = function () {
if ((gun == 35) && (weps > 1)) {
coolDown = 0;
}
gunMaxLoop = 1;
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
do {
if (have[gun] == 1) {
break;
}
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
gunMaxLoop++;
} while (gunMaxLoop <= weaponAmt);
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
};
fireFun = function () {
_root.shotsFired[gun] = _root.shotsFired[gun] + 1;
ammo[ammoType[gun]] = ammo[ammoType[gun]] - 1;
_root.character.modifier = random(shake[gun]) + 1;
_root.character.yModifier = random(shake[gun]) + 1;
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
i++;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
} else {
i++;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
}
if (gun != 2) {
if (gun != 35) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
}
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 2 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 3 :
i++;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 4 :
i++;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 5 :
i++;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 6 :
i++;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 7 :
i++;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].tar = drillTarget;
break;
case 8 :
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 9 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 10 :
i++;
duplicateMovieClip (_root.item.beanBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 11 :
i++;
duplicateMovieClip (_root.item.nukeBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i].speed = -10;
ammo[ammoType[gun]] = ammo[ammoType[gun]] + 1;
}
if (_yscale == 100) {
_rotation = (_rotation - int(recoilAng[gun]));
} else {
_rotation = (_rotation + int(recoilAng[gun]));
}
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
}
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
};
name = _root.gameFun.name;
if (_root.achievements[4] == 1) {
name[15] = "Sword";
}
fullAuto = _root.gameFun.fullAuto;
recoil = _root.gameFun.recoil;
recoilAng = _root.gameFun.recoilAng;
recoilRec = _root.gameFun.recoilRec;
recoveryTime = _root.gameFun.recoveryTime;
casing = _root.gameFun.casing;
weaponType = _root.gameFun.weaponType;
pow = _root.gameFun.pow;
shake = _root.gameFun.shake;
inAcc = _root.gameFun.inAcc;
sound = _root.gameFun.sound;
capacity = _root.gameFun.capacity;
ammoName = _root.gameFun.ammoName;
ammoType = _root.gameFun.ammoType;
ready = true;
x = 0;
y = 0;
a = 0;
a2 = 0;
d = 40;
kReady = true;
threeRound = 0;
fire = false;
drillTarget = "";
coolDown = 0;
i = 0;
revolverShots = 0;
weaponAmt = inAcc.length - 1;
mouseListener = new Object();
changeWeapons();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (!Key.isDown(_root.character.k[6])) {
spReady = true;
}
if (Key.isDown(_root.character.k[6]) && (spReady == true)) {
spReady = false;
if (gun != 15) {
weps = weps - 1;
i++;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].rot = _rotation + 90;
_root.item["item" + i].gotoAndStop(gun);
if (ammo[ammoType[gun]] < 1) {
_root.item["item" + i].cap = -1;
} else {
_root.item["item" + i].cap = ammo[ammoType[gun]];
}
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = 25;
have[gun] = 0;
ammo[ammoType[gun]] = -1;
changeWeapons();
}
}
_root.ammo.amm = ammo[ammoType[gun]];
if (_x < (_root.character._x - 10)) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 70) / Math.PI));
_yscale = -100;
_root.character._xscale = -100;
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
if (getDepth() > _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_x > (_root.character._x + 10)) {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 70) / Math.PI));
_yscale = 100;
_root.character._xscale = 100;
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (getDepth() < _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_root.character._xscale == -100) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 30) / Math.PI));
} else {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 30) / Math.PI));
}
if (_yscale == 100) {
a = ((_x - _root._xmouse) + 10) / 3;
} else {
a = ((_x - _root._xmouse) - 10) / 3;
}
x = ((0.9 * x) - x) + a;
a2 = (_y - _root._ymouse) / 3;
y = ((0.9 * y) - y) + a2;
_x = (_x - x);
_y = (_y - y);
dx = _x - _root.character._x;
dy = _y - _root.character._y;
alpha = Math.atan2(dy, dx);
xDis = _root.character._x - _x;
yDis = _root.character._y - _y;
dist = Math.round(Math.sqrt((xDis * xDis) + (yDis * yDis)));
if (Math.abs(dist) > d) {
_x = (_root.character._x + (Math.cos(alpha) * d));
_y = (_root.character._y + (Math.sin(alpha) * d));
}
if (wpn._x < 0) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < 0) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (ammo[ammoType[gun]] > 0) {
if (coolDown < 1) {
fireFun();
}
} else {
fire = false;
_root.sfx.gotoAndPlay(78);
}
}
if ((!Key.isDown(_root.character.k[4])) && (!Key.isDown(_root.character.k[5]))) {
kReady = true;
}
if (kReady == true) {
if (Key.isDown(_root.character.k[4])) {
changeWeapons();
}
if (Key.isDown(_root.character.k[5])) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
}
}
alreadyChangedWeps = false;
mouseListener.onMouseWheel = function (delta) {
trace(delta);
if (delta != 0) {
if (alreadyChangedWeps != true) {
changeWeapons();
alreadyChangedWeps = true;
}
}
};
Mouse.addListener(mouseListener);
if (!Key.isDown(_root.character.k[7])) {
mwReady = true;
}
if (Key.isDown(_root.character.k[7]) && (mwReady == true)) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
mwReady = false;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (gun != 15) {
if (ammo[ammoType[gun]] > 0) {
if (fullAuto[gun] == 0) {
if (coolDown < 1) {
if (gun != 14) {
fireFun();
} else if (drillTarget != "") {
fireFun();
}
}
} else {
fire = true;
}
} else {
_root.sfx.gotoAndPlay(78);
}
} else if (coolDown < 1) {
fireFun();
}
}
}
onClipEvent (mouseUp) {
if (fullAuto[gun] == 1) {
threeRound = 0;
fire = false;
coolDown = 0;
}
}
Instance of Symbol 753 MovieClip "character" in Frame 54
onClipEvent (load) {
_root.gameFun.loadGame();
if (_root.meleeKills > _root.meleeRequirement) {
_root.achievements[4] = 1;
}
createCorpse = function () {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse, "obj" + i, i);
_root.obj["obj" + i]._x = _x - _root.obj._x;
_root.obj["obj" + i]._y = _y - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(_currentframe - 14);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
if (drill == false) {
_root.obj["obj" + i].head.gore.gotoAndStop(gore);
_root.obj["obj" + i].body.gore.gotoAndStop(bodyGore);
}
_root.obj["obj" + i].body.gotoAndStop(body);
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 25) - _root.item._y;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 30) - _root.item._y;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 10) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 15) - _root.item._x;
_root.item["item" + i]._y = (_y + 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x + 15) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = ((_x + _parent._x) - _root.obj._x) - _root.item._x;
_root.obj["obj" + i]._y = ((_y + _parent._y) - _root.obj._y) - _root.item._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
targets = new Array();
xMax = _root.lvObj.xMax;
xMin = _root.lvObj.xMin;
yMax = _root.lvObj.yMax;
yMin = _root.lvObj.yMin;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
modifier = 0;
yModifier = 0;
pan = 0;
panMax = 100;
djkReady = false;
jump = false;
jumpBack = false;
fall = false;
modThing = 0;
doubleJump = false;
gravity = 0;
xVel = 0;
gravAccel = 2;
moveSpeed = 12;
jumpHeight = 24;
hurt = false;
headHurt = false;
health = 50;
deadTime = 0;
if (_root.hardMode == true) {
healthRegen = 0.1;
} else {
healthRegen = 0.2;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
char.play();
if (health > 0) {
if (health < 50) {
health = health + healthRegen;
} else {
health = 50;
}
health = Math.round(health * 10) / 10;
_root.hBlood._alpha = Math.round((70 - health) * 2);
_root.hBlood._alpha = Math.round((50 - health) * 2);
_root.hp = health;
_root.kill = "Kills: " + (kill / _root.multiplier);
myRadians = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
if (((jump == false) && (jumpBack == false)) && (fall == false)) {
if (Key.isDown(k[2])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = -moveSpeed;
if (_xscale == 100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = (-moveSpeed) / 2;
if (_xscale == 100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[3])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = moveSpeed;
if (_xscale == -100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = moveSpeed / 2;
if (_xscale == -100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[1])) {
hurt = false;
headHurt = false;
xVel = 0;
gotoAndStop (10);
} else if ((hurt == false) && (headHurt == false)) {
xVel = 0;
gotoAndStop (1);
}
if (Key.isDown(k[0])) {
hurt = false;
headHurt = false;
djkReady = false;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
if (!_root.bound.hitTest(_x, (_y + boundHeight) + 1, true)) {
fall = true;
}
} else {
if (jump == true) {
if (gravity < 0) {
if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (6);
}
} else if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
if (!Key.isDown(k[0])) {
djkReady = true;
}
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
jump = false;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
} else if (jumpBack == true) {
gotoAndStop (9);
} else if (fall == true) {
if (!Key.isDown(k[0])) {
djkReady = true;
}
gotoAndStop (7);
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
}
if (Key.isDown(k[2])) {
xVel = -moveSpeed;
} else if (Key.isDown(k[3])) {
xVel = moveSpeed;
} else {
xVel = 0;
}
n = 0;
while (n < Math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
} else {
_y = (_y - 1);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
}
if (_root.bound.hitTest(_x, _y + boundHeight, true)) {
while (_root.bound.hitTest(_x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
fall = false;
jump = false;
jumpBack = false;
doubleJump = false;
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
gravity = 0;
}
n++;
}
gravity = gravity + gravAccel;
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
} else {
if ((_root._currentframe == 60) && (saveOnce != true)) {
saveOnce = true;
_root.gameFun.saveGame();
}
if ((fall == false) && (jump == false)) {
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else if (_currentframe < 15) {
if (headHealth < maxHealth) {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < 1) {
if (_currentframe != 19) {
gotoAndStop (19);
}
gore = 0;
} else {
gotoAndStop(14 + (random(2) + 1));
gore = random(3) + 2;
}
} else {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
gotoAndStop(14 + (random(2) + 1));
gore = 0;
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
}
} else {
deadTime++;
if (deadTime > 180) {
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
}
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else {
if (headHealth < 1) {
if (_currentframe != 21) {
xVel = random(8) - 4;
gotoAndStop (21);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
}
} else if (_currentframe != 20) {
xVel = random(8) - 4;
gotoAndStop (20);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < maxHealth) {
gore = random(7) + 2;
}
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
if (!_root.bound.hitTest(_x, _y + boundHeight, true)) {
_y = (_y + gravity);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
} else if (char._currentframe < 8) {
char.gotoAndPlay(8);
}
}
}
}
if (_xscale == 100) {
if (modThing < panMax) {
modThing = modThing + Math.round((panMax - modThing) / 5);
}
} else if (modThing > (-panMax)) {
modThing = modThing - Math.round((panMax + modThing) / 5);
}
pan = -modThing;
times = 0;
while (_x > ((275 + pan) + modifier)) {
if (_root.level._x > (-xMax)) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x > (-(xMax - modifier))) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
}
}
}
times = 0;
while (_x < ((275 + pan) + modifier)) {
if (_root.level._x < xMin) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x < (xMin + modifier)) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
}
}
}
times = 0;
while (_y > (250 + yModifier)) {
if (_root.level._y > (-yMax)) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y > (-(yMax - yModifier))) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
}
}
}
times = 0;
while (_y < (250 + yModifier)) {
if (_root.level._y < yMin) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y < (yMin + yModifier)) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
}
}
}
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
} else {
char.stop();
}
}
Instance of Symbol 1546 MovieClip "obj" in Frame 54
onClipEvent (load) {
i = 0;
gotoAndStop (4);
_x = 0;
_y = 0;
}
Instance of Symbol 1470 MovieClip "swap" in Frame 54
onClipEvent (load) {
gotoAndStop (2);
time = 60;
}
onClipEvent (enterFrame) {
if (time < 20) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1742 MovieClip "screenBox" in Frame 54
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 508 MovieClip "hBlood" in Frame 54
onClipEvent (load) {
gotoAndStop (2);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
gotoAndStop (1);
if (_alpha > 100) {
_alpha = 100;
}
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1751 MovieClip "ammo" in Frame 54
onClipEvent (enterFrame) {
if (_root.arm.gun != 15) {
if (_root.arm.gun != 35) {
if (amm < 31) {
gotoAndStop(amm + 1);
} else {
gotoAndStop (31);
}
amm2 = amm;
} else {
gotoAndStop (33);
bar._xscale = 100 - _root.arm.coolDown;
}
} else {
gotoAndStop (32);
}
}
Instance of Symbol 1754 MovieClip in Frame 54
onClipEvent (load) {
lev = "Quarantine Elevator";
_alpha = 0;
time = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (time < 90) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "ammoMes" in Frame 54
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 60) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "mes2" in Frame 54
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 100) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 2296 MovieClip "levelDrawArea" in Frame 54
onClipEvent (load) {
_x = 0;
_y = 0;
}
Frame 55
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
Instance of Symbol 812 MovieClip "character" in Frame 55
onClipEvent (load) {
_root.gameFun.loadGame();
}
Instance of Symbol 2312 MovieClip in Frame 55
onClipEvent (load) {
while ((point._x + this._x) > 275) {
_x = (_x - 0.5);
textBox._x = textBox._x + 0.5;
}
while ((point._x + this._x) < 275) {
_x = (_x + 0.5);
textBox._x = textBox._x - 0.5;
}
while ((point._y + this._y) > 200) {
_y = (_y - 0.5);
textBox._y = textBox._y + 0.5;
}
while ((point._y + this._y) < 200) {
_y = (_y + 0.5);
textBox._y = textBox._y - 0.5;
}
}
onClipEvent (enterFrame) {
while ((point._x + this._x) > 275) {
_x = (_x - 0.5);
textBox._x = textBox._x + 0.5;
}
while ((point._x + this._x) < 275) {
_x = (_x + 0.5);
textBox._x = textBox._x - 0.5;
}
while ((point._y + this._y) > 200) {
_y = (_y - 0.5);
textBox._y = textBox._y + 0.5;
}
while ((point._y + this._y) < 200) {
_y = (_y + 0.5);
textBox._y = textBox._y - 0.5;
}
}
Frame 56
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
stop();
Instance of Symbol 463 MovieClip "level" in Frame 56
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(2000, 2000, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
i = 0;
while (i < 30) {
_root.levelDrawArea["a" + i].t.gotoAndStop(random(8) + 1);
i++;
}
myBitmap.draw(_root.levelDrawArea);
_root.levelDrawArea.swapDepths(1);
_root.levelDrawArea.removeMovieClip("");
}
Instance of Symbol 2314 MovieClip "bound" in Frame 56
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 2315 MovieClip "lvObj" in Frame 56
onClipEvent (load) {
_x = 0;
_y = 0;
xMax = 1435;
xMin = 0;
yMax = 1250;
yMin = -350;
}
Instance of Symbol 1430 MovieClip "stuff" in Frame 56
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(_width, _height, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.fl);
_root.fl.swapDepths(1000);
_root.fl.removeMovieClip("");
}
Instance of Symbol 1435 MovieClip "cursor" in Frame 56
onClipEvent (load) {
gotoAndStop (3);
Mouse.hide();
}
onClipEvent (enterFrame) {
if (_root.arm.gun == 14) {
if (_currentframe < 3) {
gotoAndStop (3);
}
} else if (_currentframe > 2) {
gotoAndStop (1);
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 957 MovieClip "arm" in Frame 56
onClipEvent (load) {
calculateWeps = function () {
weps = 0;
rr = 0;
while (rr < have.length) {
if ((have[rr] == 1) && (rr != 15)) {
weps = weps + 1;
}
rr++;
}
if (weps == 0) {
gotoAndStop (15);
gun = 15;
_root.wpn = name[gun];
}
};
changeWeapons = function () {
if ((gun == 35) && (weps > 1)) {
coolDown = 0;
}
gunMaxLoop = 1;
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
do {
if (have[gun] == 1) {
break;
}
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
gunMaxLoop++;
} while (gunMaxLoop <= weaponAmt);
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
};
fireFun = function () {
ammo[ammoType[gun]] = ammo[ammoType[gun]] - 1;
_root.shotsFired[gun] = _root.shotsFired[gun] + 1;
_root.character.modifier = random(shake[gun]) + 1;
_root.character.yModifier = random(shake[gun]) + 1;
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
i++;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
} else {
i++;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
}
if (gun != 2) {
if (gun != 35) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
}
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 2 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 3 :
i++;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 4 :
i++;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 5 :
i++;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 6 :
i++;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 7 :
i++;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].tar = drillTarget;
break;
case 8 :
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 9 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 10 :
i++;
duplicateMovieClip (_root.item.beanBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 11 :
i++;
duplicateMovieClip (_root.item.nukeBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i].speed = -10;
ammo[ammoType[gun]] = ammo[ammoType[gun]] + 1;
}
if (_yscale == 100) {
_rotation = (_rotation - int(recoilAng[gun]));
} else {
_rotation = (_rotation + int(recoilAng[gun]));
}
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
}
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
};
name = _root.gameFun.name;
if (_root.achievements[4] == 1) {
name[15] = "Sword";
}
fullAuto = _root.gameFun.fullAuto;
recoil = _root.gameFun.recoil;
recoilAng = _root.gameFun.recoilAng;
recoilRec = _root.gameFun.recoilRec;
recoveryTime = _root.gameFun.recoveryTime;
casing = _root.gameFun.casing;
weaponType = _root.gameFun.weaponType;
pow = _root.gameFun.pow;
shake = _root.gameFun.shake;
inAcc = _root.gameFun.inAcc;
sound = _root.gameFun.sound;
capacity = _root.gameFun.capacity;
ammoName = _root.gameFun.ammoName;
ammoType = _root.gameFun.ammoType;
ready = true;
x = 0;
y = 0;
a = 0;
a2 = 0;
d = 40;
kReady = true;
threeRound = 0;
fire = false;
drillTarget = "";
coolDown = 0;
i = 0;
revolverShots = 0;
weaponAmt = inAcc.length - 1;
mouseListener = new Object();
changeWeapons();
}
onClipEvent (enterFrame) {
if ((_root.pause == false) && (_root.pause2 == false)) {
if (!Key.isDown(_root.character.k[6])) {
spReady = true;
}
if (Key.isDown(_root.character.k[6]) && (spReady == true)) {
spReady = false;
if (gun != 15) {
weps = weps - 1;
i++;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].rot = _rotation + 90;
_root.item["item" + i].gotoAndStop(gun);
if (ammo[ammoType[gun]] < 1) {
_root.item["item" + i].cap = -1;
} else {
_root.item["item" + i].cap = ammo[ammoType[gun]];
}
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = 25;
have[gun] = 0;
ammo[ammoType[gun]] = -1;
changeWeapons();
}
}
_root.ammo.amm = ammo[ammoType[gun]];
if (_x < (_root.character._x - 10)) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 70) / Math.PI));
_yscale = -100;
_root.character._xscale = -100;
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
if (getDepth() > _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_x > (_root.character._x + 10)) {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 70) / Math.PI));
_yscale = 100;
_root.character._xscale = 100;
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (getDepth() < _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_root.character._xscale == -100) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 30) / Math.PI));
} else {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 30) / Math.PI));
}
if (_yscale == 100) {
a = ((_x - _root._xmouse) + 10) / 3;
} else {
a = ((_x - _root._xmouse) - 10) / 3;
}
x = ((0.9 * x) - x) + a;
a2 = (_y - _root._ymouse) / 3;
y = ((0.9 * y) - y) + a2;
_x = (_x - x);
_y = (_y - y);
dx = _x - _root.character._x;
dy = _y - _root.character._y;
alpha = Math.atan2(dy, dx);
xDis = _root.character._x - _x;
yDis = _root.character._y - _y;
dist = Math.round(Math.sqrt((xDis * xDis) + (yDis * yDis)));
if (Math.abs(dist) > d) {
_x = (_root.character._x + (Math.cos(alpha) * d));
_y = (_root.character._y + (Math.sin(alpha) * d));
}
if (wpn._x < 0) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < 0) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (ammo[ammoType[gun]] > 0) {
if (coolDown < 1) {
fireFun();
}
} else {
fire = false;
_root.sfx.gotoAndPlay(78);
}
}
if ((!Key.isDown(_root.character.k[4])) && (!Key.isDown(_root.character.k[5]))) {
kReady = true;
}
if (kReady == true) {
if (Key.isDown(_root.character.k[4])) {
changeWeapons();
}
if (Key.isDown(_root.character.k[5])) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
}
}
alreadyChangedWeps = false;
mouseListener.onMouseWheel = function (delta) {
trace(delta);
if (delta != 0) {
if (alreadyChangedWeps != true) {
changeWeapons();
alreadyChangedWeps = true;
}
}
};
Mouse.addListener(mouseListener);
if (!Key.isDown(_root.character.k[7])) {
mwReady = true;
}
if (Key.isDown(_root.character.k[7]) && (mwReady == true)) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
mwReady = false;
}
}
}
onClipEvent (mouseDown) {
if ((_root.pause == false) && (_root.pause2 == false)) {
if (gun != 15) {
if (ammo[ammoType[gun]] > 0) {
if (fullAuto[gun] == 0) {
if (coolDown < 1) {
if (gun != 14) {
fireFun();
} else if (drillTarget != "") {
fireFun();
}
}
} else {
fire = true;
}
} else {
_root.sfx.gotoAndPlay(78);
}
} else if (coolDown < 1) {
fireFun();
}
}
}
onClipEvent (mouseUp) {
if (fullAuto[gun] == 1) {
threeRound = 0;
fire = false;
coolDown = 0;
}
}
Instance of Symbol 753 MovieClip "character" in Frame 56
onClipEvent (load) {
_root.gameFun.loadGame();
if (_root.meleeKills > _root.meleeRequirement) {
_root.achievements[4] = 1;
}
createCorpse = function () {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse, "obj" + i, i);
_root.obj["obj" + i]._x = _x - _root.obj._x;
_root.obj["obj" + i]._y = _y - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(_currentframe - 14);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
if (drill == false) {
_root.obj["obj" + i].head.gore.gotoAndStop(gore);
_root.obj["obj" + i].body.gore.gotoAndStop(bodyGore);
}
_root.obj["obj" + i].body.gotoAndStop(body);
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 25) - _root.item._y;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 30) - _root.item._y;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 10) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 15) - _root.item._x;
_root.item["item" + i]._y = (_y + 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x + 15) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = ((_x + _parent._x) - _root.obj._x) - _root.item._x;
_root.obj["obj" + i]._y = ((_y + _parent._y) - _root.obj._y) - _root.item._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
targets = new Array();
xMax = _root.lvObj.xMax;
xMin = _root.lvObj.xMin;
yMax = _root.lvObj.yMax;
yMin = _root.lvObj.yMin;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
modifier = 0;
yModifier = 0;
pan = 0;
panMax = 100;
djkReady = false;
jump = false;
jumpBack = false;
fall = false;
modThing = 0;
doubleJump = false;
gravity = 0;
xVel = 0;
gravAccel = 2;
moveSpeed = 12;
jumpHeight = 24;
hurt = false;
headHurt = false;
deadTime = 0;
health = 50;
if (_root.hardMode == true) {
healthRegen = 0.1;
} else {
healthRegen = 0.2;
}
}
onClipEvent (enterFrame) {
if ((_root.pause == false) && (_root.pause2 == false)) {
char.play();
if (health > 0) {
if (health < 50) {
health = health + healthRegen;
} else {
health = 50;
}
health = Math.round(health * 10) / 10;
_root.hBlood._alpha = Math.round((70 - health) * 2);
_root.hBlood._alpha = Math.round((50 - health) * 2);
_root.hp = health;
_root.kill = "Kills: " + (kill / _root.multiplier);
myRadians = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
if (((jump == false) && (jumpBack == false)) && (fall == false)) {
if (Key.isDown(k[2])) {
hurt = false;
headHurt = false;
if (Key.isDown(16)) {
xVel = -moveSpeed;
if (_xscale == 100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = (-moveSpeed) / 2;
if (_xscale == 100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[3])) {
hurt = false;
headHurt = false;
if (Key.isDown(16)) {
xVel = moveSpeed;
if (_xscale == -100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = moveSpeed / 2;
if (_xscale == -100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[1])) {
hurt = false;
headHurt = false;
xVel = 0;
gotoAndStop (10);
} else if ((hurt == false) && (headHurt == false)) {
xVel = 0;
gotoAndStop (1);
}
if (Key.isDown(k[0])) {
hurt = false;
headHurt = false;
djkReady = false;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
if (!_root.bound.hitTest(_x, (_y + boundHeight) + 1, true)) {
fall = true;
}
} else {
if (jump == true) {
if (gravity < 0) {
if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (6);
}
} else if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
if (!Key.isDown(k[0])) {
djkReady = true;
}
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
jump = false;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
} else if (jumpBack == true) {
gotoAndStop (9);
} else if (fall == true) {
if (!Key.isDown(k[0])) {
djkReady = true;
}
gotoAndStop (7);
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
}
if (Key.isDown(k[2])) {
xVel = -moveSpeed;
} else if (Key.isDown(k[3])) {
xVel = moveSpeed;
} else {
xVel = 0;
}
n = 0;
while (n < Math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
} else {
_y = (_y - 1);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
}
if (_root.bound.hitTest(_x, _y + boundHeight, true)) {
while (_root.bound.hitTest(_x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
fall = false;
jump = false;
jumpBack = false;
doubleJump = false;
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
gravity = 0;
}
n++;
}
gravity = gravity + gravAccel;
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((fall == false) && (jump == false)) {
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else if (_currentframe < 15) {
if (headHealth < maxHealth) {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < 1) {
if (_currentframe != 19) {
gotoAndStop (19);
}
gore = 0;
} else {
gotoAndStop(14 + (random(2) + 1));
gore = random(3) + 2;
}
} else {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
gotoAndStop(14 + (random(2) + 1));
gore = 0;
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
}
} else {
deadTime++;
if (deadTime > 180) {
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
}
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else {
if (headHealth < 1) {
if (_currentframe != 21) {
xVel = random(8) - 4;
gotoAndStop (21);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
}
} else if (_currentframe != 20) {
xVel = random(8) - 4;
gotoAndStop (20);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < maxHealth) {
gore = random(7) + 2;
}
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
if (!_root.bound.hitTest(_x, _y + boundHeight, true)) {
_y = (_y + gravity);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
} else if (char._currentframe < 8) {
char.gotoAndPlay(8);
}
}
}
if (_xscale == 100) {
if (modThing < panMax) {
modThing = modThing + Math.round((panMax - modThing) / 5);
}
} else if (modThing > (-panMax)) {
modThing = modThing - Math.round((panMax + modThing) / 5);
}
pan = -modThing;
times = 0;
while (_x > ((275 + pan) + modifier)) {
if (_root.level._x > (-xMax)) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x > (-(xMax - modifier))) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
}
}
}
times = 0;
while (_x < ((275 + pan) + modifier)) {
if (_root.level._x < xMin) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x < (xMin + modifier)) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
}
}
}
times = 0;
while (_y > (250 + yModifier)) {
if (_root.level._y > (-yMax)) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y > (-(yMax - yModifier))) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
}
}
}
times = 0;
while (_y < (250 + yModifier)) {
if (_root.level._y < yMin) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y < (yMin + yModifier)) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
}
}
}
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
} else {
char.stop();
}
}
Instance of Symbol 2350 MovieClip "item" in Frame 56
onClipEvent (load) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = 1445;
_root.item["item" + i]._y = 1300;
}
Instance of Symbol 1546 MovieClip "obj" in Frame 56
onClipEvent (load) {
i = 0;
gotoAndStop (20);
_x = 0;
_y = 0;
}
Instance of Symbol 1470 MovieClip "swap" in Frame 56
onClipEvent (load) {
gotoAndStop (2);
time = 60;
}
onClipEvent (enterFrame) {
if (time < 20) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1742 MovieClip "screenBox" in Frame 56
onClipEvent (load) {
gotoAndStop (6);
}
Instance of Symbol 508 MovieClip "hBlood" in Frame 56
onClipEvent (load) {
gotoAndStop (2);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
gotoAndStop (1);
if (_alpha > 100) {
_alpha = 100;
}
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1751 MovieClip "ammo" in Frame 56
onClipEvent (enterFrame) {
if (_root.arm.gun != 15) {
if (_root.arm.gun != 35) {
if (amm < 31) {
gotoAndStop(amm + 1);
} else {
gotoAndStop (31);
}
amm2 = amm;
} else {
gotoAndStop (33);
bar._xscale = 100 - _root.arm.coolDown;
}
} else {
gotoAndStop (32);
}
}
Instance of Symbol 1754 MovieClip in Frame 56
onClipEvent (load) {
lev = "Hades Containment Chamber";
_alpha = 0;
time = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (time < 90) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "ammoMes" in Frame 56
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 60) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "mes2" in Frame 56
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 100) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 2353 MovieClip "levelDrawArea" in Frame 56
onClipEvent (load) {
_x = 0;
_y = 0;
}
Frame 58
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
Instance of Symbol 812 MovieClip "character" in Frame 58
onClipEvent (load) {
_root.gameFun.loadGame();
}
Instance of Symbol 2372 MovieClip in Frame 58
onClipEvent (load) {
while ((point._x + this._x) > 275) {
_x = (_x - 0.5);
textBox._x = textBox._x + 0.5;
}
while ((point._x + this._x) < 275) {
_x = (_x + 0.5);
textBox._x = textBox._x - 0.5;
}
while ((point._y + this._y) > 200) {
_y = (_y - 0.5);
textBox._y = textBox._y + 0.5;
}
while ((point._y + this._y) < 200) {
_y = (_y + 0.5);
textBox._y = textBox._y - 0.5;
}
}
onClipEvent (enterFrame) {
while ((point._x + this._x) > 275) {
_x = (_x - 0.5);
textBox._x = textBox._x + 0.5;
}
while ((point._x + this._x) < 275) {
_x = (_x + 0.5);
textBox._x = textBox._x - 0.5;
}
while ((point._y + this._y) > 200) {
_y = (_y - 0.5);
textBox._y = textBox._y + 0.5;
}
while ((point._y + this._y) < 200) {
_y = (_y + 0.5);
textBox._y = textBox._y - 0.5;
}
}
Frame 60
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
stop();
Instance of Symbol 463 MovieClip "level" in Frame 60
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(2000, 2000, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
i = 0;
while (i < 30) {
_root.levelDrawArea["a" + i].t.gotoAndStop(random(8) + 1);
i++;
}
myBitmap.draw(_root.levelDrawArea);
_root.levelDrawArea.swapDepths(1);
_root.levelDrawArea.removeMovieClip("");
}
Instance of Symbol 2374 MovieClip "bound" in Frame 60
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 2376 MovieClip "lvObj" in Frame 60
onClipEvent (load) {
_x = 0;
_y = 0;
xMax = 500;
xMin = 0;
yMax = 1000;
yMin = 0;
}
Instance of Symbol 1430 MovieClip "stuff" in Frame 60
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(_width, _height, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.fl);
_root.fl.swapDepths(1000);
_root.fl.removeMovieClip("");
}
Instance of Symbol 1435 MovieClip "cursor" in Frame 60
onClipEvent (load) {
gotoAndStop (3);
Mouse.hide();
}
onClipEvent (enterFrame) {
if (_root.arm.gun == 14) {
if (_currentframe < 3) {
gotoAndStop (3);
}
} else if (_currentframe > 2) {
gotoAndStop (1);
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 957 MovieClip "arm" in Frame 60
onClipEvent (load) {
calculateWeps = function () {
weps = 0;
rr = 0;
while (rr < have.length) {
if ((have[rr] == 1) && (rr != 15)) {
weps = weps + 1;
}
rr++;
}
if (weps == 0) {
gotoAndStop (15);
gun = 15;
_root.wpn = name[gun];
}
};
changeWeapons = function () {
if ((gun == 35) && (weps > 1)) {
coolDown = 0;
}
gunMaxLoop = 1;
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
do {
if (have[gun] == 1) {
break;
}
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
gunMaxLoop++;
} while (gunMaxLoop <= weaponAmt);
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
};
fireFun = function () {
_root.shotsFired[gun] = _root.shotsFired[gun] + 1;
ammo[ammoType[gun]] = ammo[ammoType[gun]] - 1;
_root.character.modifier = random(shake[gun]) + 1;
_root.character.yModifier = random(shake[gun]) + 1;
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
i++;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
} else {
i++;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
}
if (gun != 2) {
if (gun != 35) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
}
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 2 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 3 :
i++;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 4 :
i++;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 5 :
i++;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 6 :
i++;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 7 :
i++;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].tar = drillTarget;
break;
case 8 :
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 9 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 10 :
i++;
duplicateMovieClip (_root.item.beanBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 11 :
i++;
duplicateMovieClip (_root.item.nukeBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i].speed = -10;
ammo[ammoType[gun]] = ammo[ammoType[gun]] + 1;
}
if (_yscale == 100) {
_rotation = (_rotation - int(recoilAng[gun]));
} else {
_rotation = (_rotation + int(recoilAng[gun]));
}
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
}
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
};
name = _root.gameFun.name;
if (_root.achievements[4] == 1) {
name[15] = "Sword";
}
fullAuto = _root.gameFun.fullAuto;
recoil = _root.gameFun.recoil;
recoilAng = _root.gameFun.recoilAng;
recoilRec = _root.gameFun.recoilRec;
recoveryTime = _root.gameFun.recoveryTime;
casing = _root.gameFun.casing;
weaponType = _root.gameFun.weaponType;
pow = _root.gameFun.pow;
shake = _root.gameFun.shake;
inAcc = _root.gameFun.inAcc;
sound = _root.gameFun.sound;
capacity = _root.gameFun.capacity;
ammoName = _root.gameFun.ammoName;
ammoType = _root.gameFun.ammoType;
ready = true;
x = 0;
y = 0;
a = 0;
a2 = 0;
d = 40;
kReady = true;
threeRound = 0;
fire = false;
drillTarget = "";
coolDown = 0;
i = 0;
revolverShots = 0;
weaponAmt = inAcc.length - 1;
mouseListener = new Object();
changeWeapons();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (!Key.isDown(_root.character.k[6])) {
spReady = true;
}
if (Key.isDown(_root.character.k[6]) && (spReady == true)) {
spReady = false;
if (gun != 15) {
weps = weps - 1;
i++;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].rot = _rotation + 90;
_root.item["item" + i].gotoAndStop(gun);
if (ammo[ammoType[gun]] < 1) {
_root.item["item" + i].cap = -1;
} else {
_root.item["item" + i].cap = ammo[ammoType[gun]];
}
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = 25;
have[gun] = 0;
ammo[ammoType[gun]] = -1;
changeWeapons();
}
}
_root.ammo.amm = ammo[ammoType[gun]];
if (_x < (_root.character._x - 10)) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 70) / Math.PI));
_yscale = -100;
_root.character._xscale = -100;
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
if (getDepth() > _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_x > (_root.character._x + 10)) {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 70) / Math.PI));
_yscale = 100;
_root.character._xscale = 100;
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (getDepth() < _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_root.character._xscale == -100) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 30) / Math.PI));
} else {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 30) / Math.PI));
}
if (_yscale == 100) {
a = ((_x - _root._xmouse) + 10) / 3;
} else {
a = ((_x - _root._xmouse) - 10) / 3;
}
x = ((0.9 * x) - x) + a;
a2 = (_y - _root._ymouse) / 3;
y = ((0.9 * y) - y) + a2;
_x = (_x - x);
_y = (_y - y);
dx = _x - _root.character._x;
dy = _y - _root.character._y;
alpha = Math.atan2(dy, dx);
xDis = _root.character._x - _x;
yDis = _root.character._y - _y;
dist = Math.round(Math.sqrt((xDis * xDis) + (yDis * yDis)));
if (Math.abs(dist) > d) {
_x = (_root.character._x + (Math.cos(alpha) * d));
_y = (_root.character._y + (Math.sin(alpha) * d));
}
if (wpn._x < 0) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < 0) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (ammo[ammoType[gun]] > 0) {
if (coolDown < 1) {
fireFun();
}
} else {
fire = false;
_root.sfx.gotoAndPlay(78);
}
}
if ((!Key.isDown(_root.character.k[4])) && (!Key.isDown(_root.character.k[5]))) {
kReady = true;
}
if (kReady == true) {
if (Key.isDown(_root.character.k[4])) {
changeWeapons();
}
if (Key.isDown(_root.character.k[5])) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
}
}
alreadyChangedWeps = false;
mouseListener.onMouseWheel = function (delta) {
trace(delta);
if (delta != 0) {
if (alreadyChangedWeps != true) {
changeWeapons();
alreadyChangedWeps = true;
}
}
};
Mouse.addListener(mouseListener);
if (!Key.isDown(_root.character.k[7])) {
mwReady = true;
}
if (Key.isDown(_root.character.k[7]) && (mwReady == true)) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
mwReady = false;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (gun != 15) {
if (ammo[ammoType[gun]] > 0) {
if (fullAuto[gun] == 0) {
if (coolDown < 1) {
if (gun != 14) {
fireFun();
} else if (drillTarget != "") {
fireFun();
}
}
} else {
fire = true;
}
} else {
_root.sfx.gotoAndPlay(78);
}
} else if (coolDown < 1) {
fireFun();
}
}
}
onClipEvent (mouseUp) {
if (fullAuto[gun] == 1) {
threeRound = 0;
fire = false;
coolDown = 0;
}
}
Instance of Symbol 753 MovieClip "character" in Frame 60
onClipEvent (load) {
_root.gameFun.loadGame();
if (_root.meleeKills > _root.meleeRequirement) {
_root.achievements[4] = 1;
}
createCorpse = function () {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse, "obj" + i, i);
_root.obj["obj" + i]._x = _x - _root.obj._x;
_root.obj["obj" + i]._y = _y - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(_currentframe - 14);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
if (drill == false) {
_root.obj["obj" + i].head.gore.gotoAndStop(gore);
_root.obj["obj" + i].body.gore.gotoAndStop(bodyGore);
}
_root.obj["obj" + i].body.gotoAndStop(body);
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 25) - _root.item._y;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 30) - _root.item._y;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 10) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 15) - _root.item._x;
_root.item["item" + i]._y = (_y + 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x + 15) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = ((_x + _parent._x) - _root.obj._x) - _root.item._x;
_root.obj["obj" + i]._y = ((_y + _parent._y) - _root.obj._y) - _root.item._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
targets = new Array();
xMax = _root.lvObj.xMax;
xMin = _root.lvObj.xMin;
yMax = _root.lvObj.yMax;
yMin = _root.lvObj.yMin;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
modifier = 0;
yModifier = 0;
pan = 0;
panMax = 100;
djkReady = false;
jump = false;
jumpBack = false;
fall = false;
modThing = 0;
doubleJump = false;
gravity = 0;
xVel = 0;
gravAccel = 2;
moveSpeed = 12;
jumpHeight = 24;
hurt = false;
headHurt = false;
health = 50;
deadTime = 0;
if (_root.hardMode == true) {
healthRegen = 0.1;
} else {
healthRegen = 0.2;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
char.play();
if (health > 0) {
if (health < 50) {
health = health + healthRegen;
} else {
health = 50;
}
health = Math.round(health * 10) / 10;
_root.hBlood._alpha = Math.round((70 - health) * 2);
_root.hBlood._alpha = Math.round((50 - health) * 2);
_root.hp = health;
_root.kill = "Kills: " + (kill / _root.multiplier);
myRadians = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
if (((jump == false) && (jumpBack == false)) && (fall == false)) {
if (Key.isDown(k[2])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = -moveSpeed;
if (_xscale == 100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = (-moveSpeed) / 2;
if (_xscale == 100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[3])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = moveSpeed;
if (_xscale == -100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = moveSpeed / 2;
if (_xscale == -100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[1])) {
hurt = false;
headHurt = false;
xVel = 0;
gotoAndStop (10);
} else if ((hurt == false) && (headHurt == false)) {
xVel = 0;
gotoAndStop (1);
}
if (Key.isDown(k[0])) {
hurt = false;
headHurt = false;
djkReady = false;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
if (!_root.bound.hitTest(_x, (_y + boundHeight) + 1, true)) {
fall = true;
}
} else {
if (jump == true) {
if (gravity < 0) {
if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (6);
}
} else if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
if (!Key.isDown(k[0])) {
djkReady = true;
}
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
jump = false;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
} else if (jumpBack == true) {
gotoAndStop (9);
} else if (fall == true) {
if (!Key.isDown(k[0])) {
djkReady = true;
}
gotoAndStop (7);
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
}
if (Key.isDown(k[2])) {
xVel = -moveSpeed;
} else if (Key.isDown(k[3])) {
xVel = moveSpeed;
} else {
xVel = 0;
}
n = 0;
while (n < Math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
} else {
_y = (_y - 1);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
}
if (_root.bound.hitTest(_x, _y + boundHeight, true)) {
while (_root.bound.hitTest(_x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
fall = false;
jump = false;
jumpBack = false;
doubleJump = false;
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
gravity = 0;
}
n++;
}
gravity = gravity + gravAccel;
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
} else {
if ((_root._currentframe == 60) && (saveOnce != true)) {
saveOnce = true;
_root.gameFun.saveGame();
}
if ((fall == false) && (jump == false)) {
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else if (_currentframe < 15) {
if (headHealth < maxHealth) {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < 1) {
if (_currentframe != 19) {
gotoAndStop (19);
}
gore = 0;
} else {
gotoAndStop(14 + (random(2) + 1));
gore = random(3) + 2;
}
} else {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
gotoAndStop(14 + (random(2) + 1));
gore = 0;
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
}
} else {
deadTime++;
if (deadTime > 180) {
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
}
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else {
if (headHealth < 1) {
if (_currentframe != 21) {
xVel = random(8) - 4;
gotoAndStop (21);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
}
} else if (_currentframe != 20) {
xVel = random(8) - 4;
gotoAndStop (20);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < maxHealth) {
gore = random(7) + 2;
}
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
if (!_root.bound.hitTest(_x, _y + boundHeight, true)) {
_y = (_y + gravity);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
} else if (char._currentframe < 8) {
char.gotoAndPlay(8);
}
}
}
}
if (_xscale == 100) {
if (modThing < panMax) {
modThing = modThing + Math.round((panMax - modThing) / 5);
}
} else if (modThing > (-panMax)) {
modThing = modThing - Math.round((panMax + modThing) / 5);
}
pan = -modThing;
times = 0;
while (_x > ((275 + pan) + modifier)) {
if (_root.level._x > (-xMax)) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x > (-(xMax - modifier))) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
}
}
}
times = 0;
while (_x < ((275 + pan) + modifier)) {
if (_root.level._x < xMin) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x < (xMin + modifier)) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
}
}
}
times = 0;
while (_y > (250 + yModifier)) {
if (_root.level._y > (-yMax)) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y > (-(yMax - yModifier))) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
}
}
}
times = 0;
while (_y < (250 + yModifier)) {
if (_root.level._y < yMin) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y < (yMin + yModifier)) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
}
}
}
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
} else {
char.stop();
}
}
Instance of Symbol 1546 MovieClip "obj" in Frame 60
onClipEvent (load) {
i = 0;
gotoAndStop (21);
_x = 0;
_y = 0;
}
Instance of Symbol 1470 MovieClip "swap" in Frame 60
onClipEvent (load) {
gotoAndStop (2);
time = 60;
}
onClipEvent (enterFrame) {
if (time < 20) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1742 MovieClip "screenBox" in Frame 60
onClipEvent (load) {
gotoAndStop (6);
}
Instance of Symbol 508 MovieClip "hBlood" in Frame 60
onClipEvent (load) {
gotoAndStop (2);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
gotoAndStop (1);
if (_alpha > 100) {
_alpha = 100;
}
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1751 MovieClip "ammo" in Frame 60
onClipEvent (enterFrame) {
if (_root.arm.gun != 15) {
if (_root.arm.gun != 35) {
if (amm < 31) {
gotoAndStop(amm + 1);
} else {
gotoAndStop (31);
}
amm2 = amm;
} else {
gotoAndStop (33);
bar._xscale = 100 - _root.arm.coolDown;
}
} else {
gotoAndStop (32);
}
}
Instance of Symbol 1754 MovieClip in Frame 60
onClipEvent (load) {
lev = "Genetic Research Lab";
_alpha = 0;
time = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (time < 90) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "ammoMes" in Frame 60
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 60) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "mes2" in Frame 60
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 100) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 2379 MovieClip "levelDrawArea" in Frame 60
onClipEvent (load) {
_x = 0;
_y = 0;
}
Frame 61
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
Instance of Symbol 508 MovieClip in Frame 61
onClipEvent (load) {
_alpha = 0;
stop();
}
onClipEvent (enterFrame) {
if (_alpha < 50) {
_alpha = (_alpha + 1);
}
}
Instance of Symbol 1218 MovieClip "textBox" in Frame 61
onClipEvent (load) {
t0 = "Project 154 has been successfully terminated.";
t1 = "...";
t2 = "Take his body to genetics and have them map his genes.";
t3 = "Next time we won't make the same mistakes.";
t4 = "Get some of our buyers on the line. Tell them we've worked out the kinks.";
tx = 0;
tNu = 0;
txt = "";
}
onClipEvent (enterFrame) {
if (txt.length < this["t" + tx].length) {
txt = txt + this["t" + tx].charAt(tNu);
_root.sfx.gotoAndPlay(134);
tNu++;
}
if (tx > 4) {
if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
_parent.gotoAndStop(65);
}
} else if (_alpha < 100) {
_alpha = (_alpha + 20);
}
}
Frame 62
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
stop();
Instance of Symbol 463 MovieClip "level" in Frame 62
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(2000, 2000, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
i = 0;
while (i < 30) {
_root.levelDrawArea["a" + i].t.gotoAndStop(random(8) + 1);
i++;
}
myBitmap.draw(_root.levelDrawArea);
_root.levelDrawArea.swapDepths(1);
_root.levelDrawArea.removeMovieClip("");
}
Instance of Symbol 2382 MovieClip "bound" in Frame 62
onClipEvent (load) {
_x = 0;
_y = 0;
}
Instance of Symbol 2385 MovieClip "lvObj" in Frame 62
onClipEvent (load) {
_x = 0;
_y = 0;
xMax = 1435;
xMin = 0;
yMax = 1250;
yMin = 0;
}
Instance of Symbol 1430 MovieClip "stuff" in Frame 62
onClipEvent (load) {
_x = 0;
_y = 0;
myBitmap = new flash.display.BitmapData(_width, _height, true, 16777215);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root.fl);
_root.fl.swapDepths(1000);
_root.fl.removeMovieClip("");
}
Instance of Symbol 957 MovieClip "arm" in Frame 62
onClipEvent (load) {
calculateWeps = function () {
weps = 0;
rr = 0;
while (rr < have.length) {
if ((have[rr] == 1) && (rr != 15)) {
weps = weps + 1;
}
rr++;
}
if (weps == 0) {
gotoAndStop (15);
gun = 15;
_root.wpn = name[gun];
}
};
changeWeapons = function () {
if ((gun == 35) && (weps > 1)) {
coolDown = 0;
}
gunMaxLoop = 1;
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
do {
if (have[gun] == 1) {
break;
}
gun = gun + 1;
if (gun == 15) {
if (weps > 0) {
gun = gun + 1;
}
}
if (gun > weaponAmt) {
gun = 1;
}
gunMaxLoop++;
} while (gunMaxLoop <= weaponAmt);
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
};
fireFun = function () {
_root.shotsFired[gun] = _root.shotsFired[gun] + 1;
ammo[ammoType[gun]] = ammo[ammoType[gun]] - 1;
_root.character.modifier = random(shake[gun]) + 1;
_root.character.yModifier = random(shake[gun]) + 1;
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
i++;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
} else {
i++;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
}
if (gun != 2) {
if (gun != 35) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
}
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
i++;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 2 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 3 :
i++;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 4 :
i++;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 5 :
i++;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 6 :
i++;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 7 :
i++;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].tar = drillTarget;
break;
case 8 :
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
break;
case 9 :
z = 0;
while (z < 6) {
i++;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
} else {
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun] * 2) - inAcc[gun]);
}
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
z++;
}
break;
case 10 :
i++;
duplicateMovieClip (_root.item.beanBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation + (random(inAcc[gun]) - (inAcc[gun] / 2));
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
break;
case 11 :
i++;
duplicateMovieClip (_root.item.nukeBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i].speed = -10;
ammo[ammoType[gun]] = ammo[ammoType[gun]] + 1;
}
if (_yscale == 100) {
_rotation = (_rotation - int(recoilAng[gun]));
} else {
_rotation = (_rotation + int(recoilAng[gun]));
}
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
}
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
};
name = _root.gameFun.name;
if (_root.achievements[4] == 1) {
name[15] = "Sword";
}
fullAuto = _root.gameFun.fullAuto;
recoil = _root.gameFun.recoil;
recoilAng = _root.gameFun.recoilAng;
recoilRec = _root.gameFun.recoilRec;
recoveryTime = _root.gameFun.recoveryTime;
casing = _root.gameFun.casing;
weaponType = _root.gameFun.weaponType;
pow = _root.gameFun.pow;
shake = _root.gameFun.shake;
inAcc = _root.gameFun.inAcc;
sound = _root.gameFun.sound;
capacity = _root.gameFun.capacity;
ammoName = _root.gameFun.ammoName;
ammoType = _root.gameFun.ammoType;
ready = true;
x = 0;
y = 0;
a = 0;
a2 = 0;
d = 40;
kReady = true;
threeRound = 0;
fire = false;
drillTarget = "";
coolDown = 0;
i = 0;
revolverShots = 0;
weaponAmt = inAcc.length - 1;
mouseListener = new Object();
changeWeapons();
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (!Key.isDown(_root.character.k[6])) {
spReady = true;
}
if (Key.isDown(_root.character.k[6]) && (spReady == true)) {
spReady = false;
if (gun != 15) {
weps = weps - 1;
i++;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].rot = _rotation + 90;
_root.item["item" + i].gotoAndStop(gun);
if (ammo[ammoType[gun]] < 1) {
_root.item["item" + i].cap = -1;
} else {
_root.item["item" + i].cap = ammo[ammoType[gun]];
}
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = 25;
have[gun] = 0;
ammo[ammoType[gun]] = -1;
changeWeapons();
}
}
_root.ammo.amm = ammo[ammoType[gun]];
if (_x < (_root.character._x - 10)) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 70) / Math.PI));
_yscale = -100;
_root.character._xscale = -100;
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
if (getDepth() > _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_x > (_root.character._x + 10)) {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 70) / Math.PI));
_yscale = 100;
_root.character._xscale = 100;
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (getDepth() < _root.character.getDepth()) {
swapDepths(_root.character);
}
} else if (_root.character._xscale == -100) {
_rotation = (_rotation + ((Math.atan2(-_ymouse, _xmouse) * 30) / Math.PI));
} else {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 30) / Math.PI));
}
if (_yscale == 100) {
a = ((_x - _root._xmouse) + 10) / 3;
} else {
a = ((_x - _root._xmouse) - 10) / 3;
}
x = ((0.9 * x) - x) + a;
a2 = (_y - _root._ymouse) / 3;
y = ((0.9 * y) - y) + a2;
_x = (_x - x);
_y = (_y - y);
dx = _x - _root.character._x;
dy = _y - _root.character._y;
alpha = Math.atan2(dy, dx);
xDis = _root.character._x - _x;
yDis = _root.character._y - _y;
dist = Math.round(Math.sqrt((xDis * xDis) + (yDis * yDis)));
if (Math.abs(dist) > d) {
_x = (_root.character._x + (Math.cos(alpha) * d));
_y = (_root.character._y + (Math.sin(alpha) * d));
}
if (wpn._x < 0) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < 0) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (ammo[ammoType[gun]] > 0) {
if (coolDown < 1) {
fireFun();
}
} else {
fire = false;
_root.sfx.gotoAndPlay(78);
}
}
if ((!Key.isDown(_root.character.k[4])) && (!Key.isDown(_root.character.k[5]))) {
kReady = true;
}
if (kReady == true) {
if (Key.isDown(_root.character.k[4])) {
changeWeapons();
}
if (Key.isDown(_root.character.k[5])) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
kReady = false;
}
}
alreadyChangedWeps = false;
mouseListener.onMouseWheel = function (delta) {
trace(delta);
if (delta != 0) {
if (alreadyChangedWeps != true) {
changeWeapons();
alreadyChangedWeps = true;
}
}
};
Mouse.addListener(mouseListener);
if (!Key.isDown(_root.character.k[7])) {
mwReady = true;
}
if (Key.isDown(_root.character.k[7]) && (mwReady == true)) {
gun = 15;
fire = false;
_rotation = -90;
gotoAndStop(gun);
_root.wpn = name[gun];
if (_yscale == 100) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
} else {
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
mwReady = false;
}
}
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
if (gun != 15) {
if (ammo[ammoType[gun]] > 0) {
if (fullAuto[gun] == 0) {
if (coolDown < 1) {
if (gun != 14) {
fireFun();
} else if (drillTarget != "") {
fireFun();
}
}
} else {
fire = true;
}
} else {
_root.sfx.gotoAndPlay(78);
}
} else if (coolDown < 1) {
fireFun();
}
}
}
onClipEvent (mouseUp) {
if (fullAuto[gun] == 1) {
threeRound = 0;
fire = false;
coolDown = 0;
}
}
Instance of Symbol 753 MovieClip "character" in Frame 62
onClipEvent (load) {
_root.gameFun.loadGame();
if (_root.meleeKills > _root.meleeRequirement) {
_root.achievements[4] = 1;
}
createCorpse = function () {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse, "obj" + i, i);
_root.obj["obj" + i]._x = _x - _root.obj._x;
_root.obj["obj" + i]._y = _y - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(_currentframe - 14);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
if (drill == false) {
_root.obj["obj" + i].head.gore.gotoAndStop(gore);
_root.obj["obj" + i].body.gore.gotoAndStop(bodyGore);
}
_root.obj["obj" + i].body.gotoAndStop(body);
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 25) - _root.item._y;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = (_y - 30) - _root.item._y;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - _root.item._x;
_root.item["item" + i]._y = _y - _root.item._y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 10) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x - 15) - _root.item._x;
_root.item["item" + i]._y = (_y + 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = (_x + 15) - _root.item._x;
_root.item["item" + i]._y = (_y - 5) - _root.item._y;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = ((_x + _parent._x) - _root.obj._x) - _root.item._x;
_root.obj["obj" + i]._y = ((_y + _parent._y) - _root.obj._y) - _root.item._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
};
targets = new Array();
xMax = _root.lvObj.xMax;
xMin = _root.lvObj.xMin;
yMax = _root.lvObj.yMax;
yMin = _root.lvObj.yMin;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
modifier = 0;
yModifier = 0;
pan = 0;
panMax = 100;
djkReady = false;
jump = false;
jumpBack = false;
fall = false;
modThing = 0;
doubleJump = false;
gravity = 0;
xVel = 0;
gravAccel = 2;
moveSpeed = 12;
jumpHeight = 24;
hurt = false;
headHurt = false;
health = 50;
deadTime = 0;
if (_root.hardMode == true) {
healthRegen = 0.1;
} else {
healthRegen = 0.2;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
char.play();
if (health > 0) {
if (health < 50) {
health = health + healthRegen;
} else {
health = 50;
}
health = Math.round(health * 10) / 10;
_root.hBlood._alpha = Math.round((70 - health) * 2);
_root.hBlood._alpha = Math.round((50 - health) * 2);
_root.hp = health;
_root.kill = "Kills: " + (kill / _root.multiplier);
myRadians = Math.atan2(_root._ymouse - _y, _root._xmouse - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
if (((jump == false) && (jumpBack == false)) && (fall == false)) {
if (Key.isDown(k[2])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = -moveSpeed;
if (_xscale == 100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = (-moveSpeed) / 2;
if (_xscale == 100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[3])) {
hurt = false;
headHurt = false;
if (Key.isDown(k[9])) {
xVel = moveSpeed;
if (_xscale == -100) {
gotoAndStop (5);
} else {
gotoAndStop (4);
}
} else {
xVel = moveSpeed / 2;
if (_xscale == -100) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
}
} else if (Key.isDown(k[1])) {
hurt = false;
headHurt = false;
xVel = 0;
gotoAndStop (10);
} else if ((hurt == false) && (headHurt == false)) {
xVel = 0;
gotoAndStop (1);
}
if (Key.isDown(k[0])) {
hurt = false;
headHurt = false;
djkReady = false;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
if (!_root.bound.hitTest(_x, (_y + boundHeight) + 1, true)) {
fall = true;
}
} else {
if (jump == true) {
if (gravity < 0) {
if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (6);
}
} else if (doubleJump == true) {
gotoAndStop (8);
} else {
gotoAndStop (7);
}
if (!Key.isDown(k[0])) {
djkReady = true;
}
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
jump = false;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
} else if (jumpBack == true) {
gotoAndStop (9);
} else if (fall == true) {
if (!Key.isDown(k[0])) {
djkReady = true;
}
gotoAndStop (7);
if ((Key.isDown(k[0]) && (doubleJump == false)) && (djkReady == true)) {
doubleJump = true;
if ((Key.isDown(k[2]) && (_xscale == 100)) || (Key.isDown(k[3]) && (_xscale == -100))) {
jumpBack = true;
gravity = (-jumpHeight) * 1.2;
_y = (_y - 5);
} else {
jump = true;
gravity = -jumpHeight;
_y = (_y - 5);
}
}
}
if (Key.isDown(k[2])) {
xVel = -moveSpeed;
} else if (Key.isDown(k[3])) {
xVel = moveSpeed;
} else {
xVel = 0;
}
n = 0;
while (n < Math.abs(gravity)) {
if (gravity > 0) {
_y = (_y + 1);
} else {
_y = (_y - 1);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
}
if (_root.bound.hitTest(_x, _y + boundHeight, true)) {
while (_root.bound.hitTest(_x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
fall = false;
jump = false;
jumpBack = false;
doubleJump = false;
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
gravity = 0;
}
n++;
}
gravity = gravity + gravAccel;
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
} else {
if ((_root._currentframe == 60) && (saveOnce != true)) {
saveOnce = true;
_root.gameFun.saveGame();
}
if ((fall == false) && (jump == false)) {
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else if (_currentframe < 15) {
if (headHealth < maxHealth) {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < 1) {
if (_currentframe != 19) {
gotoAndStop (19);
}
gore = 0;
} else {
gotoAndStop(14 + (random(2) + 1));
gore = random(3) + 2;
}
} else {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
gotoAndStop(14 + (random(2) + 1));
gore = 0;
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
}
} else {
deadTime++;
if (deadTime > 180) {
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
}
if (health < -4) {
gib();
_root.pause = true;
_root.pauseScreen.gotoAndStop(3);
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
removeMovieClip("");
} else {
if (headHealth < 1) {
if (_currentframe != 21) {
xVel = random(8) - 4;
gotoAndStop (21);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
}
} else if (_currentframe != 20) {
xVel = random(8) - 4;
gotoAndStop (20);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < maxHealth) {
gore = random(7) + 2;
}
}
_root.arm.swapDepths(1);
_root.arm.removeMovieClip("");
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest(_x + boundBox, _y, true)) && (!_root.bound.hitTest(_x + boundBox, _y + 30, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest(_x - boundBox, _y, true)) && (!_root.bound.hitTest(_x - boundBox, _y + 30, true))) {
_x = (_x - 1);
}
n++;
}
while (_root.bound.hitTest((_x + boundBox) - 1, _y, true) || (_root.bound.hitTest((_x + boundBox) - 1, _y + 30, true))) {
_x = (_x - 1);
}
while (_root.bound.hitTest((_x - boundBox) + 1, _y, true) || (_root.bound.hitTest((_x - boundBox) + 1, _y + 30, true))) {
_x = (_x + 1);
}
if (!_root.bound.hitTest(_x, _y + boundHeight, true)) {
_y = (_y + gravity);
if (_root.bound.hitTest(_x, _y - 36, true)) {
gravity = 0;
}
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, (_y + boundHeight) - 1, true)) {
_y = (_y - 1);
}
} else if (char._currentframe < 8) {
char.gotoAndPlay(8);
}
}
}
}
if (_xscale == 100) {
if (modThing < panMax) {
modThing = modThing + Math.round((panMax - modThing) / 5);
}
} else if (modThing > (-panMax)) {
modThing = modThing - Math.round((panMax + modThing) / 5);
}
pan = -modThing;
times = 0;
while (_x > ((275 + pan) + modifier)) {
if (_root.level._x > (-xMax)) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x > (-(xMax - modifier))) {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
} else {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
}
}
}
times = 0;
while (_x < ((275 + pan) + modifier)) {
if (_root.level._x < xMin) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._x < (xMin + modifier)) {
_x = (_x + 1);
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
} else {
_x = (_x - 1);
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
}
}
}
times = 0;
while (_y > (250 + yModifier)) {
if (_root.level._y > (-yMax)) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y > (-(yMax - yModifier))) {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
} else {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
}
}
}
times = 0;
while (_y < (250 + yModifier)) {
if (_root.level._y < yMin) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
times++;
if (times > 30) {
break;
}
if (_root.level._y < (yMin + yModifier)) {
_y = (_y + 1);
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
} else {
_y = (_y - 1);
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
}
}
}
if (math.abs(modifier) >= 1) {
modifier = modifier * -0.5;
} else {
modifier = 0;
}
if (math.abs(yModifier) >= 1) {
yModifier = yModifier * -0.5;
} else {
yModifier = 0;
}
} else {
char.stop();
}
}
Instance of Symbol 1435 MovieClip "cursor" in Frame 62
onClipEvent (load) {
gotoAndStop (3);
Mouse.hide();
}
onClipEvent (enterFrame) {
if (_root.arm.gun == 14) {
if (_currentframe < 3) {
gotoAndStop (3);
}
} else if (_currentframe > 2) {
gotoAndStop (1);
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 1546 MovieClip "obj" in Frame 62
onClipEvent (load) {
i = 0;
gotoAndStop (19);
_x = 0;
_y = 0;
}
Instance of Symbol 1470 MovieClip "swap" in Frame 62
onClipEvent (load) {
gotoAndStop (2);
time = 60;
}
onClipEvent (enterFrame) {
if (time < 20) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1742 MovieClip "screenBox" in Frame 62
onClipEvent (load) {
gotoAndStop (6);
}
Instance of Symbol 508 MovieClip "hBlood" in Frame 62
onClipEvent (load) {
gotoAndStop (2);
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
gotoAndStop (1);
if (_alpha > 100) {
_alpha = 100;
}
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1751 MovieClip "ammo" in Frame 62
onClipEvent (enterFrame) {
if (_root.arm.gun != 15) {
if (_root.arm.gun != 35) {
if (amm < 31) {
gotoAndStop(amm + 1);
} else {
gotoAndStop (31);
}
amm2 = amm;
} else {
gotoAndStop (33);
bar._xscale = 100 - _root.arm.coolDown;
}
} else {
gotoAndStop (32);
}
}
Instance of Symbol 1754 MovieClip in Frame 62
onClipEvent (load) {
lev = "The Armory";
_alpha = 0;
time = 0;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (time < 90) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "ammoMes" in Frame 62
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 60) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 1757 MovieClip "mes2" in Frame 62
onClipEvent (load) {
mes = "";
_alpha = 0;
time = 90;
gotoAndStop (2);
}
onClipEvent (enterFrame) {
if (time < 100) {
time++;
} else if (_alpha > 0) {
_alpha = (_alpha - 10);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 2395 MovieClip "levelDrawArea" in Frame 62
onClipEvent (load) {
_x = 0;
_y = 0;
}
Frame 65
stopAllSounds();
_root.music.gotoAndPlay(_root.music.song[_root._currentframe]);
CMG_AS2.ScoreSubmitter.responseHandler = function (returncode) {
switch (returncode) {
case CMG_AS2.ScoreSubmitter.RETURNCODE_WORKING :
sendScore.hsOutput.text = "Score is being sent...";
break;
case CMG_AS2.ScoreSubmitter.RETURNCODE_SUCCESS :
sendScore.hsOutput.text = "Your score has been submitted!";
CMG_AS2.ScoreSubmitter.loadHighScorePage();
break;
case CMG_AS2.ScoreSubmitter.RETURNCODE_REJECTED :
sendScore.hsOutput.text = "The server rejected your score!";
break;
case CMG_AS2.ScoreSubmitter.RETURNCODE_WRONGVERSION :
sendScore.hsOutput.text = "This is the wrong version of the game!";
CMG_AS2.ScoreSubmitter.loadUpdatePage();
break;
case CMG_AS2.ScoreSubmitter.RETURNCODE_NETWORKERROR :
sendScore.hsOutput.text = "Your score could not reach the server at this time.";
break;
default :
sendScore.hsOutput.text = "Unknown error " + returnCode;
}
};
normKills = function () {
CMG_AS2.ScoreSubmitter.gameId = "316";
CMG_AS2.ScoreSubmitter.gameVersion = "1.0";
CMG_AS2.ScoreSubmitter.gameValidationCode = "thin7afe8148d432cce3fe6446d8cbf0a412";
var _local2 = new CMG_AS2.ScoreSubmitter();
_local2.submitScore(sendScore.name, _root.character.kill / _root.multiplier, _root.specialString);
};
normMelee = function () {
CMG_AS2.ScoreSubmitter.gameId = 317;
CMG_AS2.ScoreSubmitter.gameVersion = "1.0";
CMG_AS2.ScoreSubmitter.gameValidationCode = "thinb671709f8372f69c47f4632327e9631e";
var _local2 = new CMG_AS2.ScoreSubmitter();
_local2.submitScore(sendScore.name, _root.meleeKills, _root.specialString);
};
normShot = function () {
CMG_AS2.ScoreSubmitter.gameId = 318;
CMG_AS2.ScoreSubmitter.gameVersion = "1.0";
CMG_AS2.ScoreSubmitter.gameValidationCode = "thin70c936906bf286f54e19c38e94027144";
var _local2 = new CMG_AS2.ScoreSubmitter();
_local2.submitScore(sendScore.name, _root.sendScore.shtPerK, _root.specialString);
};
hardKills = function () {
CMG_AS2.ScoreSubmitter.gameId = 319;
CMG_AS2.ScoreSubmitter.gameVersion = "1.0";
CMG_AS2.ScoreSubmitter.gameValidationCode = "thin2b7ea96f37ca3e0a700c24a3bd0946e6";
var _local2 = new CMG_AS2.ScoreSubmitter();
_local2.submitScore(sendScore.name, _root.character.kill / _root.multiplier, _root.specialString);
};
hardMelee = function () {
CMG_AS2.ScoreSubmitter.gameId = 320;
CMG_AS2.ScoreSubmitter.gameVersion = "1.0";
CMG_AS2.ScoreSubmitter.gameValidationCode = "thin49f2884a39683a00eb57a1b9eaf9cd0a";
var _local2 = new CMG_AS2.ScoreSubmitter();
_local2.submitScore(sendScore.name, _root.meleeKills, _root.specialString);
};
hardShot = function () {
CMG_AS2.ScoreSubmitter.gameId = 321;
CMG_AS2.ScoreSubmitter.gameVersion = "1.0";
CMG_AS2.ScoreSubmitter.gameValidationCode = "thin9ae03718ec189f2967eb1301e151ddaf";
var _local2 = new CMG_AS2.ScoreSubmitter();
_local2.submitScore(sendScore.name, _root.sendScore.shtPerK, _root.specialString);
};
if (hardMode == true) {
txt = "Hard Mode Level Select Unlocked.";
} else {
txt = "Hard Mode, Normal Mode Level Select, and The Armory Unlocked.";
}
Instance of Symbol 508 MovieClip in Frame 65
onClipEvent (load) {
_alpha = 0;
stop();
}
onClipEvent (enterFrame) {
if (_alpha < 50) {
_alpha = (_alpha + 1);
}
}
Instance of Symbol 812 MovieClip "character" in Frame 65
onClipEvent (load) {
_root.gameFun.loadGame();
_root.specialString = "000000000000000";
h = head.toString();
if (h.length < 2) {
h = "00" + h;
} else if (h.length < 3) {
h = "0" + h;
}
trace(h);
h2 = face.toString();
if (h2.length < 2) {
h2 = "00" + h2;
} else if (h2.length < 3) {
h2 = "0" + h2;
}
trace(h2);
h3 = body.toString();
if (h3.length < 2) {
h3 = "00" + h3;
} else if (h3.length < 3) {
h3 = "0" + h3;
}
trace(h3);
h4 = foot.toString();
if (h4.length < 2) {
h4 = "00" + h4;
} else if (h4.length < 3) {
h4 = "0" + h4;
}
trace(h4);
h5 = _root.arm.gun.toString();
if (h5.length < 2) {
h5 = "00" + h5;
} else if (h5.length < 3) {
h5 = "0" + h5;
}
trace(h5);
_root.specialString = (((h + h2) + h3) + h4) + h5;
_root.specialString = _root.specialString.toString();
trace(_root.specialString);
}
Instance of Symbol 2453 MovieClip "sendScore" in Frame 65
onClipEvent (load) {
gotoAndStop (2);
}
Symbol 15 MovieClip Frame 1
stop();
Symbol 56 Button
on (release) {
_root.nextFrame();
}
Symbol 57 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 2
stop();
Instance of Symbol 108 MovieClip "gore" in Symbol 213 MovieClip Frame 2
onClipEvent (load) {
if (_parent._parent._parent.health < 1) {
gotoAndStop(_parent._parent._parent.bodyGore);
}
}
Symbol 297 MovieClip Frame 1
stop();
Symbol 302 MovieClip Frame 1
stop();
Symbol 448 MovieClip Frame 1
stop();
Instance of Symbol 297 MovieClip "face" in Symbol 448 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent._parent.face);
}
Instance of Symbol 302 MovieClip "gore" in Symbol 448 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent._parent.health < 1) {
gotoAndStop(_parent._parent._parent.gore);
}
}
Instance of Symbol 99 MovieClip "foot2" in Symbol 453 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 99 MovieClip "foot1" in Symbol 453 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 213 MovieClip "body" in Symbol 453 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 448 MovieClip in Symbol 453 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (2);
}
onClipEvent (enterFrame) {
_x = _parent.head._x;
_y = _parent.head._y;
}
Instance of Symbol 469 MovieClip in Symbol 470 MovieClip Frame 1
on (press) {
startDrag (this, true, 0, 0, 300, 0);
go = true;
}
on (release, releaseOutside) {
stopDrag();
go = false;
}
onClipEvent (load) {
go = false;
_x = (_root.music.maxVol * 3);
}
onClipEvent (enterFrame) {
if (go == true) {
_root.music.vol = _x / 3;
_root.musicSaveVol = _x / 3;
}
}
Instance of Symbol 469 MovieClip in Symbol 472 MovieClip Frame 1
on (press) {
startDrag (this, true, 0, 0, 300, 0);
go = true;
}
on (release, releaseOutside) {
stopDrag();
go = false;
}
onClipEvent (load) {
go = false;
_x = (_root.sfx.maxVol * 3);
t = 0;
}
onClipEvent (enterFrame) {
if (go == true) {
t++;
if (t > 8) {
t = 0;
_root.sfx.gotoAndPlay(2);
}
_root.sfxSaveVol = _x / 3;
}
}
Symbol 478 Button
on (release) {
if (_root._quality == "HIGH") {
_root._quality = "MEDIUM";
qual = "Medium";
} else if (_root._quality == "MEDIUM") {
_root._quality = "LOW";
qual = "Low";
} else if (_root._quality == "LOW") {
_root._quality = "HIGH";
qual = "High";
}
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 482 Button
on (release) {
_root.pause = false;
gotoAndStop (2);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 486 Button
on (release) {
gotoAndStop (5);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 490 Button
on (release) {
getURL ("http://www.crazymonkeygames.com/tt4-guide/", _blank);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 494 Button
on (release) {
getURL ("http://www.crazymonkeygames.com", _blank);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 498 Button
on (release) {
_root.gotoAndStop(4);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 503 Button
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
on (release) {
gotoAndStop (6);
}
Symbol 529 Button
on (release) {
keyModWind.go = true;
keyModWind.keyOn = 0;
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 536 Button
on (release) {
_root.character.k = new Array(87, 83, 65, 68, 69, 81, 32, 4, 80, 16);
if (_root.character.k[0] < 46) {
a1 = otherValues[_root.character.k[0]];
} else {
a1 = chr(_root.character.k[0]);
}
if (_root.character.k[1] < 46) {
a2 = otherValues[_root.character.k[1]];
} else {
a2 = chr(_root.character.k[1]);
}
if (_root.character.k[2] < 46) {
a3 = otherValues[_root.character.k[2]];
} else {
a3 = chr(_root.character.k[2]);
}
if (_root.character.k[3] < 46) {
a4 = otherValues[_root.character.k[3]];
} else {
a4 = chr(_root.character.k[3]);
}
if (_root.character.k[4] < 46) {
a5 = otherValues[_root.character.k[4]];
} else {
a5 = chr(_root.character.k[4]);
}
if (_root.character.k[5] < 46) {
a6 = otherValues[_root.character.k[5]];
} else {
a6 = chr(_root.character.k[5]);
}
if (_root.character.k[6] < 46) {
a7 = otherValues[_root.character.k[6]];
} else {
a7 = chr(_root.character.k[6]);
}
if (_root.character.k[9] < 46) {
a8 = otherValues[_root.character.k[9]];
} else {
a8 = chr(_root.character.k[9]);
}
if (_root.character.k[8] < 46) {
a9 = otherValues[_root.character.k[8]];
} else {
a9 = chr(_root.character.k[8]);
}
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 540 MovieClip Frame 1
otherValues = new Array("KeyVal 0", "KeyVal 1", "KeyVal 2", "KeyVal 3", "KeyVal 4", "KeyVal 5", "KeyVal 6", "KeyVal 7", "Backspace", "Tab", "KeyVal 10", "KeyVal 11", "KeyVal 12", "Enter", "KeyVal 14", "KeyVal 15", "Shift", "Control", "KeyVal 18", "KeyVal 19", "Caps Lock", "KeyVal 21", "KeyVal 22", "KeyVal 23", "KeyVal 24", "KeyVal 25", "KeyVal 6", "Escape", "KeyVal 28", "KeyVal 29", "KeyVal 30", "KeyVal 31", "Space", "Page Up", "Page Down", "End", "Home", "Left", "Up", "Right", "Down", "KeyVal 41", "KeyVal 42", "KeyVal 43", "KeyVal 44", "Insert", "Delete");
if (_root.character.k[0] < 46) {
a1 = otherValues[_root.character.k[0]];
} else {
a1 = chr(_root.character.k[0]);
}
if (_root.character.k[1] < 46) {
a2 = otherValues[_root.character.k[1]];
} else {
a2 = chr(_root.character.k[1]);
}
if (_root.character.k[2] < 46) {
a3 = otherValues[_root.character.k[2]];
} else {
a3 = chr(_root.character.k[2]);
}
if (_root.character.k[3] < 46) {
a4 = otherValues[_root.character.k[3]];
} else {
a4 = chr(_root.character.k[3]);
}
if (_root.character.k[4] < 46) {
a5 = otherValues[_root.character.k[4]];
} else {
a5 = chr(_root.character.k[4]);
}
if (_root.character.k[5] < 46) {
a6 = otherValues[_root.character.k[5]];
} else {
a6 = chr(_root.character.k[5]);
}
if (_root.character.k[6] < 46) {
a7 = otherValues[_root.character.k[6]];
} else {
a7 = chr(_root.character.k[6]);
}
if (_root.character.k[9] < 46) {
a8 = otherValues[_root.character.k[9]];
} else {
a8 = chr(_root.character.k[9]);
}
if (_root.character.k[8] < 46) {
a9 = otherValues[_root.character.k[8]];
} else {
a9 = chr(_root.character.k[8]);
}
Instance of Symbol 531 MovieClip "keyModWind" in Symbol 540 MovieClip Frame 1
onClipEvent (load) {
go = false;
keyOn = 0;
textStuff = new Array("Press Key for Jump", "Press Key for Duck", "Press Key for Move Left", "Press Key for Move Right", "Press Key for Switch Weapon", "Press Key for Melee Weapon", "Press Key Throw/Swap Weapon", "Press Key for Run", "Press Key for Pause", "Key Assignment Complete");
}
onClipEvent (enterFrame) {
if (go == true) {
txt = textStuff[keyOn];
}
}
onClipEvent (keyDown) {
if (go == true) {
if (keyOn != 7) {
_root.character.k[keyOn] = Key.getCode();
if (_root.character.k[keyOn] < 46) {
_parent["a" + (keyOn + 1)] = _parent.otherValues[_root.character.k[keyOn]];
} else {
_parent["a" + (keyOn + 1)] = chr(_root.character.k[keyOn]);
}
} else {
_root.character.k[9] = Key.getCode();
if (_root.character.k[9] < 46) {
_parent["a" + (keyOn + 1)] = _parent.otherValues[_root.character.k[9]];
} else {
_parent["a" + (keyOn + 1)] = chr(_root.character.k[9]);
}
}
keyOn = keyOn + 1;
if (keyOn > 8) {
txt = textStuff[keyOn];
go = false;
trace(_root.character.k);
}
}
}
Symbol 545 Button
on (release) {
gotoAndStop (1);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 553 MovieClip Frame 1
if (_root._quality == "HIGH") {
qual = "High";
} else if (_root._quality == "MEDIUM") {
qual = "Medium";
} else if (_root._quality == "LOW") {
qual = "Low";
}
Instance of Symbol 463 MovieClip "blur" in Symbol 553 MovieClip Frame 1
onClipEvent (load) {
myBitmap = new flash.display.BitmapData(560, 410, false, 0);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
myBitmap.draw(_root);
bl = new flash.filters.BlurFilter();
bl.quality = 1;
bl.blurX = 8;
bl.blurY = 8;
this.filters = [bl];
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Symbol 553 MovieClip Frame 3
postHPScore(_root.sharObject.data.kill / _root.sharObject.data.m, "Kills");
postHPScore(_root.meleeKills, "Melee Kills");
Instance of Symbol 463 MovieClip "blur" in Symbol 553 MovieClip Frame 3
onClipEvent (load) {
if (_root._currentframe == 60) {
_root.gotoAndStop(61);
}
myBitmap = new flash.display.BitmapData(560, 410, false, 0);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
_root.cursor._visible = false;
myBitmap.draw(_root);
bl = new flash.filters.BlurFilter();
bl.quality = 1;
bl.blurX = 8;
bl.blurY = 8;
this.filters = [bl];
_alpha = 0;
Mouse.show();
}
onClipEvent (enterFrame) {
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
on (release) {
if (this._alpha > 99) {
_root.gotoAndStop(4);
gotoAndStop (2);
}
}
Instance of Symbol 508 MovieClip "hBlood" in Symbol 553 MovieClip Frame 5
onClipEvent (load) {
stop();
}
Symbol 553 MovieClip Frame 6
k = "Kills: " + (_root.character.kill / _root.multiplier);
mk = "Melee Kills: " + _root.meleeKills;
sfNum = 0;
favGun = 0;
hh = 0;
while (hh < _root.shotsFired.length) {
sfNum = sfNum + _root.shotsFired[hh];
if (_root.shotsFired[hh] > _root.shotsFired[favGun]) {
favGun = hh;
}
hh++;
}
sf = "Shots Fired: " + sfNum;
fav = "Favorite Weapon: " + _root.gameFun.name[favGun];
ks = "Average number of shots to kills: " + (Math.round((sfNum / (_root.character.kill / _root.multiplier)) * 10) / 10);
ach = "";
if (_root.achievements[0] == 0) {
ach1 = "Complete the Game [ ]";
} else if (_root.achievements[1] == 0) {
ach1 = "Complete the Game [X]\rComplete Hard Mode [ ]";
} else {
ach1 = "Complete the Game [X]\rComplete Hard Mode [X]";
}
if (_root.achievements[3] == 0) {
ach3 = "Collect all Weapons [ ]";
} else {
ach3 = "Collect all Weapons [X]";
}
if (_root.achievements[4] == 0) {
ach4 = "Get 500 Melee Kills [ ]";
} else {
ach4 = "Get 500 Melee Kills [X]";
}
if (_root.achievements[5] == 0) {
ach2 = "Get 1,000 Kills [ ]";
} else if (_root.achievements[6] == 0) {
ach2 = "Get 1,000 Kills [X]\rGet 5,000 Kills [ ]";
} else if (_root.achievements[7] == 0) {
ach2 = "Get 1,000 Kills [X]\rGet 5,000 Kills [X]\rGet 10,000 Kills [ ]";
} else {
ach2 = "Get 1,000 Kills [X]\rGet 5,000 Kills [X]\rGet 10,000 Kills [X]";
}
if (_root.achievements[8] == 0) {
ach5 = "100% Complete [ ]";
} else {
ach5 = "100% Complete [X]";
}
ach = (((((((ach1 + newline) + ach3) + newline) + ach4) + newline) + ach2) + newline) + ach5;
Symbol 616 MovieClip Frame 1
stop();
Symbol 616 MovieClip Frame 3
gotoAndStop (1);
Symbol 616 MovieClip Frame 5
gotoAndStop (1);
Symbol 616 MovieClip Frame 7
gotoAndStop (1);
Symbol 616 MovieClip Frame 9
gotoAndStop (1);
Symbol 616 MovieClip Frame 11
gotoAndStop (1);
Symbol 616 MovieClip Frame 13
gotoAndStop (1);
Symbol 616 MovieClip Frame 15
gotoAndStop (1);
Symbol 616 MovieClip Frame 17
gotoAndStop (1);
Symbol 616 MovieClip Frame 19
gotoAndStop (1);
Symbol 616 MovieClip Frame 21
gotoAndStop (1);
Symbol 616 MovieClip Frame 23
gotoAndStop (1);
Symbol 616 MovieClip Frame 25
gotoAndStop (1);
Symbol 616 MovieClip Frame 27
gotoAndStop (1);
Symbol 616 MovieClip Frame 29
gotoAndStop (1);
Symbol 616 MovieClip Frame 31
gotoAndStop (1);
Symbol 616 MovieClip Frame 33
gotoAndStop (1);
Symbol 616 MovieClip Frame 35
gotoAndStop (1);
Symbol 616 MovieClip Frame 37
gotoAndStop (1);
Symbol 616 MovieClip Frame 39
gotoAndStop (1);
Symbol 616 MovieClip Frame 41
gotoAndStop (1);
Symbol 616 MovieClip Frame 43
gotoAndStop (1);
Symbol 616 MovieClip Frame 45
gotoAndStop (1);
Symbol 616 MovieClip Frame 47
gotoAndStop (1);
Symbol 616 MovieClip Frame 49
gotoAndStop (1);
Symbol 616 MovieClip Frame 51
gotoAndStop (1);
Symbol 616 MovieClip Frame 53
gotoAndStop (1);
Symbol 616 MovieClip Frame 55
gotoAndStop (1);
Symbol 616 MovieClip Frame 57
gotoAndStop (1);
Symbol 616 MovieClip Frame 59
gotoAndStop (1);
Symbol 616 MovieClip Frame 61
gotoAndStop (1);
Symbol 616 MovieClip Frame 63
gotoAndStop (1);
Symbol 616 MovieClip Frame 65
gotoAndStop (1);
Symbol 616 MovieClip Frame 67
gotoAndStop (1);
Symbol 616 MovieClip Frame 69
gotoAndStop (1);
Symbol 616 MovieClip Frame 71
gotoAndStop (1);
Symbol 616 MovieClip Frame 73
gotoAndStop (1);
Symbol 616 MovieClip Frame 75
gotoAndStop (1);
Symbol 616 MovieClip Frame 77
gotoAndStop (1);
Symbol 616 MovieClip Frame 79
gotoAndStop (1);
Symbol 616 MovieClip Frame 81
gotoAndStop (1);
Symbol 616 MovieClip Frame 83
gotoAndStop (1);
Symbol 616 MovieClip Frame 85
gotoAndStop (1);
Symbol 616 MovieClip Frame 87
gotoAndStop (1);
Symbol 616 MovieClip Frame 89
gotoAndStop (1);
Symbol 616 MovieClip Frame 91
gotoAndStop (1);
Symbol 616 MovieClip Frame 93
gotoAndStop (1);
Symbol 616 MovieClip Frame 95
gotoAndStop (1);
Symbol 616 MovieClip Frame 97
gotoAndStop (1);
Symbol 616 MovieClip Frame 99
gotoAndStop (1);
Symbol 616 MovieClip Frame 101
gotoAndStop (1);
Symbol 616 MovieClip Frame 103
gotoAndStop (1);
Symbol 616 MovieClip Frame 105
gotoAndStop (1);
Symbol 616 MovieClip Frame 107
gotoAndStop (1);
Symbol 616 MovieClip Frame 109
gotoAndStop (1);
Symbol 616 MovieClip Frame 111
gotoAndStop (1);
Symbol 616 MovieClip Frame 113
gotoAndStop (1);
Symbol 616 MovieClip Frame 115
gotoAndStop (1);
Symbol 616 MovieClip Frame 117
gotoAndStop (1);
Symbol 616 MovieClip Frame 119
gotoAndStop (1);
Symbol 616 MovieClip Frame 121
gotoAndStop (1);
Symbol 616 MovieClip Frame 123
gotoAndStop (1);
Symbol 616 MovieClip Frame 125
gotoAndStop (1);
Symbol 616 MovieClip Frame 127
gotoAndStop (1);
Symbol 616 MovieClip Frame 129
gotoAndStop (1);
Symbol 616 MovieClip Frame 131
gotoAndStop (1);
Symbol 616 MovieClip Frame 133
gotoAndStop (1);
Symbol 616 MovieClip Frame 135
gotoAndStop (1);
Symbol 616 MovieClip Frame 137
gotoAndStop (1);
Symbol 616 MovieClip Frame 139
gotoAndStop (1);
Symbol 616 MovieClip Frame 141
gotoAndStop (1);
Symbol 616 MovieClip Frame 143
gotoAndStop (1);
Symbol 616 MovieClip Frame 145
gotoAndStop (1);
Symbol 616 MovieClip Frame 147
gotoAndStop (1);
Symbol 628 MovieClip Frame 1
stop();
Symbol 628 MovieClip Frame 3
gotoAndStop (1);
Symbol 628 MovieClip Frame 5
gotoAndStop (1);
Symbol 628 MovieClip Frame 7
gotoAndStop (1);
Symbol 628 MovieClip Frame 9
gotoAndStop (1);
Symbol 628 MovieClip Frame 11
gotoAndStop (1);
Symbol 628 MovieClip Frame 13
gotoAndStop (1);
Symbol 628 MovieClip Frame 15
gotoAndStop (1);
Symbol 628 MovieClip Frame 17
gotoAndStop (1);
Symbol 628 MovieClip Frame 19
gotoAndStop (1);
Symbol 628 MovieClip Frame 21
gotoAndStop (1);
Symbol 631 MovieClip Frame 1
stop();
Symbol 631 MovieClip Frame 3
gotoAndStop (1);
Symbol 2454 MovieClip [__Packages.CMG_AS2.ScoreSubmitter] Frame 0
class CMG_AS2.ScoreSubmitter
{
function ScoreSubmitter () {
}
function submitScore(playerName, playerScore, playerSpecial) {
playerName = CMG_AS2.Utilities.trim(playerName);
gameVersion = CMG_AS2.Utilities.trim(gameVersion);
if (playerSpecial == null) {
playerSpecial = "";
} else {
playerSpecial = CMG_AS2.Utilities.trim(playerSpecial);
}
gameValidationCode = CMG_AS2.Utilities.trim(gameValidationCode);
if (((gameId < 1) || (gameVersion == "")) || (gameValidationCode == "")) {
if (responseHandler != null) {
responseHandler(RETURNCODE_REJECTED);
}
return(undefined);
}
var _local2 = new LoadVars();
_local2.name = playerName;
_local2.score = playerScore;
_local2.gameId = gameId;
_local2.gameVersion = gameVersion;
_local2.special = playerSpecial;
var _local6 = new CMG_AS2.MD5();
_local2.key = _local6.hash((((((((playerName + "|") + playerScore) + "|") + gameId) + "|") + playerSpecial) + "|") + gameValidationCode);
if (responseHandler != null) {
responseHandler(RETURNCODE_WORKING);
}
_local2.sendAndLoad(URL_SUBMITSCORE, _local2, "POST");
_local2.onLoad = function (ok) {
if (ok) {
var _local2 = CMG_AS2.Utilities.trim(this.ok);
if (_local2 == 1) {
if (CMG_AS2.ScoreSubmitter.responseHandler != null) {
CMG_AS2.ScoreSubmitter.responseHandler(CMG_AS2.ScoreSubmitter.RETURNCODE_SUCCESS);
}
} else if (_local2 == 0) {
if (CMG_AS2.ScoreSubmitter.responseHandler != null) {
CMG_AS2.ScoreSubmitter.responseHandler(CMG_AS2.ScoreSubmitter.RETURNCODE_REJECTED);
}
} else if (_local2 == 2) {
if (CMG_AS2.ScoreSubmitter.responseHandler != null) {
CMG_AS2.ScoreSubmitter.responseHandler(CMG_AS2.ScoreSubmitter.RETURNCODE_WRONGVERSION);
}
} else {
trace(("Unknown server response: '" + this.ok) + "'");
if (CMG_AS2.ScoreSubmitter.responseHandler != null) {
CMG_AS2.ScoreSubmitter.responseHandler(CMG_AS2.ScoreSubmitter.RETURNCODE_INTERNALERROR);
}
}
} else {
trace("Couldn't even load the page...'");
if (CMG_AS2.ScoreSubmitter.responseHandler != null) {
CMG_AS2.ScoreSubmitter.responseHandler(CMG_AS2.ScoreSubmitter.RETURNCODE_NETWORKERROR);
}
}
};
}
static function loadHighScorePage() {
getURL ((URL_VIEWSCORES + "?id=") + gameId, "_blank");
}
static function loadUpdatePage() {
getURL ((URL_UPDATEGAME + "?id=") + gameId, "_blank");
}
static var gameId = 0;
static var gameVersion = "1.0";
static var gameValidationCode = "";
static var responseHandler = null;
static var URL_VIEWSCORES = "http://scores.crazymonkeygames.com/hs/listscoresTT.php";
static var URL_SUBMITSCORE = "http://scores.crazymonkeygames.com/hs/regscores2.php";
static var URL_UPDATEGAME = "http://scores.crazymonkeygames.com/hs/pleaseupdate.php";
static var RETURNCODE_WORKING = 0;
static var RETURNCODE_SUCCESS = 1;
static var RETURNCODE_REJECTED = 2;
static var RETURNCODE_WRONGVERSION = 3;
static var RETURNCODE_NETWORKERROR = 4;
static var RETURNCODE_INTERNALERROR = 5;
}
Symbol 2455 MovieClip [__Packages.CMG_AS2.Utilities] Frame 0
class CMG_AS2.Utilities
{
function Utilities () {
}
static function trim(txt_str) {
while (txt_str.charAt(0) == " ") {
txt_str = txt_str.substring(1, txt_str.length);
}
while (txt_str.charAt(txt_str.length - 1) == " ") {
txt_str = txt_str.substring(0, txt_str.length - 1);
}
return(txt_str);
}
}
Symbol 2456 MovieClip [__Packages.CMG_AS2.MD5] Frame 0
class CMG_AS2.MD5
{
function MD5 (b64pad, chrsz) {
if (b64pad != undefined) {
this.b64pad = b64pad;
}
if (((chrsz != undefined) && (chrsz == 8)) || (chrsz == 16)) {
this.chrsz = chrsz;
}
}
function hash(s) {
return(hex_md5(s));
}
function hex_md5(s) {
return(binl2hex(core_md5(str2binl(s), s.length * chrsz)));
}
function b64_md5(s) {
return(binl2b64(core_md5(str2binl(s), s.length * chrsz)));
}
function str_md5(s) {
return(binl2str(core_md5(str2binl(s), s.length * chrsz)));
}
function hex_hmac_md5(key, data) {
return(binl2hex(core_hmac_md5(key, data)));
}
function b64_hmac_md5(key, data) {
return(binl2b64(core_hmac_md5(key, data)));
}
function str_hmac_md5(key, data) {
return(binl2str(core_hmac_md5(key, data)));
}
function md5_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
function md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local5 = 1732584193 /* 0x67452301 */;
var _local4 = -271733879;
var _local3 = -1732584194;
var _local2 = 271733878 /* 0x10325476 */;
var _local6 = 0;
while (_local6 < x.length) {
var _local11 = _local5;
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 0], 7, -680876936);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 1], 12, -389564586);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 2], 17, 606105819);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 3], 22, -1044525330);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 4], 7, -176418897);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 5], 12, 1200080426);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 6], 17, -1473231341);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 7], 22, -45705983);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 8], 7, 1770035416);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 9], 12, -1958414417);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 10], 17, -42063);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 11], 22, -1990404162);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 12], 7, 1804603682);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 13], 12, -40341101);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 14], 17, -1502002290);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 15], 22, 1236535329);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 1], 5, -165796510);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 6], 9, -1069501632);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 11], 14, 643717713);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 0], 20, -373897302);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 5], 5, -701558691);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 10], 9, 38016083);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 15], 14, -660478335);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 4], 20, -405537848);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 9], 5, 568446438);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 14], 9, -1019803690);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 3], 14, -187363961);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 8], 20, 1163531501);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 13], 5, -1444681467);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 2], 9, -51403784);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 7], 14, 1735328473);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 12], 20, -1926607734);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 5], 4, -378558);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 8], 11, -2022574463);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 11], 16, 1839030562);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 14], 23, -35309556);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 1], 4, -1530992060);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 4], 11, 1272893353);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 7], 16, -155497632);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 10], 23, -1094730640);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 13], 4, 681279174);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 0], 11, -358537222);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 3], 16, -722521979);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 6], 23, 76029189);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 9], 4, -640364487);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 12], 11, -421815835);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 15], 16, 530742520);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 2], 23, -995338651);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 0], 6, -198630844);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 7], 10, 1126891415);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 14], 15, -1416354905);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 5], 21, -57434055);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 12], 6, 1700485571);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 3], 10, -1894986606);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 10], 15, -1051523);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 1], 21, -2054922799);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 8], 6, 1873313359);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 15], 10, -30611744);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 6], 15, -1560198380);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 13], 21, 1309151649);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 4], 6, -145523070);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 11], 10, -1120210379);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 2], 15, 718787259);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 9], 21, -343485551);
_local5 = safe_add(_local5, _local11);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local6 = _local6 + 16;
}
return(Array(_local5, _local4, _local3, _local2));
}
function core_hmac_md5(key, data) {
var _local3 = new Array(str2binl(key));
if (_local3.length > 16) {
_local3 = core_md5(_local3, key.length * chrsz);
}
var _local4 = new Array(16);
var _local5 = new Array(16);
var _local2 = 0;
while (_local2 < 16) {
_local4[_local2] = _local3[_local2] ^ 909522486;
_local5[_local2] = _local3[_local2] ^ 1549556828;
_local2++;
}
var _local6 = new Array(core_md5(_local4.concat(str2binl(data)), 512 + (data.length * chrsz)));
return(core_md5(_local5.concat(_local6), 640));
}
function safe_add(x, y) {
var _local1 = new Number((x & 65535) + (y & 65535));
var _local2 = new Number(((x >> 16) + (y >> 16)) + (_local1 >> 16));
return((_local2 << 16) | (_local1 & 65535));
}
function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function str2binl(str) {
var _local4 = new Array();
var _local5 = (1 << chrsz) - 1;
var _local2 = 0;
while (_local2 < (str.length * chrsz)) {
_local4[_local2 >> 5] = _local4[_local2 >> 5] | ((str.charCodeAt(_local2 / chrsz) & _local5) << (_local2 % 32));
_local2 = _local2 + chrsz;
}
return(_local4);
}
function binl2str(bin) {
var _local4 = new String("");
var _local5 = (1 << chrsz) - 1;
var _local2 = 0;
while (_local2 < (bin.length * 32)) {
_local4 = _local4 + String.fromCharCode((bin[_local2 >> 5] >>> (_local2 % 32)) & _local5);
_local2 = _local2 + chrsz;
}
return(_local4);
}
function binl2hex(binarray) {
var _local3 = "0123456789abcdef";
var _local4 = new String("");
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local4 = _local4 + (_local3.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local4);
}
function binl2b64(binarray) {
var _local7 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local5 = new String("");
var _local3 = 0;
while (_local3 < (binarray.length * 4)) {
var _local6 = ((((binarray[_local3 >> 2] >> (8 * (_local3 % 4))) & 255) << 16) | (((binarray[(_local3 + 1) >> 2] >> (8 * ((_local3 + 1) % 4))) & 255) << 8)) | ((binarray[(_local3 + 2) >> 2] >> (8 * ((_local3 + 2) % 4))) & 255);
var _local2 = 0;
while (_local2 < 4) {
if (((_local3 * 8) + (_local2 * 6)) > (binarray.length * 32)) {
_local5 = _local5 + b64pad;
} else {
_local5 = _local5 + _local7.charAt((_local6 >> (6 * (3 - _local2))) & 63);
}
_local2++;
}
_local3 = _local3 + 3;
}
return(_local5);
}
var b64pad = new String("");
var chrsz = new Number(8);
}
Symbol 653 MovieClip Frame 1
stop();
Instance of Symbol 57 MovieClip "pre" in Symbol 654 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
barMC.bar._xscale = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if ((barMC.bar._xscale >= 100) && (_parent._currentframe > 149)) {
this.gotoAndStop(2);
}
}
if ((_currentframe == 3) && (_parent._currentframe > 149)) {
_root.nextFrame();
}
}
Instance of Symbol 43 MovieClip in Symbol 654 MovieClip Frame 1
on (release) {
getURL ("http://www.crazymonkeygames.com", "_blank");
}
Instance of Symbol 653 MovieClip in Symbol 654 MovieClip Frame 80
onClipEvent (enterFrame) {
chance = random(90);
if (chance == 1) {
play();
}
}
Symbol 654 MovieClip Frame 151
stop();
Instance of Symbol 660 MovieClip in Symbol 663 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
}
Instance of Symbol 662 MovieClip in Symbol 663 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
}
Symbol 667 MovieClip Frame 1
stop();
Symbol 667 MovieClip Frame 5
stop();
Symbol 672 MovieClip Frame 1
stop();
Symbol 672 MovieClip Frame 6
stop();
Instance of Symbol 672 MovieClip in Symbol 675 MovieClip Frame 1
onClipEvent (enterFrame) {
chance = random(20) + 1;
if (chance == 1) {
play();
}
}
Instance of Symbol 667 MovieClip in Symbol 675 MovieClip Frame 1
onClipEvent (enterFrame) {
chance = random(20) + 1;
if (chance == 1) {
play();
}
}
Instance of Symbol 672 MovieClip in Symbol 676 MovieClip Frame 1
onClipEvent (enterFrame) {
chance = random(20) + 1;
if (chance == 1) {
play();
}
}
Instance of Symbol 667 MovieClip in Symbol 676 MovieClip Frame 1
onClipEvent (enterFrame) {
chance = random(20) + 1;
if (chance == 1) {
play();
}
}
Instance of Symbol 675 MovieClip in Symbol 676 MovieClip Frame 1
onClipEvent (load) {
stX = _x;
stY = _y;
}
onClipEvent (enterFrame) {
_alpha = random(50);
_x = ((stX + random(20)) - 10);
_y = ((stY + random(20)) - 10);
}
Instance of Symbol 448 MovieClip in Symbol 703 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
onClipEvent (enterFrame) {
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
Symbol 704 MovieClip Frame 1
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Instance of Symbol 448 MovieClip in Symbol 704 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
onClipEvent (enterFrame) {
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
Symbol 704 MovieClip Frame 10
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Symbol 705 MovieClip Frame 1
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Instance of Symbol 448 MovieClip in Symbol 705 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
onClipEvent (enterFrame) {
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
Symbol 705 MovieClip Frame 10
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Symbol 706 MovieClip Frame 1
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Instance of Symbol 448 MovieClip in Symbol 706 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
onClipEvent (enterFrame) {
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
Symbol 706 MovieClip Frame 7
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Symbol 707 MovieClip Frame 1
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Instance of Symbol 448 MovieClip in Symbol 707 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
onClipEvent (enterFrame) {
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
Symbol 707 MovieClip Frame 7
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Instance of Symbol 448 MovieClip in Symbol 708 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
onClipEvent (enterFrame) {
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
Symbol 708 MovieClip Frame 7
stop();
Symbol 708 MovieClip Frame 9
gotoAndPlay (7);
Instance of Symbol 448 MovieClip in Symbol 709 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
onClipEvent (enterFrame) {
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
Symbol 709 MovieClip Frame 20
gotoAndPlay (6);
Instance of Symbol 448 MovieClip in Symbol 710 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
onClipEvent (enterFrame) {
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
Instance of Symbol 448 MovieClip "point" in Symbol 710 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Instance of Symbol 448 MovieClip in Symbol 710 MovieClip Frame 20
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
onClipEvent (enterFrame) {
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
Symbol 710 MovieClip Frame 36
gotoAndPlay (21);
Instance of Symbol 448 MovieClip "point" in Symbol 711 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Instance of Symbol 448 MovieClip in Symbol 711 MovieClip Frame 20
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
onClipEvent (enterFrame) {
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
Symbol 711 MovieClip Frame 36
gotoAndPlay (21);
Instance of Symbol 448 MovieClip in Symbol 712 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 40) {
_rotation = 40;
}
if (_rotation < -40) {
_rotation = -40;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 40) {
_rotation = 40;
}
if (_rotation < -40) {
_rotation = -40;
}
}
}
onClipEvent (enterFrame) {
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 40) {
_rotation = 40;
}
if (_rotation < -40) {
_rotation = -40;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 40) {
_rotation = 40;
}
if (_rotation < -40) {
_rotation = -40;
}
}
}
Symbol 712 MovieClip Frame 19
gotoAndPlay (5);
Instance of Symbol 448 MovieClip "head" in Symbol 713 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Symbol 713 MovieClip Frame 8
_parent.bodyHurt = false;
_parent.headHurt = false;
_parent.gotoAndStop(1);
Instance of Symbol 448 MovieClip "head" in Symbol 713 MovieClip Frame 8
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Instance of Symbol 448 MovieClip "head" in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Symbol 714 MovieClip Frame 8
_parent.bodyHurt = false;
_parent.headHurt = false;
_parent.gotoAndStop(1);
Instance of Symbol 448 MovieClip "head" in Symbol 715 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Symbol 715 MovieClip Frame 8
_parent.bodyHurt = false;
_parent.headHurt = false;
_parent.gotoAndStop(1);
Instance of Symbol 448 MovieClip "head" in Symbol 715 MovieClip Frame 8
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Instance of Symbol 448 MovieClip "head" in Symbol 716 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Symbol 716 MovieClip Frame 8
_parent.bodyHurt = false;
_parent.headHurt = false;
_parent.gotoAndStop(1);
Instance of Symbol 448 MovieClip "head" in Symbol 716 MovieClip Frame 8
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Instance of Symbol 448 MovieClip "head" in Symbol 719 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Symbol 719 MovieClip Frame 22
_parent.createCorpse();
Instance of Symbol 448 MovieClip "head" in Symbol 720 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Symbol 720 MovieClip Frame 28
_parent.createCorpse();
Instance of Symbol 721 MovieClip "pt" in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.brainGib, "item" + i, i);
_root.item["item" + i]._x = x - _root.item._x;
_root.item["item" + i]._y = y - _root.item._y;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _parent._parent._xscale;
_root.item["item" + i].speed = -(random(10) + 1);
t = 0;
};
fun();
}
onClipEvent (enterFrame) {
if (t > 3) {
fun();
} else {
t++;
}
}
Instance of Symbol 448 MovieClip "head" in Symbol 737 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Instance of Symbol 718 MovieClip in Symbol 737 MovieClip Frame 4
/* no clip actions */
Instance of Symbol 452 MovieClip in Symbol 737 MovieClip Frame 8
/* no clip actions */
Symbol 737 MovieClip Frame 12
gotoAndPlay (6);
Symbol 749 MovieClip Frame 10
removeMovieClip("");
Symbol 750 MovieClip Frame 20
_parent.createCorpse();
Instance of Symbol 448 MovieClip "head" in Symbol 751 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Symbol 751 MovieClip Frame 7
gotoAndPlay (6);
Symbol 751 MovieClip Frame 19
_parent.createCorpse();
Symbol 752 MovieClip Frame 7
gotoAndPlay (6);
Symbol 752 MovieClip Frame 19
_parent.createCorpse();
Symbol 753 MovieClip Frame 1
hurt = false;
Instance of Symbol 703 MovieClip "char" in Symbol 753 MovieClip Frame 1
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 704 MovieClip "char" in Symbol 753 MovieClip Frame 2
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 705 MovieClip "char" in Symbol 753 MovieClip Frame 3
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 706 MovieClip "char" in Symbol 753 MovieClip Frame 4
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 707 MovieClip "char" in Symbol 753 MovieClip Frame 5
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 708 MovieClip "char" in Symbol 753 MovieClip Frame 6
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 709 MovieClip "char" in Symbol 753 MovieClip Frame 7
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 710 MovieClip "char" in Symbol 753 MovieClip Frame 8
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 711 MovieClip "char" in Symbol 753 MovieClip Frame 9
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 712 MovieClip "char" in Symbol 753 MovieClip Frame 10
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 713 MovieClip "char" in Symbol 753 MovieClip Frame 11
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 714 MovieClip "char" in Symbol 753 MovieClip Frame 12
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 715 MovieClip "char" in Symbol 753 MovieClip Frame 13
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 716 MovieClip "char" in Symbol 753 MovieClip Frame 14
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 719 MovieClip "char" in Symbol 753 MovieClip Frame 15
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 720 MovieClip "char" in Symbol 753 MovieClip Frame 16
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 737 MovieClip "char" in Symbol 753 MovieClip Frame 17
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
_root.sfx.gotoAndPlay(36);
time = 0;
}
onClipEvent (enterFrame) {
if (time > 15) {
_root.sfx.gotoAndPlay(36);
time = 0;
} else {
time++;
}
}
Instance of Symbol 750 MovieClip "char" in Symbol 753 MovieClip Frame 18
onClipEvent (load) {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _parent._x;
_root.item["item" + i]._y = _parent._y - 30;
_root.item["item" + i].gotoAndStop(8);
_root.item["item" + i]._xscale = _parent._xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.explode, "item" + i, i);
_root.item["item" + i]._x = _parent._x;
_root.item["item" + i]._y = _parent._y - 20;
_root.item["item" + i]._rotation = random(360);
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 750 MovieClip "char" in Symbol 753 MovieClip Frame 19
onClipEvent (load) {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _parent._x;
_root.item["item" + i]._y = _parent._y - 30;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _parent._xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _parent._x;
_root.item["item" + i]._y = _parent._y - 35;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _parent._xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _parent._x;
_root.item["item" + i]._y = _parent._y - 25;
_root.item["item" + i].gotoAndStop(4);
_root.item["item" + i]._xscale = _parent._xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _parent._x;
_root.item["item" + i]._y = _parent._y - 35;
sca = random(25) + 75;
_root.item["item" + i]._xscale = sca;
_root.item["item" + i]._yscale = sca;
_root.item["item" + i].speed = -(random(10) + 1);
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 751 MovieClip "char" in Symbol 753 MovieClip Frame 20
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 752 MovieClip "char" in Symbol 753 MovieClip Frame 21
onClipEvent (load) {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _parent._x;
_root.item["item" + i]._y = _parent._y - 30;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _parent._xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _parent._x;
_root.item["item" + i]._y = _parent._y - 35;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _parent._xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _parent._x;
_root.item["item" + i]._y = _parent._y - 25;
_root.item["item" + i].gotoAndStop(4);
_root.item["item" + i]._xscale = _parent._xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _parent._x;
_root.item["item" + i]._y = _parent._y - 35;
sca = random(25) + 75;
_root.item["item" + i]._xscale = sca;
_root.item["item" + i]._yscale = sca;
_root.item["item" + i].speed = -(random(10) + 1);
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Symbol 765 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 765 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 765 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 770 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 770 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 770 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 775 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 775 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 775 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 780 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 780 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 780 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 787 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 787 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 787 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 793 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 793 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 793 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 798 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 798 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 798 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 805 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 805 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 805 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 809 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 809 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 809 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 817 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 817 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 817 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 819 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 819 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 819 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 828 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 828 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 828 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 830 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 830 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 830 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 834 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 834 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 834 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 837 MovieClip Frame 1
stop();
Symbol 840 MovieClip Frame 1
stop();
Symbol 840 MovieClip Frame 2
stop();
Symbol 841 MovieClip Frame 1
stop();
Symbol 847 MovieClip Frame 1
stop();
Instance of Symbol 837 MovieClip in Symbol 847 MovieClip Frame 1
onClipEvent (load) {
if (_root.achievements[4] == 1) {
gotoAndStop (2);
}
}
Instance of Symbol 840 MovieClip "hand2" in Symbol 847 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 841 MovieClip "hand1" in Symbol 847 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (load) {
if (_parent._parent.getDepth() > _root.character.getDepth()) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 837 MovieClip in Symbol 847 MovieClip Frame 3
onClipEvent (load) {
if (_root.achievements[4] == 1) {
gotoAndStop (2);
}
}
Instance of Symbol 721 MovieClip "pt" in Symbol 847 MovieClip Frame 8
onClipEvent (load) {
hasBled = false;
pow = _root.arm.pow[15];
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
n = 0;
while (n < _root.character.targets.length) {
tar = _root.character.targets[n];
if (_root.item[tar].health > 0) {
dx = Math.abs((x - _root.item._x) - _root.item[tar]._x);
dy = Math.abs((y - _root.item._y) - (_root.item[tar]._y - 10));
if (_root.achievements[4] == 0) {
if ((dx < 55) && (dy < 40)) {
_root.sfx.gotoAndPlay(42);
_root.sfx.gotoAndPlay(42);
_root.sfx.gotoAndPlay(((random(3) + 1) * 2) + 44);
_root.character.modifier = random(15) + 1;
_root.character.yModifier = random(15) + 1;
_root.item[tar].health = _root.item[tar].health - pow;
if (hasBled == false) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = x - _root.item._x;
_root.item["item" + i]._y = y - _root.item._y;
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = x - _root.obj._x;
_root.obj["obj" + i]._y = y - _root.obj._y;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(4) + 1);
sca = random(50) + 25;
_root.obj["obj" + i]._xscale = sca;
_root.obj["obj" + i]._yscale = sca;
_root.obj["obj" + i]._alpha = 50;
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
hasBled = true;
}
if ((y - _root.item._y) > (_root.item[tar]._y - 4)) {
if (_root.item[tar].fall == false) {
chance = random(2) + 1;
if (chance == 1) {
_root.item[tar].gotoAndStop(13);
} else {
_root.item[tar].gotoAndStop(14);
}
_root.item[tar].hurt = true;
}
} else {
_root.item[tar].health = _root.item[tar].health - (pow / 2);
if (_root.item[tar].fall == false) {
chance = random(2) + 1;
if (chance == 1) {
_root.item[tar].gotoAndStop(11);
} else {
_root.item[tar].gotoAndStop(12);
}
_root.item[tar].hurt = true;
}
}
if (_root.item[tar].health <= 0) {
_root.meleeKills = _root.meleeKills + 1;
}
}
} else if ((dx < 70) && (dy < 60)) {
_root.sfx.gotoAndPlay(42);
_root.sfx.gotoAndPlay(138);
_root.character.modifier = random(15) + 1;
_root.character.yModifier = random(15) + 1;
_root.item[tar].health = _root.item[tar].health - (pow * 2);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = x - _root.item._x;
_root.item["item" + i]._y = y - _root.item._y;
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = x - _root.obj._x;
_root.obj["obj" + i]._y = y - _root.obj._y;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(4) + 1);
sca = random(50) + 50;
_root.obj["obj" + i]._xscale = sca;
_root.obj["obj" + i]._yscale = sca;
_root.obj["obj" + i]._alpha = 75;
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
if ((y - _root.item._y) > (_root.item[tar]._y - 4)) {
if (_root.item[tar].fall == false) {
chance = random(2) + 1;
if (chance == 1) {
_root.item[tar].gotoAndStop(13);
} else {
_root.item[tar].gotoAndStop(14);
}
_root.item[tar].hurt = true;
}
} else {
_root.item[tar].health = _root.item[tar].health - pow;
if (_root.item[tar].fall == false) {
chance = random(2) + 1;
if (chance == 1) {
_root.item[tar].gotoAndStop(11);
} else {
_root.item[tar].gotoAndStop(12);
}
_root.item[tar].hurt = true;
}
}
if (_root.item[tar].health <= 0) {
_root.meleeKills = _root.meleeKills + 1;
}
}
}
n++;
}
}
Symbol 852 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 852 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 852 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 857 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 857 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 857 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 864 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 864 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 864 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 870 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 870 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 870 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip in Symbol 870 MovieClip Frame 6
onClipEvent (load) {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
r = _rotation;
_root.hand1.gun.shellx = x;
_root.hand1.gun.shelly = y;
_root.hand1.gun.shellr = r;
}
Instance of Symbol 721 MovieClip in Symbol 870 MovieClip Frame 6
onClipEvent (load) {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
_root.hand1.gun.bulletx = x;
_root.hand1.gun.bullety = y;
}
Symbol 875 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 875 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 875 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 883 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 883 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 883 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 889 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 889 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 889 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 894 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 894 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 894 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 902 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 902 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 902 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 908 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 908 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 908 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 915 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 915 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 915 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 921 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 921 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 921 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 923 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 923 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 923 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 931 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 931 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 931 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 937 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 937 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 937 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 939 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 939 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 939 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 941 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 941 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 941 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 948 MovieClip Frame 1
stop();
Symbol 948 MovieClip Frame 3
gotoAndStop (1);
Symbol 948 MovieClip Frame 5
gotoAndStop (1);
Symbol 948 MovieClip Frame 7
gotoAndStop (1);
Symbol 948 MovieClip Frame 9
gotoAndStop (1);
Symbol 949 MovieClip Frame 1
stop();
Instance of Symbol 947 MovieClip in Symbol 949 MovieClip Frame 3
onClipEvent (load) {
_rotation = random(360);
}
onClipEvent (enterFrame) {
_xscale = (_xscale + 5);
_yscale = (_yscale + 5);
_alpha = (_alpha - 12);
_rotation = (_rotation + 1);
}
Instance of Symbol 948 MovieClip in Symbol 949 MovieClip Frame 3
onClipEvent (load) {
chance = random(4) + 1;
if (chance == 1) {
gotoAndPlay (2);
} else if (chance == 2) {
gotoAndPlay (4);
} else if (chance == 3) {
gotoAndPlay (6);
} else {
gotoAndPlay (8);
}
}
Symbol 949 MovieClip Frame 11
swapDepths(1);
removeMovieClip("");
Symbol 954 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 954 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 954 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 949 MovieClip in Symbol 954 MovieClip Frame 2
onClipEvent (load) {
stop();
}
Symbol 956 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 956 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 956 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 964 Button
on (release) {
_root.character.head = _root.character.head - 1;
if (_root.character.head < 1) {
_root.character.head = 122;
}
zzyy = 0;
while (zzyy < _root.ele.headExclude.length) {
if (_root.character.head == _root.ele.headExclude[zzyy]) {
_root.character.head = _root.character.head - 1;
if (_root.character.head < 1) {
_root.character.head = 122;
}
zzyy = -1;
}
zzyy++;
}
_root.character.gotoAndStop(2);
_root.character.gotoAndStop(1);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 965 Button
on (release) {
_root.character.face = _root.character.face - 1;
if (_root.character.face < 1) {
_root.character.face = 82;
}
zzyy = 0;
while (zzyy < _root.ele.faceExclude.length) {
if (_root.character.face == _root.ele.faceExclude[zzyy]) {
_root.character.face = _root.character.face - 1;
if (_root.character.face < 1) {
_root.character.face = 82;
}
zzyy = -1;
}
zzyy++;
}
_root.character.gotoAndStop(2);
_root.character.gotoAndStop(1);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 966 Button
on (release) {
_root.character.body = _root.character.body - 1;
if (_root.character.body < 2) {
_root.character.body = 104;
}
zzyy = 0;
while (zzyy < _root.ele.bodyExclude.length) {
if (_root.character.body == _root.ele.bodyExclude[zzyy]) {
_root.character.body = _root.character.body - 1;
if (_root.character.body < 2) {
_root.character.body = 104;
}
zzyy = -1;
}
zzyy++;
}
_root.character.gotoAndStop(2);
_root.character.gotoAndStop(1);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 967 Button
on (release) {
_root.character.foot = _root.character.foot - 1;
if (_root.character.foot < 1) {
_root.character.foot = 35;
}
zzyy = 0;
while (zzyy < _root.ele.footExclude.length) {
if (_root.character.foot == _root.ele.footExclude[zzyy]) {
_root.character.foot = _root.character.foot - 1;
if (_root.character.foot < 1) {
_root.character.foot = 35;
}
zzyy = -1;
}
zzyy++;
}
_root.character.gotoAndStop(2);
_root.character.gotoAndStop(1);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 968 Button
on (release) {
_root.character.head = _root.character.head + 1;
if (_root.character.head > 122) {
_root.character.head = 1;
}
zzyy = 0;
while (zzyy < (_root.ele.headExclude.length + 1)) {
if (_root.character.head == _root.ele.headExclude[zzyy]) {
_root.character.head = _root.character.head + 1;
if (_root.character.head > 122) {
_root.character.head = 1;
}
zzyy = -1;
}
zzyy++;
}
_root.character.gotoAndStop(2);
_root.character.gotoAndStop(1);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 969 Button
on (release) {
_root.character.face = _root.character.face + 1;
if (_root.character.face > 82) {
_root.character.face = 1;
}
zzyy = 0;
while (zzyy < (_root.ele.faceExclude.length + 1)) {
if (_root.character.face == _root.ele.faceExclude[zzyy]) {
_root.character.face = _root.character.face + 1;
if (_root.character.face > 82) {
_root.character.face = 1;
}
zzyy = -1;
}
zzyy++;
}
_root.character.gotoAndStop(2);
_root.character.gotoAndStop(1);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 970 Button
on (release) {
_root.character.body = _root.character.body + 1;
if (_root.character.body > 104) {
_root.character.body = 2;
}
zzyy = 0;
while (zzyy < (_root.ele.bodyExclude.length + 1)) {
if (_root.character.body == _root.ele.bodyExclude[zzyy]) {
_root.character.body = _root.character.body + 1;
if (_root.character.body > 104) {
_root.character.body = 2;
}
zzyy = -1;
}
zzyy++;
}
_root.character.gotoAndStop(2);
_root.character.gotoAndStop(1);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 971 Button
on (release) {
_root.character.foot = _root.character.foot + 1;
if (_root.character.foot > 35) {
_root.character.foot = 1;
}
zzyy = 0;
while (zzyy < (_root.ele.footExclude.length + 1)) {
if (_root.character.foot == _root.ele.footExclude[zzyy]) {
_root.character.foot = _root.character.foot + 1;
if (_root.character.foot > 35) {
_root.character.foot = 1;
}
zzyy = -1;
}
zzyy++;
}
_root.character.gotoAndStop(2);
_root.character.gotoAndStop(1);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 972 Button
on (release) {
_root.levelSelect.gotoAndStop(3);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 977 Button
on (release) {
_root.gameFun.saveCharacter();
if (_root.hardMode == true) {
if (_root.levelOn2 == 6) {
_root.levelOn2 = 10;
}
_root.gotoAndStop(_root.levelOn2);
} else {
if (_root.levelOn == 6) {
_root.levelOn = 10;
}
_root.gotoAndStop(_root.levelOn);
}
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 978 Button
on (release) {
_root.levelSelect.gotoAndStop(7);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 989 MovieClip Frame 12
_parent.removeMovieClip("");
Symbol 990 Button
on (release) {
_root.levelSelect.gotoAndStop(6);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 992 Button
on (release) {
_root.levelSelect.gotoAndStop(2);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 996 Button
on (release) {
getURL ("http://crazymonkeygames.com/Thing-Thing-Series.php", _blank);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 1006 Button
on (release) {
getURL ("http://www.crazymonkeygames.com/Thing-Thing-4.html", _blank);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 1007 Button
on (release) {
_root.levelSelect.gotoAndStop(8);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 1009 Button
on (release) {
_root.levelSelect.gotoAndStop(9);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 1035 Button
on (release) {
_root.gameFun.saveCharacter();
_root.gotoAndStop(62);
}
Symbol 1037 Button
on (release) {
_root.gameFun.saveCharacter();
_root.gotoAndStop(10);
}
Symbol 1038 Button
on (release) {
_root.gameFun.saveCharacter();
_root.gotoAndStop(12);
}
Symbol 1039 Button
on (release) {
_root.gameFun.saveCharacter();
_root.gotoAndStop(14);
}
Symbol 1040 Button
on (release) {
_root.gameFun.saveCharacter();
_root.gotoAndStop(16);
}
Symbol 1041 Button
on (release) {
_root.gameFun.saveCharacter();
_root.gotoAndStop(18);
}
Symbol 1042 Button
on (release) {
_root.gameFun.saveCharacter();
_root.gotoAndStop(20);
}
Symbol 1043 Button
on (release) {
_root.gameFun.saveCharacter();
_root.gotoAndStop(22);
}
Symbol 1044 Button
on (release) {
_root.gameFun.saveCharacter();
_root.gotoAndStop(24);
}
Symbol 1045 Button
on (release) {
_root.gameFun.saveCharacter();
_root.gotoAndStop(26);
}
Symbol 1046 Button
on (release) {
_root.gameFun.saveCharacter();
_root.gotoAndStop(28);
}
Symbol 1047 Button
on (release) {
_root.gameFun.saveCharacter();
_root.gotoAndStop(30);
}
Symbol 1048 Button
on (release) {
_root.gameFun.saveCharacter();
_root.gotoAndStop(32);
}
Symbol 1051 Button
on (release) {
_root.gameFun.saveCharacter();
_root.gotoAndStop(34);
}
Symbol 1052 Button
on (release) {
_root.gameFun.saveCharacter();
_root.gotoAndStop(36);
}
Symbol 1053 Button
on (release) {
_root.gameFun.saveCharacter();
_root.gotoAndStop(38);
}
Symbol 1054 Button
on (release) {
_root.gameFun.saveCharacter();
_root.gotoAndStop(40);
}
Symbol 1055 Button
on (release) {
_root.gameFun.saveCharacter();
_root.gotoAndStop(42);
}
Symbol 1056 Button
on (release) {
_root.gameFun.saveCharacter();
_root.gotoAndStop(44);
}
Symbol 1057 Button
on (release) {
_root.gameFun.saveCharacter();
_root.gotoAndStop(46);
}
Symbol 1058 Button
on (release) {
_root.gameFun.saveCharacter();
_root.gotoAndStop(48);
}
Symbol 1059 Button
on (release) {
_root.gameFun.saveCharacter();
_root.gotoAndStop(50);
}
Symbol 1060 Button
on (release) {
_root.gameFun.saveCharacter();
_root.gotoAndStop(52);
}
Symbol 1061 Button
on (release) {
_root.gameFun.saveCharacter();
_root.gotoAndStop(54);
}
Symbol 1062 Button
on (release) {
_root.gameFun.saveCharacter();
_root.gotoAndStop(56);
}
Symbol 1063 Button
on (release) {
gotoAndStop (1);
}
Symbol 1067 Button
on (release) {
gotoAndStop (4);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 1068 Button
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
on (release) {
gotoAndStop (5);
}
Symbol 1069 Button
on (release) {
gotoAndStop (1);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 1075 Button
on (release) {
if (_root.hardMode == false) {
_root.hardMode = true;
hard = "On";
if (levelOn2 == 7) {
_root.cga1._visible = false;
_root.cga2._visible = false;
_root.cga3._visible = false;
_root.cga4._visible = false;
} else {
_root.cga1._visible = true;
_root.cga2._visible = true;
_root.cga3._visible = true;
_root.cga4._visible = true;
}
if (_root.achievements[1] == 0) {
_root.lvSel._visible = false;
_root.lvSel2._visible = false;
_root.lvSel3._visible = false;
_root.lvSel4._visible = false;
} else {
_root.lvSel._visible = true;
_root.lvSel2._visible = true;
_root.lvSel3._visible = true;
_root.lvSel4._visible = true;
}
} else {
_root.hardMode = false;
hard = "Off";
if (levelOn == 7) {
_root.cga1._visible = false;
_root.cga2._visible = false;
_root.cga3._visible = false;
_root.cga4._visible = false;
} else {
_root.cga1._visible = true;
_root.cga2._visible = true;
_root.cga3._visible = true;
_root.cga4._visible = true;
}
if (_root.achievements[0] == 0) {
_root.lvSel._visible = false;
_root.lvSel2._visible = false;
_root.lvSel3._visible = false;
_root.lvSel4._visible = false;
} else {
_root.lvSel._visible = true;
_root.lvSel2._visible = true;
_root.lvSel3._visible = true;
_root.lvSel4._visible = true;
}
}
}
Symbol 1076 Button
on (release) {
gotoAndStop (3);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 1087 Button
on (release) {
_root.gameFun.clearData();
_root.gotoAndPlay(3);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 1093 Button
on (release) {
_root.gameFun.saveCharacter();
_root.gotoAndStop(7);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 1099 Button
on (release) {
getURL ("http://www.crazymonkeygames.com", _blank);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 1103 Button
on (release) {
getURL ("http://www.diseasedproductions.net/rockwell/rockwell.html", _blank);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 1105 Button
on (release) {
getURL ("http://www.diseasedproductions.net", _blank);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 1117 Button
on (release) {
getURL ("http://scores.crazymonkeygames.com/hs/listscoresTT.php?id=316", "_blank");
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 1118 Button
on (release) {
getURL ("http://scores.crazymonkeygames.com/hs/listscoresTT.php?id=317", "_blank");
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 1119 Button
on (release) {
getURL ("http://scores.crazymonkeygames.com/hs/listscoresTT.php?id=318", "_blank");
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 1120 Button
on (release) {
getURL ("http://scores.crazymonkeygames.com/hs/listscoresTT.php?id=319", "_blank");
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 1121 Button
on (release) {
getURL ("http://scores.crazymonkeygames.com/hs/listscoresTT.php?id=320", "_blank");
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 1122 Button
on (release) {
getURL ("http://scores.crazymonkeygames.com/hs/listscoresTT.php?id=321", "_blank");
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 1125 MovieClip Frame 1
stop();
Symbol 1125 MovieClip Frame 3
if (_root._quality == "HIGH") {
qual = "High";
} else if (_root._quality == "MEDIUM") {
qual = "Medium";
} else if (_root._quality == "LOW") {
qual = "Low";
}
if (_root.achievements[0] == 1) {
if (_root.hardMode == true) {
hard = "On";
} else {
hard = "Off";
}
} else {
hard = "";
h._visible = false;
h2._visible = false;
}
Symbol 1125 MovieClip Frame 5
k = "Kills: " + (_root.character.kill / _root.multiplier);
mk = "Melee Kills: " + _root.meleeKills;
sfNum = 0;
favGun = 0;
hh = 0;
while (hh < _root.shotsFired.length) {
sfNum = sfNum + _root.shotsFired[hh];
if (_root.shotsFired[hh] > _root.shotsFired[favGun]) {
favGun = hh;
}
hh++;
}
sf = "Shots Fired: " + sfNum;
fav = "Favorite Weapon: " + _root.gameFun.name[favGun];
ks = "Average number of shots to kills: " + (Math.round((sfNum / (_root.character.kill / _root.multiplier)) * 10) / 10);
if (ks == "Average number of shots to kills: NaN") {
ks = "Average number of shots to kills: 0";
}
ach = "";
if (_root.achievements[0] == 0) {
ach1 = "Complete the Game [ ]";
} else if (_root.achievements[1] == 0) {
ach1 = "Complete the Game [X]\rComplete Hard Mode [ ]";
} else {
ach1 = "Complete the Game [X]\rComplete Hard Mode [X]";
}
if (_root.achievements[3] == 0) {
ach3 = "Collect all Weapons [ ]";
} else {
ach3 = "Collect all Weapons [X]";
}
if (_root.achievements[4] == 0) {
ach4 = "Get 500 Melee Kills [ ]";
} else {
ach4 = "Get 500 Melee Kills [X]";
}
if (_root.achievements[5] == 0) {
ach2 = "Get 1,000 Kills [ ]";
} else if (_root.achievements[6] == 0) {
ach2 = "Get 1,000 Kills [X]\rGet 5,000 Kills [ ]";
} else if (_root.achievements[7] == 0) {
ach2 = "Get 1,000 Kills [X]\rGet 5,000 Kills [X]\rGet 10,000 Kills [ ]";
} else {
ach2 = "Get 1,000 Kills [X]\rGet 5,000 Kills [X]\rGet 10,000 Kills [X]";
}
if (_root.achievements[8] == 0) {
ach5 = "100% Complete [ ]";
} else {
ach5 = "100% Complete [X]";
}
ach = (((((((ach1 + newline) + ach3) + newline) + ach4) + newline) + ach2) + newline) + ach5;
Instance of Symbol 1156 MovieClip in Symbol 1181 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (15);
}
Instance of Symbol 1156 MovieClip in Symbol 1181 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay (15);
}
Symbol 1193 MovieClip Frame 1
stop();
Symbol 1193 MovieClip Frame 2
_root.sfx.gotoAndPlay(120);
Instance of Symbol 99 MovieClip in Symbol 1199 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.character.foot);
}
Instance of Symbol 99 MovieClip in Symbol 1199 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.character.foot);
}
Instance of Symbol 213 MovieClip in Symbol 1199 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.character.body);
}
Instance of Symbol 448 MovieClip in Symbol 1199 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.character.head);
face.gotoAndStop(_root.character.face);
}
Instance of Symbol 99 MovieClip in Symbol 1199 MovieClip Frame 19
onClipEvent (load) {
gotoAndStop(_root.character.foot);
}
Instance of Symbol 99 MovieClip in Symbol 1199 MovieClip Frame 38
onClipEvent (load) {
gotoAndStop(_root.character.foot);
}
Instance of Symbol 99 MovieClip in Symbol 1199 MovieClip Frame 59
onClipEvent (load) {
gotoAndStop(_root.character.foot);
}
Symbol 1217 Button
on (release) {
if (txt.length < this["t" + tx].length) {
txt = this["t" + tx];
} else {
tx++;
tNu = 0;
txt = "";
}
}
Symbol 1251 MovieClip Frame 1
stop();
Symbol 1265 MovieClip Frame 13
stop();
Symbol 1265 MovieClip Frame 26
_parent.removeMovieClip("");
Symbol 1298 MovieClip Frame 9
_parent.removeMovieClip("");
Instance of Symbol 1298 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
_rotation = (_rotation + random(180));
}
Instance of Symbol 1298 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
_rotation = (_rotation + random(180));
}
Instance of Symbol 1298 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
_rotation = (_rotation + random(180));
}
Symbol 1305 MovieClip Frame 1
stop();
Instance of Symbol 297 MovieClip "face" in Symbol 1305 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent._parent.face);
}
Instance of Symbol 302 MovieClip "gore" in Symbol 1305 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent._parent.health < 1) {
gotoAndStop(_parent._parent._parent.gore);
}
}
Instance of Symbol 99 MovieClip in Symbol 1306 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (13);
}
Instance of Symbol 99 MovieClip in Symbol 1306 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (13);
}
Instance of Symbol 213 MovieClip in Symbol 1306 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (6);
}
Instance of Symbol 448 MovieClip in Symbol 1306 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (44);
face.gotoAndStop(1);
}
Instance of Symbol 99 MovieClip in Symbol 1306 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.character.foot);
}
Instance of Symbol 99 MovieClip in Symbol 1306 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.character.foot);
}
Instance of Symbol 213 MovieClip in Symbol 1306 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.character.body);
}
Instance of Symbol 448 MovieClip in Symbol 1306 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.character.head);
face.gotoAndStop(_root.character.face);
}
Instance of Symbol 1251 MovieClip in Symbol 1306 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 99 MovieClip in Symbol 1306 MovieClip Frame 18
onClipEvent (load) {
gotoAndStop(_root.character.foot);
}
Instance of Symbol 99 MovieClip in Symbol 1306 MovieClip Frame 41
onClipEvent (load) {
gotoAndStop(_root.character.foot);
}
Instance of Symbol 99 MovieClip in Symbol 1306 MovieClip Frame 63
onClipEvent (load) {
gotoAndStop(_root.character.foot);
}
Symbol 1306 MovieClip Frame 82
_root.sfx.gotoAndPlay(136);
Instance of Symbol 452 MovieClip in Symbol 1306 MovieClip Frame 83
onClipEvent (load) {
stop();
}
Symbol 1306 MovieClip Frame 125
if (_parent.textBox.tx < 4) {
gotoAndPlay (19);
}
Instance of Symbol 213 MovieClip in Symbol 1306 MovieClip Frame 125
onClipEvent (load) {
gotoAndStop(_root.character.body);
}
Instance of Symbol 213 MovieClip in Symbol 1306 MovieClip Frame 140
onClipEvent (load) {
gotoAndStop(_root.character.body);
}
Symbol 1306 MovieClip Frame 199
_root.sfx.gotoAndPlay(136);
Instance of Symbol 452 MovieClip in Symbol 1306 MovieClip Frame 200
onClipEvent (load) {
stop();
}
Instance of Symbol 99 MovieClip in Symbol 1306 MovieClip Frame 267
onClipEvent (load) {
gotoAndStop(_root.character.foot);
}
Instance of Symbol 99 MovieClip in Symbol 1306 MovieClip Frame 273
onClipEvent (load) {
gotoAndStop(_root.character.foot);
}
Symbol 1306 MovieClip Frame 280
_root.sfx.gotoAndPlay(40);
Symbol 1306 MovieClip Frame 292
_root.sfx.gotoAndPlay(42);
Instance of Symbol 452 MovieClip in Symbol 1306 MovieClip Frame 292
onClipEvent (load) {
stop();
}
Symbol 1306 MovieClip Frame 320
_root.sfx.gotoAndPlay(38);
Instance of Symbol 1193 MovieClip in Symbol 1306 MovieClip Frame 328
onClipEvent (load) {
ySpot = _y;
gravity = 4;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= 42.5) {
_y = 42.5;
if (_currentframe < 10) {
play();
}
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
}
Instance of Symbol 1193 MovieClip in Symbol 1306 MovieClip Frame 328
onClipEvent (load) {
ySpot = _y;
gravity = 4;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= 42.5) {
_y = 42.5;
if (_currentframe < 10) {
play();
}
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
}
Instance of Symbol 1193 MovieClip in Symbol 1306 MovieClip Frame 328
onClipEvent (load) {
ySpot = _y;
gravity = 4;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= 42.5) {
_y = 42.5;
if (_currentframe < 10) {
play();
}
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
}
Instance of Symbol 1193 MovieClip in Symbol 1306 MovieClip Frame 328
onClipEvent (load) {
ySpot = _y;
gravity = 4;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= 42.5) {
_y = 42.5;
if (_currentframe < 10) {
play();
}
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
}
Instance of Symbol 1193 MovieClip in Symbol 1306 MovieClip Frame 328
onClipEvent (load) {
ySpot = _y;
gravity = 4;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= 42.5) {
_y = 42.5;
if (_currentframe < 10) {
play();
}
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
}
Symbol 1306 MovieClip Frame 329
_root.sfx.gotoAndPlay(136);
Symbol 1306 MovieClip Frame 333
_root.sfx.gotoAndPlay(136);
Instance of Symbol 452 MovieClip in Symbol 1306 MovieClip Frame 333
onClipEvent (load) {
stop();
}
Instance of Symbol 1193 MovieClip in Symbol 1306 MovieClip Frame 334
onClipEvent (load) {
ySpot = _y;
gravity = 4;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= 42.5) {
_y = 42.5;
if (_currentframe < 10) {
play();
}
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
}
Instance of Symbol 1193 MovieClip in Symbol 1306 MovieClip Frame 334
onClipEvent (load) {
ySpot = _y;
gravity = 4;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= 42.5) {
_y = 42.5;
if (_currentframe < 10) {
play();
}
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
}
Instance of Symbol 1193 MovieClip in Symbol 1306 MovieClip Frame 334
onClipEvent (load) {
ySpot = _y;
gravity = 4;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= 42.5) {
_y = 42.5;
if (_currentframe < 10) {
play();
}
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
}
Instance of Symbol 1193 MovieClip in Symbol 1306 MovieClip Frame 334
onClipEvent (load) {
ySpot = _y;
gravity = 4;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= 42.5) {
_y = 42.5;
if (_currentframe < 10) {
play();
}
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
}
Instance of Symbol 1193 MovieClip in Symbol 1306 MovieClip Frame 334
onClipEvent (load) {
ySpot = _y;
gravity = 4;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= 42.5) {
_y = 42.5;
if (_currentframe < 10) {
play();
}
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
}
Instance of Symbol 1193 MovieClip in Symbol 1306 MovieClip Frame 334
onClipEvent (load) {
ySpot = _y;
gravity = 4;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= 42.5) {
_y = 42.5;
if (_currentframe < 10) {
play();
}
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
}
Instance of Symbol 1193 MovieClip in Symbol 1306 MovieClip Frame 334
onClipEvent (load) {
ySpot = _y;
gravity = 4;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= 42.5) {
_y = 42.5;
if (_currentframe < 10) {
play();
}
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
}
Instance of Symbol 1193 MovieClip in Symbol 1306 MovieClip Frame 334
onClipEvent (load) {
ySpot = _y;
gravity = 4;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= 42.5) {
_y = 42.5;
if (_currentframe < 10) {
play();
}
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
}
Instance of Symbol 1193 MovieClip in Symbol 1306 MovieClip Frame 334
onClipEvent (load) {
ySpot = _y;
gravity = 4;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= 42.5) {
_y = 42.5;
if (_currentframe < 10) {
play();
}
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
}
Instance of Symbol 1193 MovieClip in Symbol 1306 MovieClip Frame 334
onClipEvent (load) {
ySpot = _y;
gravity = 4;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= 42.5) {
_y = 42.5;
if (_currentframe < 10) {
play();
}
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
}
Instance of Symbol 1198 MovieClip in Symbol 1306 MovieClip Frame 371
onClipEvent (load) {
stop();
}
Instance of Symbol 99 MovieClip in Symbol 1306 MovieClip Frame 382
onClipEvent (load) {
gotoAndStop(_root.character.foot);
}
Instance of Symbol 99 MovieClip in Symbol 1306 MovieClip Frame 388
onClipEvent (load) {
gotoAndStop(_root.character.foot);
}
Instance of Symbol 1278 MovieClip in Symbol 1306 MovieClip Frame 388
onClipEvent (load) {
gotoAndStop (2);
}
Symbol 1306 MovieClip Frame 393
_root.sfx.gotoAndPlay(2);
Instance of Symbol 1289 MovieClip "fire" in Symbol 1306 MovieClip Frame 393
onClipEvent (load) {
gotoAndStop(random(_totalframes));
}
Instance of Symbol 1251 MovieClip in Symbol 1306 MovieClip Frame 393
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 1299 MovieClip in Symbol 1306 MovieClip Frame 393
onClipEvent (enterFrame) {
_alpha = (_alpha - 30);
_xscale = (_xscale + 30);
_yscale = (_yscale + 30);
}
Instance of Symbol 1298 MovieClip in Symbol 1306 MovieClip Frame 393
onClipEvent (load) {
_rotation = (_rotation + random(180));
}
Instance of Symbol 1298 MovieClip in Symbol 1306 MovieClip Frame 393
onClipEvent (load) {
_rotation = (_rotation + random(180));
}
Instance of Symbol 1298 MovieClip in Symbol 1306 MovieClip Frame 393
onClipEvent (load) {
_rotation = (_rotation + random(180));
}
Instance of Symbol 1298 MovieClip in Symbol 1306 MovieClip Frame 393
onClipEvent (load) {
_rotation = (_rotation + random(180));
}
Symbol 1306 MovieClip Frame 401
_root.sfx.gotoAndPlay(2);
Instance of Symbol 1299 MovieClip in Symbol 1306 MovieClip Frame 401
onClipEvent (enterFrame) {
_alpha = (_alpha - 30);
_xscale = (_xscale + 30);
_yscale = (_yscale + 30);
}
Instance of Symbol 1298 MovieClip in Symbol 1306 MovieClip Frame 401
onClipEvent (load) {
_rotation = (_rotation + random(180));
}
Instance of Symbol 1298 MovieClip in Symbol 1306 MovieClip Frame 401
onClipEvent (load) {
_rotation = (_rotation + random(180));
}
Instance of Symbol 1298 MovieClip in Symbol 1306 MovieClip Frame 401
onClipEvent (load) {
_rotation = (_rotation + random(180));
}
Instance of Symbol 1298 MovieClip in Symbol 1306 MovieClip Frame 401
onClipEvent (load) {
_rotation = (_rotation + random(180));
}
Instance of Symbol 1289 MovieClip "fire" in Symbol 1306 MovieClip Frame 401
onClipEvent (load) {
gotoAndStop(random(_totalframes));
}
Instance of Symbol 1251 MovieClip in Symbol 1306 MovieClip Frame 401
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 718 MovieClip in Symbol 1306 MovieClip Frame 417
onClipEvent (load) {
gotoAndStop (2);
}
Symbol 1306 MovieClip Frame 424
_root.sfx.gotoAndPlay(((random(3) + 1) * 2) + 44);
Symbol 1306 MovieClip Frame 435
_root.sfx.gotoAndPlay(((random(3) + 1) * 2) + 44);
Symbol 1306 MovieClip Frame 437
_root.sfx.gotoAndPlay(((random(3) + 1) * 2) + 44);
Symbol 1306 MovieClip Frame 439
_root.sfx.gotoAndPlay(((random(3) + 1) * 2) + 44);
Instance of Symbol 1305 MovieClip in Symbol 1306 MovieClip Frame 456
onClipEvent (load) {
gotoAndStop(_root.character.head);
face.gotoAndStop(_root.character.face);
}
Instance of Symbol 99 MovieClip in Symbol 1306 MovieClip Frame 458
onClipEvent (load) {
gotoAndStop(_root.character.foot);
}
Instance of Symbol 448 MovieClip in Symbol 1306 MovieClip Frame 458
onClipEvent (load) {
gotoAndStop(_root.character.head);
face.gotoAndStop(_root.character.face);
}
Symbol 1306 MovieClip Frame 466
_root.sfx.gotoAndPlay(136);
Symbol 1306 MovieClip Frame 469
_root.sfx.gotoAndPlay(136);
Instance of Symbol 99 MovieClip in Symbol 1306 MovieClip Frame 470
onClipEvent (load) {
gotoAndStop(_root.character.foot);
}
Symbol 1306 MovieClip Frame 474
_root.sfx.gotoAndPlay(136);
Symbol 1306 MovieClip Frame 482
_root.sfx.gotoAndPlay(136);
Symbol 1306 MovieClip Frame 487
_root.sfx.gotoAndPlay(136);
Symbol 1306 MovieClip Frame 488
_parent.gotoAndPlay(541);
Instance of Symbol 706 MovieClip in Symbol 1308 MovieClip Frame 1
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Symbol 1310 MovieClip Frame 1
_name = "body";
Symbol 1312 MovieClip Frame 1
_name = "head";
Symbol 1319 MovieClip Frame 1
stop();
Instance of Symbol 1318 MovieClip in Symbol 1319 MovieClip Frame 1
onClipEvent (load) {
speed = random(10) + 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + speed);
_xscale = (random(50) + 50);
_yscale = _xscale;
_alpha = (random(50) + 50);
}
Instance of Symbol 1318 MovieClip in Symbol 1319 MovieClip Frame 1
onClipEvent (load) {
speed = random(10) + 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + speed);
_xscale = (random(50) + 50);
_yscale = _xscale;
_alpha = (random(50) + 50);
}
Instance of Symbol 1318 MovieClip in Symbol 1319 MovieClip Frame 1
onClipEvent (load) {
speed = random(10) + 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + speed);
_xscale = (random(50) + 50);
_yscale = _xscale;
_alpha = (random(50) + 50);
}
Instance of Symbol 1318 MovieClip in Symbol 1319 MovieClip Frame 1
onClipEvent (load) {
speed = random(10) + 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + speed);
_xscale = (random(50) + 50);
_yscale = _xscale;
_alpha = (random(50) + 50);
}
Instance of Symbol 1318 MovieClip in Symbol 1319 MovieClip Frame 2
onClipEvent (load) {
speed = random(10) + 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + speed);
_xscale = (random(50) + 50);
_yscale = _xscale;
_alpha = (random(50) + 50);
}
Instance of Symbol 1318 MovieClip in Symbol 1319 MovieClip Frame 2
onClipEvent (load) {
speed = random(10) + 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + speed);
_xscale = (random(50) + 50);
_yscale = _xscale;
_alpha = (random(50) + 50);
}
Instance of Symbol 1318 MovieClip in Symbol 1319 MovieClip Frame 2
onClipEvent (load) {
speed = random(10) + 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + speed);
_xscale = (random(50) + 50);
_yscale = _xscale;
_alpha = (random(50) + 50);
}
Instance of Symbol 1318 MovieClip in Symbol 1319 MovieClip Frame 2
onClipEvent (load) {
speed = random(10) + 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + speed);
_xscale = (random(50) + 50);
_yscale = _xscale;
_alpha = (random(50) + 50);
}
Instance of Symbol 1318 MovieClip in Symbol 1319 MovieClip Frame 2
onClipEvent (load) {
speed = random(10) + 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + speed);
_xscale = (random(50) + 50);
_yscale = _xscale;
_alpha = (random(50) + 50);
}
Instance of Symbol 1318 MovieClip in Symbol 1319 MovieClip Frame 2
onClipEvent (load) {
speed = random(10) + 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + speed);
_xscale = (random(50) + 50);
_yscale = _xscale;
_alpha = (random(50) + 50);
}
Instance of Symbol 1318 MovieClip in Symbol 1319 MovieClip Frame 2
onClipEvent (load) {
speed = random(10) + 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + speed);
_xscale = (random(50) + 50);
_yscale = _xscale;
_alpha = (random(50) + 50);
}
Instance of Symbol 1319 MovieClip in Symbol 1320 MovieClip Frame 1
onClipEvent (load) {
_xscale = 50;
_yscale = 50;
x = 0;
y = 0;
speed = 1;
i = 0;
}
onClipEvent (enterFrame) {
if (_xscale < 120) {
_xscale = (_xscale + 1);
_yscale = (_yscale + 1);
speed = speed + 0.5;
}
}
Symbol 1327 MovieClip Frame 6
stop();
Instance of Symbol 99 MovieClip in Symbol 1330 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.character.foot);
}
Instance of Symbol 99 MovieClip in Symbol 1330 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.character.foot);
}
Instance of Symbol 213 MovieClip in Symbol 1330 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.character.body);
}
Instance of Symbol 757 MovieClip in Symbol 1330 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 1278 MovieClip in Symbol 1330 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 448 MovieClip in Symbol 1330 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.character.head);
face.gotoAndStop(_root.character.face);
}
Instance of Symbol 1329 MovieClip in Symbol 1330 MovieClip Frame 5
onClipEvent (load) {
gotoAndStop(_root.foot);
}
Instance of Symbol 99 MovieClip in Symbol 1330 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop(_root.character.foot);
}
Symbol 1330 MovieClip Frame 71
gotoAndPlay (15);
Instance of Symbol 99 MovieClip in Symbol 1331 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.character.foot);
}
Instance of Symbol 99 MovieClip in Symbol 1331 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.character.foot);
}
Instance of Symbol 213 MovieClip in Symbol 1331 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.character.body);
}
Instance of Symbol 757 MovieClip in Symbol 1331 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 1278 MovieClip in Symbol 1331 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 448 MovieClip in Symbol 1331 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.character.head);
face.gotoAndStop(_root.character.face);
}
Symbol 1331 MovieClip Frame 17
_root.sfx.gotoAndPlay(2);
Instance of Symbol 1289 MovieClip "fire" in Symbol 1331 MovieClip Frame 17
onClipEvent (load) {
gotoAndStop(random(_totalframes));
}
Symbol 1331 MovieClip Frame 22
_root.sfx.gotoAndPlay(2);
Instance of Symbol 1289 MovieClip "fire" in Symbol 1331 MovieClip Frame 22
onClipEvent (load) {
gotoAndStop(random(_totalframes));
}
Symbol 1331 MovieClip Frame 29
_root.sfx.gotoAndPlay(2);
Instance of Symbol 1289 MovieClip "fire" in Symbol 1331 MovieClip Frame 29
onClipEvent (load) {
gotoAndStop(random(_totalframes));
}
Symbol 1365 MovieClip Frame 1
stop();
Symbol 1389 MovieClip Frame 1
stop();
Instance of Symbol 99 MovieClip in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 99 MovieClip in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 213 MovieClip in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (52);
}
Instance of Symbol 448 MovieClip in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (63);
}
Instance of Symbol 99 MovieClip in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 99 MovieClip in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 213 MovieClip in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (52);
}
Instance of Symbol 448 MovieClip in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (63);
}
Instance of Symbol 99 MovieClip in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 99 MovieClip in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 213 MovieClip in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (52);
}
Instance of Symbol 448 MovieClip in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (63);
}
Instance of Symbol 99 MovieClip in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 99 MovieClip in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 213 MovieClip in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (52);
}
Instance of Symbol 448 MovieClip in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (63);
}
Instance of Symbol 99 MovieClip in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 99 MovieClip in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 213 MovieClip in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (52);
}
Instance of Symbol 448 MovieClip in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (63);
}
Instance of Symbol 99 MovieClip in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 99 MovieClip in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 213 MovieClip in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (52);
}
Instance of Symbol 448 MovieClip in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (63);
}
Instance of Symbol 99 MovieClip in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.character.foot);
}
Instance of Symbol 99 MovieClip in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.character.foot);
}
Instance of Symbol 213 MovieClip in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.character.body);
}
Instance of Symbol 757 MovieClip in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 448 MovieClip in Symbol 1400 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.character.head);
face.gotoAndStop(_root.character.face);
}
Instance of Symbol 99 MovieClip in Symbol 1403 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.character.foot);
}
Instance of Symbol 99 MovieClip in Symbol 1403 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.character.foot);
}
Instance of Symbol 213 MovieClip in Symbol 1403 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.character.body);
}
Instance of Symbol 448 MovieClip in Symbol 1403 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.character.head);
face.gotoAndStop(_root.character.face);
}
Instance of Symbol 448 MovieClip in Symbol 1403 MovieClip Frame 30
onClipEvent (load) {
gotoAndStop(_root.character.head);
face.gotoAndStop(_root.character.face);
}
Symbol 1403 MovieClip Frame 65
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Symbol 1403 MovieClip Frame 72
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Symbol 1403 MovieClip Frame 83
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Symbol 1403 MovieClip Frame 93
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Symbol 1403 MovieClip Frame 104
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Symbol 1403 MovieClip Frame 114
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Symbol 1403 MovieClip Frame 125
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Symbol 1403 MovieClip Frame 135
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Symbol 1403 MovieClip Frame 146
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Symbol 1403 MovieClip Frame 175
_root.sfx.gotoAndPlay(36);
Symbol 1403 MovieClip Frame 208
stop();
Instance of Symbol 99 MovieClip in Symbol 1404 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.character.foot);
}
Instance of Symbol 99 MovieClip in Symbol 1404 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.character.foot);
}
Instance of Symbol 213 MovieClip in Symbol 1404 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.character.body);
}
Instance of Symbol 448 MovieClip in Symbol 1404 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.character.head);
face.gotoAndStop(_root.character.face);
}
Instance of Symbol 946 MovieClip in Symbol 1410 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.pause == false) {
_xscale = (_xscale + 5);
_yscale = _xscale;
_alpha = (_alpha - 5);
}
}
Instance of Symbol 946 MovieClip in Symbol 1410 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.pause == false) {
_xscale = (_xscale + 5);
_yscale = _xscale;
_alpha = (_alpha - 5);
}
}
Instance of Symbol 946 MovieClip in Symbol 1410 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.pause == false) {
_xscale = (_xscale + 5);
_yscale = _xscale;
_alpha = (_alpha - 5);
}
}
Instance of Symbol 946 MovieClip in Symbol 1410 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.pause == false) {
_xscale = (_xscale + 5);
_yscale = _xscale;
_alpha = (_alpha - 5);
}
}
Instance of Symbol 1409 MovieClip in Symbol 1410 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.pause == false) {
_xscale = (_xscale + 15);
_yscale = _xscale;
_alpha = (_alpha - 10);
}
}
Symbol 1410 MovieClip Frame 20
removeMovieClip("");
Symbol 1411 MovieClip Frame 1
Instance of Symbol 1193 MovieClip in Symbol 1411 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(random(80) + 10);
ySpot = _y;
gravity = 0;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= 134) {
_y = 134;
play();
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_currentframe == 90) {
gotoAndStop (1);
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
_y = ySpot;
}
}
Instance of Symbol 1193 MovieClip "drop" in Symbol 1411 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(random(80) + 10);
ySpot = _y;
gravity = 0;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= 134) {
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
_y = ySpot;
_y = 134;
play();
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
}
Instance of Symbol 1193 MovieClip in Symbol 1411 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(random(80) + 10);
ySpot = _y;
gravity = 0;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= 134) {
_y = 134;
play();
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_currentframe == 90) {
gotoAndStop (1);
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
_y = ySpot;
}
}
Instance of Symbol 1193 MovieClip in Symbol 1411 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(random(80) + 10);
ySpot = _y;
gravity = 0;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= 134) {
_y = 134;
play();
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_currentframe == 90) {
gotoAndStop (1);
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
_y = ySpot;
}
}
Instance of Symbol 1193 MovieClip in Symbol 1411 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(random(80) + 10);
ySpot = _y;
gravity = 0;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= 134) {
_y = 134;
play();
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_currentframe == 90) {
gotoAndStop (1);
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
_y = ySpot;
}
}
Instance of Symbol 1218 MovieClip "textBox" in Symbol 1411 MovieClip Frame 272
onClipEvent (load) {
t0 = "It's been hours...As if the Hades Prototype wasn't enough trouble, now I'm stuck in this mess.";
t1 = "Why did I have to be created?";
t2 = "Is all of this suffering really just for the sake of a more potent weapon?";
t3 = "How come it had to be me that was created for this?";
tx = 0;
tNu = 0;
txt = "";
}
onClipEvent (enterFrame) {
if (txt.length < this["t" + tx].length) {
txt = txt + this["t" + tx].charAt(tNu);
_root.sfx.gotoAndPlay(134);
tNu++;
}
if (tx > 3) {
_parent.gotoAndPlay(393);
}
}
Symbol 1411 MovieClip Frame 391
gotoAndPlay (273);
Symbol 1411 MovieClip Frame 392
stop();
Instance of Symbol 1218 MovieClip "textBox" in Symbol 1411 MovieClip Frame 415
onClipEvent (load) {
t0 = "It's only been a couple days since it all began; trapped in my cell, waiting to be evaluated for my abilities.";
t1 = "Muscle enhancers...behavioral suppressants...mind control...genetic purification.";
t2 = "...Test for effectiveness. Repeat until it works.";
t3 = "I was designed to kill and that's what I did.";
tx = 0;
tNu = 0;
txt = "";
}
onClipEvent (enterFrame) {
if (txt.length < this["t" + tx].length) {
txt = txt + this["t" + tx].charAt(tNu);
_root.sfx.gotoAndPlay(134);
tNu++;
}
if (tx > 3) {
if (_alpha > 0) {
_alpha = (_alpha - 20);
} else {
_parent.play();
}
}
}
Symbol 1411 MovieClip Frame 540
gotoAndPlay (415);
Instance of Symbol 1308 MovieClip in Symbol 1411 MovieClip Frame 557
onClipEvent (load) {
head = _root.character.head;
body = _root.character.body;
face = _root.character.face;
foot = _root.character.foot;
}
Instance of Symbol 957 MovieClip in Symbol 1411 MovieClip Frame 557
onClipEvent (load) {
gotoAndStop (16);
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
}
Instance of Symbol 706 MovieClip in Symbol 1411 MovieClip Frame 605
onClipEvent (load) {
head = _root.character.head;
body = _root.character.body;
face = _root.character.face;
foot = _root.character.foot;
}
Symbol 1411 MovieClip Frame 646
_root.sfx.gotoAndPlay(130);
Symbol 1411 MovieClip Frame 678
_root.sfx.gotoAndPlay(26);
Symbol 1411 MovieClip Frame 694
stop();
Instance of Symbol 1218 MovieClip "textBox" in Symbol 1411 MovieClip Frame 694
onClipEvent (load) {
t0 = "It seemed that Systems Corp. hadn't anticipated that it would all work so well.";
t1 = "Poseidon was nothing but a bump in the road.";
tx = 0;
tNu = 0;
txt = "";
}
onClipEvent (enterFrame) {
if (txt.length < this["t" + tx].length) {
txt = txt + this["t" + tx].charAt(tNu);
_root.sfx.gotoAndPlay(134);
tNu++;
}
if (tx > 1) {
if (_alpha > 0) {
_alpha = (_alpha - 20);
} else {
_parent.play();
}
}
}
Instance of Symbol 1203 MovieClip "point" in Symbol 1411 MovieClip Frame 694
onClipEvent (load) {
xSt = _x;
ySt = _y;
ptX = random(30) + xSt;
ptY = random(5) + ySt;
}
onClipEvent (enterFrame) {
_x = (_x - ((_x - ptX) / 20));
_y = (_y - ((_y - ptY) / 20));
if (Math.abs((_x - ptX) / 20) < 0.1) {
ptX = random(30) + xSt;
}
if (Math.abs((_y - ptY) / 20) < 0.1) {
ptY = random(20) + ySt;
}
}
Instance of Symbol 1203 MovieClip "point" in Symbol 1411 MovieClip Frame 747
onClipEvent (load) {
xSt = _x;
ySt = _y;
ptX = random(30) + xSt;
ptY = random(5) + ySt;
}
onClipEvent (enterFrame) {
_x = (_x - ((_x - ptX) / 20));
_y = (_y - ((_y - ptY) / 20));
if (Math.abs((_x - ptX) / 20) < 0.1) {
ptX = random(30) + xSt;
}
if (Math.abs((_y - ptY) / 20) < 0.1) {
ptY = random(20) + ySt;
}
}
Instance of Symbol 1355 MovieClip in Symbol 1411 MovieClip Frame 772
onClipEvent (enterFrame) {
if (_x > -1370) {
_x = (_x - 0.9);
}
}
Instance of Symbol 1308 MovieClip in Symbol 1411 MovieClip Frame 772
onClipEvent (load) {
head = _root.character.head;
body = _root.character.body;
face = _root.character.face;
foot = _root.character.foot;
}
Instance of Symbol 957 MovieClip in Symbol 1411 MovieClip Frame 772
onClipEvent (load) {
gotoAndStop (16);
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
}
Instance of Symbol 1203 MovieClip "point" in Symbol 1411 MovieClip Frame 773
onClipEvent (load) {
xSt = _x;
ySt = _y;
ptX = random(30) + xSt;
ptY = random(5) + ySt;
}
onClipEvent (enterFrame) {
_x = (_x - ((_x - ptX) / 20));
_y = (_y - ((_y - ptY) / 20));
if (Math.abs((_x - ptX) / 20) < 0.1) {
ptX = random(30) + xSt;
}
if (Math.abs((_y - ptY) / 20) < 0.1) {
ptY = random(20) + ySt;
}
}
Symbol 1411 MovieClip Frame 784
stop();
Instance of Symbol 1357 MovieClip in Symbol 1411 MovieClip Frame 784
onClipEvent (enterFrame) {
_x = (_x - 3);
if (_x < -300) {
_x = 400;
}
}
Instance of Symbol 1218 MovieClip "textBox" in Symbol 1411 MovieClip Frame 784
onClipEvent (load) {
t0 = "I had finally gotten my first taste of freedom.";
t1 = "I had escaped my containment cell and seen the real world outside for the first time.";
t2 = "It was then that I knew that I had to pave my own way.";
t3 = "I couldn't be slave to some demented corporate regiment.";
tx = 0;
tNu = 0;
txt = "";
}
onClipEvent (enterFrame) {
if (txt.length < this["t" + tx].length) {
txt = txt + this["t" + tx].charAt(tNu);
_root.sfx.gotoAndPlay(134);
tNu++;
}
if (tx > 3) {
if (_alpha > 0) {
_alpha = (_alpha - 20);
} else {
_parent.play();
}
} else if (_alpha < 100) {
_alpha = (_alpha + 20);
}
}
Instance of Symbol 1365 MovieClip in Symbol 1411 MovieClip Frame 801
onClipEvent (enterFrame) {
chance = random(30) + 1;
if (chance == 1) {
play();
}
}
Instance of Symbol 1365 MovieClip in Symbol 1411 MovieClip Frame 801
onClipEvent (enterFrame) {
chance = random(30) + 1;
if (chance == 1) {
play();
}
}
Instance of Symbol 1365 MovieClip in Symbol 1411 MovieClip Frame 801
onClipEvent (enterFrame) {
chance = random(30) + 1;
if (chance == 1) {
play();
}
}
Symbol 1411 MovieClip Frame 813
stop();
Instance of Symbol 1218 MovieClip "textBox" in Symbol 1411 MovieClip Frame 813
onClipEvent (load) {
t0 = "Of course, this was the very last thing Systems Corp. had in mind for me.";
t1 = "They needed to recover their investment. They couldn't let me go, nor could they let me live.";
tx = 0;
tNu = 0;
txt = "";
}
onClipEvent (enterFrame) {
if (txt.length < this["t" + tx].length) {
txt = txt + this["t" + tx].charAt(tNu);
_root.sfx.gotoAndPlay(134);
tNu++;
}
if (tx > 1) {
if (_alpha > 0) {
_alpha = (_alpha - 20);
} else {
_parent.play();
}
} else if (_alpha < 100) {
_alpha = (_alpha + 20);
}
}
Symbol 1411 MovieClip Frame 842
stop();
Instance of Symbol 1218 MovieClip "textBox" in Symbol 1411 MovieClip Frame 842
onClipEvent (load) {
t0 = "Because of their persistance, there is no running from the fight.";
t1 = "They'll send everything they have, no matter how many people die.";
t2 = "My genes are too valuable, and their secret is too vital.";
t3 = "They've even gone so far as to send other experiments after me.";
tx = 0;
tNu = 0;
txt = "";
}
onClipEvent (enterFrame) {
if (txt.length < this["t" + tx].length) {
txt = txt + this["t" + tx].charAt(tNu);
_root.sfx.gotoAndPlay(134);
tNu++;
}
if (tx > 3) {
if (_alpha > 0) {
_alpha = (_alpha - 20);
} else {
_parent.play();
}
} else if (_alpha < 100) {
_alpha = (_alpha + 20);
}
}
Instance of Symbol 1203 MovieClip "point" in Symbol 1411 MovieClip Frame 860
onClipEvent (load) {
xSt = _x;
ySt = _y;
ptX = random(30) + xSt;
ptY = random(5) + ySt;
}
onClipEvent (enterFrame) {
_x = (_x - ((_x - ptX) / 20));
_y = (_y - ((_y - ptY) / 20));
if (Math.abs((_x - ptX) / 20) < 0.1) {
ptX = random(30) + xSt;
}
if (Math.abs((_y - ptY) / 20) < 0.1) {
ptY = random(20) + ySt;
}
}
Symbol 1411 MovieClip Frame 871
stop();
Instance of Symbol 1218 MovieClip "textBox" in Symbol 1411 MovieClip Frame 871
onClipEvent (load) {
t0 = "The only way to end this is to go to the top, and eliminate whoever is in control of all of this insanity.";
t1 = "...If I ever make it out of this containment chamber...";
tx = 0;
tNu = 0;
txt = "";
}
onClipEvent (enterFrame) {
if (txt.length < this["t" + tx].length) {
txt = txt + this["t" + tx].charAt(tNu);
_root.sfx.gotoAndPlay(134);
tNu++;
}
if (tx > 1) {
if (_alpha > 0) {
_alpha = (_alpha - 20);
} else {
_parent.play();
}
} else if (_alpha < 100) {
_alpha = (_alpha + 20);
}
}
Symbol 1411 MovieClip Frame 1080
stop();
Instance of Symbol 1218 MovieClip "textBox" in Symbol 1411 MovieClip Frame 1080
onClipEvent (load) {
t0 = "The energy core that powered the Hades Prototype...";
t1 = "They stoped using these because they were too unstable and explosive.";
t2 = "Looks like I may have a way out of here after all.";
tx = 0;
tNu = 0;
txt = "";
}
onClipEvent (enterFrame) {
if (txt.length < this["t" + tx].length) {
txt = txt + this["t" + tx].charAt(tNu);
_root.sfx.gotoAndPlay(134);
tNu++;
}
if (tx > 2) {
if (_alpha > 0) {
_alpha = (_alpha - 20);
} else {
_parent.play();
}
} else if (_alpha < 100) {
_alpha = (_alpha + 20);
}
}
Instance of Symbol 1203 MovieClip "point" in Symbol 1411 MovieClip Frame 1080
onClipEvent (load) {
xSt = _x;
ySt = _y;
ptX = random(30) + xSt;
ptY = random(5) + ySt;
}
onClipEvent (enterFrame) {
_x = (_x - ((_x - ptX) / 20));
_y = (_y - ((_y - ptY) / 20));
if (Math.abs((_x - ptX) / 20) < 0.1) {
ptX = random(30) + xSt;
}
if (Math.abs((_y - ptY) / 20) < 0.1) {
ptY = random(20) + ySt;
}
}
Instance of Symbol 99 MovieClip in Symbol 1411 MovieClip Frame 1081
onClipEvent (load) {
gotoAndStop(_root.character.foot);
}
Instance of Symbol 99 MovieClip in Symbol 1411 MovieClip Frame 1081
onClipEvent (load) {
gotoAndStop(_root.character.foot);
}
Instance of Symbol 213 MovieClip in Symbol 1411 MovieClip Frame 1081
onClipEvent (load) {
gotoAndStop(_root.character.body);
}
Instance of Symbol 448 MovieClip in Symbol 1411 MovieClip Frame 1081
onClipEvent (load) {
gotoAndStop(_root.character.head);
face.gotoAndStop(_root.character.face);
}
Symbol 1411 MovieClip Frame 1105
_root.sfx.gotoAndPlay(40);
Symbol 1411 MovieClip Frame 1175
_root.sfx.gotoAndPlay(52);
Symbol 1411 MovieClip Frame 1208
stop();
Instance of Symbol 1218 MovieClip "textBox" in Symbol 1411 MovieClip Frame 1208
onClipEvent (load) {
t0 = "I'll have my revenge on whoever created me. Nothing is going to stop me.";
tx = 0;
tNu = 0;
txt = "";
}
onClipEvent (enterFrame) {
if (txt.length < this["t" + tx].length) {
txt = txt + this["t" + tx].charAt(tNu);
_root.sfx.gotoAndPlay(134);
tNu++;
}
if (tx > 0) {
if (_alpha > 0) {
_alpha = (_alpha - 20);
} else {
_parent.play();
}
} else if (_alpha < 100) {
_alpha = (_alpha + 20);
}
}
Instance of Symbol 1203 MovieClip "point" in Symbol 1411 MovieClip Frame 1208
onClipEvent (load) {
xSt = _x;
ySt = _y;
ptX = random(30) + xSt;
ptY = random(5) + ySt;
}
onClipEvent (enterFrame) {
_x = (_x - ((_x - ptX) / 20));
_y = (_y - ((_y - ptY) / 20));
if (Math.abs((_x - ptX) / 20) < 0.1) {
ptX = random(30) + xSt;
}
if (Math.abs((_y - ptY) / 20) < 0.1) {
ptY = random(20) + ySt;
}
}
Symbol 1411 MovieClip Frame 1211
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Symbol 1411 MovieClip Frame 1222
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Symbol 1411 MovieClip Frame 1232
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Symbol 1411 MovieClip Frame 1243
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Symbol 1411 MovieClip Frame 1253
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Symbol 1411 MovieClip Frame 1264
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Symbol 1411 MovieClip Frame 1274
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Symbol 1411 MovieClip Frame 1285
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Symbol 1411 MovieClip Frame 1305
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Symbol 1411 MovieClip Frame 1311
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Symbol 1411 MovieClip Frame 1325
stopAllSounds();
_root.gotoAndStop(10);
Symbol 1415 MovieClip Frame 1
stop();
Symbol 1415 MovieClip Frame 26
stop();
Symbol 1424 MovieClip Frame 1
stop();
Symbol 1424 MovieClip Frame 2
_root.sfx.gotoAndPlay(102);
Symbol 1424 MovieClip Frame 26
stop();
Instance of Symbol 1425 MovieClip "t2" in Symbol 1428 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_parent.d1._currentframe != 1) {
time++;
}
if (_root.character.targets.length < 3) {
if (time > 90) {
if (enemiesSp == 10) {
_parent.d2.play();
_root.bound.d2.play();
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "Exit Open";
}
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
_root.sfx.gotoAndPlay(80);
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Instance of Symbol 1425 MovieClip "t1" in Symbol 1428 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
time++;
if ((_root.character.targets.length < 3) && (enemiesSp < 4)) {
if (time > 90) {
if (enemiesSp == 3) {
_parent.d1.play();
_root.bound.d1.play();
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "New Area Open";
}
_root.sfx.gotoAndPlay(80);
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Instance of Symbol 1427 MovieClip "t4" in Symbol 1428 MovieClip Frame 1
onClipEvent (load) {
time = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.character)) {
_root.gameFun.saveGame();
_root.gotoAndStop(12);
}
if (_parent.d2._currentframe != 1) {
time++;
}
if (_root.character.targets.length < 3) {
if (time > 60) {
_root.arm.i++;
i = _root.arm.i;
_root.sfx.gotoAndPlay(80);
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Symbol 1484 MovieClip Frame 1
stop();
Instance of Symbol 448 MovieClip "head" in Symbol 1484 MovieClip Frame 6
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Symbol 1501 MovieClip Frame 1
stop();
Symbol 1507 MovieClip Frame 1
stop();
Instance of Symbol 1289 MovieClip "fla" in Symbol 1547 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(random(10) + 1);
}
Symbol 1562 MovieClip Frame 1
stop();
Instance of Symbol 721 MovieClip "barrel" in Symbol 1562 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 1562 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 1568 MovieClip Frame 1
stop();
Instance of Symbol 1565 MovieClip "hand1" in Symbol 1568 MovieClip Frame 1
onClipEvent (load) {
if (_parent._parent._yscale == 100) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_parent._parent._yscale == 100) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 721 MovieClip "barrel" in Symbol 1568 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "eject" in Symbol 1568 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 949 MovieClip in Symbol 1568 MovieClip Frame 2
onClipEvent (load) {
stop();
}
Symbol 1569 MovieClip Frame 1
stop();
Instance of Symbol 1568 MovieClip "wpn" in Symbol 1569 MovieClip Frame 34
onClipEvent (load) {
xStart = _x;
yStart = _y;
rotStart = _rotation;
}
onClipEvent (enterFrame) {
bar = new Object();
bar.x = barrel._x;
bar.y = barrel._y;
localToGlobal(bar);
_root.bulletX = bar.x;
_root.bulletY = bar.y;
}
Symbol 1570 MovieClip Frame 13
removeMovieClip("");
Symbol 1577 MovieClip Frame 6
stop();
Instance of Symbol 1289 MovieClip "fla" in Symbol 1579 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(random(10) + 1);
}
Symbol 1604 MovieClip Frame 1
stop();
Instance of Symbol 1372 MovieClip "head" in Symbol 1605 MovieClip Frame 1
onClipEvent (load) {
_yscale = (_yscale * -1);
_xscale = (_xscale * -1);
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == -100) {
_rotation = (-_parent._parent.headRot);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = (_parent._parent.headRot + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
onClipEvent (enterFrame) {
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == -100) {
_rotation = (-_parent._parent.headRot);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = (_parent._parent.headRot + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
Instance of Symbol 1372 MovieClip in Symbol 1606 MovieClip Frame 1
onClipEvent (load) {
_yscale = (_yscale * -1);
_xscale = (_xscale * -1);
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == -100) {
_rotation = (-_parent._parent.headRot);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = (_parent._parent.headRot + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
onClipEvent (enterFrame) {
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == -100) {
_rotation = (-_parent._parent.headRot);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = (_parent._parent.headRot + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
Symbol 1607 MovieClip Frame 10
_parent.hurt = false;
_parent.gotoAndStop(1);
Symbol 1608 MovieClip Frame 10
_parent.hurt = false;
_parent.gotoAndStop(1);
Symbol 1624 MovieClip Frame 1
stop();
Symbol 1631 MovieClip Frame 1
_root.sfx.gotoAndPlay(108);
Instance of Symbol 1624 MovieClip in Symbol 1631 MovieClip Frame 1
onClipEvent (enterFrame) {
chance = random(40) + 1;
if (chance == 1) {
play();
}
}
Symbol 1631 MovieClip Frame 8
if (hitTest(_root.character)) {
_root.character.health = _root.character.health - 4;
_root.character.gotoandstop(9);
}
Symbol 1631 MovieClip Frame 10
gotoAndPlay (1);
Symbol 1641 MovieClip Frame 1
_root.sfx.gotoAndPlay(108);
Instance of Symbol 1624 MovieClip in Symbol 1641 MovieClip Frame 1
onClipEvent (enterFrame) {
chance = random(40) + 1;
if (chance == 1) {
play();
}
}
Symbol 1641 MovieClip Frame 6
_root.sfx.gotoAndPlay(108);
Symbol 1641 MovieClip Frame 10
gotoAndPlay (6);
Instance of Symbol 1624 MovieClip in Symbol 1644 MovieClip Frame 1
onClipEvent (enterFrame) {
chance = random(40) + 1;
if (chance == 1) {
play();
}
}
Symbol 1644 MovieClip Frame 12
gotoAndPlay (8);
Instance of Symbol 1631 MovieClip "bean" in Symbol 1645 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 1641 MovieClip "bean" in Symbol 1645 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 1644 MovieClip "bean" in Symbol 1645 MovieClip Frame 3
onClipEvent (load) {
rot = random(20) + 1;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
_rotation = (_rotation + rot);
play();
} else {
stop();
}
}
Symbol 1653 MovieClip Frame 1
stop();
Symbol 1657 MovieClip Frame 1
stop();
Instance of Symbol 1647 MovieClip in Symbol 1658 MovieClip Frame 15
onClipEvent (enterFrame) {
if (hitTest(_root.character) && (_root.pause == false)) {
_root.character.health = _root.character.health - 10;
_root.sfx.gotoAndPlay(42);
}
}
Symbol 1660 MovieClip Frame 52
gotoAndPlay (22);
Symbol 1661 MovieClip Frame 21
_parent.land = false;
Symbol 1662 MovieClip Frame 17
_parent.headHit = false;
Symbol 1663 MovieClip Frame 15
_parent.bodyHit = false;
Symbol 1701 MovieClip Frame 11
_parent.removemovieclip("");
stop();
Symbol 1701 MovieClip Frame 26
_parent.removemovieclip("");
stop();
Symbol 1701 MovieClip Frame 41
_parent.removemovieclip("");
stop();
Symbol 1701 MovieClip Frame 52
_parent.removemovieclip("");
stop();
Symbol 1701 MovieClip Frame 67
_parent.removemovieclip("");
stop();
Symbol 1701 MovieClip Frame 82
_parent.removemovieclip("");
stop();
Instance of Symbol 1701 MovieClip in Symbol 1702 MovieClip Frame 4
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Instance of Symbol 1701 MovieClip in Symbol 1702 MovieClip Frame 4
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Instance of Symbol 1701 MovieClip in Symbol 1702 MovieClip Frame 4
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Instance of Symbol 1701 MovieClip in Symbol 1702 MovieClip Frame 4
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Instance of Symbol 1701 MovieClip in Symbol 1702 MovieClip Frame 4
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Symbol 1702 MovieClip Frame 27
_parent.swapDepths(105);
_parent.removemovieclip("");
Instance of Symbol 1701 MovieClip in Symbol 1702 MovieClip Frame 31
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Instance of Symbol 1701 MovieClip in Symbol 1702 MovieClip Frame 31
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Instance of Symbol 1701 MovieClip in Symbol 1702 MovieClip Frame 31
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Instance of Symbol 1701 MovieClip in Symbol 1702 MovieClip Frame 31
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Instance of Symbol 1701 MovieClip in Symbol 1702 MovieClip Frame 31
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Symbol 1702 MovieClip Frame 54
_parent.swapDepths(105);
_parent.removemovieclip("");
Symbol 1706 MovieClip Frame 1
stop();
Symbol 1710 MovieClip Frame 1
stop();
Instance of Symbol 1647 MovieClip in Symbol 1711 MovieClip Frame 15
onClipEvent (enterFrame) {
if (hitTest(_root.character) && (_root.pause == false)) {
_root.character.health = _root.character.health - 10;
_root.sfx.gotoAndPlay(42);
}
}
Symbol 1713 MovieClip Frame 52
gotoAndPlay (22);
Symbol 1714 MovieClip Frame 21
_parent.land = false;
Symbol 1715 MovieClip Frame 17
_parent.headHit = false;
Symbol 1716 MovieClip Frame 15
_parent.bodyHit = false;
Instance of Symbol 1701 MovieClip in Symbol 1717 MovieClip Frame 4
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Instance of Symbol 1701 MovieClip in Symbol 1717 MovieClip Frame 4
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Instance of Symbol 1701 MovieClip in Symbol 1717 MovieClip Frame 4
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Instance of Symbol 1701 MovieClip in Symbol 1717 MovieClip Frame 4
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Instance of Symbol 1701 MovieClip in Symbol 1717 MovieClip Frame 4
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Symbol 1717 MovieClip Frame 27
_parent.swapDepths(105);
_parent.removemovieclip("");
Instance of Symbol 1701 MovieClip in Symbol 1717 MovieClip Frame 31
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Instance of Symbol 1701 MovieClip in Symbol 1717 MovieClip Frame 31
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Instance of Symbol 1701 MovieClip in Symbol 1717 MovieClip Frame 31
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Instance of Symbol 1701 MovieClip in Symbol 1717 MovieClip Frame 31
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Instance of Symbol 1701 MovieClip in Symbol 1717 MovieClip Frame 31
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Symbol 1717 MovieClip Frame 54
_parent.swapDepths(105);
_parent.removemovieclip("");
Symbol 1721 MovieClip Frame 1
stop();
Symbol 1725 MovieClip Frame 1
stop();
Instance of Symbol 1647 MovieClip in Symbol 1726 MovieClip Frame 9
onClipEvent (enterFrame) {
if (hitTest(_root.character) && (_root.pause == false)) {
_root.character.health = _root.character.health - 10;
_root.sfx.gotoAndPlay(42);
}
}
Symbol 1728 MovieClip Frame 52
gotoAndPlay (22);
Symbol 1729 MovieClip Frame 21
_parent.land = false;
Symbol 1730 MovieClip Frame 17
_parent.headHit = false;
Symbol 1731 MovieClip Frame 15
_parent.bodyHit = false;
Instance of Symbol 1701 MovieClip in Symbol 1732 MovieClip Frame 4
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Instance of Symbol 1701 MovieClip in Symbol 1732 MovieClip Frame 4
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Instance of Symbol 1701 MovieClip in Symbol 1732 MovieClip Frame 4
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Instance of Symbol 1701 MovieClip in Symbol 1732 MovieClip Frame 4
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Instance of Symbol 1701 MovieClip in Symbol 1732 MovieClip Frame 4
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Symbol 1732 MovieClip Frame 27
_parent.swapDepths(105);
_parent.removemovieclip("");
Instance of Symbol 1701 MovieClip in Symbol 1732 MovieClip Frame 31
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Instance of Symbol 1701 MovieClip in Symbol 1732 MovieClip Frame 31
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Instance of Symbol 1701 MovieClip in Symbol 1732 MovieClip Frame 31
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Instance of Symbol 1701 MovieClip in Symbol 1732 MovieClip Frame 31
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Instance of Symbol 1701 MovieClip in Symbol 1732 MovieClip Frame 31
onClipEvent (load) {
if (_name == "blood") {
stop();
} else {
_xscale = (-(random(100) + 50));
_rotation = random(360);
chance = random(3) + 1;
if (chance == 1) {
gotoAndPlay (1);
} else if (chance == 2) {
gotoAndPlay (27);
} else {
gotoAndPlay (12);
}
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if ((_currentframe == 11) || (_currentframe == 26)) {
removeMovieClip("");
}
}
}
Symbol 1732 MovieClip Frame 54
_parent.swapDepths(105);
_parent.removemovieclip("");
Instance of Symbol 1702 MovieClip in Symbol 1733 MovieClip Frame 7
onClipEvent (load) {
chance = random(2) + 1;
if (chance == 2) {
gotoAndPlay (28);
}
}
Instance of Symbol 1717 MovieClip in Symbol 1733 MovieClip Frame 14
onClipEvent (load) {
chance = random(2) + 1;
if (chance == 2) {
gotoAndPlay (28);
}
}
Instance of Symbol 1732 MovieClip in Symbol 1733 MovieClip Frame 21
onClipEvent (load) {
chance = random(2) + 1;
if (chance == 2) {
gotoAndPlay (28);
}
}
Instance of Symbol 508 MovieClip in Symbol 1734 MovieClip Frame 2
onClipEvent (load) {
stop();
}
Symbol 1734 MovieClip Frame 61
swapDepths(1);
removeMovieClip("");
Symbol 1735 MovieClip Frame 1
c = function (obj) {
i = 0;
while (i < 5) {
_root.item[obj]._x = _root.item[obj]._x + _root.item[obj].x;
_root.item[obj]._y = _root.item[obj]._y + _root.item[obj].y;
n = 0;
while (n < _root.character.targets.length) {
_root.item[obj].tar = _root.character.targets[n];
if (_root.item[_root.item[obj].tar].health > 0) {
_root.item[obj].dx = Math.abs(_root.item[obj]._x - _root.item[_root.item[obj].tar]._x);
_root.item[obj].dy = Math.abs(_root.item[obj]._y - (_root.item[_root.item[obj].tar]._y - 10));
if ((_root.item[obj].dx < 20) && (_root.item[obj].dy < 25)) {
_root.item[_root.item[obj].tar].health = _root.item[_root.item[obj].tar].health - _root.item[obj].pow;
if (_root.item[obj]._y > (_root.item[_root.item[obj].tar]._y - 4)) {
_root.item[_root.item[obj].tar].bodyHealth = _root.item[_root.item[obj].tar].bodyHealth - _root.item[obj].pow;
n = 100000 /* 0x0186A0 */;
if (_root.item[_root.item[obj].tar].fall == false) {
_root.item[obj].chance = random(2) + 1;
if (_root.item[obj].chance == 1) {
_root.item[_root.item[obj].tar].gotoAndStop(13);
} else {
_root.item[_root.item[obj].tar].gotoAndStop(14);
}
_root.item[_root.item[obj].tar].hurt = true;
}
} else {
_root.item[_root.item[obj].tar].headHealth = _root.item[_root.item[obj].tar].headHealth - _root.item[obj].pow;
n = 100000 /* 0x0186A0 */;
_root.item[_root.item[obj].tar].health = _root.item[_root.item[obj].tar].health - (_root.item[obj].pow / 2);
_root.item[_root.item[obj].tar].headHealth = _root.item[_root.item[obj].tar].headHealth - (_root.item[obj].pow / 2);
if (_root.item[_root.item[obj].tar].fall == false) {
_root.item[obj].chance = random(2) + 1;
if (_root.item[obj].chance == 1) {
_root.item[_root.item[obj].tar].gotoAndStop(11);
} else {
_root.item[_root.item[obj].tar].gotoAndStop(12);
}
_root.item[_root.item[obj].tar].hurt = true;
}
}
if (_root.item[_root.item[obj].tar].isMetal == false) {
_root.item[obj].blood();
} else {
_root.item[obj].spark();
}
}
}
n++;
}
if (_root.bound.hitTest(_root.item[obj]._x + _root.item._x, _root.item[obj]._y + _root.item._y, true)) {
_root.item[obj].spark();
}
i++;
}
};
d = function (obj) {
i = 0;
while (i < 5) {
_root.item[obj]._x = _root.item[obj]._x + _root.item[obj].x;
_root.item[obj]._y = _root.item[obj]._y + _root.item[obj].y;
_root.item[obj].tar = _root.character;
if (_root.character.health > 0) {
_root.item[obj].dx = Math.abs(_root.item[obj]._x - (_root.character._x - _root.item._x));
_root.item[obj].dy = Math.abs(_root.item[obj]._y - ((_root.character._y - 10) - _root.item._y));
if (_root.character._currentframe != 10) {
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
if ((_root.item[obj].dx < 20) && (_root.item[obj].dy < 25)) {
_root.character.health = _root.character.health - (_root.item[obj].pow * 1.5);
if (_root.item[obj]._y > ((_root.character._y - 4) - _root.item._y)) {
_root.character.bodyHealth = _root.character.bodyHealth - _root.item[obj].pow;
n = 100000 /* 0x0186A0 */;
if (_root.character.fall == false) {
_root.item[obj].chance = random(2) + 1;
if (_root.item[obj].chance == 1) {
_root.character.gotoAndStop(13);
} else {
_root.character.gotoAndStop(14);
}
_root.character.hurt = true;
_root.character.xVel = 0;
}
} else {
_root.character.headHealth = _root.character.headHealth - _root.item[obj].pow;
n = 100000 /* 0x0186A0 */;
_root.character.health = _root.character.health - _root.item[obj].pow;
_root.character.headHealth = _root.character.headHealth - (_root.item[obj].pow / 2);
if (_root.character.fall == false) {
_root.item[obj].chance = random(2) + 1;
if (_root.item[obj].chance == 1) {
_root.character.gotoAndStop(11);
} else {
_root.character.gotoAndStop(12);
}
_root.character.hurt = true;
_root.character.xVel = 0;
}
}
_root.item[obj].blood();
}
}
} else if ((_root.item[obj].dx < 20) && (_root.item[obj].dy < 15)) {
_root.character.health = _root.character.health - (_root.item[obj].pow * 1.5);
_root.character.headHealth = _root.character.headHealth - _root.item[obj].pow;
n = 100000 /* 0x0186A0 */;
_root.character.health = _root.character.health - _root.item[obj].pow;
_root.character.headHealth = _root.character.headHealth - (_root.item[obj].pow / 2);
if (_root.character.fall == false) {
_root.item[obj].chance = random(2) + 1;
if (_root.item[obj].chance == 1) {
_root.character.gotoAndStop(11);
} else {
_root.character.gotoAndStop(12);
}
_root.character.hurt = true;
_root.character.xVel = 0;
}
_root.item[obj].blood();
}
}
if (_root.bound.hitTest(_root.item[obj]._x + _root.item._x, _root.item[obj]._y + _root.item._y, true)) {
_root.item[obj].spark();
}
i++;
}
};
Instance of Symbol 1547 MovieClip "fla" in Symbol 1735 MovieClip Frame 1
onClipEvent (load) {
time = 0;
_xscale = (random(50) + 70);
chance = random(2) + 1;
if (chance == 1) {
_yscale = (_yscale * -1);
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "fla") {
if (time > 1) {
removeMovieClip("");
} else {
if (time > 0) {
_alpha = (_alpha - 50);
}
time = time + 1;
}
}
}
}
Instance of Symbol 15 MovieClip "shell" in Symbol 1735 MovieClip Frame 1
onClipEvent (load) {
if (_name != "shell") {
if (_root.bound.hitTest(_x + _root.item._x, _y + _root.item._y, true)) {
removeMovieClip("");
}
bounce = 0;
if (_xscale == 100) {
r = random(20);
rot = _rotation;
speed = 10;
xa = (Math.sin(rot * (Math.PI/180)) * speed) - (random(8) + (random(10) / 10));
} else {
r = -random(20);
rot = _rotation;
speed = -10;
xa = (Math.sin(rot * (Math.PI/180)) * speed) + (random(8) + (random(10) / 10));
}
_xscale = 100;
ya = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
timer = 0;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "shell") {
timer = timer + 1;
_x = (_x + xa);
_y = (_y + ya);
_rotation = (_rotation + (xa - r));
ya = ya + 2;
if (_root.bound.hitTest(_x + _root.item._x, _y + _root.item._y, true)) {
ya = ya * -0.5;
xa = xa * -0.3;
t = 0;
while (_root.bound.hitTest(_x + _root.item._x, (_y + _root.item._y) - 1, true)) {
_y = (_y - 1);
t++;
if (t > 50) {
removeMovieClip("");
}
}
bounce = bounce + 1;
if (bounce > 3) {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.shell, "obj" + i, i);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._rotation = _rotation;
_root.obj["obj" + i].gotoAndStop(_currentframe);
_root.stuff.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
removeMovieClip("");
} else if (bounce == 1) {
_root.sfx.gotoAndPlay(94);
} else if (bounce == 2) {
_root.sfx.gotoAndPlay(96);
}
}
if (_root.bound.hitTest((_x + 15) + _root.item._x, _y + _root.item._y, true) || (_root.bound.hitTest((_x - 15) + _root.item._x, _y + _root.item._y, true))) {
xa = xa * -0.5;
_x = (_x + xa);
}
if (_root.bound.hitTest(_x + _root.item._x, (_y + _root.item._y) - 15, true)) {
ya = 3;
}
if (timer > 90) {
removeMovieClip("");
}
}
}
}
Instance of Symbol 1549 MovieClip "bullet" in Symbol 1735 MovieClip Frame 1
onClipEvent (load) {
spark = function () {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.spark1, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.item["item" + i]._rotation = _rotation + (random(60) - 30);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.bh, "obj" + i, i);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._rotation = _rotation;
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
removeMovieClip("");
};
blood = function () {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.item["item" + i]._rotation = _rotation;
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(4) + 1);
sca = random(50) + 30;
_root.obj["obj" + i]._xscale = sca;
_root.obj["obj" + i]._yscale = sca;
_root.obj["obj" + i]._alpha = 50;
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
removeMovieClip("");
};
time = 0;
rot = _rotation - 90;
type = 1;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (enemyBullet != true) {
_root.item.c(_name);
} else {
_root.item.d(_name);
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "bullet") {
if (time == 1) {
_xscale = (_xscale + (random(100) + 100));
}
time++;
if (time > 8) {
removeMovieClip("");
}
if (time > 6) {
_alpha = (_alpha - 30);
}
if (enemyBullet != true) {
_root.item.c(_name);
} else {
_root.item.d(_name);
}
}
}
}
Instance of Symbol 1299 MovieClip "spark1" in Symbol 1735 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "spark1") {
_alpha = (_alpha - 25);
_xscale = (_xscale + 30);
_yscale = (_yscale + 30);
if (_alpha < 1) {
swapDepths(10000);
removeMovieClip("");
}
}
}
}
Instance of Symbol 749 MovieClip "blood" in Symbol 1735 MovieClip Frame 1
onClipEvent (load) {
if (_name != "blood") {
_xscale = (random(30) + 40);
_yscale = _xscale;
_rotation = (_rotation + (random(40) - 20));
} else {
stop();
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if (_root.pause == false) {
play();
} else {
stop();
}
}
}
Instance of Symbol 1551 MovieClip "gren1" in Symbol 1735 MovieClip Frame 1
onClipEvent (load) {
splode = function () {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.explode, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.item["item" + i]._rotation = random(360);
n = 0;
while (n < _root.character.targets.length) {
tar = _root.character.targets[n];
if (_root.item[tar].health > 0) {
dx = (_x - _root.item[tar]._x) * (_x - _root.item[tar]._x);
dy = (_y - (_root.item[tar]._y - 10)) * (_y - (_root.item[tar]._y - 10));
splodeDist = Math.abs(Math.sqrt(dx + dy));
if (splodeDist < 200) {
_root.item[tar].health = _root.item[tar].health - (20 - Math.round(splodeDist / 10));
chance = random(2) + 1;
if (chance == 1) {
_root.item[tar].gotoAndStop(11);
} else {
_root.item[tar].gotoAndStop(12);
}
_root.item[tar].hurt = true;
}
}
n++;
}
dx = ((_x + _root.item._x) - _root.character._x) * ((_x + _root.item._x) - _root.character._x);
dy = ((_y + _root.item._y) - _root.character._y) * ((_y + _root.item._y) - _root.character._y);
splodeDist = Math.abs(Math.sqrt(dx + dy));
if (splodeDist < 200) {
_root.character.health = _root.character.health - (20 - Math.round(splodeDist / 10));
chance = random(2) + 1;
if (chance == 1) {
_root.character.gotoAndStop(11);
} else {
_root.character.gotoAndStop(12);
}
_root.character.hurt = true;
}
removeMovieClip("");
};
bounce = random(1);
time = 0;
rot = _rotation - 90;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
timer = 0;
r = random(20) + 10;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "gren1") {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + r);
y = y + 0.5;
n = 0;
while (n < _root.character.targets.length) {
tar = _root.character.targets[n];
if (_root.item[tar].health > 0) {
dx = Math.abs(_x - _root.item[tar]._x);
dy = Math.abs(_y - (_root.item[tar]._y - 10));
if ((dx < 20) && (dy < 25)) {
if (_root.item[tar].fall == false) {
chance = random(2) + 1;
if (chance == 1) {
_root.item[tar].gotoAndStop(11);
} else {
_root.item[tar].gotoAndStop(12);
}
_root.item[tar].hurt = true;
}
_root.item[tar].health = _root.item[tar].health - pow;
splode();
}
}
n++;
}
if (_root.bound.hitTest(_x + _root.item._x, _y + _root.item._y, true)) {
y = y * -0.5;
x = x * -0.3;
t = 0;
bounce = bounce + 1;
if (bounce > 1) {
splode();
}
}
if (_root.bound.hitTest((_x + 15) + _root.item._x, _y + _root.item._y, true) || (_root.bound.hitTest((_x - 15) + _root.item._x, _y + _root.item._y, true))) {
x = x * -0.5;
_x = (_x + x);
}
if (_root.bound.hitTest(_x + _root.item._x, (_y + _root.item._y) - 15, true)) {
y = 3;
}
if (timer > 90) {
splode();
}
}
}
}
Instance of Symbol 1410 MovieClip "explode" in Symbol 1735 MovieClip Frame 1
onClipEvent (load) {
if (_name == "explode") {
stop();
} else {
_root.sfx.gotoAndPlay(((random(2) + 1) * 2) + 30);
_root.character.modifier = random(15) + 10;
_root.character.yModifier = random(15) + 10;
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.burn2, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
}
}
onClipEvent (enterFrame) {
if (_name != "explode") {
if (_root.pause == false) {
play();
} else {
stop();
}
}
}
Instance of Symbol 1553 MovieClip "gren2" in Symbol 1735 MovieClip Frame 1
onClipEvent (load) {
if (_name != "gren2") {
splode2 = function () {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.explode, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.item["item" + i]._rotation = random(360);
removeMovieClip("");
};
if (_root.bound.hitTest(_x + _root.item._x, _y + _root.item._y, true)) {
splode2();
removeMovieClip("");
}
splode = function () {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.explode, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.item["item" + i]._rotation = random(360);
a = 0;
while (a < 10) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.item["item" + i]._rotation = -((random(8) + 10) * a);
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = 1;
a++;
}
n = 0;
while (n < _root.character.targets.length) {
tar = _root.character.targets[n];
if (_root.item[tar].health > 0) {
dx = (_x - _root.item[tar]._x) * (_x - _root.item[tar]._x);
dy = (_y - (_root.item[tar]._y - 10)) * (_y - (_root.item[tar]._y - 10));
splodeDist = Math.abs(Math.sqrt(dx + dy));
if (splodeDist < 200) {
_root.item[tar].health = _root.item[tar].health - (20 - Math.round(splodeDist / 10));
chance = random(2) + 1;
if (chance == 1) {
_root.item[tar].gotoAndStop(11);
} else {
_root.item[tar].gotoAndStop(12);
}
_root.item[tar].hurt = true;
}
}
n++;
}
dx = ((_x + _root.item._x) - _root.character._x) * ((_x + _root.item._x) - _root.character._x);
dy = ((_y + _root.item._y) - _root.character._y) * ((_y + _root.item._y) - _root.character._y);
splodeDist = Math.abs(Math.sqrt(dx + dy));
trace(splodeDist);
if (splodeDist < 200) {
_root.character.health = _root.character.health - (20 - Math.round(splodeDist / 10));
chance = random(2) + 1;
if (chance == 1) {
_root.character.gotoAndStop(11);
} else {
_root.character.gotoAndStop(12);
}
_root.character.hurt = true;
}
removeMovieClip("");
};
bounce = random(1);
time = 0;
rot = _rotation - 90;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
timer = 0;
r = random(20) + 10;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "gren2") {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + r);
y = y + 0.5;
n = 0;
while (n < _root.character.targets.length) {
tar = _root.character.targets[n];
if (_root.item[tar].health > 0) {
dx = Math.abs(_x - _root.item[tar]._x);
dy = Math.abs(_y - (_root.item[tar]._y - 10));
if ((dx < 20) && (dy < 25)) {
if (_root.item[tar].fall == false) {
chance = random(2) + 1;
if (chance == 1) {
_root.item[tar].gotoAndStop(11);
} else {
_root.item[tar].gotoAndStop(12);
}
_root.item[tar].hurt = true;
}
_root.item[tar].health = _root.item[tar].health - pow;
splode();
}
}
n++;
}
if (_root.bound.hitTest(_x + _root.item._x, _y + _root.item._y, true)) {
y = y * -0.5;
x = x * -0.3;
t = 0;
bounce = bounce + 1;
if (bounce > 1) {
splode();
}
}
if (_root.bound.hitTest((_x + 15) + _root.item._x, _y + _root.item._y, true) || (_root.bound.hitTest((_x - 15) + _root.item._x, _y + _root.item._y, true))) {
x = x * -0.5;
_x = (_x + x);
}
if (_root.bound.hitTest(_x + _root.item._x, (_y + _root.item._y) - 15, true)) {
y = 3;
}
if (timer > 90) {
splode();
}
}
}
}
Instance of Symbol 1549 MovieClip "flechette" in Symbol 1735 MovieClip Frame 1
onClipEvent (load) {
if (_name != "flechette") {
spark = function () {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.spark1, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.item["item" + i]._rotation = _rotation + (random(60) - 30);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.flechette, "obj" + i, i);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._rotation = _rotation + (random(50) - 25);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
removeMovieClip("");
};
blood = function () {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.item["item" + i]._rotation = _rotation;
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(4) + 1);
sca = random(50) + 30;
_root.obj["obj" + i]._xscale = sca;
_root.obj["obj" + i]._yscale = sca;
_root.obj["obj" + i]._alpha = 50;
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
};
time = 0;
rot = _rotation - 90;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (enemyBullet != true) {
_root.item.c(_name);
} else {
_root.item.d(_name);
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "flechette") {
if (time == 1) {
_xscale = (_xscale + (random(100) + 100));
}
time++;
if (time > 8) {
removeMovieClip("");
}
if (enemyBullet != true) {
_root.item.c(_name);
} else {
_root.item.d(_name);
}
}
}
}
Instance of Symbol 1556 MovieClip "laser" in Symbol 1735 MovieClip Frame 1
onClipEvent (load) {
spark = function () {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.spark1, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.item["item" + i]._rotation = _rotation + (random(60) - 30);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.burn, "obj" + i, i);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._rotation = _rotation;
_root.obj["obj" + i].b._width = l._width;
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
};
blood = function () {
_root.obj.i++;
ii = _root.obj.i;
duplicateMovieClip (_root.obj.gBlood, "obj" + ii, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + ii]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + ii]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + ii]._rotation = _rotation;
sca = random(100) + 100;
_root.obj["obj" + ii]._xscale = sca;
_root.obj["obj" + ii]._alpha = 50;
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + ii].swapDepths(1);
_root.obj["obj" + ii].removeMovieClip("");
};
time = 0;
rot = _rotation - 90;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
i = 0;
while (i < 25) {
_x = (_x + x);
_y = (_y + y);
l._width = i * 15;
if (enemyBullet != true) {
n = 0;
while (n < _root.character.targets.length) {
tar = _root.character.targets[n];
if (_root.item[tar].health > 0) {
dx = Math.abs(_x - _root.item[tar]._x);
dy = Math.abs(_y - (_root.item[tar]._y - 10));
if ((dx < 20) && (dy < 25)) {
_root.item[tar].health = _root.item[tar].health - pow;
if (_y > (_root.item[tar]._y - 4)) {
if (_root.item[tar].fall == false) {
chance = random(2) + 1;
if (chance == 1) {
_root.item[tar].gotoAndStop(13);
} else {
_root.item[tar].gotoAndStop(14);
}
_root.item[tar].hurt = true;
}
} else {
_root.item[tar].health = _root.item[tar].health - (pow / 2);
if (_root.item[tar].fall == false) {
chance = random(2) + 1;
if (chance == 1) {
_root.item[tar].gotoAndStop(11);
} else {
_root.item[tar].gotoAndStop(12);
}
_root.item[tar].hurt = true;
}
}
if (_root.item[tar].isMetal == true) {
spark();
} else {
blood();
}
}
}
n++;
}
} else {
dx = ((_x + _root.item._x) - _root.character._x) * ((_x + _root.item._x) - _root.character._x);
dy = ((_y + _root.item._y) - _root.character._y) * ((_y + _root.item._y) - _root.character._y);
if ((dx < 20) && (dy < 25)) {
_root.character.health = _root.character.health - 1;
chance = random(2) + 1;
if (chance == 1) {
_root.character.gotoAndStop(11);
} else {
_root.character.gotoAndStop(12);
}
_root.character.hurt = true;
blood();
}
}
if (_root.bound.hitTest(_x + _root.item._x, _y + _root.item._y, true)) {
spark();
i = 1000;
}
i++;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "laser") {
time++;
if (time > 5) {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.burn, "obj" + i, i);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._rotation = _rotation;
_root.obj["obj" + i].b._width = l._width;
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
removeMovieClip("");
}
}
}
}
Instance of Symbol 753 MovieClip "ene" in Symbol 1735 MovieClip Frame 1
on (rollOver) {
if ((_root.cursor._currentframe == 3) && (health > 0)) {
_root.cursor.gotoAndStop(4);
_root.arm.drillTarget = _name;
}
}
on (rollOut, dragOut) {
if (_root.arm.gun == 14) {
_root.cursor.gotoAndStop(3);
}
_root.arm.drillTarget = "";
}
onClipEvent (load) {
if (_name != "ene") {
nukeFun = function () {
trace(_name + " died");
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse2, "obj" + i, _root.obj.corpse2.getDepth() + 1);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(random(3) + 8);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
_root.obj["obj" + i].body.gotoAndStop(body);
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
myRadians = Math.atan2(nukeY - _y, nukeX - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
nukeRot = myDegrees + 90;
gg = 0;
while (gg < 6) {
_root.obj["obj" + i]["a" + gg]._xscale = _xscale;
if (_xscale < 0) {
_root.obj["obj" + i]["a" + gg]._rotation = nukeRot - 90;
} else {
_root.obj["obj" + i]["a" + gg]._rotation = nukeRot;
}
gg++;
}
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
createGun();
_root.character.kill = _root.character.kill + _root.multiplier;
o = 0;
while (o < _root.character.targets.length) {
if (_name == _root.character.targets[o]) {
_root.character.targets.splice(o, 1);
}
o++;
}
_root.item[ar].removeMovieClip("");
removeMovieClip("");
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y - 25;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y - 30;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - 10;
_root.item["item" + i]._y = _y - 5;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - 15;
_root.item["item" + i]._y = _y + 5;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x + 15;
_root.item["item" + i]._y = _y - 5;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
};
createCorpse = function () {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse, "obj" + i, i);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(_currentframe - 14);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
_root.obj["obj" + i].body.gotoAndStop(body);
if (drill == false) {
_root.obj["obj" + i].head.gore.gotoAndStop(gore);
_root.obj["obj" + i].body.gore.gotoAndStop(bodyGore);
}
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
removeMovieClip("");
};
createGun = function () {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _root.item[ar]._x + _root.item[ar].wpn._x;
_root.item["item" + i]._y = _root.item[ar]._y + _root.item[ar].wpn._y;
_root.item["item" + i].cap = _root.arm.capacity[_root.item[ar]._currentframe];
_root.item["item" + i].gotoAndStop(_root.item[ar].gun);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
};
switch (_root._currentframe) {
case 10 :
chan = random(5) + 1;
break;
case 12 :
chan = random(5) + 1;
break;
case 14 :
chan = random(5) + 1;
break;
case 16 :
chan = random(5) + 1;
break;
case 18 :
chan = random(6) + 1;
break;
case 20 :
chan = random(6) + 1;
break;
case 22 :
chan = random(6) + 1;
break;
case 24 :
chan = random(6) + 1;
break;
case 26 :
chan = random(6) + 1;
break;
case 28 :
chan = random(7) + 1;
break;
case 30 :
chan = random(7) + 1;
break;
case 32 :
chan = random(7) + 1;
break;
case 34 :
chan = random(7) + 1;
break;
case 36 :
chan = random(7) + 1;
break;
case 38 :
chan = random(7) + 1;
break;
case 40 :
chan = random(8) + 1;
break;
case 42 :
chan = random(8) + 1;
break;
case 44 :
chan = random(8) + 1;
break;
case 46 :
chan = random(8) + 1;
break;
case 48 :
chan = random(8) + 1;
break;
case 50 :
chan = random(8) + 1;
break;
case 52 :
chan = random(8) + 1;
break;
case 54 :
chan = random(8) + 1;
break;
case 56 :
chan = random(8) + 1;
break;
case 60 :
chan = 5;
}
outfit = _root.gameFun["outfit" + chan];
head = outfit[0];
body = outfit[1];
foot = outfit[2];
face = random(11) + 1;
if (_root.hardMode == true) {
maxHealth = outfit[3] * 2;
moveSpeed = 3;
} else {
maxHealth = outfit[3];
moveSpeed = 2;
}
isMetal = false;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
gravity = 0;
xVel = 0;
gravAccel = 2;
jumpHeight = 23;
direc = random(2) + 1;
persuing = false;
dJump = false;
evade = false;
hurt = false;
headHurt = false;
drill = false;
drillTime = 0;
d = random(150) + 100;
health = maxHealth;
headHealth = maxHealth;
bodyHealth = maxHealth;
_root.character.targets.push(_name);
_root.item[ar]._x = _x;
_root.item[ar]._y = _y;
} else {
time = 0;
stop();
char.stop();
this.cacheAsBitmap = true;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "ene") {
char.play();
if (health > 0) {
myRadians = Math.atan2(_root.character._y - (_y + _root.item._y), _root.character._x - (_x + _root.item._x));
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
_root.item[ar]._x = _x;
_root.item[ar]._y = _y;
_root.item[ar]._rotation = headRot;
if (hurt == false) {
shootChance = random(30) + 1;
if (shootChance == 1) {
_root.item[ar].shoot();
}
if (fall == false) {
if ((_y + _root.item._y) > (_root.character._y + 200)) {
fall = true;
gravity = -jumpHeight;
_y = (_y - 1);
}
if (((_y + _root.item._y) < (_root.character._y - 150)) || ((_y + _root.item._y) > (_root.character._y + 150))) {
persuing = true;
if (_root.character._x > (_x + _root.item._x)) {
_xscale = 100;
_root.item[ar].wpn.hand1.gotoAndStop(1);
_root.item[ar].wpn.hand2.gotoAndStop(1);
_root.item[ar]._yscale = 100;
if (_root.item[ar].getDepth() < getDepth()) {
swapDepths(_root.item[ar]);
}
} else {
_xscale = -100;
_root.item[ar].wpn.hand1.gotoAndStop(2);
_root.item[ar].wpn.hand2.gotoAndStop(2);
_root.item[ar]._yscale = -100;
if (_root.item[ar].getDepth() > getDepth()) {
swapDepths(_root.item[ar]);
}
}
if (direc == 1) {
if (fall == false) {
xVel = moveSpeed * 2;
} else {
xVel = moveSpeed * 4;
}
if (_xscale == 100) {
gotoAndStop (4);
} else {
gotoAndStop (5);
}
} else {
if (fall == false) {
xVel = (-moveSpeed) * 2;
} else {
xVel = (-moveSpeed) * 4;
}
if (_xscale == -100) {
gotoAndStop (4);
} else {
gotoAndStop (5);
}
}
} else {
persuing = true;
if (_root.character._x > (_x + _root.item._x)) {
_xscale = 100;
_root.item[ar].wpn.hand1.gotoAndStop(1);
_root.item[ar].wpn.hand2.gotoAndStop(1);
_root.item[ar]._yscale = 100;
if (_root.item[ar].getDepth() < getDepth()) {
swapDepths(_root.item[ar]);
}
if ((_root.character._x - (_x + _root.item._x)) > (d * 2)) {
if (fall == false) {
xVel = moveSpeed * 2;
} else {
xVel = moveSpeed * 4;
}
gotoAndStop (4);
} else if ((_root.character._x - (_x + _root.item._x)) > d) {
if (fall == false) {
xVel = moveSpeed * 2;
} else {
xVel = moveSpeed * 4;
}
gotoAndStop (2);
} else {
xVel = 0;
gotoAndStop (1);
}
} else {
_xscale = -100;
_root.item[ar].wpn.hand1.gotoAndStop(2);
_root.item[ar].wpn.hand2.gotoAndStop(2);
_root.item[ar]._yscale = -100;
if (_root.item[ar].getDepth() > getDepth()) {
swapDepths(_root.item[ar]);
}
if ((_root.character._x - (_x + _root.item._x)) < ((-d) * 2)) {
if (fall == false) {
xVel = (-moveSpeed) * 2;
} else {
xVel = (-moveSpeed) * 4;
}
gotoAndStop (4);
} else if ((_root.character._x - (_x + _root.item._x)) < (-d)) {
if (fall == false) {
xVel = (-moveSpeed) * 2;
} else {
xVel = (-moveSpeed) * 4;
}
gotoAndStop (2);
} else {
xVel = 0;
gotoAndStop (1);
}
}
}
} else {
gravity = gravity + 2;
if (dJump == false) {
if ((_y + _root.item._y) > (_root.character._y + 50)) {
if (gravity > 0) {
dJump = true;
gravity = -jumpHeight;
}
}
if (gravity < 0) {
gotoAndStop (6);
} else {
gotoAndStop (7);
}
} else {
gotoAndStop (8);
}
if (persuing == false) {
if (_root.character._x > (_x + _root.item._x)) {
_xscale = 100;
_root.item[ar].wpn.hand1.gotoAndStop(1);
_root.item[ar].wpn.hand2.gotoAndStop(1);
_root.item[ar]._yscale = 100;
if (_root.item[ar].getDepth() < getDepth()) {
swapDepths(_root.item[ar]);
}
if ((_root.character._x - (_x + _root.item._x)) > (d / 2)) {
xVel = moveSpeed * 3;
} else {
xVel = 0;
}
} else {
_xscale = -100;
_root.item[ar].wpn.hand1.gotoAndStop(2);
_root.item[ar].wpn.hand2.gotoAndStop(2);
_root.item[ar]._yscale = -100;
if (_root.item[ar].getDepth() > getDepth()) {
swapDepths(_root.item[ar]);
}
if ((_root.character._x - (_x + _root.item._x)) < (-(d / 2))) {
xVel = (-moveSpeed) * 3;
} else {
xVel = 0;
}
}
}
}
if (!_root.bound.hitTest(_x + _root.item._x, ((_y + boundHeight) + 1) + _root.item._y, true)) {
fall = true;
} else {
fall = false;
dJump = false;
while (_root.bound.hitTest(_x + _root.item._x, ((_y + boundHeight) - 1) + _root.item._y, true)) {
_y = (_y - 1);
}
gravity = 0;
}
chrDist = Math.sqrt((((_x + _parent._x) - _root.character._x) * ((_x + _parent._x) - _root.character._x)) + (((_y + _parent._y) - _root.character._y) * ((_y + _parent._y) - _root.character._y)));
if (chrDist < 100) {
_root.item[ar].dontShoot = false;
} else {
if (chrDist > 1500) {
o = 0;
while (o < _root.character.targets.length) {
if (_name == _root.character.targets[o]) {
_root.character.targets.splice(o, 1);
}
o++;
}
_root.item[ar].removeMovieClip("");
removeMovieClip("");
}
_root.item[ar].dontShoot = true;
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest((_x + boundBox) + _root.item._x, _y + _root.item._y, true)) && (!_root.bound.hitTest((_x + boundBox) + _root.item._x, (_y + 20) + _root.item._y, true))) {
_x = (_x + 1);
} else {
if (fall == false) {
direc = 2;
}
if (persuing == false) {
if (fall != true) {
fall = true;
gravity = -jumpHeight;
} else if ((gravity > 0) && (dJump == false)) {
dJump = true;
gravity = -jumpHeight;
}
} else {
jChance = random(2) + 1;
if (jChance == 1) {
direc = 1;
if (fall != true) {
fall = true;
gravity = -jumpHeight;
} else if ((gravity > 0) && (dJump == false)) {
dJump = true;
gravity = -jumpHeight;
}
}
}
break;
}
} else if ((!_root.bound.hitTest((_x - boundBox) + _root.item._x, _y + _root.item._y, true)) && (!_root.bound.hitTest((_x - boundBox) + _root.item._x, (_y + 20) + _root.item._y, true))) {
_x = (_x - 1);
} else {
if (fall == false) {
direc = 1;
}
if (persuing == false) {
if (fall != true) {
fall = true;
gravity = -jumpHeight;
} else if ((gravity > 0) && (dJump == false)) {
dJump = true;
gravity = -jumpHeight;
}
} else {
jChance = random(2) + 1;
if (jChance == 1) {
direc = 2;
if (fall != true) {
fall = true;
gravity = -jumpHeight;
} else if ((gravity > 0) && (dJump == false)) {
dJump = true;
gravity = -jumpHeight;
}
}
}
break;
}
n++;
}
}
n = 0;
while (n < Math.abs(gravity)) {
if (gravity < 0) {
_y = (_y - 1);
}
if (gravity > 0) {
_y = (_y + 1);
}
if (_root.bound.hitTest(_x + _root.item._x, ((_y - boundHeight) - 1) + _root.item._y, true)) {
if (gravity < 3) {
gravity = 3;
} else {
gravity = gravity + 2;
}
_y = (_y + 1);
n = 1000000 /* 0x0F4240 */;
}
n++;
}
} else {
if (dieOnce != true) {
createGun();
_root.character.kill = _root.character.kill + _root.multiplier;
o = 0;
while (o < _root.character.targets.length) {
if (_name == _root.character.targets[o]) {
_root.character.targets.splice(o, 1);
}
o++;
}
dieOnce = true;
}
if (drill == false) {
if (fall == false) {
if (health < -4) {
gib();
_root.item[ar].removeMovieClip("");
removeMovieClip("");
} else if (_currentframe < 15) {
if (headHealth < maxHealth) {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < 1) {
if (_currentframe != 19) {
gotoAndStop (19);
}
gore = 0;
} else {
gotoAndStop(14 + (random(2) + 1));
gore = random(3) + 2;
}
} else {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
gotoAndStop(14 + (random(2) + 1));
gore = 0;
}
_root.item[ar].removeMovieClip("");
}
} else if (health < -4) {
gib();
_root.item[ar].removeMovieClip("");
removeMovieClip("");
} else {
if (headHealth < 1) {
if (_currentframe != 21) {
xVel = random(8) - 4;
gotoAndStop (21);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
}
} else if (_currentframe != 20) {
xVel = random(8) - 4;
gotoAndStop (20);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < maxHealth) {
gore = random(7) + 2;
}
}
_root.item[ar].removeMovieClip("");
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest((_x + boundBox) + _root.item._x, _y + _root.item._y, true)) && (!_root.bound.hitTest((_x + boundBox) + _root.item._x, (_y + 30) + _root.item._y, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest((_x - boundBox) + _root.item._x, _y + _root.item._y, true)) && (!_root.bound.hitTest((_x - boundBox) + _root.item._x, (_y + 30) + _root.item._y, true))) {
_x = (_x - 1);
}
n++;
}
if (!_root.bound.hitTest(_x + _root.item._x, ((_y + boundHeight) + 1) + _root.item._y, true)) {
_y = (_y + gravity);
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, ((_y + boundHeight) - 1) + _root.item._y, true)) {
_y = (_y - 1);
}
} else if (char._currentframe < 8) {
char.gotoAndPlay(8);
}
}
} else {
bodyGore = 0;
gore = 0;
_root.item[ar].removeMovieClip("");
if (!_root.bound.hitTest(_x + _root.item._x, ((_y + boundHeight) + 1) + _root.item._y, true)) {
_y = (_y + gravity);
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, ((_y + boundHeight) - 1) + _root.item._y, true)) {
_y = (_y - 1);
}
gotoAndStop (20);
} else {
if (once != true) {
_root.sfx.gotoAndPlay(90);
once = true;
}
if (drillTime > 80) {
if (_currentframe != 18) {
gotoAndStop (18);
}
} else {
if (_currentframe != 17) {
gotoAndStop (17);
}
drillTime++;
}
}
}
}
} else {
time--;
if (time > 90) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.item["item" + i].ar = nam;
time = 0;
}
}
} else {
char.stop();
}
}
Instance of Symbol 1569 MovieClip "arm" in Symbol 1735 MovieClip Frame 1
onClipEvent (load) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (_name != "arm") {
fireFun = function () {
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation - wpn._rotation;
} else {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation - wpn._rotation;
}
if (gun != 2) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation - wpn._rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
_root.item["item" + i].enemyBullet = true;
break;
case 2 :
z = 0;
while (z < 6) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
_root.item["item" + i].enemyBullet = true;
z++;
}
break;
case 3 :
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
_root.item["item" + i].enemyBullet = true;
break;
case 4 :
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
_root.item["item" + i].enemyBullet = true;
break;
case 5 :
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
_root.item["item" + i].enemyBullet = true;
break;
case 6 :
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
_root.item["item" + i].enemyBullet = true;
break;
case 7 :
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].tar = drillTarget;
_root.item["item" + i].enemyBullet = true;
break;
case 8 :
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
_root.item["item" + i].enemyBullet = true;
break;
case 9 :
z = 0;
while (z < 6) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
_root.item["item" + i].enemyBullet = true;
z++;
}
break;
case 10 :
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.beanBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
_root.item["item" + i].enemyBullet = true;
}
wpn._rotation = wpn._rotation - (recoilAng[gun] / 3);
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
}
};
area1Guns = new Array(2, 3, 16, 17);
area2Guns = new Array(2, 3, 16, 17, 18, 22);
area3Guns = new Array(1, 2, 3, 16, 17, 18, 22);
area4Guns = new Array(1, 2, 3, 4, 16, 17, 18, 22, 24);
area5Guns = new Array(1, 2, 3, 4, 5, 16, 17, 18, 22, 24, 25);
area6Guns = new Array(1, 2, 3, 4, 5, 16, 17, 18, 22, 24, 25);
area7Guns = new Array(1, 2, 3, 4, 5, 7, 8, 16, 17, 18, 22, 24, 25);
area8Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 16, 17, 18, 21, 22, 23, 24, 25);
area9Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27);
area10Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27);
area11Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 10, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27);
area12Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 10, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27);
area13Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 10, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27);
area14Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27);
area15Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27);
area16Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27, 28);
area17Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27, 28);
area18Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27, 28);
area19Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27, 28);
area20Guns = new Array(34, 34, 34);
area21Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27, 28);
area22Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28);
area23Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28);
area24Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28);
area25Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28);
area26Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28);
area28Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28);
area30Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28);
threeRound = 0;
fire = false;
drillTarget = "_root.character";
coolDown = 0;
area = (_root._currentframe - 8) / 2;
gun = this[("area" + area) + "Guns"][random(this[("area" + area) + "Guns"].length)];
gotoAndStop(gun);
revolverShots = 0;
fullAuto = _root.arm.fullAuto;
recoil = _root.arm.recoil;
recoilAng = _root.arm.recoilAng;
recoilRec = _root.arm.recoilRec;
recoveryTime = _root.arm.recoveryTime;
casing = _root.arm.casing;
weaponType = _root.arm.weaponType;
pow = _root.arm.pow;
shake = _root.arm.shake;
inAcc = _root.arm.inAcc;
sound = _root.arm.sound;
ammo = _root.arm.ammo;
capacity = _root.arm.capacity;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "arm") {
chance = random(50) + 1;
if ((chance == 1) && (dontShoot == true)) {
if (fullAuto[gun] == 0) {
fireFun();
} else {
fire = true;
}
}
if (wpn._x < 38) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < -8) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (wpn._rotation < 0) {
wpn._rotation = wpn._rotation + 5;
if (wpn._rotation > 0) {
wpn._rotation = 0;
}
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (coolDown < 1) {
fireFun();
}
stopChance = random(10) + 1;
if (stopChance == 1) {
fire = false;
}
}
}
}
}
Instance of Symbol 1501 MovieClip "gib" in Symbol 1735 MovieClip Frame 1
onClipEvent (load) {
if (_name != "gib") {
if (_root.bound.hitTest(_x + _root.item._x, _y + _root.item._y, true)) {
removeMovieClip("");
}
bounce = 0;
rot = 90;
if (_xscale == 100) {
r = random(20);
xa = (Math.sin(rot * (Math.PI/180)) * speed) - (random(8) + (random(10) / 10));
} else {
r = -random(20);
xa = -((Math.sin(rot * (Math.PI/180)) * speed) - (random(8) + (random(10) / 10)));
}
ya = ((Math.cos(rot * (Math.PI/180)) * speed) * -1) - (random(15) + 10);
timer = 0;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "gib") {
timer = timer + 1;
_x = (_x + xa);
_y = (_y + ya);
_rotation = (_rotation + (xa - r));
ya = ya + 2;
if (_root.bound.hitTest(_x + _root.item._x, (_y + _root.item._y) + (_height / 4), true)) {
ya = ya * -0.5;
xa = xa * -0.3;
t = 0;
while (_root.bound.hitTest(_x + _root.item._x, ((_y + _root.item._y) + (_height / 4)) - 1, true)) {
_y = (_y - 1);
t++;
if (t > 50) {
removeMovieClip("");
}
}
bounce = bounce + 1;
if (bounce > 3) {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.gib, "obj" + i, i);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._rotation = _rotation;
_root.obj["obj" + i].gotoAndStop(_currentframe);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
removeMovieClip("");
}
}
if (_root.bound.hitTest((_x + 20) + _root.item._x, _y + _root.item._y, true) || (_root.bound.hitTest((_x - 20) + _root.item._x, _y + _root.item._y, true))) {
xa = xa * -0.5;
_x = (_x + xa);
}
if (_root.bound.hitTest(_x + _root.item._x, (_y + _root.item._y) - 10, true)) {
ya = 3;
}
if (timer > 150) {
removeMovieClip("");
}
}
}
}
Instance of Symbol 833 MovieClip "drill" in Symbol 1735 MovieClip Frame 1
onClipEvent (load) {
if (_name != "drill") {
t = 0;
speed = -10;
getAng = function () {
myRadians = Math.atan2(_root.item[tar]._y - _y, _root.item[tar]._x - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
rot = myDegrees - 40;
_rotation = (rot + 90);
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
};
getAng();
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "drill") {
t++;
if (t > 150) {
removeMovieClip("");
}
getAng();
speed = speed - 0.1;
_x = (_x + x);
_y = (_y + y);
dx = Math.abs(_x - _root.item[tar]._x);
dy = Math.abs(_y - (_root.item[tar]._y - 20));
if ((dx < 20) && (dy < 20)) {
_root.item[tar].health = _root.item[tar].health - 100;
_root.item[tar].drill = true;
removeMovieClip("");
}
}
}
}
Instance of Symbol 1507 MovieClip "brainGib" in Symbol 1735 MovieClip Frame 1
onClipEvent (load) {
if (_name != "brainGib") {
gotoAndStop(random(5) + 1);
if (_root.bound.hitTest(_x + _root.item._x, _y + _root.item._y, true)) {
removeMovieClip("");
}
bounce = 0;
rot = 90;
if (_xscale == -100) {
r = random(20);
xa = (Math.sin(rot * (Math.PI/180)) * speed) - (random(8) + (random(10) / 10));
} else {
r = -random(20);
xa = -((Math.sin(rot * (Math.PI/180)) * speed) - (random(8) + (random(10) / 10)));
}
ya = ((Math.cos(rot * (Math.PI/180)) * speed) * -1) - (random(15) + 10);
timer = 0;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "brainGib") {
timer = timer + 1;
_x = (_x + xa);
_y = (_y + ya);
_rotation = (_rotation + (xa - r));
ya = ya + 2;
if (_root.bound.hitTest(_x + _root.item._x, (_y + _root.item._y) + (_height / 4), true)) {
ya = ya * -0.5;
xa = xa * -0.3;
t = 0;
while (_root.bound.hitTest(_x + _root.item._x, ((_y + _root.item._y) + (_height / 4)) - 1, true)) {
_y = (_y - 1);
t++;
if (t > 50) {
removeMovieClip("");
}
}
bounce = bounce + 1;
if (bounce > 3) {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.brainGib, "obj" + i, i);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._rotation = _rotation;
_root.obj["obj" + i].gotoAndStop(_currentframe);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
removeMovieClip("");
}
}
if (_root.bound.hitTest((_x + 20) + _root.item._x, _y + _root.item._y, true) || (_root.bound.hitTest((_x - 20) + _root.item._x, _y + _root.item._y, true))) {
xa = xa * -0.5;
_x = (_x + xa);
}
if (_root.bound.hitTest(_x + _root.item._x, (_y + _root.item._y) - 10, true)) {
ya = 3;
}
if (timer > 150) {
removeMovieClip("");
}
}
}
}
Instance of Symbol 1570 MovieClip "blood2" in Symbol 1735 MovieClip Frame 1
onClipEvent (load) {
if (_name == "blood2") {
stop();
}
}
onClipEvent (enterFrame) {
if (_name != "blood2") {
if (_root.pause == false) {
play();
} else {
stop();
}
}
}
Instance of Symbol 1571 MovieClip "ele" in Symbol 1735 MovieClip Frame 1
onClipEvent (load) {
if (_name == "ele") {
e.stop();
}
}
onClipEvent (enterFrame) {
if (_name != "ele") {
if (_root.pause == false) {
e.play();
} else {
e.stop();
}
}
}
Instance of Symbol 1578 MovieClip "gauss" in Symbol 1735 MovieClip Frame 1
onClipEvent (load) {
spark = function () {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.spark1, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.item["item" + i]._rotation = _rotation + (random(60) - 30);
};
blood = function () {
_root.arm.i++;
ii = _root.arm.i;
duplicateMovieClip (_root.item.blood, "item" + ii, ii);
_root.item["item" + ii]._x = _x;
_root.item["item" + ii]._y = _y;
_root.item["item" + ii]._rotation = _rotation;
_root.obj.i++;
ii = _root.obj.i;
duplicateMovieClip (_root.obj.gBlood, "obj" + ii, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + ii]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + ii]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + ii]._rotation = _rotation;
sca = random(100) + 100;
_root.obj["obj" + ii]._xscale = sca;
_root.obj["obj" + ii]._alpha = 50;
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + ii].swapDepths(1);
_root.obj["obj" + ii].removeMovieClip("");
};
time = 0;
rot = _rotation - 90;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
i = 0;
while (i < 25) {
_x = (_x + x);
_y = (_y + y);
l._width = i * 15;
hit = false;
if (enemyBullet != true) {
n = 0;
while (n < _root.character.targets.length) {
tar = _root.character.targets[n];
dx = Math.abs(_x - _root.item[tar]._x);
dy = Math.abs(_y - (_root.item[tar]._y - 10));
if ((dx < 20) && (dy < 25)) {
hit = true;
_root.item[tar].health = _root.item[tar].health - pow;
if (_y > (_root.item[tar]._y - 4)) {
if (_root.item[tar].fall == false) {
chance = random(2) + 1;
if (chance == 1) {
_root.item[tar].gotoAndStop(13);
} else {
_root.item[tar].gotoAndStop(14);
}
_root.item[tar].hurt = true;
_root.item[tar].bodyHealth = _root.item[tar].bodyHealth - pow;
}
} else {
_root.item[tar].health = _root.item[tar].health - (pow / 2);
if (_root.item[tar].fall == false) {
chance = random(2) + 1;
if (chance == 1) {
_root.item[tar].gotoAndStop(11);
} else {
_root.item[tar].gotoAndStop(12);
}
_root.item[tar].hurt = true;
_root.item[tar].headHealth = _root.item[tar].headHealth - pow;
}
}
}
n++;
}
} else {
dx = ((_x + _root.item._x) - _root.character._x) * ((_x + _root.item._x) - _root.character._x);
dy = ((_y + _root.item._y) - _root.character._y) * ((_y + _root.item._y) - _root.character._y);
if ((dx < 20) && (dy < 25)) {
_root.character.health = _root.character.health - 1;
chance = random(2) + 1;
if (chance == 1) {
_root.character.gotoAndStop(11);
} else {
_root.character.gotoAndStop(12);
}
_root.character.hurt = true;
}
}
if (hit == true) {
if (_root.item[tar].isMetal == true) {
spark();
} else {
blood();
}
}
if (_root.bound.hitTest(_x + _root.item._x, _y + _root.item._y, true)) {
spark();
i = 1000;
}
i++;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "gauss") {
time++;
if (time > 5) {
_alpha = (_alpha - 5);
}
if (_alpha < 5) {
removeMovieClip("");
}
}
}
}
Instance of Symbol 1579 MovieClip "fla2" in Symbol 1735 MovieClip Frame 1
onClipEvent (load) {
time = 0;
_xscale = (random(50) + 70);
chance = random(2) + 1;
if (chance == 1) {
_yscale = (_yscale * -1);
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "fla2") {
if (time > 1) {
removeMovieClip("");
} else {
if (time > 0) {
_alpha = (_alpha - 50);
}
time = time + 1;
}
}
}
}
Instance of Symbol 1601 MovieClip "item" in Symbol 1735 MovieClip Frame 1
onClipEvent (load) {
if (_name != "item") {
if (_root.bound.hitTest(_x + _root.item._x, _y + _root.item._y, true)) {
removeMovieClip("");
}
bounce = 0;
if (rot == undefined) {
rot = 90;
if (_xscale == 100) {
r = random(20);
xa = (Math.sin(rot * (Math.PI/180)) * speed) - (random(8) + (random(10) / 10));
} else {
r = -random(20);
xa = -((Math.sin(rot * (Math.PI/180)) * speed) - (random(8) + (random(10) / 10)));
}
ya = ((Math.cos(rot * (Math.PI/180)) * speed) * -1) - (random(15) + 10);
dc = false;
} else {
xa = Math.sin(rot * (Math.PI/180)) * speed;
ya = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
r = random(40) - 20;
dc = true;
}
timer = 0;
collectWeapon = function () {
if (cap > -1) {
if (_root.arm.have[_currentframe] == 1) {
if (_root.arm.ammo[_root.arm.ammoType[_currentframe]] < 250) {
_root.ammoMes.time = 0;
_root.ammoMes.gotoAndStop(1);
_root.ammoMes._alpha = 100;
_root.arm.ammo[_root.arm.ammoType[_currentframe]] = _root.arm.ammo[_root.arm.ammoType[_currentframe]] + cap;
_root.ammoMes.mes = ((("Picked Up " + cap) + " Rounds of ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo";
if (_root.arm.ammo[_root.arm.ammoType[_currentframe]] > 250) {
_root.arm.ammo[_root.arm.ammoType[_currentframe]] = 250;
_root.ammoMes.mes = ((((("Picked Up " + cap) + " Rounds of ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo. ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo at Max Capacity.";
}
_root.sfx.gotoAndPlay(92);
removeMovieClip("");
}
} else if (_root.arm.ammo[_root.arm.ammoType[_currentframe]] > -1) {
if (_root.arm.ammo[_root.arm.ammoType[_currentframe]] < 250) {
_root.ammoMes.time = 0;
_root.ammoMes.gotoAndStop(1);
_root.ammoMes._alpha = 100;
_root.arm.ammo[_root.arm.ammoType[_currentframe]] = _root.arm.ammo[_root.arm.ammoType[_currentframe]] + cap;
_root.ammoMes.mes = ((("Picked Up " + cap) + " Rounds of ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo";
if (_root.arm.ammo[_root.arm.ammoType[_currentframe]] > 250) {
_root.arm.ammo[_root.arm.ammoType[_currentframe]] = 250;
_root.ammoMes.mes = ((((("Picked Up " + cap) + " Rounds of ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo. ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo at Max Capacity.";
}
_root.sfx.gotoAndPlay(92);
removeMovieClip("");
}
} else if (_root.arm.weps < 2) {
_root.arm.have[_currentframe] = 1;
_root.ammoMes.time = 0;
_root.ammoMes.gotoAndStop(1);
_root.ammoMes._alpha = 100;
_root.arm.ammo[_root.arm.ammoType[_currentframe]] = _root.arm.ammo[_root.arm.ammoType[_currentframe]] + (cap + 1);
_root.ammoMes.mes = ((((("Picked up " + _root.arm.name[_currentframe]) + " with ") + cap) + " Rounds of ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo";
if (_root.arm.ammo[_root.arm.ammoType[_currentframe]] > 250) {
_root.arm.ammo[_root.arm.ammoType[_currentframe]] = 250;
_root.ammoMes.mes = ((((((("Picked up " + _root.arm.name[_currentframe]) + " with ") + cap) + " Rounds of ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo. ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo at Max Capacity.";
}
_root.arm.gun = _currentframe;
_root.arm.gotoAndStop(_currentframe);
_root.arm._rotation = -90;
_root.arm.fire = false;
_root.wpn = _root.arm.name[_currentframe];
if (_root.arm._yscale == 100) {
_root.arm.wpn.hand1.gotoAndStop(1);
_root.arm.wpn.hand2.gotoAndStop(1);
} else {
_root.arm.wpn.hand1.gotoAndStop(2);
_root.arm.wpn.hand2.gotoAndStop(2);
}
_root.arm.weps = _root.arm.weps + 1;
if (_root.arm.weps > 2) {
_root.arm.weps = 2;
}
_root.sfx.gotoAndPlay(92);
_root.gameFun.haveCollected[_currentframe] = 1;
removeMovieClip("");
} else {
_root.swap.time = 0;
_root.swap._alpha = 100;
_root.swap.gotoAndStop(1);
_root.swap.i1.gotoAndStop(_currentframe);
_root.swap.i2.gotoAndStop(_root.arm.gun);
}
}
};
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "item") {
if (done != true) {
_x = (_x + xa);
_y = (_y + ya);
_rotation = (_rotation + (xa - r));
ya = ya + 2;
if (dc == true) {
if (collideOnce != true) {
n = 0;
while (n < _root.character.targets.length) {
tar = _root.character.targets[n];
if (_root.item[tar].health > 0) {
dx = Math.abs(_x - _root.item[tar]._x);
dy = Math.abs(_y - (_root.item[tar]._y - 10));
if ((dx < 20) && (dy < 25)) {
xa = xa * -0.7;
_x = (_x + xa);
if (_root.item[tar].fall == false) {
chance = random(2) + 1;
if (chance == 1) {
_root.item[tar].gotoAndStop(11);
} else {
_root.item[tar].gotoAndStop(12);
}
_root.item[tar].hurt = true;
}
_root.item[tar].health = _root.item[tar].health - 1;
_root.sfx.gotoAndPlay(98);
collideOnce = true;
}
}
n++;
}
}
}
if (_root.bound.hitTest(_x + _root.item._x, (_y + _root.item._y) + (_height / 4), true)) {
ya = ya * -0.5;
xa = xa * -0.3;
t = 0;
while (_root.bound.hitTest(_x + _root.item._x, ((_y + _root.item._y) + (_height / 4)) - 1, true)) {
_y = (_y - 1);
t++;
if (t > 50) {
removeMovieClip("");
}
}
bounce = bounce + 1;
if (bounce > 3) {
done = true;
this.cacheAsBitmap = true;
} else if (bounce == 1) {
_root.sfx.gotoAndPlay(98);
} else if ((bounce == 2) || (bounce == 3)) {
_root.sfx.gotoAndPlay(100);
}
}
if (_root.bound.hitTest((_x + 20) + _root.item._x, _y + _root.item._y, true) || (_root.bound.hitTest((_x - 20) + _root.item._x, _y + _root.item._y, true))) {
xa = xa * -0.5;
_x = (_x + xa);
}
if (_root.bound.hitTest(_x + _root.item._x, (_y + _root.item._y) - 10, true)) {
ya = 3;
}
}
timer++;
if (timer > 30) {
if (hitTest(_root.character)) {
collectWeapon();
}
}
if (timer > 300) {
removeMovieClip("");
} else if (timer > 290) {
_alpha = (_alpha - 10);
}
}
}
}
Instance of Symbol 1604 MovieClip "button" in Symbol 1735 MovieClip Frame 1
onClipEvent (load) {
if (_name != "button") {
health = 1;
_root.character.targets.push(_name);
this.cacheAsBitmap = true;
isMetal = true;
}
}
onClipEvent (enterFrame) {
if (_name != "button") {
if (health < 1) {
if (_root.lvObj.d1._currentframe == 1) {
o = 0;
while (o < _root.character.targets.length) {
if (_name == _root.character.targets[o]) {
_root.character.targets.splice(o, 1);
}
o++;
}
gotoAndStop (2);
_root.lvObj.d1.play();
_root.bound.d1.play();
_root.lvObj.d2.play();
_root.bound.d2.play();
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "New Area Open";
}
}
}
}
Instance of Symbol 1601 MovieClip "staticItem" in Symbol 1735 MovieClip Frame 1
onClipEvent (load) {
if (_name != "item") {
this.cacheAsBitmap = true;
collectWeapon = function () {
if (cap > -1) {
if (_root.arm.have[_currentframe] == 1) {
if (_root.arm.ammo[_root.arm.ammoType[_currentframe]] < 250) {
_root.ammoMes.time = 0;
_root.ammoMes.gotoAndStop(1);
_root.ammoMes._alpha = 100;
_root.arm.ammo[_root.arm.ammoType[_currentframe]] = _root.arm.ammo[_root.arm.ammoType[_currentframe]] + cap;
_root.ammoMes.mes = ((("Picked Up " + cap) + " Rounds of ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo";
if (_root.arm.ammo[_root.arm.ammoType[_currentframe]] > 250) {
_root.arm.ammo[_root.arm.ammoType[_currentframe]] = 250;
_root.ammoMes.mes = ((((("Picked Up " + cap) + " Rounds of ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo. ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo at Max Capacity.";
}
_root.sfx.gotoAndPlay(92);
removeMovieClip("");
}
} else if (_root.arm.ammo[_root.arm.ammoType[_currentframe]] > -1) {
if (_root.arm.ammo[_root.arm.ammoType[_currentframe]] < 250) {
_root.ammoMes.time = 0;
_root.ammoMes.gotoAndStop(1);
_root.ammoMes._alpha = 100;
_root.arm.ammo[_root.arm.ammoType[_currentframe]] = _root.arm.ammo[_root.arm.ammoType[_currentframe]] + cap;
_root.ammoMes.mes = ((("Picked Up " + cap) + " Rounds of ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo";
if (_root.arm.ammo[_root.arm.ammoType[_currentframe]] > 250) {
_root.arm.ammo[_root.arm.ammoType[_currentframe]] = 250;
_root.ammoMes.mes = ((((("Picked Up " + cap) + " Rounds of ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo. ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo at Max Capacity.";
}
_root.sfx.gotoAndPlay(92);
removeMovieClip("");
}
} else if (_root.arm.weps < 2) {
_root.arm.have[_currentframe] = 1;
_root.ammoMes.time = 0;
_root.ammoMes.gotoAndStop(1);
_root.ammoMes._alpha = 100;
_root.arm.ammo[_root.arm.ammoType[_currentframe]] = _root.arm.ammo[_root.arm.ammoType[_currentframe]] + (cap + 1);
_root.ammoMes.mes = ((((("Picked up " + _root.arm.name[_currentframe]) + " with ") + cap) + " Rounds of ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo";
if (_root.arm.ammo[_root.arm.ammoType[_currentframe]] > 250) {
_root.arm.ammo[_root.arm.ammoType[_currentframe]] = 250;
_root.ammoMes.mes = ((((((("Picked up " + _root.arm.name[_currentframe]) + " with ") + cap) + " Rounds of ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo. ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo at Max Capacity.";
}
_root.arm.gun = _currentframe;
_root.arm.gotoAndStop(_currentframe);
_root.arm._rotation = -90;
_root.arm.fire = false;
_root.wpn = _root.arm.name[_currentframe];
if (_root.arm._yscale == 100) {
_root.arm.wpn.hand1.gotoAndStop(1);
_root.arm.wpn.hand2.gotoAndStop(1);
} else {
_root.arm.wpn.hand1.gotoAndStop(2);
_root.arm.wpn.hand2.gotoAndStop(2);
}
_root.arm.weps = _root.arm.weps + 1;
if (_root.arm.weps > 2) {
_root.arm.weps = 2;
}
_root.sfx.gotoAndPlay(92);
_root.gameFun.haveCollected[_currentframe] = 1;
removeMovieClip("");
} else {
_root.swap.time = 0;
_root.swap._alpha = 100;
_root.swap.gotoAndStop(1);
_root.swap.i1.gotoAndStop(_currentframe);
_root.swap.i2.gotoAndStop(_root.arm.gun);
}
}
};
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "item") {
if (done != true) {
if (dc == true) {
if (collideOnce != true) {
n = 0;
while (n < _root.character.targets.length) {
tar = _root.character.targets[n];
if (_root.item[tar].health > 0) {
dx = Math.abs(_x - _root.item[tar]._x);
dy = Math.abs(_y - (_root.item[tar]._y - 10));
if ((dx < 20) && (dy < 25)) {
xa = xa * -0.7;
_x = (_x + xa);
if (_root.item[tar].fall == false) {
chance = random(2) + 1;
if (chance == 1) {
_root.item[tar].gotoAndStop(11);
} else {
_root.item[tar].gotoAndStop(12);
}
_root.item[tar].hurt = true;
}
_root.item[tar].health = _root.item[tar].health - 1;
_root.sfx.gotoAndPlay(98);
collideOnce = true;
}
}
n++;
}
}
}
if (hitTest(_root.character)) {
collectWeapon();
}
}
}
}
}
Instance of Symbol 1609 MovieClip "zeus" in Symbol 1735 MovieClip Frame 1
onClipEvent (load) {
if (_name != "zeus") {
createGun = function () {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _root.item[ar]._x + _root.item[ar].wpn._x;
_root.item["item" + i]._y = _root.item[ar]._y + _root.item[ar].wpn._y;
_root.item["item" + i].cap = _root.arm.capacity[30];
_root.item["item" + i].gotoAndStop(30);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
};
health = 350;
isMetal = false;
hurt = false;
boundBox = 50;
boundHeight = 75;
gotoAndStop (1);
gravity = 0;
xVel = 0;
moveSpeed = 2;
d = 500;
_root.character.targets.push(_name);
_root.item[ar]._x = _x;
_root.item[ar]._y = _y;
_root.item[ar].gun = 31;
_root.item[ar].gotoAndStop(31);
while (_root.bound.hitTest(_x + _root.item._x, ((_y + boundHeight) - 1) + _root.item._y, true)) {
_y = (_y - 1);
}
} else {
stop();
char.stop();
this.cacheAsBitmap = true;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "zeus") {
char.play();
if (health > 0) {
myRadians = Math.atan2(_root.character._y - (_y + _root.item._y), _root.character._x - (_x + _root.item._x));
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
_root.item[ar]._x = _x;
_root.item[ar]._y = _y;
_root.item[ar]._rotation = headRot;
if (hurt == false) {
shootChance = random(50) + 1;
if (shootChance == 1) {
_root.item[ar].shoot();
}
if (_root.character._x > (_x + _root.item._x)) {
_xscale = -100;
_root.item[ar].wpn.hand1.gotoAndStop(1);
_root.item[ar].wpn.hand2.gotoAndStop(1);
_root.item[ar]._yscale = 100;
if (_root.item[ar].getDepth() < getDepth()) {
swapDepths(_root.item[ar]);
}
if ((_root.character._x - (_x + _root.item._x)) > (d / 2)) {
xVel = moveSpeed * 3;
gotoAndStop (2);
} else {
xVel = 0;
gotoAndStop (1);
}
} else {
_xscale = 100;
_root.item[ar].wpn.hand1.gotoAndStop(2);
_root.item[ar].wpn.hand2.gotoAndStop(2);
_root.item[ar]._yscale = -100;
if (_root.item[ar].getDepth() > getDepth()) {
swapDepths(_root.item[ar]);
}
if ((_root.character._x - (_x + _root.item._x)) < (-(d / 2))) {
xVel = (-moveSpeed) * 3;
gotoAndStop (2);
} else {
xVel = 0;
gotoAndStop (1);
}
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest((_x + boundBox) + _root.item._x, _y + _root.item._y, true)) && (!_root.bound.hitTest((_x + boundBox) + _root.item._x, (_y + 20) + _root.item._y, true))) {
_x = (_x + 1);
} else {
break;
}
} else if ((!_root.bound.hitTest((_x - boundBox) + _root.item._x, _y + _root.item._y, true)) && (!_root.bound.hitTest((_x - boundBox) + _root.item._x, (_y + 20) + _root.item._y, true))) {
_x = (_x - 1);
} else {
break;
}
n++;
}
}
} else {
createGun();
_root.item[ar].removeMovieClip("");
_root.character.kill = _root.character.kill + _root.multiplier;
o = 0;
while (o < _root.character.targets.length) {
if (_name == _root.character.targets[o]) {
_root.character.targets.splice(o, 1);
}
o++;
}
removeMovieClip("");
}
}
} else {
char.stop();
}
}
Instance of Symbol 1645 MovieClip "bean" in Symbol 1735 MovieClip Frame 1
onClipEvent (load) {
createGun = function () {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _root.item[ar]._x + _root.item[ar].wpn._x;
_root.item["item" + i]._y = _root.item[ar]._y + _root.item[ar].wpn._y;
_root.item["item" + i].cap = _root.arm.capacity[_root.item[ar]._currentframe];
_root.item["item" + i].gotoAndStop(_root.item[ar].gun);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x + 10;
_root.item["item" + i]._y = _y - 20;
_root.item["item" + i].gotoAndStop(9);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - 10;
_root.item["item" + i]._y = _y - 20;
_root.item["item" + i].gotoAndStop(9);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
if (dieOnce != true) {
if (_root.item[ar]._currentframe == 34) {
createGun();
}
_root.character.kill = _root.character.kill + _root.multiplier;
o = 0;
while (o < _root.character.targets.length) {
if (_name == _root.character.targets[o]) {
_root.character.targets.splice(o, 1);
}
o++;
}
dieOnce = true;
}
_root.item[ar].removeMovieClip("");
removeMovieClip("");
};
if (_name != "bean") {
isMetal = false;
if (_root.hardMode == true) {
health = 10;
speed = random(6) + 6;
} else {
health = 5;
speed = random(10) + 1;
}
gravity = 5;
dist = random(50) + 1;
active = true;
jump = false;
gotoAndStop (1);
armTime = 0;
jumpHeight = random(15) + 10;
_root.character.targets.push(_name);
_root.item[ar].dontShoot = true;
} else {
gotoAndStop (5);
this.cacheAsBitmap = true;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "bean") {
armTime++;
if (armTime == 3) {
myRadians = Math.atan2(_root.character._y - (_y + _root.item._y), _root.character._x - (_x + _root.item._x));
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
armTime = 0;
}
_root.item[ar]._x = _x;
_root.item[ar]._y = _y;
_root.item[ar]._rotation = headRot;
if (health > 0) {
if (_root.character._x > (_x + _root.item._x)) {
_xscale = -100;
_root.item[ar].wpn.hand1.gotoAndStop(1);
_root.item[ar].wpn.hand2.gotoAndStop(1);
_root.item[ar]._yscale = 100;
if (_root.item[ar].getDepth() < getDepth()) {
swapDepths(_root.item[ar]);
}
} else {
_xscale = 100;
_root.item[ar].wpn.hand1.gotoAndStop(2);
_root.item[ar].wpn.hand2.gotoAndStop(2);
_root.item[ar]._yscale = -100;
if (_root.item[ar].getDepth() > getDepth()) {
swapDepths(_root.item[ar]);
}
}
if ((_x + _root.item._x) > (_root.character._x + dist)) {
xVel = -speed;
if (fall == false) {
gotoAndStop (2);
}
} else if ((_x + _root.item._x) < (_root.character._x - dist)) {
xVel = speed;
if (fall == false) {
gotoAndStop (2);
}
} else {
if (fall == false) {
gotoAndStop (1);
}
xVel = 0;
}
if (fall == true) {
gravity = gravity + 2;
if (dJump == false) {
if ((_y + _root.item._y) > (_root.character._y + 50)) {
if (gravity > 0) {
dJump = true;
gravity = -(random(jumpHeight) + 1);
}
}
}
gotoAndStop (3);
}
jumpingChance = random(40) + 1;
if (jumpingChance == 1) {
if (fall != true) {
fall = true;
gravity = -jumpHeight;
} else if ((gravity > 0) && (dJump == false)) {
dJump = true;
gravity = -jumpHeight;
}
}
if (!_root.bound.hitTest(_x + _root.item._x, (_y + 21) + _root.item._y, true)) {
if (fall == false) {
gravity = -(random(jumpHeight) + 1);
}
fall = true;
} else {
fall = false;
dJump = false;
while (_root.bound.hitTest(_x + _root.item._x, (_y + 19) + _root.item._y, true)) {
_y = (_y - 1);
}
gravity = 0;
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if (!_root.bound.hitTest((_x + boundBox) + _root.item._x, _y + _root.item._y, true)) {
_x = (_x + 1);
} else {
if (fall != true) {
fall = true;
gravity = -jumpHeight;
} else if ((gravity > 0) && (dJump == false)) {
dJump = true;
gravity = -jumpHeight;
}
break;
}
} else if (!_root.bound.hitTest((_x - boundBox) + _root.item._x, (_y + _root.item._y) - 5, true)) {
_x = (_x - 1);
} else {
if (fall != true) {
fall = true;
gravity = -jumpHeight;
} else if ((gravity > 0) && (dJump == false)) {
dJump = true;
gravity = -jumpHeight;
}
break;
}
n++;
}
n = 0;
while (n < Math.abs(gravity)) {
if (gravity < 0) {
_y = (_y - 1);
}
if (gravity > 0) {
_y = (_y + 1);
}
n++;
}
} else {
gib();
}
}
}
}
Instance of Symbol 949 MovieClip "beanBullet" in Symbol 1735 MovieClip Frame 1
onClipEvent (load) {
splode = function () {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.explode2, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
n = 0;
while (n < _root.character.targets.length) {
tar = _root.character.targets[n];
if (_root.item[tar].health > 0) {
dx = (_x - _root.item[tar]._x) * (_x - _root.item[tar]._x);
dy = (_y - (_root.item[tar]._y - 10)) * (_y - (_root.item[tar]._y - 10));
splodeDist = Math.abs(Math.sqrt(dx + dy));
if (splodeDist < 100) {
_root.item[tar].health = _root.item[tar].health - ((5 - Math.round(splodeDist / 20)) / 2);
chance = random(2) + 1;
if (chance == 1) {
_root.item[tar].gotoAndStop(11);
} else {
_root.item[tar].gotoAndStop(12);
}
_root.item[tar].hurt = true;
}
}
n++;
}
dx = ((_x + _root.item._x) - _root.character._x) * ((_x + _root.item._x) - _root.character._x);
dy = ((_y + _root.item._y) - _root.character._y) * ((_y + _root.item._y) - _root.character._y);
splodeDist = Math.abs(Math.sqrt(dx + dy));
if (splodeDist < 100) {
_root.character.health = _root.character.health - (5 - Math.round(splodeDist / 20));
chance = random(2) + 1;
if (chance == 1) {
_root.character.gotoAndStop(11);
} else {
_root.character.gotoAndStop(12);
}
_root.character.hurt = true;
}
removeMovieClip("");
};
bounce = random(1);
time = 0;
rot = _rotation - 90;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
timer = 0;
r = random(20) + 10;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "beanBullet") {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + r);
y = y + 1;
if (enemyBullet != true) {
n = 0;
while (n < _root.character.targets.length) {
tar = _root.character.targets[n];
if (_root.item[tar].health > 0) {
dx = Math.abs(_x - _root.item[tar]._x);
dy = Math.abs(_y - (_root.item[tar]._y - 10));
if ((dx < 20) && (dy < 25)) {
if (_root.item[tar].fall == false) {
chance = random(2) + 1;
if (chance == 1) {
_root.item[tar].gotoAndStop(11);
} else {
_root.item[tar].gotoAndStop(12);
}
_root.item[tar].hurt = true;
}
splode();
}
}
n++;
}
} else {
dx = ((_x + _root.item._x) - _root.character._x) * ((_x + _root.item._x) - _root.character._x);
dy = ((_y + _root.item._y) - _root.character._y) * ((_y + _root.item._y) - _root.character._y);
if ((dx < 20) && (dy < 25)) {
_root.character.health = _root.character.health - 1;
chance = random(2) + 1;
if (chance == 1) {
_root.character.gotoAndStop(11);
} else {
_root.character.gotoAndStop(12);
}
_root.character.hurt = true;
splode();
}
}
if (_root.bound.hitTest(_x + _root.item._x, _y + _root.item._y, true)) {
y = y * -0.5;
x = x * -0.3;
t = 0;
bounce = bounce + 1;
if (bounce > 1) {
splode();
}
}
if (_root.bound.hitTest((_x + 15) + _root.item._x, _y + _root.item._y, true) || (_root.bound.hitTest((_x - 15) + _root.item._x, _y + _root.item._y, true))) {
x = x * -0.5;
_x = (_x + x);
}
if (_root.bound.hitTest(_x + _root.item._x, (_y + _root.item._y) - 15, true)) {
y = 3;
}
if (timer > 90) {
splode();
}
}
}
}
Instance of Symbol 947 MovieClip "explode2" in Symbol 1735 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_name != "explode2") {
_xscale = (_xscale + 5);
_yscale = (_yscale + 5);
_alpha = (_alpha - 10);
_rotation = (_rotation + 1);
if (_alpha < 1) {
removeMovieClip("");
}
}
}
Instance of Symbol 1733 MovieClip "zombie" in Symbol 1735 MovieClip Frame 1
onClipEvent (load) {
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y - 25;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y - 30;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - 10;
_root.item["item" + i]._y = _y - 5;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - 15;
_root.item["item" + i]._y = _y + 5;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x + 15;
_root.item["item" + i]._y = _y - 5;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
removeMovieClip("");
};
if (_name != "zombie") {
_root.character.targets.push(_name);
isMetal = false;
zombie = random(3) + 1;
if (zombie == 1) {
fraPlus = 0;
} else if (zombie == 2) {
fraPlus = 7;
} else if (zombie == 3) {
fraPlus = 14;
}
if (_root.hardMode == true) {
speed = (random(4) + 2) + (random(10) / 10);
health = 25;
} else {
speed = (random(2) + 1) + (random(10) / 10);
health = 15;
}
dist = random(50) + 25;
fall = false;
land = false;
headHit = false;
bodyHit = false;
gotoAndStop(1 + fraPlus);
gravity = 1;
} else {
gotoAndStop (22);
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "zombie") {
char.play();
if (health > 0) {
if (((((((_root.item._x + _x) > (_root.character._x + dist)) && (fall == false)) && (land == false)) && (headHit == false)) && (bodyHit == false)) && (!((_currentframe == 1) && (char._currentframe > 1)))) {
if (!_root.bound.hitTest((_root.item._x + _x) - 20, _root.item._y + _y, true)) {
_x = (_x - speed);
}
gotoAndStop(2 + fraPlus);
_xscale = -100;
} else if (((((((_root.item._x + _x) < (_root.character._x - dist)) && (fall == false)) && (land == false)) && (headHit == false)) && (bodyHit == false)) && (!((_currentframe == 1) && (char._currentframe > 1)))) {
if (!_root.bound.hitTest((_root.item._x + _x) + 20, _root.item._y + _y, true)) {
_x = (_x + speed);
}
_xscale = 100;
gotoAndStop(2 + fraPlus);
} else if (fall == true) {
if (_xscale == 100) {
if (!_root.bound.hitTest((_root.item._x + _x) + 20, _root.item._y + _y, true)) {
_x = (_x + speed);
}
} else if (!_root.bound.hitTest((_root.item._x + _x) - 20, _root.item._y + _y, true)) {
_x = (_x - speed);
}
gotoAndStop(3 + fraPlus);
headHit = false;
bodyHit = false;
} else if (land == true) {
gotoAndStop(4 + fraPlus);
headHit = false;
bodyHit = false;
} else if (headHit == true) {
gotoAndStop(5 + fraPlus);
bodyHit = false;
} else if (bodyHit == true) {
gotoAndStop(6 + fraPlus);
headHit = false;
} else {
gotoAndStop(1 + fraPlus);
}
fallChance = random(300) + 1;
if (fallChance == 1) {
fall = true;
}
if (!_root.bound.hitTest(_root.item._x + _x, (_root.item._y + _y) + 28, true)) {
_y = (_y + gravity);
gravity = gravity + 2;
fall = true;
} else {
if (fall == true) {
land = true;
}
fall = false;
gravity = 0;
}
while (_root.bound.hitTest(_root.item._x + _x, (_root.item._y + _y) + 25, true)) {
_y = (_y - 1);
}
} else {
_root.character.kill = _root.character.kill + _root.multiplier;
o = 0;
while (o < _root.character.targets.length) {
if (_name == _root.character.targets[o]) {
_root.character.targets.splice(o, 1);
}
o++;
}
gib();
}
}
}
if (_root.pause == true) {
char.stop();
}
}
Instance of Symbol 1734 MovieClip "nukeBullet" in Symbol 1735 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
if (_name != "nukeBullet") {
swapDepths(10000000000);
explode = function () {
_root.sfx2.vol = _root.sfx.maxVol;
_root.sfx2.gotoAndPlay(2);
_root.sfx.vol = 0;
_root.sfx.nuke = true;
_root.music.vol = 0;
a = 10;
while (a > -1) {
tar = _root.character.targets[a];
_root.item[tar].health = _root.item[tar].health - 100;
_root.item[tar].nukeX = _x;
_root.item[tar].nukeY = _y;
_root.item[tar].nukeFun();
trace(a);
a--;
}
_x = (275 - _root.item._x);
_y = (200 - _root.item._y);
play();
_rotation = 0;
};
rot = _rotation - 90;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
i = 0;
while (i < 50) {
_x = (_x + x);
_y = (_y + y);
l._width = i * 15;
hit = false;
n = 0;
while (n < _root.character.targets.length) {
tar = _root.character.targets[n];
dx = Math.abs(_x - _root.item[tar]._x);
dy = Math.abs(_y - (_root.item[tar]._y - 10));
if ((dx < 20) && (dy < 25)) {
hit = true;
explode();
n = 1000;
break;
}
n++;
}
if (_root.bound.hitTest(_x + _root.item._x, _y + _root.item._y, true)) {
explode();
n = 1000;
break;
}
i++;
}
}
}
onClipEvent (enterFrame) {
if (_name != "nukeBullet") {
_x = (275 - _root.item._x);
_y = (200 - _root.item._y);
}
}
Symbol 1751 MovieClip Frame 1
stop();
Symbol 1803 MovieClip Frame 1
stop();
Symbol 1803 MovieClip Frame 2
_root.sfx.gotoAndPlay(102);
Symbol 1803 MovieClip Frame 26
stop();
Instance of Symbol 1425 MovieClip "t2" in Symbol 1829 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_parent.d1._currentframe != 1) {
time++;
}
if (_root.character.targets.length < 3) {
if (time > 90) {
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
_root.sfx.gotoAndPlay(80);
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Instance of Symbol 1425 MovieClip "t1" in Symbol 1829 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
time++;
if ((_root.character.targets.length < 3) && (enemiesSp < 4)) {
if (time > 90) {
if (enemiesSp == 3) {
_parent.d1.play();
_root.bound.d1.play();
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "New Area Open";
}
_root.sfx.gotoAndPlay(80);
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Instance of Symbol 1425 MovieClip "t3" in Symbol 1829 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_parent.d1._currentframe != 1) {
time++;
}
if (_root.character.targets.length < 6) {
if (time > 90) {
if (enemiesSp == 20) {
_parent.d2.play();
_root.bound.d2.play();
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "Exit Open";
}
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
_root.sfx.gotoAndPlay(80);
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Instance of Symbol 1783 MovieClip "t4" in Symbol 1829 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.character)) {
_root.gameFun.saveGame();
_root.gotoAndStop(14);
}
if (_parent.d2._currentframe != 1) {
time++;
}
if (_root.character.targets.length < 6) {
if (time > 60) {
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
_root.sfx.gotoAndPlay(80);
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Instance of Symbol 1425 MovieClip "t1" in Symbol 1836 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
time++;
if (_root.character.targets.length < 3) {
if (time > 90) {
if (enemiesSp == 5) {
_parent.d1.play();
_root.bound.d1.play();
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "New Area Open";
}
_root.sfx.gotoAndPlay(80);
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Instance of Symbol 1425 MovieClip "t2" in Symbol 1836 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_parent.d1._currentframe != 1) {
time++;
}
if (_root.character.targets.length < 3) {
if (time > 90) {
if (enemiesSp == 10) {
_parent.d2.play();
_root.bound.d2.play();
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "New Area Open";
}
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
_root.sfx.gotoAndPlay(80);
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Instance of Symbol 1425 MovieClip "t3" in Symbol 1836 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_parent.d2._currentframe != 1) {
time++;
}
if (_root.character.targets.length < 3) {
if (time > 90) {
if (enemiesSp == 15) {
_parent.d3.play();
_root.bound.d3.play();
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "New Area Open";
}
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
_root.sfx.gotoAndPlay(80);
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Instance of Symbol 1783 MovieClip "t4" in Symbol 1836 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.character)) {
_root.gameFun.saveGame();
_root.gotoAndStop(16);
}
if (_parent.d3._currentframe != 1) {
time++;
}
if (_root.character.targets.length < 6) {
if (time > 60) {
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
_root.sfx.gotoAndPlay(80);
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Symbol 1848 MovieClip Frame 125
if ((time < timeMax) || (_root.character.targets.length > 0)) {
gotoAndPlay (91);
} else {
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "Exit Open";
}
Symbol 1848 MovieClip Frame 176
stop();
Instance of Symbol 1803 MovieClip "d1" in Symbol 1848 MovieClip Frame 176
onClipEvent (load) {
_root.bound.d1.play();
}
onClipEvent (enterFrame) {
if (_currentframe == 1) {
play();
}
}
Instance of Symbol 1851 MovieClip "t1" in Symbol 1852 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
time++;
if ((_root.character.targets.length < 4) && (_root.lvBG.time < _root.lvBG.timeMax)) {
if (time > 90) {
_root.sfx.gotoAndPlay(80);
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Instance of Symbol 1783 MovieClip "t4" in Symbol 1852 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.gameFun.saveGame();
_root.gotoAndStop(18);
}
}
Instance of Symbol 1851 MovieClip "t2" in Symbol 1871 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_parent.d1._currentframe != 1) {
time++;
}
if (_root.character.targets.length < 4) {
if (time > 60) {
if (enemiesSp == 20) {
_parent.d2.play();
_root.bound.d2.play();
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "New Area Open";
}
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
_root.sfx.gotoAndPlay(80);
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Instance of Symbol 1851 MovieClip "t3" in Symbol 1871 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_parent.d2._currentframe != 1) {
time++;
}
if (_root.character.targets.length < 5) {
if (time > 60) {
if (enemiesSp == 15) {
_parent.d3.play();
_root.bound.d3.play();
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "Exit Open";
}
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
_root.sfx.gotoAndPlay(80);
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Instance of Symbol 1851 MovieClip "t1" in Symbol 1871 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
time++;
if ((_root.character.targets.length < 3) && (enemiesSp < 6)) {
if (time > 90) {
if (enemiesSp == 5) {
_parent.d1.play();
_root.bound.d1.play();
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "New Area Open";
}
_root.sfx.gotoAndPlay(80);
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Instance of Symbol 1783 MovieClip "t4" in Symbol 1871 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.character)) {
_root.gameFun.saveGame();
_root.gotoAndStop(20);
}
if (_parent.d3._currentframe != 1) {
time++;
}
if (_root.character.targets.length < 6) {
if (time > 60) {
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
_root.sfx.gotoAndPlay(80);
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Instance of Symbol 1803 MovieClip "d3" in Symbol 1903 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
if (_parent.card.collected == false) {
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "Locked: Keycard Needed for Access.";
} else if (_currentframe == 1) {
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "Keycard Accepted";
play();
_root.bound.d3.play();
}
}
}
Instance of Symbol 1604 MovieClip in Symbol 1903 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.button, "btn" + i, i);
_root.item["btn" + i]._x = _x;
_root.item["btn" + i]._y = _y;
_root.item["btn" + i]._rotation = _rotation;
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1902 MovieClip "card" in Symbol 1903 MovieClip Frame 1
onClipEvent (load) {
collected = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.character) && (collected == false)) {
_root.sfx.gotoAndPlay(104);
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "Keycard Collected";
collected = true;
_visible = false;
stop();
}
}
Instance of Symbol 1783 MovieClip "t4" in Symbol 1903 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.gameFun.saveGame();
_root.gotoAndStop(22);
}
}
Instance of Symbol 1601 MovieClip in Symbol 1903 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(7);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 1903 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(8);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 1903 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 20;
_root.item["btn" + i].gotoAndStop(10);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1851 MovieClip "t3" in Symbol 1909 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
time++;
if (_root.character.targets.length < 4) {
if (time > 30) {
if (enemiesSp == 25) {
_parent.d1.play();
_root.bound.d1.play();
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "Exit Open";
}
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
_root.sfx.gotoAndPlay(80);
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Instance of Symbol 1783 MovieClip "t4" in Symbol 1909 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.character)) {
_root.gameFun.saveGame();
_root.gotoAndStop(24);
}
if (_parent.d1._currentframe != 1) {
time++;
}
if (_root.character.targets.length < 4) {
if (time > 60) {
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
_root.sfx.gotoAndPlay(80);
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Instance of Symbol 1851 MovieClip "t1" in Symbol 1913 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
time++;
if ((_root.character.targets.length < 4) && (_root.lvBG.time < _root.lvBG.timeMax)) {
if (time > 90) {
_root.sfx.gotoAndPlay(80);
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Instance of Symbol 1783 MovieClip "t4" in Symbol 1913 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.gameFun.saveGame();
_root.gotoAndStop(26);
}
}
Instance of Symbol 1851 MovieClip "t2" in Symbol 1913 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
time++;
if ((_root.character.targets.length < 5) && (_root.lvBG.time < _root.lvBG.timeMax)) {
if (time > 90) {
_root.sfx.gotoAndPlay(80);
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Instance of Symbol 1783 MovieClip "t4" in Symbol 1967 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (doOnce != true) {
zz = 1;
while (zz < 4) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = ((_x + _parent._x) - ((zz * 100) + 800)) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
zz++;
}
doOnce = true;
}
if (hitTest(_root.character)) {
_root.gameFun.saveGame();
_root.gotoAndStop(28);
}
time++;
if (_root.character.targets.length < 4) {
if (time > 60) {
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
time = 0;
}
}
}
}
Instance of Symbol 1783 MovieClip "t1" in Symbol 1967 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
time++;
if (_root.character.targets.length < 4) {
if (time > 60) {
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
time = 0;
}
}
}
}
Instance of Symbol 1783 MovieClip "t4" in Symbol 1975 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.character)) {
_root.gameFun.saveGame();
_root.gotoAndStop(30);
}
time++;
if (_root.character.targets.length < 4) {
if (time > 60) {
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
time = 0;
}
}
}
}
Instance of Symbol 1783 MovieClip "t1" in Symbol 1975 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
time++;
if (_root.character.targets.length < 4) {
if (time > 60) {
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
time = 0;
}
}
}
}
Instance of Symbol 1783 MovieClip "t1" in Symbol 1983 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.character)) {
_root.gameFun.saveGame();
_root.gotoAndStop(31);
}
if (_parent.d1._currentframe != 1) {
time++;
}
if (_root.character.targets.length < 4) {
if (time > 60) {
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
time = 0;
}
}
}
}
Instance of Symbol 1851 MovieClip "t1" in Symbol 1983 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (doOnce != true) {
doOnce = true;
}
time++;
if (enemiesSp == 39) {
_parent.d1.play();
_root.bound.d1.play();
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "New Area Open";
}
if ((_root.character.targets.length < 4) && (enemiesSp < 40)) {
if (time > 30) {
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
_root.sfx.gotoAndPlay(80);
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Instance of Symbol 706 MovieClip in Symbol 2009 MovieClip Frame 1
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 703 MovieClip in Symbol 2009 MovieClip Frame 61
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 710 MovieClip in Symbol 2009 MovieClip Frame 121
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 709 MovieClip in Symbol 2009 MovieClip Frame 122
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 708 MovieClip in Symbol 2009 MovieClip Frame 123
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 710 MovieClip in Symbol 2009 MovieClip Frame 124
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 704 MovieClip in Symbol 2010 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(_random(_totalframes));
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 703 MovieClip in Symbol 2010 MovieClip Frame 91
onClipEvent (load) {
gotoAndPlay(_random(_totalframes));
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 706 MovieClip in Symbol 2010 MovieClip Frame 176
onClipEvent (load) {
gotoAndPlay(_random(_totalframes));
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 706 MovieClip in Symbol 2011 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(_random(_totalframes));
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 1569 MovieClip in Symbol 2011 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (5);
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
}
Instance of Symbol 706 MovieClip in Symbol 2011 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(_random(_totalframes));
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 1569 MovieClip in Symbol 2011 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (5);
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
}
Instance of Symbol 706 MovieClip in Symbol 2011 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(_random(_totalframes));
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 1569 MovieClip in Symbol 2011 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (5);
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
}
Instance of Symbol 706 MovieClip in Symbol 2011 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(_random(_totalframes));
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 1569 MovieClip in Symbol 2011 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (5);
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
}
Instance of Symbol 706 MovieClip in Symbol 2011 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(_random(_totalframes));
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 1569 MovieClip in Symbol 2011 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (5);
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
}
Instance of Symbol 706 MovieClip in Symbol 2011 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(_random(_totalframes));
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 1569 MovieClip in Symbol 2011 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (5);
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
}
Instance of Symbol 706 MovieClip in Symbol 2011 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(_random(_totalframes));
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 1569 MovieClip in Symbol 2011 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (5);
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
}
Instance of Symbol 703 MovieClip in Symbol 2011 MovieClip Frame 50
onClipEvent (load) {
gotoAndPlay(_random(_totalframes));
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 703 MovieClip in Symbol 2011 MovieClip Frame 56
onClipEvent (load) {
gotoAndPlay(_random(_totalframes));
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 703 MovieClip in Symbol 2011 MovieClip Frame 56
onClipEvent (load) {
gotoAndPlay(_random(_totalframes));
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 703 MovieClip in Symbol 2011 MovieClip Frame 59
onClipEvent (load) {
gotoAndPlay(_random(_totalframes));
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 703 MovieClip in Symbol 2011 MovieClip Frame 64
onClipEvent (load) {
gotoAndPlay(_random(_totalframes));
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 703 MovieClip in Symbol 2011 MovieClip Frame 66
onClipEvent (load) {
gotoAndPlay(_random(_totalframes));
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 2010 MovieClip in Symbol 2011 MovieClip Frame 70
onClipEvent (load) {
head = 37;
body = 25;
face = 6;
foot = 13;
}
Instance of Symbol 1569 MovieClip in Symbol 2011 MovieClip Frame 70
onClipEvent (load) {
gotoAndStop (19);
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
}
Instance of Symbol 703 MovieClip in Symbol 2011 MovieClip Frame 79
onClipEvent (load) {
gotoAndPlay(_random(_totalframes));
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 2010 MovieClip in Symbol 2011 MovieClip Frame 161
onClipEvent (load) {
head = 37;
body = 25;
face = 6;
foot = 13;
gotoAndStop (91);
}
Symbol 2011 MovieClip Frame 167
stop();
Instance of Symbol 2010 MovieClip in Symbol 2011 MovieClip Frame 168
onClipEvent (load) {
head = 37;
body = 25;
face = 6;
foot = 13;
gotoAndStop (176);
}
Instance of Symbol 1569 MovieClip in Symbol 2011 MovieClip Frame 168
onClipEvent (load) {
gotoAndStop (19);
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
Instance of Symbol 1547 MovieClip in Symbol 2011 MovieClip Frame 171
onClipEvent (load) {
time = 0;
_xscale = (random(50) + 70);
chance = random(2) + 1;
if (chance == 1) {
_yscale = (_yscale * -1);
}
_root.sfx.gotoAndPlay(14);
}
onClipEvent (enterFrame) {
if (time > 1) {
removeMovieClip("");
} else {
if (time > 0) {
_alpha = (_alpha - 50);
}
time = time + 1;
}
}
Instance of Symbol 1547 MovieClip in Symbol 2011 MovieClip Frame 175
onClipEvent (load) {
time = 0;
_xscale = (random(50) + 70);
chance = random(2) + 1;
if (chance == 1) {
_yscale = (_yscale * -1);
}
_root.sfx.gotoAndPlay(14);
}
onClipEvent (enterFrame) {
if (time > 1) {
removeMovieClip("");
} else {
if (time > 0) {
_alpha = (_alpha - 50);
}
time = time + 1;
}
}
Instance of Symbol 1547 MovieClip in Symbol 2011 MovieClip Frame 179
onClipEvent (load) {
time = 0;
_xscale = (random(50) + 70);
chance = random(2) + 1;
if (chance == 1) {
_yscale = (_yscale * -1);
}
_root.sfx.gotoAndPlay(14);
}
onClipEvent (enterFrame) {
if (time > 1) {
removeMovieClip("");
} else {
if (time > 0) {
_alpha = (_alpha - 50);
}
time = time + 1;
}
}
Instance of Symbol 1547 MovieClip in Symbol 2011 MovieClip Frame 193
onClipEvent (load) {
time = 0;
_xscale = (random(50) + 70);
chance = random(2) + 1;
if (chance == 1) {
_yscale = (_yscale * -1);
}
_root.sfx.gotoAndPlay(14);
}
onClipEvent (enterFrame) {
if (time > 1) {
removeMovieClip("");
} else {
if (time > 0) {
_alpha = (_alpha - 50);
}
time = time + 1;
}
}
Instance of Symbol 1547 MovieClip in Symbol 2011 MovieClip Frame 211
onClipEvent (load) {
time = 0;
_xscale = (random(50) + 70);
chance = random(2) + 1;
if (chance == 1) {
_yscale = (_yscale * -1);
}
_root.sfx.gotoAndPlay(14);
}
onClipEvent (enterFrame) {
if (time > 1) {
removeMovieClip("");
} else {
if (time > 0) {
_alpha = (_alpha - 50);
}
time = time + 1;
}
}
Instance of Symbol 1547 MovieClip in Symbol 2011 MovieClip Frame 215
onClipEvent (load) {
time = 0;
_xscale = (random(50) + 70);
chance = random(2) + 1;
if (chance == 1) {
_yscale = (_yscale * -1);
}
_root.sfx.gotoAndPlay(14);
}
onClipEvent (enterFrame) {
if (time > 1) {
removeMovieClip("");
} else {
if (time > 0) {
_alpha = (_alpha - 50);
}
time = time + 1;
}
}
Instance of Symbol 1547 MovieClip in Symbol 2011 MovieClip Frame 219
onClipEvent (load) {
time = 0;
_xscale = (random(50) + 70);
chance = random(2) + 1;
if (chance == 1) {
_yscale = (_yscale * -1);
}
_root.sfx.gotoAndPlay(14);
}
onClipEvent (enterFrame) {
if (time > 1) {
removeMovieClip("");
} else {
if (time > 0) {
_alpha = (_alpha - 50);
}
time = time + 1;
}
}
Instance of Symbol 1547 MovieClip in Symbol 2011 MovieClip Frame 223
onClipEvent (load) {
time = 0;
_xscale = (random(50) + 70);
chance = random(2) + 1;
if (chance == 1) {
_yscale = (_yscale * -1);
}
_root.sfx.gotoAndPlay(14);
}
onClipEvent (enterFrame) {
if (time > 1) {
removeMovieClip("");
} else {
if (time > 0) {
_alpha = (_alpha - 50);
}
time = time + 1;
}
}
Symbol 2011 MovieClip Frame 227
stop();
Instance of Symbol 760 MovieClip in Symbol 2042 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 2034 MovieClip in Symbol 2053 MovieClip Frame 25
onClipEvent (enterFrame) {
_rotation = (_rotation + 3);
}
Symbol 2053 MovieClip Frame 29
stop();
Symbol 2058 MovieClip Frame 1
stop();
Instance of Symbol 1992 MovieClip in Symbol 2059 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - 5);
if (_x < -400) {
_x = 400;
}
}
Instance of Symbol 1992 MovieClip in Symbol 2059 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - 5);
if (_x < -400) {
_x = 400;
}
}
Instance of Symbol 1996 MovieClip "bri1" in Symbol 2059 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - 10);
if (_x < -581.1) {
_x = (_parent.bri2._x + 548.6);
}
}
Instance of Symbol 1996 MovieClip "bri2" in Symbol 2059 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - 10);
if (_x < -581.1) {
_x = (_parent.bri1._x + 548.6);
}
}
Instance of Symbol 2058 MovieClip "bul1" in Symbol 2059 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
_x = (_x - 30);
if (_x < -620) {
_x = (_parent.bul4._x + 700);
}
}
Instance of Symbol 2058 MovieClip "bul2" in Symbol 2059 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (2);
}
onClipEvent (enterFrame) {
_x = (_x - 30);
if (_x < -620) {
_x = (_parent.bul1._x + 700);
}
}
Instance of Symbol 2058 MovieClip "bul3" in Symbol 2059 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (3);
}
onClipEvent (enterFrame) {
_x = (_x - 30);
if (_x < -620) {
_x = (_parent.bul2._x + 700);
}
}
Instance of Symbol 2058 MovieClip "bul4" in Symbol 2059 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
onClipEvent (enterFrame) {
_x = (_x - 30);
if (_x < -620) {
_x = (_parent.bul3._x + 700);
}
}
Instance of Symbol 721 MovieClip "b1" in Symbol 2067 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 2071 MovieClip Frame 1
stop();
Instance of Symbol 753 MovieClip in Symbol 2078 MovieClip Frame 1
onClipEvent (load) {
head = 37;
body = 25;
face = 6;
foot = 13;
gotoAndStop (1);
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
char.play();
} else {
char.stop();
}
}
Instance of Symbol 2074 MovieClip in Symbol 2078 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 2077 MovieClip in Symbol 2078 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
play();
} else {
stop();
}
}
Instance of Symbol 721 MovieClip "b1" in Symbol 2078 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "b2" in Symbol 2078 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "b3" in Symbol 2078 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 721 MovieClip "b4" in Symbol 2078 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 2004 MovieClip in Symbol 2079 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 2009 MovieClip in Symbol 2079 MovieClip Frame 1
onClipEvent (load) {
head = _root.character.head;
body = _root.character.body;
face = _root.character.face;
foot = _root.character.foot;
}
Instance of Symbol 957 MovieClip in Symbol 2079 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.arm.gun);
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
}
Instance of Symbol 2009 MovieClip in Symbol 2079 MovieClip Frame 15
onClipEvent (load) {
head = _root.character.head;
body = _root.character.body;
face = _root.character.face;
foot = _root.character.foot;
}
Instance of Symbol 957 MovieClip in Symbol 2079 MovieClip Frame 61
onClipEvent (load) {
gotoAndStop(_root.arm.gun);
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
Instance of Symbol 2009 MovieClip in Symbol 2079 MovieClip Frame 61
onClipEvent (load) {
head = _root.character.head;
body = _root.character.body;
face = _root.character.face;
foot = _root.character.foot;
gotoAndPlay (61);
}
Instance of Symbol 957 MovieClip in Symbol 2079 MovieClip Frame 67
onClipEvent (load) {
gotoAndStop(_root.arm.gun);
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
Symbol 2079 MovieClip Frame 79
_root.sfx.gotoAndPlay(_root.gameFun.sound[_root.arm.gun]);
Instance of Symbol 1547 MovieClip in Symbol 2079 MovieClip Frame 79
onClipEvent (load) {
time = 0;
_xscale = (random(50) + 70);
chance = random(2) + 1;
if (chance == 1) {
_yscale = (_yscale * -1);
}
}
onClipEvent (enterFrame) {
if (time > 1) {
removeMovieClip("");
} else {
if (time > 0) {
_alpha = (_alpha - 50);
}
time = time + 1;
}
}
Symbol 2079 MovieClip Frame 91
_root.sfx.gotoAndPlay(_root.gameFun.sound[_root.arm.gun]);
Instance of Symbol 1547 MovieClip in Symbol 2079 MovieClip Frame 91
onClipEvent (load) {
time = 0;
_xscale = (random(50) + 70);
chance = random(2) + 1;
if (chance == 1) {
_yscale = (_yscale * -1);
}
}
onClipEvent (enterFrame) {
if (time > 1) {
removeMovieClip("");
} else {
if (time > 0) {
_alpha = (_alpha - 50);
}
time = time + 1;
}
}
Symbol 2079 MovieClip Frame 110
stop();
Instance of Symbol 2009 MovieClip in Symbol 2079 MovieClip Frame 110
onClipEvent (load) {
head = _root.character.head;
body = _root.character.body;
face = _root.character.face;
foot = _root.character.foot;
gotoAndStop (70);
}
Instance of Symbol 1203 MovieClip "point" in Symbol 2079 MovieClip Frame 110
onClipEvent (load) {
xSt = _x;
ySt = _y;
ptX = random(30) + xSt;
ptY = random(5) + ySt;
}
onClipEvent (enterFrame) {
_x = (_x - ((_x - ptX) / 20));
_y = (_y - ((_y - ptY) / 20));
if (Math.abs((_x - ptX) / 20) < 0.1) {
ptX = random(30) + xSt;
}
if (Math.abs((_y - ptY) / 20) < 0.1) {
ptY = random(20) + ySt;
}
}
Instance of Symbol 1218 MovieClip "textBox" in Symbol 2079 MovieClip Frame 110
onClipEvent (load) {
t0 = "Cease Fire!";
t1 = "Move aside. Let me handle this.";
tx = 0;
tNu = 0;
txt = "";
}
onClipEvent (enterFrame) {
if (txt.length < this["t" + tx].length) {
txt = txt + this["t" + tx].charAt(tNu);
_root.sfx.gotoAndPlay(134);
tNu++;
}
if (tx > 1) {
_parent.play();
}
}
Instance of Symbol 2011 MovieClip "en" in Symbol 2079 MovieClip Frame 111
onClipEvent (load) {
head = 63;
body = 52;
face = 4;
foot = 10;
}
Instance of Symbol 2009 MovieClip in Symbol 2079 MovieClip Frame 198
onClipEvent (load) {
head = _root.character.head;
body = _root.character.body;
face = _root.character.face;
foot = _root.character.foot;
gotoAndStop (70);
}
Symbol 2079 MovieClip Frame 278
stop();
Instance of Symbol 2009 MovieClip in Symbol 2079 MovieClip Frame 278
onClipEvent (load) {
head = _root.character.head;
body = _root.character.body;
face = _root.character.face;
foot = _root.character.foot;
gotoAndStop (70);
}
Instance of Symbol 1203 MovieClip "point" in Symbol 2079 MovieClip Frame 278
onClipEvent (load) {
xSt = _x;
ySt = _y;
ptX = random(30) + xSt;
ptY = random(5) + ySt;
}
onClipEvent (enterFrame) {
_x = (_x - ((_x - ptX) / 20));
_y = (_y - ((_y - ptY) / 20));
if (Math.abs((_x - ptX) / 20) < 0.1) {
ptX = random(30) + xSt;
}
if (Math.abs((_y - ptY) / 20) < 0.1) {
ptY = random(20) + ySt;
}
}
Instance of Symbol 1218 MovieClip "textBox" in Symbol 2079 MovieClip Frame 278
onClipEvent (load) {
t0 = "Looks like you made it out of the holding cell after all.";
t1 = "And not without a staggering death toll at that.";
t2 = "...but as you can see, this must come to an end.";
t3 = "You didn't bring enough firepower.";
t4 = "We'll see. Kill him.";
tx = 0;
tNu = 0;
txt = "";
}
onClipEvent (enterFrame) {
if ((notDone1 != true) && (tx == 3)) {
_x = (_x + 150);
_y = (_y + 250);
notDone1 = true;
}
if ((notDone2 != true) && (tx == 4)) {
_x = (_x - 150);
_y = (_y - 250);
notDone2 = true;
}
if (txt.length < this["t" + tx].length) {
txt = txt + this["t" + tx].charAt(tNu);
_root.sfx.gotoAndPlay(134);
tNu++;
}
if (tx > 4) {
_parent.en.play();
_parent.play();
}
}
Instance of Symbol 957 MovieClip in Symbol 2079 MovieClip Frame 279
onClipEvent (load) {
gotoAndStop(_root.arm.gun);
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
}
Instance of Symbol 2009 MovieClip in Symbol 2079 MovieClip Frame 279
onClipEvent (load) {
head = _root.character.head;
body = _root.character.body;
face = _root.character.face;
foot = _root.character.foot;
gotoAndStop (1);
}
Instance of Symbol 2009 MovieClip in Symbol 2079 MovieClip Frame 298
onClipEvent (load) {
head = _root.character.head;
body = _root.character.body;
face = _root.character.face;
foot = _root.character.foot;
gotoAndStop (121);
}
Symbol 2079 MovieClip Frame 302
_root.sfx.gotoAndPlay(140);
Instance of Symbol 2004 MovieClip in Symbol 2079 MovieClip Frame 302
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 2016 MovieClip "shard" in Symbol 2079 MovieClip Frame 302
onClipEvent (load) {
if (_name != "shard") {
gotoAndStop(random(4) + 1);
xVel = random(10) + 1;
yVel = -(random(10) + 1);
r = random(20) + 10;
} else {
i = 0;
while (i < 30) {
duplicateMovieClip (_parent.shard, "shard" + i, i);
_parent["shard" + i]._x = (_x + random(100)) - 50;
_parent["shard" + i]._y = (_y + random(20)) - 10;
i++;
}
swapDepths(40);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_x = (_x + xVel);
_y = (_y + yVel);
yVel = yVel + 1;
_rotation = (_rotation + r);
}
Instance of Symbol 2042 MovieClip in Symbol 2079 MovieClip Frame 344
onClipEvent (load) {
if (_root.hardMode == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 2009 MovieClip in Symbol 2079 MovieClip Frame 344
onClipEvent (load) {
head = _root.character.head;
body = _root.character.body;
face = _root.character.face;
foot = _root.character.foot;
gotoAndStop (122);
}
Symbol 2079 MovieClip Frame 368
_root.sfx.gotoAndPlay(142);
Symbol 2079 MovieClip Frame 436
stop();
Instance of Symbol 2078 MovieClip in Symbol 2079 MovieClip Frame 436
onClipEvent (load) {
xSt = _x;
ySt = _y;
ptX = random(30) + xSt;
ptY = random(5) + ySt;
engineTime = 0;
_root.sfx.gotoAndPlay(118);
}
onClipEvent (enterFrame) {
_x = (_x - ((_x - ptX) / 20));
_y = (_y - ((_y - ptY) / 20));
if (Math.abs((_x - ptX) / 20) < 0.1) {
ptX = random(30) + xSt;
}
if (Math.abs((_y - ptY) / 20) < 0.1) {
ptY = random(20) + ySt;
}
engineTime++;
if (engineTime > 20) {
_root.sfx.gotoAndPlay(118);
engineTime = 0;
}
}
Instance of Symbol 1203 MovieClip "point" in Symbol 2079 MovieClip Frame 436
onClipEvent (load) {
xSt = _x;
ySt = _y;
ptX = random(30) + xSt;
ptY = random(5) + ySt;
}
onClipEvent (enterFrame) {
_x = (_x - ((_x - ptX) / 20));
_y = (_y - ((_y - ptY) / 20));
if (Math.abs((_x - ptX) / 20) < 0.1) {
ptX = random(30) + xSt;
}
if (Math.abs((_y - ptY) / 20) < 0.1) {
ptY = random(20) + ySt;
}
}
Instance of Symbol 1218 MovieClip "textBox" in Symbol 2079 MovieClip Frame 436
onClipEvent (load) {
t0 = "It's time to die, 154!";
t1 = "You can't run any more!";
tx = 0;
tNu = 0;
txt = "";
}
onClipEvent (enterFrame) {
if (txt.length < this["t" + tx].length) {
txt = txt + this["t" + tx].charAt(tNu);
_root.sfx.gotoAndPlay(134);
tNu++;
}
if (tx > 1) {
_parent.play();
}
}
Instance of Symbol 2042 MovieClip in Symbol 2079 MovieClip Frame 437
onClipEvent (load) {
if (_root.hardMode == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 957 MovieClip in Symbol 2079 MovieClip Frame 437
onClipEvent (load) {
gotoAndStop(_root.arm.gun);
wpn.hand1.gotoAndStop(2);
wpn.hand2.gotoAndStop(2);
}
Instance of Symbol 2009 MovieClip in Symbol 2079 MovieClip Frame 437
onClipEvent (load) {
head = _root.character.head;
body = _root.character.body;
face = _root.character.face;
foot = _root.character.foot;
gotoAndStop (123);
}
Instance of Symbol 2053 MovieClip in Symbol 2079 MovieClip Frame 437
onClipEvent (load) {
gotoAndStop (29);
}
Instance of Symbol 2009 MovieClip in Symbol 2079 MovieClip Frame 445
onClipEvent (load) {
head = _root.character.head;
body = _root.character.body;
face = _root.character.face;
foot = _root.character.foot;
gotoAndStop (124);
}
Symbol 2079 MovieClip Frame 451
stop();
Instance of Symbol 2009 MovieClip in Symbol 2079 MovieClip Frame 451
onClipEvent (load) {
head = _root.character.head;
body = _root.character.body;
face = _root.character.face;
foot = _root.character.foot;
gotoAndStop (61);
}
Instance of Symbol 1203 MovieClip "point" in Symbol 2079 MovieClip Frame 451
onClipEvent (load) {
xSt = _x;
ySt = _y;
ptX = random(30) + xSt;
ptY = random(5) + ySt;
}
onClipEvent (enterFrame) {
_x = (_x - ((_x - ptX) / 20));
_y = (_y - ((_y - ptY) / 20));
if (Math.abs((_x - ptX) / 20) < 0.1) {
ptX = random(30) + xSt;
}
if (Math.abs((_y - ptY) / 20) < 0.1) {
ptY = random(20) + ySt;
}
}
Instance of Symbol 1218 MovieClip "textBox" in Symbol 2079 MovieClip Frame 451
onClipEvent (load) {
t0 = "Ugh...I'm going to need a bigger gun...";
tx = 0;
tNu = 0;
txt = "";
}
onClipEvent (enterFrame) {
if (txt.length < this["t" + tx].length) {
txt = txt + this["t" + tx].charAt(tNu);
_root.sfx.gotoAndPlay(134);
tNu++;
}
if (tx > 0) {
_parent.play();
}
}
Symbol 2079 MovieClip Frame 525
_root.nextFrame();
Instance of Symbol 1992 MovieClip in Symbol 2081 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - 5);
if (_x < -400) {
_x = 400;
}
}
Instance of Symbol 1992 MovieClip in Symbol 2081 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - 5);
if (_x < -400) {
_x = 400;
}
}
Instance of Symbol 1996 MovieClip "bri1" in Symbol 2081 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - 10);
if (_x < -581.1) {
_x = (_parent.bri2._x + 548.6);
}
}
Instance of Symbol 1996 MovieClip "bri2" in Symbol 2081 MovieClip Frame 1
onClipEvent (enterFrame) {
_x = (_x - 10);
if (_x < -581.1) {
_x = (_parent.bri1._x + 548.6);
}
}
Instance of Symbol 2058 MovieClip "bul1" in Symbol 2081 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
onClipEvent (enterFrame) {
_x = (_x - 30);
if (_x < -620) {
_x = (_parent.bul4._x + 700);
}
}
Instance of Symbol 2058 MovieClip "bul2" in Symbol 2081 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (2);
}
onClipEvent (enterFrame) {
_x = (_x - 30);
if (_x < -620) {
_x = (_parent.bul1._x + 700);
}
}
Instance of Symbol 2058 MovieClip "bul3" in Symbol 2081 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (3);
}
onClipEvent (enterFrame) {
_x = (_x - 30);
if (_x < -620) {
_x = (_parent.bul2._x + 700);
}
}
Instance of Symbol 2058 MovieClip "bul4" in Symbol 2081 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (4);
}
onClipEvent (enterFrame) {
_x = (_x - 30);
if (_x < -620) {
_x = (_parent.bul3._x + 700);
}
}
Symbol 2085 MovieClip Frame 8
removeMovieClip("");
Symbol 2086 MovieClip Frame 1
c = function (obj) {
i = 0;
while (i < 5) {
_root.item[obj]._x = _root.item[obj]._x + _root.item[obj].x;
_root.item[obj]._x = _root.item[obj]._x - 3;
_root.item[obj]._y = _root.item[obj]._y + _root.item[obj].y;
_root.item[obj].tar = _root.hind;
if (_root.hind.health > 0) {
_root.item[obj].dx = Math.abs(_root.item[obj]._x - (_root.hind._x - _root.item._x));
_root.item[obj].dy = Math.abs(_root.item[obj]._y - ((_root.hind._y - 10) - _root.item._y));
if ((_root.item[obj].dx < 30) && (_root.item[obj].dy < 30)) {
_root.hind.health = _root.hind.health - _root.item[obj].pow;
_root.item[obj].spark();
}
}
i++;
}
};
d = function (obj) {
i = 0;
while (i < 5) {
_root.item[obj]._x = _root.item[obj]._x + _root.item[obj].x;
_root.item[obj]._x = _root.item[obj]._x - 3;
_root.item[obj]._y = _root.item[obj]._y + _root.item[obj].y;
_root.item[obj].tar = _root.character;
if (_root.character.health > 0) {
_root.item[obj].dx = Math.abs(_root.item[obj]._x - (_root.character._x - _root.item._x));
_root.item[obj].dy = Math.abs(_root.item[obj]._y - ((_root.character._y - 10) - _root.item._y));
if (_root.character._currentframe != 10) {
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
if ((_root.item[obj].dx < 20) && (_root.item[obj].dy < 25)) {
_root.character.health = _root.character.health - (_root.item[obj].pow * 1.5);
if (_root.item[obj]._y > ((_root.character._y - 4) - _root.item._y)) {
_root.character.bodyHealth = _root.character.bodyHealth - _root.item[obj].pow;
n = 100000 /* 0x0186A0 */;
if (_root.character.fall == false) {
_root.item[obj].chance = random(2) + 1;
if (_root.item[obj].chance == 1) {
_root.character.gotoAndStop(13);
} else {
_root.character.gotoAndStop(14);
}
_root.character.hurt = true;
}
} else {
_root.character.headHealth = _root.character.headHealth - _root.item[obj].pow;
n = 100000 /* 0x0186A0 */;
_root.character.health = _root.character.health - _root.item[obj].pow;
_root.character.headHealth = _root.character.headHealth - (_root.item[obj].pow / 2);
if (_root.character.fall == false) {
_root.item[obj].chance = random(2) + 1;
if (_root.item[obj].chance == 1) {
_root.character.gotoAndStop(11);
} else {
_root.character.gotoAndStop(12);
}
_root.character.hurt = true;
}
}
_root.item[obj].blood();
}
}
} else if ((_root.item[obj].dx < 20) && (_root.item[obj].dy < 15)) {
_root.character.health = _root.character.health - (_root.item[obj].pow * 1.5);
_root.character.headHealth = _root.character.headHealth - _root.item[obj].pow;
n = 100000 /* 0x0186A0 */;
_root.character.health = _root.character.health - _root.item[obj].pow;
_root.character.headHealth = _root.character.headHealth - (_root.item[obj].pow / 2);
if (_root.character.fall == false) {
_root.item[obj].chance = random(2) + 1;
if (_root.item[obj].chance == 1) {
_root.character.gotoAndStop(11);
} else {
_root.character.gotoAndStop(12);
}
_root.character.hurt = true;
}
_root.item[obj].blood();
}
}
if (_root.bound.hitTest(_root.item[obj]._x + _root.item._x, _root.item[obj]._y + _root.item._y, true)) {
_root.item[obj].spark();
}
i++;
}
};
Instance of Symbol 1547 MovieClip "fla" in Symbol 2086 MovieClip Frame 1
onClipEvent (load) {
time = 0;
chance = random(2) + 1;
if (chance == 1) {
_yscale = (_yscale * -1);
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "fla") {
if (time > 1) {
removeMovieClip("");
} else {
if (time > 0) {
_alpha = (_alpha - 50);
}
time = time + 1;
}
}
}
}
Instance of Symbol 15 MovieClip "shell" in Symbol 2086 MovieClip Frame 1
onClipEvent (load) {
if (_name != "shell") {
if (_root.bound.hitTest(_x + _root.item._x, _y + _root.item._y, true)) {
removeMovieClip("");
}
bounce = 0;
if (_xscale == 100) {
r = random(20);
rot = _rotation;
speed = 10;
xa = (Math.sin(rot * (Math.PI/180)) * speed) - (random(8) + (random(10) / 10));
} else {
r = -random(20);
rot = _rotation;
speed = -10;
xa = (Math.sin(rot * (Math.PI/180)) * speed) + (random(8) + (random(10) / 10));
}
ya = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
timer = 0;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "shell") {
timer = timer + 1;
_x = (_x + xa);
_y = (_y + ya);
_x = (_x - 12);
_rotation = (_rotation + (xa - r));
ya = ya + 2;
if (_root.bound.hitTest(_x + _root.item._x, _y + _root.item._y, true)) {
ya = ya * -0.5;
xa = xa * -0.3;
t = 0;
while (_root.bound.hitTest(_x + _root.item._x, (_y + _root.item._y) - 1, true)) {
_y = (_y - 1);
t++;
if (t > 50) {
removeMovieClip("");
}
}
bounce = bounce + 1;
if (bounce > 3) {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.shell, "obj" + i, i);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._rotation = _rotation;
_root.obj["obj" + i].gotoAndStop(_currentframe);
_root.stuff.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
removeMovieClip("");
} else if (bounce == 1) {
_root.sfx.gotoAndPlay(94);
} else if (bounce == 2) {
_root.sfx.gotoAndPlay(96);
}
}
if (_root.bound.hitTest((_x + 15) + _root.item._x, _y + _root.item._y, true) || (_root.bound.hitTest((_x - 15) + _root.item._x, _y + _root.item._y, true))) {
xa = xa * -0.5;
_x = (_x + xa);
}
if (_root.bound.hitTest(_x + _root.item._x, (_y + _root.item._y) - 15, true)) {
ya = 3;
}
if (timer > 90) {
removeMovieClip("");
}
}
}
}
Instance of Symbol 1549 MovieClip "bullet" in Symbol 2086 MovieClip Frame 1
onClipEvent (load) {
spark = function () {
if (enemyBullet != true) {
_root.sfx.gotoAndPlay(((random(3) + 1) * 2) + 44);
}
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.spark1, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.item["item" + i]._rotation = _rotation + (random(60) - 30);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.bh, "obj" + i, i);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._rotation = _rotation;
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
removeMovieClip("");
};
blood = function () {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.item["item" + i]._rotation = _rotation;
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(4) + 1);
sca = random(50) + 30;
_root.obj["obj" + i]._xscale = sca;
_root.obj["obj" + i]._yscale = sca;
_root.obj["obj" + i]._alpha = 50;
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
removeMovieClip("");
};
time = 0;
rot = _rotation - 90;
type = 1;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (enemyBullet != true) {
_root.item.c(_name);
} else {
_root.item.d(_name);
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "bullet") {
if (time == 1) {
_xscale = (_xscale + (random(100) + 100));
}
time++;
if (time > 8) {
removeMovieClip("");
}
if (time > 6) {
_alpha = (_alpha - 30);
}
if (enemyBullet != true) {
_root.item.c(_name);
} else {
_root.item.d(_name);
}
}
}
}
Instance of Symbol 1299 MovieClip "spark1" in Symbol 2086 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "spark1") {
_alpha = (_alpha - 30);
_xscale = (_xscale + 30);
_yscale = (_yscale + 30);
if (_alpha < 1) {
swapDepths(10000);
removeMovieClip("");
}
}
}
}
Instance of Symbol 749 MovieClip "blood" in Symbol 2086 MovieClip Frame 1
onClipEvent (load) {
if (_name != "blood") {
_xscale = (random(30) + 40);
_yscale = _xscale;
_rotation = (_rotation + (random(40) - 20));
} else {
stop();
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if (_root.pause == false) {
play();
} else {
stop();
}
}
}
Instance of Symbol 1410 MovieClip "explode" in Symbol 2086 MovieClip Frame 1
onClipEvent (load) {
if (_name == "explode") {
stop();
} else {
_root.sfx.gotoAndPlay(((random(2) + 1) * 2) + 30);
_root.character.modifier = random(15) + 10;
_root.character.yModifier = random(15) + 10;
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.burn2, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
_x = (_x - 15);
play();
} else {
stop();
}
}
Instance of Symbol 1501 MovieClip "gib" in Symbol 2086 MovieClip Frame 1
onClipEvent (load) {
if (_name != "gib") {
if (_root.bound.hitTest(_x + _root.item._x, _y + _root.item._y, true)) {
removeMovieClip("");
}
bounce = 0;
rot = 90;
if (_xscale == 100) {
r = random(20);
xa = (Math.sin(rot * (Math.PI/180)) * speed) - (random(8) + (random(10) / 10));
} else {
r = -random(20);
xa = -((Math.sin(rot * (Math.PI/180)) * speed) - (random(8) + (random(10) / 10)));
}
ya = ((Math.cos(rot * (Math.PI/180)) * speed) * -1) - (random(15) + 10);
timer = 0;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "gib") {
timer = timer + 1;
_x = (_x + xa);
_y = (_y + ya);
_rotation = (_rotation + (xa - r));
ya = ya + 2;
if (_root.bound.hitTest(_x + _root.item._x, (_y + _root.item._y) + (_height / 4), true)) {
ya = ya * -0.5;
xa = xa * -0.3;
t = 0;
while (_root.bound.hitTest(_x + _root.item._x, ((_y + _root.item._y) + (_height / 4)) - 1, true)) {
_y = (_y - 1);
t++;
if (t > 50) {
removeMovieClip("");
}
}
bounce = bounce + 1;
if (bounce > 3) {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.gib, "obj" + i, i);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._rotation = _rotation;
_root.obj["obj" + i].gotoAndStop(_currentframe);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
removeMovieClip("");
}
}
if (_root.bound.hitTest((_x + 20) + _root.item._x, _y + _root.item._y, true) || (_root.bound.hitTest((_x - 20) + _root.item._x, _y + _root.item._y, true))) {
xa = xa * -0.5;
_x = (_x + xa);
}
if (_root.bound.hitTest(_x + _root.item._x, (_y + _root.item._y) - 10, true)) {
ya = 3;
}
if (timer > 150) {
removeMovieClip("");
}
}
}
}
Instance of Symbol 1507 MovieClip "brainGib" in Symbol 2086 MovieClip Frame 1
onClipEvent (load) {
if (_name != "brainGib") {
gotoAndStop(random(5) + 1);
if (_root.bound.hitTest(_x + _root.item._x, _y + _root.item._y, true)) {
removeMovieClip("");
}
bounce = 0;
rot = 90;
if (_xscale == -100) {
r = random(20);
xa = (Math.sin(rot * (Math.PI/180)) * speed) - (random(8) + (random(10) / 10));
} else {
r = -random(20);
xa = -((Math.sin(rot * (Math.PI/180)) * speed) - (random(8) + (random(10) / 10)));
}
ya = ((Math.cos(rot * (Math.PI/180)) * speed) * -1) - (random(15) + 10);
timer = 0;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "brainGib") {
timer = timer + 1;
_x = (_x + xa);
_y = (_y + ya);
_rotation = (_rotation + (xa - r));
ya = ya + 2;
if (_root.bound.hitTest(_x + _root.item._x, (_y + _root.item._y) + (_height / 4), true)) {
ya = ya * -0.5;
xa = xa * -0.3;
t = 0;
while (_root.bound.hitTest(_x + _root.item._x, ((_y + _root.item._y) + (_height / 4)) - 1, true)) {
_y = (_y - 1);
t++;
if (t > 50) {
removeMovieClip("");
}
}
bounce = bounce + 1;
if (bounce > 3) {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.brainGib, "obj" + i, i);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._rotation = _rotation;
_root.obj["obj" + i].gotoAndStop(_currentframe);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
removeMovieClip("");
}
}
if (_root.bound.hitTest((_x + 20) + _root.item._x, _y + _root.item._y, true) || (_root.bound.hitTest((_x - 20) + _root.item._x, _y + _root.item._y, true))) {
xa = xa * -0.5;
_x = (_x + xa);
}
if (_root.bound.hitTest(_x + _root.item._x, (_y + _root.item._y) - 10, true)) {
ya = 3;
}
if (timer > 150) {
removeMovieClip("");
}
}
}
}
Instance of Symbol 2084 MovieClip "bomb" in Symbol 2086 MovieClip Frame 1
onClipEvent (load) {
splode = function () {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.explode, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.item["item" + i]._rotation = random(360);
n = 0;
while (n < _root.character.targets.length) {
tar = _root.character.targets[n];
if (_root.item[tar].health > 0) {
dx = (_x - _root.item[tar]._x) * (_x - _root.item[tar]._x);
dy = (_y - (_root.item[tar]._y - 10)) * (_y - (_root.item[tar]._y - 10));
splodeDist = Math.abs(Math.sqrt(dx + dy));
if (splodeDist < 200) {
_root.item[tar].health = _root.item[tar].health - (20 - Math.round(splodeDist / 10));
chance = random(2) + 1;
if (chance == 1) {
_root.item[tar].gotoAndStop(11);
} else {
_root.item[tar].gotoAndStop(12);
}
_root.item[tar].hurt = true;
}
}
n++;
}
dx = ((_x + _root.item._x) - _root.character._x) * ((_x + _root.item._x) - _root.character._x);
dy = ((_y + _root.item._y) - _root.character._y) * ((_y + _root.item._y) - _root.character._y);
splodeDist = Math.abs(Math.sqrt(dx + dy));
if (splodeDist < 150) {
_root.character.health = _root.character.health - (15 - Math.round(splodeDist / 10));
chance = random(2) + 1;
if (chance == 1) {
_root.character.gotoAndStop(11);
} else {
_root.character.gotoAndStop(12);
}
_root.character.hurt = true;
}
removeMovieClip("");
};
bounce = 1;
time = 0;
y = 0;
x = -5;
timer = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "bomb") {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = ((x + y) * 2);
y = y + 0.5;
dx = ((_x + _root.item._x) - _root.character._x) * ((_x + _root.item._x) - _root.character._x);
dy = ((_y + _root.item._y) - _root.character._y) * ((_y + _root.item._y) - _root.character._y);
splodeDist = Math.abs(Math.sqrt(dx + dy));
if (splodeDist < 20) {
splode();
_root.character.health = _root.character.health - 10;
}
if (_root.bound.hitTest(_x + _root.item._x, _y + _root.item._y, true)) {
y = y * -0.5;
x = x * -0.3;
t = 0;
bounce = bounce + 1;
if (bounce > 1) {
splode();
}
}
if (_root.bound.hitTest((_x + 15) + _root.item._x, _y + _root.item._y, true) || (_root.bound.hitTest((_x - 15) + _root.item._x, _y + _root.item._y, true))) {
x = x * -0.5;
_x = (_x + x);
}
if (_root.bound.hitTest(_x + _root.item._x, (_y + _root.item._y) - 15, true)) {
y = 3;
}
if (timer > 90) {
splode();
}
}
}
}
Instance of Symbol 2085 MovieClip "smoke" in Symbol 2086 MovieClip Frame 1
onClipEvent (load) {
spd = random(7) + 5;
_xscale = (random(20) + 30);
_yscale = _xscale;
_rotation = random(360);
}
onClipEvent (enterFrame) {
if (_name != "smoke") {
_x = (_x - spd);
if (_x < 0) {
removeMovieClip("");
}
}
}
Instance of Symbol 753 MovieClip "character" in Symbol 2089 MovieClip Frame 1
onClipEvent (load) {
_root.gameFun.loadGame();
head = _root.character.head;
body = _root.character.body;
face = _root.character.face;
foot = _root.character.foot;
gotoAndStop (1);
}
Instance of Symbol 2042 MovieClip in Symbol 2089 MovieClip Frame 1
onClipEvent (load) {
if (_root.hardMode == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
onClipEvent (enterFrame) {
w1._rotation = w1._rotation - 25;
w2._rotation = w2._rotation - 25;
}
Instance of Symbol 1783 MovieClip "t1" in Symbol 2099 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (doOnce != true) {
zz = 1;
while (zz < 4) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = ((_y + _parent._y) - _root.item._y) + 170;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = ((_x + _parent._x) - ((zz * 100) + 800)) - _root.item._x;
_root.item["item" + i]._y = ((_y + _parent._y) - _root.item._y) + 170;
_root.item["item" + i].ar = nam;
zz++;
}
doOnce = true;
}
if (hitTest(_root.character)) {
_root.gameFun.saveGame();
_root.gotoAndStop(36);
}
time++;
if (_root.character.targets.length < 1) {
if (time > 60) {
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = ((_y + _parent._y) - _root.item._y) + 170;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = ((_y + _parent._y) - _root.item._y) + 170;
_root.item["item" + i].ar = nam;
time = 0;
}
}
}
}
Instance of Symbol 1601 MovieClip in Symbol 2099 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = _x - _root.item._x;
_root.item["btn" + i]._y = _y + _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(32);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 2118 MovieClip in Symbol 2119 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(random(_totalframes) + 1);
}
Instance of Symbol 2118 MovieClip in Symbol 2119 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(random(_totalframes) + 1);
}
Instance of Symbol 2118 MovieClip in Symbol 2119 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(random(_totalframes) + 1);
}
Instance of Symbol 2118 MovieClip in Symbol 2119 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(random(_totalframes) + 1);
}
Instance of Symbol 2118 MovieClip in Symbol 2119 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(random(_totalframes) + 1);
}
Instance of Symbol 2118 MovieClip in Symbol 2119 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(random(_totalframes) + 1);
}
Instance of Symbol 2118 MovieClip in Symbol 2119 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(random(_totalframes) + 1);
}
Instance of Symbol 1783 MovieClip "t1" in Symbol 2133 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (doOnce != true) {
zz = 1;
while (zz < 4) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = ((_y + _parent._y) - _root.item._y) + 170;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = ((_x + _parent._x) - ((zz * 100) + 800)) - _root.item._x;
_root.item["item" + i]._y = ((_y + _parent._y) - _root.item._y) + 170;
_root.item["item" + i].ar = nam;
zz++;
}
doOnce = true;
}
if (hitTest(_root.character)) {
_root.gameFun.saveGame();
_root.gotoAndStop(38);
}
time++;
if (_root.character.targets.length < 1) {
if (time > 30) {
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = ((_y + _parent._y) - _root.item._y) + 170;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = ((_y + _parent._y) - _root.item._y) + 170;
_root.item["item" + i].ar = nam;
time = 0;
}
}
}
}
Instance of Symbol 1851 MovieClip "t2" in Symbol 2139 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_parent.d1._currentframe != 1) {
time++;
}
if (_root.character.targets.length < 4) {
if (time > 60) {
if (enemiesSp == 20) {
_parent.d2.play();
_root.bound.d2.play();
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "New Area Open";
}
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
_root.sfx.gotoAndPlay(80);
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Instance of Symbol 1851 MovieClip "t1" in Symbol 2139 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
time++;
if ((_root.character.targets.length < 3) && (enemiesSp < 6)) {
if (time > 90) {
if (enemiesSp == 5) {
_parent.d1.play();
_root.bound.d1.play();
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "New Area Open";
}
_root.sfx.gotoAndPlay(80);
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Instance of Symbol 1783 MovieClip in Symbol 2139 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.character)) {
_root.gameFun.saveGame();
_root.gotoAndStop(40);
}
if (_parent.d2._currentframe != 1) {
time++;
}
if (_root.character.targets.length < 1) {
if (time > 30) {
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = ((_y + _parent._y) - _root.item._y) + 170;
_root.item["item" + i].ar = nam;
time = 0;
}
}
}
}
Instance of Symbol 1851 MovieClip "t2" in Symbol 2166 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_parent.d1._currentframe != 1) {
time++;
}
if (_root.character.targets.length < 4) {
if (time > 40) {
if (enemiesSp == 20) {
_parent.d2.play();
_root.bound.d2.play();
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "New Area Open";
}
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
_root.sfx.gotoAndPlay(80);
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Instance of Symbol 1851 MovieClip "t1" in Symbol 2166 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
time++;
if ((_root.character.targets.length < 3) && (enemiesSp < 6)) {
if (time > 40) {
if (enemiesSp == 5) {
_parent.d1.play();
_root.bound.d1.play();
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "New Area Open";
}
_root.sfx.gotoAndPlay(80);
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Instance of Symbol 1783 MovieClip in Symbol 2166 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.character)) {
_root.gameFun.saveGame();
_root.gotoAndStop(42);
}
if (_parent.d2._currentframe != 1) {
time++;
}
if (_root.character.targets.length < 1) {
if (time > 30) {
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
time = 0;
}
}
}
}
Instance of Symbol 1604 MovieClip in Symbol 2212 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.button, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i]._rotation = _rotation;
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1803 MovieClip "d3" in Symbol 2212 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
if (_parent.card.collected == false) {
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "Locked: Keycard Needed for Access.";
} else if (_currentframe == 1) {
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "Keycard Accepted";
play();
_root.bound.d3.play();
}
}
}
Instance of Symbol 1902 MovieClip "card" in Symbol 2212 MovieClip Frame 1
onClipEvent (load) {
collected = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.character) && (collected == false)) {
_root.sfx.gotoAndPlay(104);
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "Keycard Collected";
collected = true;
_visible = false;
stop();
}
}
Instance of Symbol 1601 MovieClip in Symbol 2212 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 50;
_root.item["btn" + i].gotoAndStop(14);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2212 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 60;
_root.item["btn" + i].gotoAndStop(12);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2212 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 100;
_root.item["btn" + i].gotoAndStop(29);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1783 MovieClip in Symbol 2212 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.character)) {
_root.gameFun.saveGame();
_root.gotoAndStop(44);
}
}
}
Instance of Symbol 1851 MovieClip "t1" in Symbol 2225 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
time++;
if (_root.character.targets.length < 4) {
if (time > 40) {
if (enemiesSp == 30) {
_parent.d1.play();
_root.bound.d1.play();
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "New Area Open";
}
if (enemiesSp == 60) {
_parent.d2.play();
_root.bound.d2.play();
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "New Area Open";
}
_root.sfx.gotoAndPlay(80);
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Instance of Symbol 1783 MovieClip in Symbol 2225 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.character)) {
_root.gameFun.saveGame();
_root.gotoAndStop(46);
}
if (_parent.d1._currentframe != 1) {
time++;
}
if (_root.character.targets.length < 1) {
if (time > 30) {
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
time = 0;
}
}
}
}
Instance of Symbol 1783 MovieClip in Symbol 2225 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.character)) {
_root.gameFun.saveGame();
_root.gotoAndStop(48);
}
if (_parent.d2._currentframe != 1) {
time++;
}
if (_root.character.targets.length < 1) {
if (time > 30) {
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
time = 0;
}
}
}
}
Instance of Symbol 721 MovieClip in Symbol 2241 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
time++;
if (_root.character.targets.length < 8) {
if (time > 30) {
if (enemiesSp == 30) {
_parent.d1.play();
_root.bound.d1.play();
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "New Area Open";
}
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.zombie, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
}
}
}
}
Instance of Symbol 721 MovieClip in Symbol 2241 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
time++;
if (_root.character.targets.length < 8) {
if (time > 30) {
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.zombie, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
}
}
}
}
Instance of Symbol 721 MovieClip in Symbol 2241 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
time++;
if (_root.character.targets.length < 8) {
if (time > 30) {
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.zombie, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
}
}
}
}
Instance of Symbol 1783 MovieClip in Symbol 2241 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.character)) {
_root.gameFun.saveGame();
_root.gotoAndStop(50);
}
}
}
Instance of Symbol 721 MovieClip in Symbol 2258 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
time++;
if (_root.character.targets.length < 8) {
if (time > 30) {
enemiesSp = enemiesSp + 1;
chan = random(2) + 1;
if (chan == 1) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
}
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.bean, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
}
}
}
}
Instance of Symbol 721 MovieClip in Symbol 2258 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
time++;
if (_root.character.targets.length < 8) {
if (time > 30) {
if (enemiesSp == 100) {
_parent.d1.play();
_root.bound.d1.play();
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "New Area Open";
}
enemiesSp = enemiesSp + 1;
chan = random(2) + 1;
if (chan == 1) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
}
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.bean, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
}
}
}
}
Instance of Symbol 721 MovieClip in Symbol 2258 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
time++;
if (_root.character.targets.length < 8) {
if (time > 30) {
enemiesSp = enemiesSp + 1;
chan = random(2) + 1;
if (chan == 1) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
}
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.bean, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
}
}
}
}
Instance of Symbol 1783 MovieClip in Symbol 2258 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.character)) {
_root.gameFun.saveGame();
_root.gotoAndStop(50);
}
}
}
Instance of Symbol 1803 MovieClip "d3" in Symbol 2271 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
if (_parent.card.collected == false) {
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "Locked: Keycard Needed for Access.";
} else if (_currentframe == 1) {
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "Keycard Accepted";
play();
_root.bound.d3.play();
}
}
}
Instance of Symbol 1902 MovieClip "card" in Symbol 2271 MovieClip Frame 1
onClipEvent (load) {
collected = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.character) && (collected == false)) {
_root.sfx.gotoAndPlay(104);
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "Keycard Collected";
collected = true;
_visible = false;
stop();
}
}
Instance of Symbol 1601 MovieClip in Symbol 2271 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(32);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2271 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(9);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2271 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 100;
_root.item["btn" + i].gotoAndStop(20);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1783 MovieClip in Symbol 2271 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.character)) {
_root.gameFun.saveGame();
_root.gotoAndStop(52);
}
}
}
Instance of Symbol 1604 MovieClip in Symbol 2271 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.button, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i]._rotation = _rotation;
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1851 MovieClip "t1" in Symbol 2286 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
time++;
if (_root.character.targets.length < 4) {
if (time > 40) {
if (enemiesSp == 60) {
_parent.d1.play();
_root.bound.d1.play();
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "Exit Open";
}
_root.sfx.gotoAndPlay(80);
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Instance of Symbol 1851 MovieClip "t1" in Symbol 2286 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
time++;
if (_root.character.targets.length < 4) {
if (time > 40) {
_root.sfx.gotoAndPlay(80);
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Instance of Symbol 1851 MovieClip "t1" in Symbol 2286 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
time++;
if (_root.character.targets.length < 4) {
if (time > 40) {
_root.sfx.gotoAndPlay(80);
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Instance of Symbol 1783 MovieClip in Symbol 2286 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.character)) {
_root.gameFun.saveGame();
_root.gotoAndStop(54);
}
}
}
Instance of Symbol 1851 MovieClip "t1" in Symbol 2290 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
time++;
if ((_root.character.targets.length < 4) && (_root.lvBG.time < _root.lvBG.timeMax)) {
if (time > 90) {
_root.sfx.gotoAndPlay(80);
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Instance of Symbol 1783 MovieClip "t4" in Symbol 2290 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.gameFun.saveGame();
_root.gotoAndStop(55);
}
}
Instance of Symbol 1851 MovieClip "t2" in Symbol 2290 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
time++;
if ((_root.character.targets.length < 5) && (_root.lvBG.time < _root.lvBG.timeMax)) {
if (time > 90) {
_root.sfx.gotoAndPlay(80);
enemiesSp = enemiesSp + 1;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ele, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
time = 0;
}
}
}
}
Instance of Symbol 99 MovieClip in Symbol 2306 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (19);
}
onClipEvent (enterFrame) {
gotoAndStop (19);
}
Instance of Symbol 213 MovieClip in Symbol 2306 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (62);
}
onClipEvent (enterFrame) {
gotoAndStop (62);
}
Instance of Symbol 448 MovieClip in Symbol 2306 MovieClip Frame 1
onClipEvent (load) {
face.gotoAndStop(74);
gotoAndStop (74);
}
onClipEvent (enterFrame) {
face.gotoAndStop(74);
gotoAndStop (74);
}
Instance of Symbol 99 MovieClip in Symbol 2306 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (19);
}
onClipEvent (enterFrame) {
gotoAndStop (19);
}
Symbol 2306 MovieClip Frame 117
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Symbol 2306 MovieClip Frame 122
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Instance of Symbol 2009 MovieClip in Symbol 2312 MovieClip Frame 1
onClipEvent (load) {
head = _root.character.head;
body = _root.character.body;
face = _root.character.face;
foot = _root.character.foot;
stop();
}
Instance of Symbol 957 MovieClip in Symbol 2312 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.arm.gun);
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
}
Instance of Symbol 2306 MovieClip in Symbol 2312 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 2009 MovieClip in Symbol 2312 MovieClip Frame 32
onClipEvent (load) {
head = _root.character.head;
body = _root.character.body;
face = _root.character.face;
foot = _root.character.foot;
}
Instance of Symbol 2009 MovieClip in Symbol 2312 MovieClip Frame 33
onClipEvent (load) {
head = _root.character.head;
body = _root.character.body;
face = _root.character.face;
foot = _root.character.foot;
gotoAndStop (61);
_xscale = -100;
}
Symbol 2312 MovieClip Frame 137
_root.sfx.gotoAndPlay(142);
Instance of Symbol 946 MovieClip in Symbol 2312 MovieClip Frame 149
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = _xscale;
spd = 0.5;
al = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y - spd);
spd = spd + 0.5;
_xscale = (_xscale + 5);
_yscale = (_yscale + 5);
_alpha = (_alpha - al);
if (_alpha < 1) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 946 MovieClip in Symbol 2312 MovieClip Frame 149
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = _xscale;
spd = 0.5;
al = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y - spd);
spd = spd + 0.5;
_xscale = (_xscale + 5);
_yscale = (_yscale + 5);
_alpha = (_alpha - al);
if (_alpha < 1) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 946 MovieClip in Symbol 2312 MovieClip Frame 149
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = _xscale;
spd = 0.5;
al = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y - spd);
spd = spd + 0.5;
_xscale = (_xscale + 5);
_yscale = (_yscale + 5);
_alpha = (_alpha - al);
if (_alpha < 1) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 946 MovieClip in Symbol 2312 MovieClip Frame 149
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = _xscale;
spd = 0.5;
al = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y - spd);
spd = spd + 0.5;
_xscale = (_xscale + 5);
_yscale = (_yscale + 5);
_alpha = (_alpha - al);
if (_alpha < 1) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 946 MovieClip in Symbol 2312 MovieClip Frame 149
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = _xscale;
spd = 0.5;
al = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y - spd);
spd = spd + 0.5;
_xscale = (_xscale + 5);
_yscale = (_yscale + 5);
_alpha = (_alpha - al);
if (_alpha < 1) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 946 MovieClip in Symbol 2312 MovieClip Frame 149
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = _xscale;
spd = 0.5;
al = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y - spd);
spd = spd + 0.5;
_xscale = (_xscale + 5);
_yscale = (_yscale + 5);
_alpha = (_alpha - al);
if (_alpha < 1) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 946 MovieClip in Symbol 2312 MovieClip Frame 149
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = _xscale;
spd = 0.5;
al = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y - spd);
spd = spd + 0.5;
_xscale = (_xscale + 5);
_yscale = (_yscale + 5);
_alpha = (_alpha - al);
if (_alpha < 1) {
swapDepths(1);
removeMovieClip("");
}
}
Symbol 2312 MovieClip Frame 166
_root.sfx.gotoAndPlay(130);
Instance of Symbol 946 MovieClip in Symbol 2312 MovieClip Frame 271
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = _xscale;
spd = 0.5;
al = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y - spd);
spd = spd + 0.5;
_xscale = (_xscale + 5);
_yscale = (_yscale + 5);
_alpha = (_alpha - al);
if (_alpha < 1) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 946 MovieClip in Symbol 2312 MovieClip Frame 271
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = _xscale;
spd = 0.5;
al = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y - spd);
spd = spd + 0.5;
_xscale = (_xscale + 5);
_yscale = (_yscale + 5);
_alpha = (_alpha - al);
if (_alpha < 1) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 946 MovieClip in Symbol 2312 MovieClip Frame 271
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = _xscale;
spd = 0.5;
al = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y - spd);
spd = spd + 0.5;
_xscale = (_xscale + 5);
_yscale = (_yscale + 5);
_alpha = (_alpha - al);
if (_alpha < 1) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 946 MovieClip in Symbol 2312 MovieClip Frame 271
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = _xscale;
spd = 0.5;
al = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y - spd);
spd = spd + 0.5;
_xscale = (_xscale + 5);
_yscale = (_yscale + 5);
_alpha = (_alpha - al);
if (_alpha < 1) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 946 MovieClip in Symbol 2312 MovieClip Frame 271
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = _xscale;
spd = 0.5;
al = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y - spd);
spd = spd + 0.5;
_xscale = (_xscale + 5);
_yscale = (_yscale + 5);
_alpha = (_alpha - al);
if (_alpha < 1) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 946 MovieClip in Symbol 2312 MovieClip Frame 271
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = _xscale;
spd = 0.5;
al = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y - spd);
spd = spd + 0.5;
_xscale = (_xscale + 5);
_yscale = (_yscale + 5);
_alpha = (_alpha - al);
if (_alpha < 1) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 946 MovieClip in Symbol 2312 MovieClip Frame 271
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = _xscale;
spd = 0.5;
al = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y - spd);
spd = spd + 0.5;
_xscale = (_xscale + 5);
_yscale = (_yscale + 5);
_alpha = (_alpha - al);
if (_alpha < 1) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 946 MovieClip in Symbol 2312 MovieClip Frame 271
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = _xscale;
spd = 0.5;
al = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y - spd);
spd = spd + 0.5;
_xscale = (_xscale + 5);
_yscale = (_yscale + 5);
_alpha = (_alpha - al);
if (_alpha < 1) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 946 MovieClip in Symbol 2312 MovieClip Frame 271
onClipEvent (load) {
_xscale = (random(50) + 50);
_yscale = _xscale;
spd = 0.5;
al = random(3) + 1;
}
onClipEvent (enterFrame) {
_y = (_y - spd);
spd = spd + 0.5;
_xscale = (_xscale + 5);
_yscale = (_yscale + 5);
_alpha = (_alpha - al);
if (_alpha < 1) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 2306 MovieClip in Symbol 2312 MovieClip Frame 298
onClipEvent (load) {
play();
}
Instance of Symbol 2306 MovieClip in Symbol 2312 MovieClip Frame 425
onClipEvent (load) {
gotoAndStop (126);
}
Symbol 2312 MovieClip Frame 451
_root.nextFrame();
Instance of Symbol 1783 MovieClip in Symbol 2315 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.character)) {
_root.gameFun.saveGame();
_root.gotoAndStop(58);
}
}
Instance of Symbol 721 MovieClip "t1" in Symbol 2315 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
time++;
if (_root.character.targets.length < 3) {
if (_root.hardMode == true) {
if (time > 30) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm2, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene2, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
time = 0;
}
} else if (time > 90) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm2, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene2, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
time = 0;
}
}
}
}
Instance of Symbol 448 MovieClip in Symbol 2316 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
onClipEvent (enterFrame) {
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
Symbol 2318 MovieClip Frame 1
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Instance of Symbol 448 MovieClip "head" in Symbol 2318 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Symbol 2318 MovieClip Frame 11
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 80);
Instance of Symbol 448 MovieClip in Symbol 2319 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
onClipEvent (enterFrame) {
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
Instance of Symbol 450 MovieClip in Symbol 2319 MovieClip Frame 8
onClipEvent (enterFrame) {
if ((hitTest(_root.character) && (_root.pause == false)) && (haveHit != true)) {
_root.character.health = _root.character.health - 20;
_root.sfx.gotoAndPlay(42);
haveHit = true;
}
}
Instance of Symbol 2317 MovieClip in Symbol 2319 MovieClip Frame 33
onClipEvent (enterFrame) {
if ((hitTest(_root.character) && (_root.pause == false)) && (haveHit != true)) {
_root.character.health = _root.character.health - 20;
_root.sfx.gotoAndPlay(42);
haveHit = true;
}
}
Instance of Symbol 448 MovieClip "head" in Symbol 2320 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Symbol 2320 MovieClip Frame 8
_parent.hurt = false;
_parent.gotoAndStop(1);
Instance of Symbol 448 MovieClip "head" in Symbol 2320 MovieClip Frame 8
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Instance of Symbol 448 MovieClip "head" in Symbol 2321 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Symbol 2321 MovieClip Frame 8
_parent.hurt = false;
_parent.gotoAndStop(1);
Instance of Symbol 448 MovieClip "head" in Symbol 2322 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Symbol 2322 MovieClip Frame 8
_parent.hurt = false;
_parent.gotoAndStop(1);
Instance of Symbol 448 MovieClip "head" in Symbol 2322 MovieClip Frame 8
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Instance of Symbol 448 MovieClip "head" in Symbol 2323 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Symbol 2323 MovieClip Frame 8
_parent.hurt = false;
_parent.gotoAndStop(1);
Instance of Symbol 448 MovieClip "head" in Symbol 2323 MovieClip Frame 8
onClipEvent (load) {
gotoAndStop(_parent._parent.head);
}
Symbol 2329 MovieClip Frame 1
stop();
Symbol 2333 MovieClip Frame 1
stop();
Symbol 2337 MovieClip Frame 1
stop();
Instance of Symbol 1193 MovieClip in Symbol 2338 MovieClip Frame 74
onClipEvent (load) {
gravity = 0;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= -36.5) {
_y = -36.5;
play();
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_currentframe > 10) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 1193 MovieClip in Symbol 2338 MovieClip Frame 74
onClipEvent (load) {
gravity = 0;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= -36.5) {
_y = -36.5;
play();
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_currentframe > 10) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 1193 MovieClip in Symbol 2338 MovieClip Frame 81
onClipEvent (load) {
gravity = 0;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= -36.5) {
_y = -36.5;
play();
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_currentframe > 10) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 1193 MovieClip in Symbol 2338 MovieClip Frame 81
onClipEvent (load) {
gravity = 0;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= -36.5) {
_y = -36.5;
play();
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_currentframe > 10) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 1193 MovieClip in Symbol 2338 MovieClip Frame 88
onClipEvent (load) {
gravity = 0;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= -36.5) {
_y = -36.5;
play();
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_currentframe > 10) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 1193 MovieClip in Symbol 2338 MovieClip Frame 88
onClipEvent (load) {
gravity = 0;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= -36.5) {
_y = -36.5;
play();
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_currentframe > 10) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 213 MovieClip "body" in Symbol 2338 MovieClip Frame 109
onClipEvent (load) {
gotoAndStop (62);
}
Instance of Symbol 448 MovieClip in Symbol 2338 MovieClip Frame 109
onClipEvent (load) {
gotoAndStop (74);
face.gotoAndStop(74);
}
Instance of Symbol 1193 MovieClip in Symbol 2338 MovieClip Frame 115
onClipEvent (load) {
gravity = 0;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= -36.5) {
_y = -36.5;
play();
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_currentframe > 10) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 1193 MovieClip in Symbol 2338 MovieClip Frame 115
onClipEvent (load) {
gravity = 0;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= -36.5) {
_y = -36.5;
play();
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_currentframe > 10) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 1193 MovieClip in Symbol 2338 MovieClip Frame 122
onClipEvent (load) {
gravity = 0;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= -36.5) {
_y = -36.5;
play();
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_currentframe > 10) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 1193 MovieClip in Symbol 2338 MovieClip Frame 122
onClipEvent (load) {
gravity = 0;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= -36.5) {
_y = -36.5;
play();
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_currentframe > 10) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 1193 MovieClip in Symbol 2338 MovieClip Frame 129
onClipEvent (load) {
gravity = 0;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= -36.5) {
_y = -36.5;
play();
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_currentframe > 10) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 1193 MovieClip in Symbol 2338 MovieClip Frame 129
onClipEvent (load) {
gravity = 0;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= -36.5) {
_y = -36.5;
play();
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_currentframe > 10) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 213 MovieClip in Symbol 2338 MovieClip Frame 140
onClipEvent (load) {
gotoAndStop (62);
}
onClipEvent (enterFrame) {
gotoAndStop (62);
}
Instance of Symbol 1193 MovieClip in Symbol 2338 MovieClip Frame 152
onClipEvent (load) {
gravity = 0;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= -36.5) {
_y = -36.5;
play();
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_currentframe > 10) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 1193 MovieClip in Symbol 2338 MovieClip Frame 152
onClipEvent (load) {
gravity = 0;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= -36.5) {
_y = -36.5;
play();
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_currentframe > 10) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 1193 MovieClip in Symbol 2338 MovieClip Frame 157
onClipEvent (load) {
gravity = 0;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= -36.5) {
_y = -36.5;
play();
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_currentframe > 10) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 1193 MovieClip in Symbol 2338 MovieClip Frame 157
onClipEvent (load) {
gravity = 0;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= -36.5) {
_y = -36.5;
play();
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_currentframe > 10) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 1193 MovieClip in Symbol 2338 MovieClip Frame 161
onClipEvent (load) {
gravity = 0;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= -36.5) {
_y = -36.5;
play();
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_currentframe > 10) {
swapDepths(1);
removeMovieClip("");
}
}
Instance of Symbol 1193 MovieClip in Symbol 2338 MovieClip Frame 161
onClipEvent (load) {
gravity = 0;
_xscale = (random(50) + 50);
_yscale = _xscale;
scaleChance = random(2) + 1;
if (scaleChance == 1) {
_xscale = (_xscale * -1);
}
}
onClipEvent (enterFrame) {
if (_y >= -36.5) {
_y = -36.5;
play();
gravity = 0;
} else {
_y = (_y + gravity);
gravity = gravity + 1;
}
if (_currentframe > 10) {
swapDepths(1);
removeMovieClip("");
}
}
Symbol 2339 MovieClip Frame 1
_root.sfx.gotoAndPlay(36);
Instance of Symbol 99 MovieClip "foot2" in Symbol 2339 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (19);
}
Instance of Symbol 99 MovieClip "foot1" in Symbol 2339 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (19);
}
Instance of Symbol 213 MovieClip "body" in Symbol 2339 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (62);
}
Instance of Symbol 448 MovieClip in Symbol 2339 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (74);
face.gotoAndStop(74);
}
Instance of Symbol 448 MovieClip in Symbol 2339 MovieClip Frame 15
onClipEvent (load) {
gotoAndStop (74);
face.gotoAndStop(74);
}
Instance of Symbol 448 MovieClip in Symbol 2339 MovieClip Frame 19
onClipEvent (load) {
gotoAndStop (74);
face.gotoAndStop(74);
}
Symbol 2339 MovieClip Frame 23
_root.sfx.gotoAndPlay(128);
Symbol 2339 MovieClip Frame 27
_root.sfx.gotoAndPlay(128);
Symbol 2339 MovieClip Frame 35
_root.sfx.gotoAndPlay(128);
Symbol 2339 MovieClip Frame 163
_root.sfx.gotoAndPlay(130);
Instance of Symbol 448 MovieClip in Symbol 2339 MovieClip Frame 167
onClipEvent (load) {
gotoAndStop (74);
face.gotoAndStop(74);
}
Instance of Symbol 448 MovieClip in Symbol 2339 MovieClip Frame 169
onClipEvent (load) {
gotoAndStop (74);
face.gotoAndStop(74);
}
Instance of Symbol 448 MovieClip in Symbol 2339 MovieClip Frame 171
onClipEvent (load) {
gotoAndStop (74);
face.gotoAndStop(74);
}
Instance of Symbol 448 MovieClip in Symbol 2339 MovieClip Frame 177
onClipEvent (load) {
gotoAndStop (74);
face.gotoAndStop(74);
}
Instance of Symbol 448 MovieClip in Symbol 2339 MovieClip Frame 181
onClipEvent (load) {
gotoAndStop (74);
face.gotoAndStop(74);
}
Instance of Symbol 448 MovieClip in Symbol 2339 MovieClip Frame 183
onClipEvent (load) {
gotoAndStop (74);
face.gotoAndStop(74);
}
Instance of Symbol 448 MovieClip in Symbol 2339 MovieClip Frame 185
onClipEvent (load) {
gotoAndStop (74);
face.gotoAndStop(74);
}
Instance of Symbol 448 MovieClip in Symbol 2339 MovieClip Frame 187
onClipEvent (load) {
gotoAndStop (74);
face.gotoAndStop(74);
}
Instance of Symbol 448 MovieClip in Symbol 2339 MovieClip Frame 191
onClipEvent (load) {
gotoAndStop (74);
face.gotoAndStop(74);
}
Instance of Symbol 448 MovieClip in Symbol 2339 MovieClip Frame 197
onClipEvent (load) {
gotoAndStop (74);
face.gotoAndStop(74);
}
Instance of Symbol 448 MovieClip in Symbol 2339 MovieClip Frame 199
onClipEvent (load) {
gotoAndStop (74);
face.gotoAndStop(74);
}
Symbol 2339 MovieClip Frame 202
_root.sfx.gotoAndPlay(36);
Instance of Symbol 448 MovieClip in Symbol 2339 MovieClip Frame 203
onClipEvent (load) {
gotoAndStop (74);
face.gotoAndStop(74);
}
Instance of Symbol 448 MovieClip in Symbol 2339 MovieClip Frame 205
onClipEvent (load) {
gotoAndStop (74);
face.gotoAndStop(74);
}
Instance of Symbol 448 MovieClip in Symbol 2339 MovieClip Frame 207
onClipEvent (load) {
gotoAndStop (74);
face.gotoAndStop(74);
}
Symbol 2339 MovieClip Frame 210
_root.sfx.gotoAndPlay(36);
Instance of Symbol 448 MovieClip in Symbol 2339 MovieClip Frame 217
onClipEvent (load) {
gotoAndStop (74);
face.gotoAndStop(74);
}
Symbol 2339 MovieClip Frame 218
_root.sfx.gotoAndPlay(36);
Symbol 2339 MovieClip Frame 225
_root.sfx.gotoAndPlay(38);
Symbol 2339 MovieClip Frame 228
_root.sfx.gotoAndPlay(36);
Symbol 2339 MovieClip Frame 262
_root.sfx.gotoAndPlay(36);
Symbol 2339 MovieClip Frame 275
_root.sfx.gotoAndPlay(38);
Symbol 2339 MovieClip Frame 278
_root.sfx.gotoAndPlay(36);
Symbol 2339 MovieClip Frame 309
_root.sfx.gotoAndPlay(36);
Symbol 2339 MovieClip Frame 328
_root.sfx.gotoAndPlay(36);
Symbol 2339 MovieClip Frame 342
_root.sfx.gotoAndPlay(130);
Symbol 2339 MovieClip Frame 343
_root.sfx.gotoAndPlay(38);
Symbol 2339 MovieClip Frame 356
_root.sfx.gotoAndPlay(130);
Symbol 2339 MovieClip Frame 410
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.eneTwo, "item" + i, i);
_root.item["item" + i]._x = _parent._x;
_root.item["item" + i]._y = _parent._y;
_root.item["item" + i].ar = nam;
_root.arm.i++;
_root.pause2 = false;
_parent.removeMovieClip("");
Instance of Symbol 2316 MovieClip "char" in Symbol 2340 MovieClip Frame 1
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 2318 MovieClip "char" in Symbol 2340 MovieClip Frame 2
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 2319 MovieClip "char" in Symbol 2340 MovieClip Frame 3
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 2320 MovieClip "char" in Symbol 2340 MovieClip Frame 11
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 2321 MovieClip "char" in Symbol 2340 MovieClip Frame 12
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 2322 MovieClip "char" in Symbol 2340 MovieClip Frame 13
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Instance of Symbol 2323 MovieClip "char" in Symbol 2340 MovieClip Frame 14
onClipEvent (load) {
body.gotoAndStop(_parent.body);
foot1.gotoAndStop(_parent.foot);
foot2.gotoAndStop(_parent.foot);
}
Symbol 2342 MovieClip Frame 40
gotoAndPlay (1);
Symbol 2342 MovieClip Frame 53
_root.sfx.gotoAndPlay(40);
Symbol 2342 MovieClip Frame 57
_root.sfx.gotoAndPlay(((random(3) + 1) * 2) + 44);
Instance of Symbol 2337 MovieClip in Symbol 2342 MovieClip Frame 57
onClipEvent (load) {
if (hitTest(_root.character) && (_root.pause == false)) {
_root.character.health = _root.character.health - 20;
_root.sfx.gotoAndPlay(42);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = (_root.character._x - _root.item._x) + (random(20) - 10);
_root.item["item" + i]._y = (_root.character._y - _root.item._y) + (random(30) - 15);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.item["obj" + i]._x = (_root.character._x - _root.item._x) + (random(20) - 10);
_root.item["obj" + i]._y = (_root.character._y - _root.item._y) + (random(30) - 15);
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(4) + 1);
sca = random(50) + 25;
_root.obj["obj" + i]._xscale = sca;
_root.obj["obj" + i]._yscale = sca;
_root.obj["obj" + i]._alpha = 50;
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
}
}
Instance of Symbol 213 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (62);
}
onClipEvent (enterFrame) {
gotoAndStop (62);
}
Instance of Symbol 448 MovieClip in Symbol 2343 MovieClip Frame 1
onClipEvent (load) {
face.gotoAndStop(74);
gotoAndStop (74);
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
onClipEvent (enterFrame) {
face.gotoAndStop(74);
gotoAndStop (74);
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
Symbol 2344 MovieClip Frame 10
_root.sfx.gotoAndPlay(((random(3) + 1) * 2) + 120);
Instance of Symbol 213 MovieClip in Symbol 2345 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (62);
}
onClipEvent (enterFrame) {
gotoAndStop (62);
}
Instance of Symbol 448 MovieClip in Symbol 2345 MovieClip Frame 1
onClipEvent (load) {
face.gotoAndStop(74);
gotoAndStop (74);
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
onClipEvent (enterFrame) {
face.gotoAndStop(74);
gotoAndStop (74);
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
Symbol 2345 MovieClip Frame 24
_root.sfx.gotoAndPlay(((random(3) + 1) * 2) + 120);
Symbol 2346 MovieClip Frame 12
_root.sfx.gotoAndPlay(((random(3) + 1) * 2) + 120);
Instance of Symbol 213 MovieClip in Symbol 2347 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (62);
}
onClipEvent (enterFrame) {
gotoAndStop (62);
}
Instance of Symbol 448 MovieClip in Symbol 2347 MovieClip Frame 1
onClipEvent (load) {
face.gotoAndStop(74);
gotoAndStop (74);
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
onClipEvent (enterFrame) {
face.gotoAndStop(74);
gotoAndStop (74);
_x = _parent.head._x;
_y = _parent.head._y;
if (_parent._parent._xscale == 100) {
_rotation = _parent._parent.headRot;
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
} else {
_rotation = ((-_parent._parent.headRot) + 180);
if (_rotation > 50) {
_rotation = 50;
}
if (_rotation < -50) {
_rotation = -50;
}
}
}
Symbol 2347 MovieClip Frame 31
_root.sfx.gotoAndPlay(((random(3) + 1) * 2) + 120);
Instance of Symbol 213 MovieClip in Symbol 2348 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (62);
}
onClipEvent (enterFrame) {
gotoAndStop (62);
}
Instance of Symbol 448 MovieClip "head" in Symbol 2348 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (74);
face.gotoAndStop(74);
}
Symbol 2348 MovieClip Frame 47
stop();
_root.pause2 = false;
_root.pauseScreen.gotoAndStop(2);
_root.lvObj.d1.play();
_root.bound.d1.play();
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "Exit Open";
Symbol 2349 MovieClip Frame 1
stop();
Symbol 2350 MovieClip Frame 1
c = function (obj) {
i = 0;
while (i < 5) {
_root.item[obj]._x = _root.item[obj]._x + _root.item[obj].x;
_root.item[obj]._y = _root.item[obj]._y + _root.item[obj].y;
n = 0;
while (n < _root.character.targets.length) {
_root.item[obj].tar = _root.character.targets[n];
if (_root.item[_root.item[obj].tar].health > 0) {
_root.item[obj].dx = Math.abs(_root.item[obj]._x - _root.item[_root.item[obj].tar]._x);
_root.item[obj].dy = Math.abs(_root.item[obj]._y - (_root.item[_root.item[obj].tar]._y - 10));
if ((_root.item[obj].dx < 20) && (_root.item[obj].dy < 25)) {
_root.item[_root.item[obj].tar].health = _root.item[_root.item[obj].tar].health - _root.item[obj].pow;
if (_root.item[obj]._y > (_root.item[_root.item[obj].tar]._y - 4)) {
_root.item[_root.item[obj].tar].bodyHealth = _root.item[_root.item[obj].tar].bodyHealth - _root.item[obj].pow;
n = 100000 /* 0x0186A0 */;
if (_root.item[_root.item[obj].tar].fall == false) {
_root.item[obj].chance = random(2) + 1;
if (_root.item[obj].chance == 1) {
_root.item[_root.item[obj].tar].gotoAndStop(13);
} else {
_root.item[_root.item[obj].tar].gotoAndStop(14);
}
_root.item[_root.item[obj].tar].hurt = true;
}
} else {
_root.item[_root.item[obj].tar].headHealth = _root.item[_root.item[obj].tar].headHealth - _root.item[obj].pow;
n = 100000 /* 0x0186A0 */;
_root.item[_root.item[obj].tar].health = _root.item[_root.item[obj].tar].health - (_root.item[obj].pow / 2);
_root.item[_root.item[obj].tar].headHealth = _root.item[_root.item[obj].tar].headHealth - (_root.item[obj].pow / 2);
if (_root.item[_root.item[obj].tar].fall == false) {
_root.item[obj].chance = random(2) + 1;
if (_root.item[obj].chance == 1) {
_root.item[_root.item[obj].tar].gotoAndStop(11);
} else {
_root.item[_root.item[obj].tar].gotoAndStop(12);
}
_root.item[_root.item[obj].tar].hurt = true;
}
}
if (_root.item[_root.item[obj].tar].isMetal == false) {
_root.item[obj].blood();
} else {
_root.item[obj].spark();
}
}
}
n++;
}
if (_root.bound.hitTest(_root.item[obj]._x + _root.item._x, _root.item[obj]._y + _root.item._y, true)) {
_root.item[obj].spark();
}
i++;
}
};
d = function (obj) {
i = 0;
while (i < 5) {
_root.item[obj]._x = _root.item[obj]._x + _root.item[obj].x;
_root.item[obj]._y = _root.item[obj]._y + _root.item[obj].y;
_root.item[obj].tar = _root.character;
if (_root.character.health > 0) {
_root.item[obj].dx = Math.abs(_root.item[obj]._x - (_root.character._x - _root.item._x));
_root.item[obj].dy = Math.abs(_root.item[obj]._y - ((_root.character._y - 10) - _root.item._y));
if (_root.character._currentframe != 10) {
if ((_root.character._currentframe != 8) && (_root.character._currentframe != 9)) {
if ((_root.item[obj].dx < 20) && (_root.item[obj].dy < 25)) {
_root.character.health = _root.character.health - (_root.item[obj].pow * 1.5);
if (_root.item[obj]._y > ((_root.character._y - 4) - _root.item._y)) {
_root.character.bodyHealth = _root.character.bodyHealth - _root.item[obj].pow;
n = 100000 /* 0x0186A0 */;
if (_root.character.fall == false) {
_root.item[obj].chance = random(2) + 1;
if (_root.item[obj].chance == 1) {
_root.character.gotoAndStop(13);
} else {
_root.character.gotoAndStop(14);
}
_root.character.hurt = true;
_root.character.xVel = 0;
}
} else {
_root.character.headHealth = _root.character.headHealth - _root.item[obj].pow;
n = 100000 /* 0x0186A0 */;
_root.character.health = _root.character.health - _root.item[obj].pow;
_root.character.headHealth = _root.character.headHealth - (_root.item[obj].pow / 2);
if (_root.character.fall == false) {
_root.item[obj].chance = random(2) + 1;
if (_root.item[obj].chance == 1) {
_root.character.gotoAndStop(11);
} else {
_root.character.gotoAndStop(12);
}
_root.character.hurt = true;
_root.character.xVel = 0;
}
}
_root.item[obj].blood();
}
}
} else if ((_root.item[obj].dx < 20) && (_root.item[obj].dy < 15)) {
_root.character.health = _root.character.health - (_root.item[obj].pow * 1.5);
_root.character.headHealth = _root.character.headHealth - _root.item[obj].pow;
n = 100000 /* 0x0186A0 */;
_root.character.health = _root.character.health - _root.item[obj].pow;
_root.character.headHealth = _root.character.headHealth - (_root.item[obj].pow / 2);
if (_root.character.fall == false) {
_root.item[obj].chance = random(2) + 1;
if (_root.item[obj].chance == 1) {
_root.character.gotoAndStop(11);
} else {
_root.character.gotoAndStop(12);
}
_root.character.hurt = true;
_root.character.xVel = 0;
}
_root.item[obj].blood();
}
}
if (_root.bound.hitTest(_root.item[obj]._x + _root.item._x, _root.item[obj]._y + _root.item._y, true)) {
_root.item[obj].spark();
}
i++;
}
};
Instance of Symbol 1547 MovieClip "fla" in Symbol 2350 MovieClip Frame 1
onClipEvent (load) {
time = 0;
_xscale = (random(50) + 70);
chance = random(2) + 1;
if (chance == 1) {
_yscale = (_yscale * -1);
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "fla") {
if (time > 1) {
removeMovieClip("");
} else {
if (time > 0) {
_alpha = (_alpha - 50);
}
time = time + 1;
}
}
}
}
Instance of Symbol 15 MovieClip "shell" in Symbol 2350 MovieClip Frame 1
onClipEvent (load) {
if (_name != "shell") {
if (_root.bound.hitTest(_x + _root.item._x, _y + _root.item._y, true)) {
removeMovieClip("");
}
bounce = 0;
if (_xscale == 100) {
r = random(20);
rot = _rotation;
speed = 10;
xa = (Math.sin(rot * (Math.PI/180)) * speed) - (random(8) + (random(10) / 10));
} else {
r = -random(20);
rot = _rotation;
speed = -10;
xa = (Math.sin(rot * (Math.PI/180)) * speed) + (random(8) + (random(10) / 10));
}
_xscale = 100;
ya = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
timer = 0;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "shell") {
timer = timer + 1;
_x = (_x + xa);
_y = (_y + ya);
_rotation = (_rotation + (xa - r));
ya = ya + 2;
if (_root.bound.hitTest(_x + _root.item._x, _y + _root.item._y, true)) {
ya = ya * -0.5;
xa = xa * -0.3;
t = 0;
while (_root.bound.hitTest(_x + _root.item._x, (_y + _root.item._y) - 1, true)) {
_y = (_y - 1);
t++;
if (t > 50) {
removeMovieClip("");
}
}
bounce = bounce + 1;
if (bounce > 3) {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.shell, "obj" + i, i);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._rotation = _rotation;
_root.obj["obj" + i].gotoAndStop(_currentframe);
_root.stuff.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
removeMovieClip("");
} else if (bounce == 1) {
_root.sfx.gotoAndPlay(94);
} else if (bounce == 2) {
_root.sfx.gotoAndPlay(96);
}
}
if (_root.bound.hitTest((_x + 15) + _root.item._x, _y + _root.item._y, true) || (_root.bound.hitTest((_x - 15) + _root.item._x, _y + _root.item._y, true))) {
xa = xa * -0.5;
_x = (_x + xa);
}
if (_root.bound.hitTest(_x + _root.item._x, (_y + _root.item._y) - 15, true)) {
ya = 3;
}
if (timer > 90) {
removeMovieClip("");
}
}
}
}
Instance of Symbol 1549 MovieClip "bullet" in Symbol 2350 MovieClip Frame 1
onClipEvent (load) {
spark = function () {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.spark1, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.item["item" + i]._rotation = _rotation + (random(60) - 30);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.bh, "obj" + i, i);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._rotation = _rotation;
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
removeMovieClip("");
};
blood = function () {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.item["item" + i]._rotation = _rotation;
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(4) + 1);
sca = random(50) + 30;
_root.obj["obj" + i]._xscale = sca;
_root.obj["obj" + i]._yscale = sca;
_root.obj["obj" + i]._alpha = 50;
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
removeMovieClip("");
};
time = 0;
rot = _rotation - 90;
type = 1;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (enemyBullet != true) {
_root.item.c(_name);
} else {
_root.item.d(_name);
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "bullet") {
if (time == 1) {
_xscale = (_xscale + (random(100) + 100));
}
time++;
if (time > 8) {
removeMovieClip("");
}
if (time > 6) {
_alpha = (_alpha - 30);
}
if (enemyBullet != true) {
_root.item.c(_name);
} else {
_root.item.d(_name);
}
}
}
}
Instance of Symbol 1299 MovieClip "spark1" in Symbol 2350 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "spark1") {
_alpha = (_alpha - 30);
_xscale = (_xscale + 30);
_yscale = (_yscale + 30);
if (_alpha < 1) {
swapDepths(10000);
removeMovieClip("");
}
}
}
}
Instance of Symbol 749 MovieClip "blood" in Symbol 2350 MovieClip Frame 1
onClipEvent (load) {
if (_name != "blood") {
_xscale = (random(30) + 40);
_yscale = _xscale;
_rotation = (_rotation + (random(40) - 20));
} else {
stop();
}
}
onClipEvent (enterFrame) {
if (_name != "blood") {
if (_root.pause == false) {
play();
} else {
stop();
}
}
}
Instance of Symbol 1551 MovieClip "gren1" in Symbol 2350 MovieClip Frame 1
onClipEvent (load) {
splode = function () {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.explode, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.item["item" + i]._rotation = random(360);
n = 0;
while (n < _root.character.targets.length) {
tar = _root.character.targets[n];
if (_root.item[tar].health > 0) {
dx = (_x - _root.item[tar]._x) * (_x - _root.item[tar]._x);
dy = (_y - (_root.item[tar]._y - 10)) * (_y - (_root.item[tar]._y - 10));
splodeDist = Math.abs(Math.sqrt(dx + dy));
if (splodeDist < 200) {
_root.item[tar].health = _root.item[tar].health - (20 - Math.round(splodeDist / 10));
chance = random(2) + 1;
if (chance == 1) {
_root.item[tar].gotoAndStop(11);
} else {
_root.item[tar].gotoAndStop(12);
}
_root.item[tar].hurt = true;
}
}
n++;
}
dx = ((_x + _root.item._x) - _root.character._x) * ((_x + _root.item._x) - _root.character._x);
dy = ((_y + _root.item._y) - _root.character._y) * ((_y + _root.item._y) - _root.character._y);
splodeDist = Math.abs(Math.sqrt(dx + dy));
if (splodeDist < 200) {
_root.character.health = _root.character.health - (20 - Math.round(splodeDist / 10));
chance = random(2) + 1;
if (chance == 1) {
_root.character.gotoAndStop(11);
} else {
_root.character.gotoAndStop(12);
}
_root.character.hurt = true;
}
removeMovieClip("");
};
bounce = random(1);
time = 0;
rot = _rotation - 90;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
timer = 0;
r = random(20) + 10;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "gren1") {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + r);
y = y + 0.5;
n = 0;
while (n < _root.character.targets.length) {
tar = _root.character.targets[n];
if (_root.item[tar].health > 0) {
dx = Math.abs(_x - _root.item[tar]._x);
dy = Math.abs(_y - (_root.item[tar]._y - 10));
if ((dx < 20) && (dy < 25)) {
if (_root.item[tar].fall == false) {
chance = random(2) + 1;
if (chance == 1) {
_root.item[tar].gotoAndStop(11);
} else {
_root.item[tar].gotoAndStop(12);
}
_root.item[tar].hurt = true;
}
_root.item[tar].health = _root.item[tar].health - pow;
splode();
}
}
n++;
}
if (_root.bound.hitTest(_x + _root.item._x, _y + _root.item._y, true)) {
y = y * -0.5;
x = x * -0.3;
t = 0;
bounce = bounce + 1;
if (bounce > 1) {
splode();
}
}
if (_root.bound.hitTest((_x + 15) + _root.item._x, _y + _root.item._y, true) || (_root.bound.hitTest((_x - 15) + _root.item._x, _y + _root.item._y, true))) {
x = x * -0.5;
_x = (_x + x);
}
if (_root.bound.hitTest(_x + _root.item._x, (_y + _root.item._y) - 15, true)) {
y = 3;
}
if (timer > 90) {
splode();
}
}
}
}
Instance of Symbol 1410 MovieClip "explode" in Symbol 2350 MovieClip Frame 1
onClipEvent (load) {
if (_name == "explode") {
stop();
} else {
_root.sfx.gotoAndPlay(((random(2) + 1) * 2) + 30);
_root.character.modifier = random(15) + 10;
_root.character.yModifier = random(15) + 10;
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.burn2, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
}
}
onClipEvent (enterFrame) {
if (_name != "explode") {
if (_root.pause == false) {
play();
} else {
stop();
}
}
}
Instance of Symbol 1553 MovieClip "gren2" in Symbol 2350 MovieClip Frame 1
onClipEvent (load) {
if (_name != "gren2") {
splode2 = function () {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.explode, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.item["item" + i]._rotation = random(360);
removeMovieClip("");
};
if (_root.bound.hitTest(_x + _root.item._x, _y + _root.item._y, true)) {
splode2();
removeMovieClip("");
}
splode = function () {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.explode, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.item["item" + i]._rotation = random(360);
a = 0;
while (a < 10) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.item["item" + i]._rotation = -((random(8) + 10) * a);
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = 1;
a++;
}
n = 0;
while (n < _root.character.targets.length) {
tar = _root.character.targets[n];
if (_root.item[tar].health > 0) {
dx = (_x - _root.item[tar]._x) * (_x - _root.item[tar]._x);
dy = (_y - (_root.item[tar]._y - 10)) * (_y - (_root.item[tar]._y - 10));
splodeDist = Math.abs(Math.sqrt(dx + dy));
if (splodeDist < 200) {
_root.item[tar].health = _root.item[tar].health - (20 - Math.round(splodeDist / 10));
chance = random(2) + 1;
if (chance == 1) {
_root.item[tar].gotoAndStop(11);
} else {
_root.item[tar].gotoAndStop(12);
}
_root.item[tar].hurt = true;
}
}
n++;
}
dx = ((_x + _root.item._x) - _root.character._x) * ((_x + _root.item._x) - _root.character._x);
dy = ((_y + _root.item._y) - _root.character._y) * ((_y + _root.item._y) - _root.character._y);
splodeDist = Math.abs(Math.sqrt(dx + dy));
trace(splodeDist);
if (splodeDist < 200) {
_root.character.health = _root.character.health - (20 - Math.round(splodeDist / 10));
chance = random(2) + 1;
if (chance == 1) {
_root.character.gotoAndStop(11);
} else {
_root.character.gotoAndStop(12);
}
_root.character.hurt = true;
}
removeMovieClip("");
};
bounce = random(1);
time = 0;
rot = _rotation - 90;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
timer = 0;
r = random(20) + 10;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "gren2") {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + r);
y = y + 0.5;
n = 0;
while (n < _root.character.targets.length) {
tar = _root.character.targets[n];
if (_root.item[tar].health > 0) {
dx = Math.abs(_x - _root.item[tar]._x);
dy = Math.abs(_y - (_root.item[tar]._y - 10));
if ((dx < 20) && (dy < 25)) {
if (_root.item[tar].fall == false) {
chance = random(2) + 1;
if (chance == 1) {
_root.item[tar].gotoAndStop(11);
} else {
_root.item[tar].gotoAndStop(12);
}
_root.item[tar].hurt = true;
}
_root.item[tar].health = _root.item[tar].health - pow;
splode();
}
}
n++;
}
if (_root.bound.hitTest(_x + _root.item._x, _y + _root.item._y, true)) {
y = y * -0.5;
x = x * -0.3;
t = 0;
bounce = bounce + 1;
if (bounce > 1) {
splode();
}
}
if (_root.bound.hitTest((_x + 15) + _root.item._x, _y + _root.item._y, true) || (_root.bound.hitTest((_x - 15) + _root.item._x, _y + _root.item._y, true))) {
x = x * -0.5;
_x = (_x + x);
}
if (_root.bound.hitTest(_x + _root.item._x, (_y + _root.item._y) - 15, true)) {
y = 3;
}
if (timer > 90) {
splode();
}
}
}
}
Instance of Symbol 1549 MovieClip "flechette" in Symbol 2350 MovieClip Frame 1
onClipEvent (load) {
if (_name != "flechette") {
spark = function () {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.spark1, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.item["item" + i]._rotation = _rotation + (random(60) - 30);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.flechette, "obj" + i, i);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._rotation = _rotation + (random(50) - 25);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
removeMovieClip("");
};
blood = function () {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.item["item" + i]._rotation = _rotation;
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(4) + 1);
sca = random(50) + 30;
_root.obj["obj" + i]._xscale = sca;
_root.obj["obj" + i]._yscale = sca;
_root.obj["obj" + i]._alpha = 50;
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
};
time = 0;
rot = _rotation - 90;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
if (enemyBullet != true) {
_root.item.c(_name);
} else {
_root.item.d(_name);
}
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "flechette") {
if (time == 1) {
_xscale = (_xscale + (random(100) + 100));
}
time++;
if (time > 8) {
removeMovieClip("");
}
if (enemyBullet != true) {
_root.item.c(_name);
} else {
_root.item.d(_name);
}
}
}
}
Instance of Symbol 1556 MovieClip "laser" in Symbol 2350 MovieClip Frame 1
onClipEvent (load) {
spark = function () {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.spark1, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.item["item" + i]._rotation = _rotation + (random(60) - 30);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.burn, "obj" + i, i);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._rotation = _rotation;
_root.obj["obj" + i].b._width = l._width;
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
};
blood = function () {
_root.obj.i++;
ii = _root.obj.i;
duplicateMovieClip (_root.obj.gBlood, "obj" + ii, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + ii]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + ii]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + ii]._rotation = _rotation;
sca = random(100) + 100;
_root.obj["obj" + ii]._xscale = sca;
_root.obj["obj" + ii]._alpha = 50;
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + ii].swapDepths(1);
_root.obj["obj" + ii].removeMovieClip("");
};
time = 0;
rot = _rotation - 90;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
i = 0;
while (i < 25) {
_x = (_x + x);
_y = (_y + y);
l._width = i * 15;
if (enemyBullet != true) {
n = 0;
while (n < _root.character.targets.length) {
tar = _root.character.targets[n];
if (_root.item[tar].health > 0) {
dx = Math.abs(_x - _root.item[tar]._x);
dy = Math.abs(_y - (_root.item[tar]._y - 10));
if ((dx < 20) && (dy < 25)) {
_root.item[tar].health = _root.item[tar].health - pow;
if (_y > (_root.item[tar]._y - 4)) {
if (_root.item[tar].fall == false) {
chance = random(2) + 1;
if (chance == 1) {
_root.item[tar].gotoAndStop(13);
} else {
_root.item[tar].gotoAndStop(14);
}
_root.item[tar].hurt = true;
}
} else {
_root.item[tar].health = _root.item[tar].health - (pow / 2);
if (_root.item[tar].fall == false) {
chance = random(2) + 1;
if (chance == 1) {
_root.item[tar].gotoAndStop(11);
} else {
_root.item[tar].gotoAndStop(12);
}
_root.item[tar].hurt = true;
}
}
if (_root.item[tar].isMetal == true) {
spark();
} else {
blood();
}
}
}
n++;
}
} else {
dx = ((_x + _root.item._x) - _root.character._x) * ((_x + _root.item._x) - _root.character._x);
dy = ((_y + _root.item._y) - _root.character._y) * ((_y + _root.item._y) - _root.character._y);
if ((dx < 20) && (dy < 25)) {
_root.character.health = _root.character.health - 1;
chance = random(2) + 1;
if (chance == 1) {
_root.character.gotoAndStop(11);
} else {
_root.character.gotoAndStop(12);
}
_root.character.hurt = true;
blood();
}
}
if (_root.bound.hitTest(_x + _root.item._x, _y + _root.item._y, true)) {
spark();
i = 1000;
}
i++;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "laser") {
time++;
if (time > 5) {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.burn, "obj" + i, i);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._rotation = _rotation;
_root.obj["obj" + i].b._width = l._width;
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
removeMovieClip("");
}
}
}
}
Instance of Symbol 1569 MovieClip "arm" in Symbol 2350 MovieClip Frame 1
onClipEvent (load) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (_name != "arm") {
fireFun = function () {
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation - wpn._rotation;
} else {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation - wpn._rotation;
}
if (gun != 2) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation - wpn._rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
_root.item["item" + i].enemyBullet = true;
break;
case 2 :
z = 0;
while (z < 6) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
_root.item["item" + i].enemyBullet = true;
z++;
}
break;
case 3 :
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
_root.item["item" + i].enemyBullet = true;
break;
case 4 :
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
_root.item["item" + i].enemyBullet = true;
break;
case 5 :
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
_root.item["item" + i].enemyBullet = true;
break;
case 6 :
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
_root.item["item" + i].enemyBullet = true;
break;
case 7 :
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].tar = drillTarget;
_root.item["item" + i].enemyBullet = true;
break;
case 8 :
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
_root.item["item" + i].enemyBullet = true;
break;
case 9 :
z = 0;
while (z < 6) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
_root.item["item" + i].enemyBullet = true;
z++;
}
break;
case 10 :
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.beanBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
_root.item["item" + i].enemyBullet = true;
}
wpn._rotation = wpn._rotation - (recoilAng[gun] / 3);
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
}
};
threeRound = 0;
fire = false;
drillTarget = "_root.character";
coolDown = 0;
gun = 30;
gotoAndStop(gun);
revolverShots = 0;
fullAuto = _root.arm.fullAuto;
recoil = _root.arm.recoil;
recoilAng = _root.arm.recoilAng;
recoilRec = _root.arm.recoilRec;
recoveryTime = _root.arm.recoveryTime;
casing = _root.arm.casing;
weaponType = _root.arm.weaponType;
pow = new Array(0, 2, 5, 1, 2, 1, 1, 3, 2, 1, 20, 20, 50, 1, 1, 1, 2, 1, 1, 3, 10, 1, 2, 1, 2, 1, 3, 1, 1, 2, 1, 1, 2, 2, 3);
shake = _root.arm.shake;
inAcc = _root.arm.inAcc;
sound = _root.arm.sound;
ammo = _root.arm.ammo;
capacity = _root.arm.capacity;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "arm") {
chance = random(50) + 1;
if ((chance == 1) && (dontShoot == true)) {
if (fullAuto[gun] == 0) {
fireFun();
} else {
fire = true;
}
}
if (wpn._x < 38) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < -8) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (wpn._rotation < 0) {
wpn._rotation = wpn._rotation + 5;
if (wpn._rotation > 0) {
wpn._rotation = 0;
}
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (coolDown < 1) {
fireFun();
}
stopChance = random(10) + 1;
if (stopChance == 1) {
fire = false;
}
}
}
}
}
Instance of Symbol 1501 MovieClip "gib" in Symbol 2350 MovieClip Frame 1
onClipEvent (load) {
if (_name != "gib") {
if (_root.bound.hitTest(_x + _root.item._x, _y + _root.item._y, true)) {
removeMovieClip("");
}
bounce = 0;
rot = 90;
if (_xscale == 100) {
r = random(20);
xa = (Math.sin(rot * (Math.PI/180)) * speed) - (random(8) + (random(10) / 10));
} else {
r = -random(20);
xa = -((Math.sin(rot * (Math.PI/180)) * speed) - (random(8) + (random(10) / 10)));
}
ya = ((Math.cos(rot * (Math.PI/180)) * speed) * -1) - (random(15) + 10);
timer = 0;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "gib") {
timer = timer + 1;
_x = (_x + xa);
_y = (_y + ya);
_rotation = (_rotation + (xa - r));
ya = ya + 2;
if (_root.bound.hitTest(_x + _root.item._x, (_y + _root.item._y) + (_height / 4), true)) {
ya = ya * -0.5;
xa = xa * -0.3;
t = 0;
while (_root.bound.hitTest(_x + _root.item._x, ((_y + _root.item._y) + (_height / 4)) - 1, true)) {
_y = (_y - 1);
t++;
if (t > 50) {
removeMovieClip("");
}
}
bounce = bounce + 1;
if (bounce > 3) {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.gib, "obj" + i, i);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._rotation = _rotation;
_root.obj["obj" + i].gotoAndStop(_currentframe);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
removeMovieClip("");
}
}
if (_root.bound.hitTest((_x + 20) + _root.item._x, _y + _root.item._y, true) || (_root.bound.hitTest((_x - 20) + _root.item._x, _y + _root.item._y, true))) {
xa = xa * -0.5;
_x = (_x + xa);
}
if (_root.bound.hitTest(_x + _root.item._x, (_y + _root.item._y) - 10, true)) {
ya = 3;
}
if (timer > 150) {
removeMovieClip("");
}
}
}
}
Instance of Symbol 833 MovieClip "drill" in Symbol 2350 MovieClip Frame 1
onClipEvent (load) {
if (_name != "drill") {
t = 0;
speed = -10;
getAng = function () {
myRadians = Math.atan2(_root.item[tar]._y - _y, _root.item[tar]._x - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
rot = myDegrees - 40;
_rotation = (rot + 90);
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
};
getAng();
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "drill") {
t++;
if (t > 150) {
removeMovieClip("");
}
getAng();
speed = speed - 0.1;
_x = (_x + x);
_y = (_y + y);
dx = Math.abs(_x - _root.item[tar]._x);
dy = Math.abs(_y - (_root.item[tar]._y - 20));
if ((dx < 20) && (dy < 20)) {
_root.item[tar].health = _root.item[tar].health - 100;
_root.item[tar].drill = true;
removeMovieClip("");
}
}
}
}
Instance of Symbol 1507 MovieClip "brainGib" in Symbol 2350 MovieClip Frame 1
onClipEvent (load) {
if (_name != "brainGib") {
gotoAndStop(random(5) + 1);
if (_root.bound.hitTest(_x + _root.item._x, _y + _root.item._y, true)) {
removeMovieClip("");
}
bounce = 0;
rot = 90;
if (_xscale == -100) {
r = random(20);
xa = (Math.sin(rot * (Math.PI/180)) * speed) - (random(8) + (random(10) / 10));
} else {
r = -random(20);
xa = -((Math.sin(rot * (Math.PI/180)) * speed) - (random(8) + (random(10) / 10)));
}
ya = ((Math.cos(rot * (Math.PI/180)) * speed) * -1) - (random(15) + 10);
timer = 0;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "brainGib") {
timer = timer + 1;
_x = (_x + xa);
_y = (_y + ya);
_rotation = (_rotation + (xa - r));
ya = ya + 2;
if (_root.bound.hitTest(_x + _root.item._x, (_y + _root.item._y) + (_height / 4), true)) {
ya = ya * -0.5;
xa = xa * -0.3;
t = 0;
while (_root.bound.hitTest(_x + _root.item._x, ((_y + _root.item._y) + (_height / 4)) - 1, true)) {
_y = (_y - 1);
t++;
if (t > 50) {
removeMovieClip("");
}
}
bounce = bounce + 1;
if (bounce > 3) {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.brainGib, "obj" + i, i);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._rotation = _rotation;
_root.obj["obj" + i].gotoAndStop(_currentframe);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
removeMovieClip("");
}
}
if (_root.bound.hitTest((_x + 20) + _root.item._x, _y + _root.item._y, true) || (_root.bound.hitTest((_x - 20) + _root.item._x, _y + _root.item._y, true))) {
xa = xa * -0.5;
_x = (_x + xa);
}
if (_root.bound.hitTest(_x + _root.item._x, (_y + _root.item._y) - 10, true)) {
ya = 3;
}
if (timer > 150) {
removeMovieClip("");
}
}
}
}
Instance of Symbol 1570 MovieClip "blood2" in Symbol 2350 MovieClip Frame 1
onClipEvent (load) {
if (_name == "blood2") {
stop();
}
}
onClipEvent (enterFrame) {
if (_name != "blood2") {
if (_root.pause == false) {
play();
} else {
stop();
}
}
}
Instance of Symbol 1571 MovieClip "ele" in Symbol 2350 MovieClip Frame 1
onClipEvent (load) {
if (_name == "ele") {
e.stop();
}
}
onClipEvent (enterFrame) {
if (_name != "ele") {
if (_root.pause == false) {
e.play();
} else {
e.stop();
}
}
}
Instance of Symbol 1578 MovieClip "gauss" in Symbol 2350 MovieClip Frame 1
onClipEvent (load) {
spark = function () {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.spark1, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.item["item" + i]._rotation = _rotation + (random(60) - 30);
};
blood = function () {
_root.arm.i++;
ii = _root.arm.i;
duplicateMovieClip (_root.item.blood, "item" + ii, ii);
_root.item["item" + ii]._x = _x;
_root.item["item" + ii]._y = _y;
_root.item["item" + ii]._rotation = _rotation;
_root.obj.i++;
ii = _root.obj.i;
duplicateMovieClip (_root.obj.gBlood, "obj" + ii, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + ii]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + ii]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + ii]._rotation = _rotation;
sca = random(100) + 100;
_root.obj["obj" + ii]._xscale = sca;
_root.obj["obj" + ii]._alpha = 50;
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + ii].swapDepths(1);
_root.obj["obj" + ii].removeMovieClip("");
};
time = 0;
rot = _rotation - 90;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
i = 0;
while (i < 25) {
_x = (_x + x);
_y = (_y + y);
l._width = i * 15;
hit = false;
if (enemyBullet != true) {
n = 0;
while (n < _root.character.targets.length) {
tar = _root.character.targets[n];
dx = Math.abs(_x - _root.item[tar]._x);
dy = Math.abs(_y - (_root.item[tar]._y - 10));
if ((dx < 20) && (dy < 25)) {
hit = true;
_root.item[tar].health = _root.item[tar].health - pow;
if (_y > (_root.item[tar]._y - 4)) {
if (_root.item[tar].fall == false) {
chance = random(2) + 1;
if (chance == 1) {
_root.item[tar].gotoAndStop(13);
} else {
_root.item[tar].gotoAndStop(14);
}
_root.item[tar].hurt = true;
_root.item[tar].bodyHealth = _root.item[tar].bodyHealth - pow;
}
} else {
_root.item[tar].health = _root.item[tar].health - (pow / 2);
if (_root.item[tar].fall == false) {
chance = random(2) + 1;
if (chance == 1) {
_root.item[tar].gotoAndStop(11);
} else {
_root.item[tar].gotoAndStop(12);
}
_root.item[tar].hurt = true;
_root.item[tar].headHealth = _root.item[tar].headHealth - pow;
}
}
}
n++;
}
} else {
dx = ((_x + _root.item._x) - _root.character._x) * ((_x + _root.item._x) - _root.character._x);
dy = ((_y + _root.item._y) - _root.character._y) * ((_y + _root.item._y) - _root.character._y);
if ((dx < 20) && (dy < 25)) {
_root.character.health = _root.character.health - 1;
chance = random(2) + 1;
if (chance == 1) {
_root.character.gotoAndStop(11);
} else {
_root.character.gotoAndStop(12);
}
_root.character.hurt = true;
}
}
if (hit == true) {
if (_root.item[tar].isMetal == true) {
spark();
} else {
blood();
}
}
if (_root.bound.hitTest(_x + _root.item._x, _y + _root.item._y, true)) {
spark();
i = 1000;
}
i++;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "gauss") {
time++;
if (time > 5) {
_alpha = (_alpha - 5);
}
if (_alpha < 5) {
removeMovieClip("");
}
}
}
}
Instance of Symbol 1579 MovieClip "fla2" in Symbol 2350 MovieClip Frame 1
onClipEvent (load) {
time = 0;
_xscale = (random(50) + 70);
chance = random(2) + 1;
if (chance == 1) {
_yscale = (_yscale * -1);
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "fla2") {
if (time > 1) {
removeMovieClip("");
} else {
if (time > 0) {
_alpha = (_alpha - 50);
}
time = time + 1;
}
}
}
}
Instance of Symbol 1601 MovieClip "item" in Symbol 2350 MovieClip Frame 1
onClipEvent (load) {
if (_name != "item") {
if (_root.bound.hitTest(_x + _root.item._x, _y + _root.item._y, true)) {
removeMovieClip("");
}
bounce = 0;
if (rot == undefined) {
rot = 90;
if (_xscale == 100) {
r = random(20);
xa = (Math.sin(rot * (Math.PI/180)) * speed) - (random(8) + (random(10) / 10));
} else {
r = -random(20);
xa = -((Math.sin(rot * (Math.PI/180)) * speed) - (random(8) + (random(10) / 10)));
}
ya = ((Math.cos(rot * (Math.PI/180)) * speed) * -1) - (random(15) + 10);
dc = false;
} else {
xa = Math.sin(rot * (Math.PI/180)) * speed;
ya = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
r = random(40) - 20;
dc = true;
}
timer = 0;
collectWeapon = function () {
if (cap > -1) {
if (_root.arm.have[_currentframe] == 1) {
if (_root.arm.ammo[_root.arm.ammoType[_currentframe]] < 250) {
_root.ammoMes.time = 0;
_root.ammoMes.gotoAndStop(1);
_root.ammoMes._alpha = 100;
_root.arm.ammo[_root.arm.ammoType[_currentframe]] = _root.arm.ammo[_root.arm.ammoType[_currentframe]] + cap;
_root.ammoMes.mes = ((("Picked Up " + cap) + " Rounds of ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo";
if (_root.arm.ammo[_root.arm.ammoType[_currentframe]] > 250) {
_root.arm.ammo[_root.arm.ammoType[_currentframe]] = 250;
_root.ammoMes.mes = ((((("Picked Up " + cap) + " Rounds of ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo. ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo at Max Capacity.";
}
_root.sfx.gotoAndPlay(92);
removeMovieClip("");
}
} else if (_root.arm.ammo[_root.arm.ammoType[_currentframe]] > -1) {
if (_root.arm.ammo[_root.arm.ammoType[_currentframe]] < 250) {
_root.ammoMes.time = 0;
_root.ammoMes.gotoAndStop(1);
_root.ammoMes._alpha = 100;
_root.arm.ammo[_root.arm.ammoType[_currentframe]] = _root.arm.ammo[_root.arm.ammoType[_currentframe]] + cap;
_root.ammoMes.mes = ((("Picked Up " + cap) + " Rounds of ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo";
if (_root.arm.ammo[_root.arm.ammoType[_currentframe]] > 250) {
_root.arm.ammo[_root.arm.ammoType[_currentframe]] = 250;
_root.ammoMes.mes = ((((("Picked Up " + cap) + " Rounds of ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo. ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo at Max Capacity.";
}
_root.sfx.gotoAndPlay(92);
removeMovieClip("");
}
} else if (_root.arm.weps < 2) {
_root.arm.have[_currentframe] = 1;
_root.ammoMes.time = 0;
_root.ammoMes.gotoAndStop(1);
_root.ammoMes._alpha = 100;
_root.arm.ammo[_root.arm.ammoType[_currentframe]] = _root.arm.ammo[_root.arm.ammoType[_currentframe]] + (cap + 1);
_root.ammoMes.mes = ((((("Picked up " + _root.arm.name[_currentframe]) + " with ") + cap) + " Rounds of ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo";
if (_root.arm.ammo[_root.arm.ammoType[_currentframe]] > 250) {
_root.arm.ammo[_root.arm.ammoType[_currentframe]] = 250;
_root.ammoMes.mes = ((((((("Picked up " + _root.arm.name[_currentframe]) + " with ") + cap) + " Rounds of ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo. ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo at Max Capacity.";
}
_root.arm.gun = _currentframe;
_root.arm.gotoAndStop(_currentframe);
_root.arm._rotation = -90;
_root.arm.fire = false;
_root.wpn = _root.arm.name[_currentframe];
if (_root.arm._yscale == 100) {
_root.arm.wpn.hand1.gotoAndStop(1);
_root.arm.wpn.hand2.gotoAndStop(1);
} else {
_root.arm.wpn.hand1.gotoAndStop(2);
_root.arm.wpn.hand2.gotoAndStop(2);
}
_root.arm.weps = _root.arm.weps + 1;
if (_root.arm.weps > 2) {
_root.arm.weps = 2;
}
_root.sfx.gotoAndPlay(92);
_root.gameFun.haveCollected[_currentframe] = 1;
removeMovieClip("");
} else {
_root.swap.time = 0;
_root.swap._alpha = 100;
_root.swap.gotoAndStop(1);
_root.swap.i1.gotoAndStop(_currentframe);
_root.swap.i2.gotoAndStop(_root.arm.gun);
}
}
};
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "item") {
if (done != true) {
_x = (_x + xa);
_y = (_y + ya);
_rotation = (_rotation + (xa - r));
ya = ya + 2;
if (dc == true) {
if (collideOnce != true) {
n = 0;
while (n < _root.character.targets.length) {
tar = _root.character.targets[n];
if (_root.item[tar].health > 0) {
dx = Math.abs(_x - _root.item[tar]._x);
dy = Math.abs(_y - (_root.item[tar]._y - 10));
if ((dx < 20) && (dy < 25)) {
xa = xa * -0.7;
_x = (_x + xa);
if (_root.item[tar].fall == false) {
chance = random(2) + 1;
if (chance == 1) {
_root.item[tar].gotoAndStop(11);
} else {
_root.item[tar].gotoAndStop(12);
}
_root.item[tar].hurt = true;
}
_root.item[tar].health = _root.item[tar].health - 1;
_root.sfx.gotoAndPlay(98);
collideOnce = true;
}
}
n++;
}
}
}
if (_root.bound.hitTest(_x + _root.item._x, (_y + _root.item._y) + (_height / 4), true)) {
ya = ya * -0.5;
xa = xa * -0.3;
t = 0;
while (_root.bound.hitTest(_x + _root.item._x, ((_y + _root.item._y) + (_height / 4)) - 1, true)) {
_y = (_y - 1);
t++;
if (t > 50) {
removeMovieClip("");
}
}
bounce = bounce + 1;
if (bounce > 3) {
done = true;
this.cacheAsBitmap = true;
} else if (bounce == 1) {
_root.sfx.gotoAndPlay(98);
} else if ((bounce == 2) || (bounce == 3)) {
_root.sfx.gotoAndPlay(100);
}
}
if (_root.bound.hitTest((_x + 20) + _root.item._x, _y + _root.item._y, true) || (_root.bound.hitTest((_x - 20) + _root.item._x, _y + _root.item._y, true))) {
xa = xa * -0.5;
_x = (_x + xa);
}
if (_root.bound.hitTest(_x + _root.item._x, (_y + _root.item._y) - 10, true)) {
ya = 3;
}
}
timer++;
if (timer > 30) {
if (hitTest(_root.character)) {
collectWeapon();
}
}
if (timer > 300) {
removeMovieClip("");
} else if (timer > 290) {
_alpha = (_alpha - 10);
}
}
}
}
Instance of Symbol 1604 MovieClip "button" in Symbol 2350 MovieClip Frame 1
onClipEvent (load) {
if (_name != "button") {
health = 1;
_root.character.targets.push(_name);
this.cacheAsBitmap = true;
isMetal = true;
}
}
onClipEvent (enterFrame) {
if (_name != "button") {
if (health < 1) {
if (_root.lvObj.d1._currentframe == 1) {
o = 0;
while (o < _root.character.targets.length) {
if (_name == _root.character.targets[o]) {
_root.character.targets.splice(o, 1);
}
o++;
}
gotoAndStop (2);
_root.lvObj.d1.play();
_root.bound.d1.play();
_root.lvObj.d2.play();
_root.bound.d2.play();
_root.mes2.time = 0;
_root.mes2.gotoAndStop(1);
_root.mes2._alpha = 100;
_root.mes2.mes = "New Area Open";
}
}
}
}
Instance of Symbol 1601 MovieClip "staticItem" in Symbol 2350 MovieClip Frame 1
onClipEvent (load) {
if (_name != "item") {
this.cacheAsBitmap = true;
collectWeapon = function () {
if (cap > -1) {
if (_root.arm.have[_currentframe] == 1) {
if (_root.arm.ammo[_root.arm.ammoType[_currentframe]] < 250) {
_root.ammoMes.time = 0;
_root.ammoMes.gotoAndStop(1);
_root.ammoMes._alpha = 100;
_root.arm.ammo[_root.arm.ammoType[_currentframe]] = _root.arm.ammo[_root.arm.ammoType[_currentframe]] + cap;
_root.ammoMes.mes = ((("Picked Up " + cap) + " Rounds of ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo";
if (_root.arm.ammo[_root.arm.ammoType[_currentframe]] > 250) {
_root.arm.ammo[_root.arm.ammoType[_currentframe]] = 250;
_root.ammoMes.mes = ((((("Picked Up " + cap) + " Rounds of ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo. ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo at Max Capacity.";
}
_root.sfx.gotoAndPlay(92);
removeMovieClip("");
}
} else if (_root.arm.ammo[_root.arm.ammoType[_currentframe]] > -1) {
if (_root.arm.ammo[_root.arm.ammoType[_currentframe]] < 250) {
_root.ammoMes.time = 0;
_root.ammoMes.gotoAndStop(1);
_root.ammoMes._alpha = 100;
_root.arm.ammo[_root.arm.ammoType[_currentframe]] = _root.arm.ammo[_root.arm.ammoType[_currentframe]] + cap;
_root.ammoMes.mes = ((("Picked Up " + cap) + " Rounds of ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo";
if (_root.arm.ammo[_root.arm.ammoType[_currentframe]] > 250) {
_root.arm.ammo[_root.arm.ammoType[_currentframe]] = 250;
_root.ammoMes.mes = ((((("Picked Up " + cap) + " Rounds of ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo. ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo at Max Capacity.";
}
_root.sfx.gotoAndPlay(92);
removeMovieClip("");
}
} else if (_root.arm.weps < 2) {
_root.arm.have[_currentframe] = 1;
_root.ammoMes.time = 0;
_root.ammoMes.gotoAndStop(1);
_root.ammoMes._alpha = 100;
_root.arm.ammo[_root.arm.ammoType[_currentframe]] = _root.arm.ammo[_root.arm.ammoType[_currentframe]] + (cap + 1);
_root.ammoMes.mes = ((((("Picked up " + _root.arm.name[_currentframe]) + " with ") + cap) + " Rounds of ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo";
if (_root.arm.ammo[_root.arm.ammoType[_currentframe]] > 250) {
_root.arm.ammo[_root.arm.ammoType[_currentframe]] = 250;
_root.ammoMes.mes = ((((((("Picked up " + _root.arm.name[_currentframe]) + " with ") + cap) + " Rounds of ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo. ") + _root.arm.ammoName[_root.arm.ammoType[_currentframe]]) + " Ammo at Max Capacity.";
}
_root.arm.gun = _currentframe;
_root.arm.gotoAndStop(_currentframe);
_root.arm._rotation = -90;
_root.arm.fire = false;
_root.wpn = _root.arm.name[_currentframe];
if (_root.arm._yscale == 100) {
_root.arm.wpn.hand1.gotoAndStop(1);
_root.arm.wpn.hand2.gotoAndStop(1);
} else {
_root.arm.wpn.hand1.gotoAndStop(2);
_root.arm.wpn.hand2.gotoAndStop(2);
}
_root.arm.weps = _root.arm.weps + 1;
if (_root.arm.weps > 2) {
_root.arm.weps = 2;
}
_root.sfx.gotoAndPlay(92);
_root.gameFun.haveCollected[_currentframe] = 1;
removeMovieClip("");
} else {
_root.swap.time = 0;
_root.swap._alpha = 100;
_root.swap.gotoAndStop(1);
_root.swap.i1.gotoAndStop(_currentframe);
_root.swap.i2.gotoAndStop(_root.arm.gun);
}
}
};
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "item") {
if (done != true) {
if (dc == true) {
if (collideOnce != true) {
n = 0;
while (n < _root.character.targets.length) {
tar = _root.character.targets[n];
if (_root.item[tar].health > 0) {
dx = Math.abs(_x - _root.item[tar]._x);
dy = Math.abs(_y - (_root.item[tar]._y - 10));
if ((dx < 20) && (dy < 25)) {
xa = xa * -0.7;
_x = (_x + xa);
if (_root.item[tar].fall == false) {
chance = random(2) + 1;
if (chance == 1) {
_root.item[tar].gotoAndStop(11);
} else {
_root.item[tar].gotoAndStop(12);
}
_root.item[tar].hurt = true;
}
_root.item[tar].health = _root.item[tar].health - 1;
_root.sfx.gotoAndPlay(98);
collideOnce = true;
}
}
n++;
}
}
}
if (hitTest(_root.character)) {
collectWeapon();
}
}
}
}
}
Instance of Symbol 949 MovieClip "beanBullet" in Symbol 2350 MovieClip Frame 1
onClipEvent (load) {
splode = function () {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.explode2, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
n = 0;
while (n < _root.character.targets.length) {
tar = _root.character.targets[n];
if (_root.item[tar].health > 0) {
dx = (_x - _root.item[tar]._x) * (_x - _root.item[tar]._x);
dy = (_y - (_root.item[tar]._y - 10)) * (_y - (_root.item[tar]._y - 10));
splodeDist = Math.abs(Math.sqrt(dx + dy));
if (splodeDist < 100) {
_root.item[tar].health = _root.item[tar].health - ((5 - Math.round(splodeDist / 20)) / 2);
chance = random(2) + 1;
if (chance == 1) {
_root.item[tar].gotoAndStop(11);
} else {
_root.item[tar].gotoAndStop(12);
}
_root.item[tar].hurt = true;
}
}
n++;
}
dx = ((_x + _root.item._x) - _root.character._x) * ((_x + _root.item._x) - _root.character._x);
dy = ((_y + _root.item._y) - _root.character._y) * ((_y + _root.item._y) - _root.character._y);
splodeDist = Math.abs(Math.sqrt(dx + dy));
if (splodeDist < 100) {
_root.character.health = _root.character.health - (5 - Math.round(splodeDist / 20));
chance = random(2) + 1;
if (chance == 1) {
_root.character.gotoAndStop(11);
} else {
_root.character.gotoAndStop(12);
}
_root.character.hurt = true;
}
removeMovieClip("");
};
bounce = random(1);
time = 0;
rot = _rotation - 90;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
timer = 0;
r = random(20) + 10;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "beanBullet") {
timer = timer + 1;
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + r);
y = y + 1;
if (enemyBullet != true) {
n = 0;
while (n < _root.character.targets.length) {
tar = _root.character.targets[n];
if (_root.item[tar].health > 0) {
dx = Math.abs(_x - _root.item[tar]._x);
dy = Math.abs(_y - (_root.item[tar]._y - 10));
if ((dx < 20) && (dy < 25)) {
if (_root.item[tar].fall == false) {
chance = random(2) + 1;
if (chance == 1) {
_root.item[tar].gotoAndStop(11);
} else {
_root.item[tar].gotoAndStop(12);
}
_root.item[tar].hurt = true;
}
splode();
}
}
n++;
}
} else {
dx = ((_x + _root.item._x) - _root.character._x) * ((_x + _root.item._x) - _root.character._x);
dy = ((_y + _root.item._y) - _root.character._y) * ((_y + _root.item._y) - _root.character._y);
if ((dx < 20) && (dy < 25)) {
_root.character.health = _root.character.health - 1;
chance = random(2) + 1;
if (chance == 1) {
_root.character.gotoAndStop(11);
} else {
_root.character.gotoAndStop(12);
}
_root.character.hurt = true;
splode();
}
}
if (_root.bound.hitTest(_x + _root.item._x, _y + _root.item._y, true)) {
y = y * -0.5;
x = x * -0.3;
t = 0;
bounce = bounce + 1;
if (bounce > 1) {
splode();
}
}
if (_root.bound.hitTest((_x + 15) + _root.item._x, _y + _root.item._y, true) || (_root.bound.hitTest((_x - 15) + _root.item._x, _y + _root.item._y, true))) {
x = x * -0.5;
_x = (_x + x);
}
if (_root.bound.hitTest(_x + _root.item._x, (_y + _root.item._y) - 15, true)) {
y = 3;
}
if (timer > 90) {
splode();
}
}
}
}
Instance of Symbol 947 MovieClip "explode2" in Symbol 2350 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_name != "explode2") {
_xscale = (_xscale + 5);
_yscale = (_yscale + 5);
_alpha = (_alpha - 10);
_rotation = (_rotation + 1);
if (_alpha < 1) {
removeMovieClip("");
}
}
}
Instance of Symbol 2340 MovieClip "ene" in Symbol 2350 MovieClip Frame 1
onClipEvent (load) {
if (_name != "ene") {
head = 74;
body = 62;
foot = 19;
face = 74;
maxHealth = 150;
isMetal = false;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
gravity = 0;
xVel = 0;
gravAccel = 2;
moveSpeed = 2;
jumpHeight = 23;
direc = random(2) + 1;
persuing = false;
fall = false;
dJump = false;
evade = false;
hurt = false;
headHurt = false;
drill = false;
drillTime = 0;
d = 100;
health = maxHealth;
headHealth = maxHealth;
bodyHealth = maxHealth;
_root.character.targets.push(_name);
while (_root.bound.hitTest(_x + _root.item._x, ((_y + boundHeight) - 1) + _root.item._y, true)) {
_y = (_y - 1);
}
} else {
time = 0;
stop();
char.stop();
this.cacheAsBitmap = true;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "ene") {
char.play();
if (health > 0) {
myRadians = Math.atan2(_root.character._y - (_y + _root.item._y), _root.character._x - (_x + _root.item._x));
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
if (hurt == false) {
if (_root.character._x > (_x + _root.item._x)) {
if (Math.abs(_root.character._x - (_x + _root.item._x)) > (d * 2)) {
if (direc == 1) {
_xscale = -100;
xVel = -moveSpeed;
} else {
xVel = moveSpeed;
_xscale = 100;
}
gotoAndStop (2);
} else if (Math.abs(_root.character._x - (_x + _root.item._x)) > d) {
xVel = 0;
gotoAndStop (1);
_xscale = 100;
} else {
xVel = 0;
gotoAndStop (3);
_xscale = 100;
}
} else if (Math.abs(_root.character._x - (_x + _root.item._x)) > (d * 2)) {
if (direc == 1) {
_xscale = -100;
xVel = -moveSpeed;
} else {
xVel = moveSpeed;
_xscale = 100;
}
gotoAndStop (2);
} else if (Math.abs(_root.character._x - (_x + _root.item._x)) > d) {
xVel = 0;
gotoAndStop (1);
_xscale = -100;
} else {
xVel = 0;
gotoAndStop (3);
_xscale = -100;
}
} else {
xVel = 0;
}
} else {
_root.pause2 = true;
xVel = 0;
_root.pauseScreen.gotoAndStop(4);
gotoAndStop (30);
while ((((_x + _parent._x) + chr._x) + chr.point._x) > 350) {
_root.character._x = _root.character._x - 1;
_root.arm._x = _root.arm._x - 1;
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
}
while ((((_x + _parent._x) + chr._x) + chr.point._x) < 350) {
_root.character._x = _root.character._x + 1;
_root.arm._x = _root.arm._x + 1;
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
}
while ((((_y + _parent._y) + chr._y) + chr.point._y) > 250) {
_root.character._y = _root.character._y - 1;
_root.arm._y = _root.arm._y - 1;
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
}
while ((((_y + _parent._y) + chr._y) + chr.point._y) < 250) {
_root.character._y = _root.character._y + 1;
_root.arm._y = _root.arm._y + 1;
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
}
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest((_x + boundBox) + _root.item._x, _y + _root.item._y, true)) && (!_root.bound.hitTest((_x + boundBox) + _root.item._x, (_y + 20) + _root.item._y, true))) {
_x = (_x + 1);
} else {
direc = 1;
break;
}
} else if ((!_root.bound.hitTest((_x - boundBox) + _root.item._x, _y + _root.item._y, true)) && (!_root.bound.hitTest((_x - boundBox) + _root.item._x, (_y + 20) + _root.item._y, true))) {
_x = (_x - 1);
} else {
direc = 2;
break;
}
n++;
}
}
}
}
Instance of Symbol 2349 MovieClip "eneTwo" in Symbol 2350 MovieClip Frame 1
onClipEvent (load) {
if (_name != "eneTwo") {
createGun = function () {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _root.item[ar]._x + _root.item[ar].wpn._x;
_root.item["item" + i]._y = _root.item[ar]._y + _root.item[ar].wpn._y;
_root.item["item" + i].cap = _root.arm.capacity[_root.item[ar]._currentframe];
_root.item["item" + i].gotoAndStop(_root.item[ar].gun);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.item[ar].removeMovieClip("");
};
head = 74;
body = 62;
foot = 19;
face = 74;
if (_root.hardMode == true) {
maxHealth = 300;
moveSpeed = 10;
} else {
maxHealth = 300;
moveSpeed = 6;
}
isMetal = false;
boundBox = 150;
boundHeight = 348;
gotoAndStop (1);
gravity = 0;
xVel = 0;
gravAccel = 2;
jumpHeight = 23;
direc = random(2) + 1;
persuing = false;
fall = false;
dJump = false;
evade = false;
hurt = false;
headHurt = false;
drill = false;
drillTime = 0;
d = 120;
health = maxHealth;
headHealth = maxHealth;
bodyHealth = maxHealth;
_root.character.targets.push(_name);
_y = (_y - 140);
_root.item[ar]._x = _x;
_root.item[ar]._y = _y;
_root.item[ar].dontShoot = true;
} else {
time = 0;
gotoAndStop (3);
char.stop();
this.cacheAsBitmap = true;
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "eneTwo") {
char.play();
if (health > 0) {
myRadians = Math.atan2(_root.character._y - (_y + _root.item._y), _root.character._x - (_x + _root.item._x));
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
_root.item[ar]._x = _x;
_root.item[ar]._y = _y;
_root.item[ar]._rotation = headRot;
_root.item[ar].dontShoot = true;
shootChance = random(30) + 1;
if (shootChance == 1) {
_root.item[ar].shoot();
}
if (_root.character._x > (_x + _root.item._x)) {
if (Math.abs(_root.character._x - (_x + _root.item._x)) > (d * 2)) {
xVel = moveSpeed;
_xscale = 100;
_root.item[ar].wpn.hand1.gotoAndStop(1);
_root.item[ar].wpn.hand2.gotoAndStop(1);
_root.item[ar]._yscale = 100;
if (_root.item[ar].getDepth() < getDepth()) {
swapDepths(_root.item[ar]);
}
gotoAndStop (2);
} else if (Math.abs(_root.character._x - (_x + _root.item._x)) > d) {
xVel = 0;
if (claw._currentframe < 42) {
claw.gotoAndPlay(42);
}
gotoAndStop (1);
_root.item[ar].wpn.hand1.gotoAndStop(1);
_root.item[ar].wpn.hand2.gotoAndStop(1);
_root.item[ar]._yscale = 100;
if (_root.item[ar].getDepth() < getDepth()) {
swapDepths(_root.item[ar]);
}
_xscale = 100;
} else {
xVel = -moveSpeed;
gotoAndStop (4);
_root.item[ar].wpn.hand1.gotoAndStop(1);
_root.item[ar].wpn.hand2.gotoAndStop(1);
_root.item[ar]._yscale = 100;
if (_root.item[ar].getDepth() < getDepth()) {
swapDepths(_root.item[ar]);
}
_xscale = 100;
}
} else if (Math.abs(_root.character._x - (_x + _root.item._x)) > (d * 2)) {
_xscale = -100;
xVel = -moveSpeed;
gotoAndStop (2);
_root.item[ar].wpn.hand1.gotoAndStop(2);
_root.item[ar].wpn.hand2.gotoAndStop(2);
_root.item[ar]._yscale = -100;
if (_root.item[ar].getDepth() > getDepth()) {
swapDepths(_root.item[ar]);
}
} else if (Math.abs(_root.character._x - (_x + _root.item._x)) > d) {
xVel = 0;
if (claw._currentframe < 42) {
claw.gotoAndPlay(42);
}
gotoAndStop (1);
_root.item[ar].wpn.hand1.gotoAndStop(2);
_root.item[ar].wpn.hand2.gotoAndStop(2);
_root.item[ar]._yscale = -100;
if (_root.item[ar].getDepth() > getDepth()) {
swapDepths(_root.item[ar]);
}
_xscale = -100;
} else {
xVel = moveSpeed;
gotoAndStop (4);
_root.item[ar].wpn.hand1.gotoAndStop(2);
_root.item[ar].wpn.hand2.gotoAndStop(2);
_root.item[ar]._yscale = -100;
if (_root.item[ar].getDepth() > getDepth()) {
swapDepths(_root.item[ar]);
}
_xscale = -100;
}
} else {
xVel = 0;
if (doOnce != true) {
_root.pause2 = true;
_root.pauseScreen.gotoAndStop(4);
gotoAndStop (5);
createGun();
doOnce = true;
}
while ((((_x + _parent._x) + chr._x) + chr.point._x) > 350) {
_root.character._x = _root.character._x - 1;
_root.arm._x = _root.arm._x - 1;
_root.stuff._x = _root.stuff._x - 1;
_root.obj._x = _root.obj._x - 1;
_root.item._x = _root.item._x - 1;
_root.bound._x = _root.bound._x - 1;
_root.level._x = _root.level._x - 1;
_root.lvObj._x = _root.lvObj._x - 1;
_root.lvBG._x = _root.lvBG._x - 1;
_root.screenBox._x = _root.screenBox._x - 1;
}
while ((((_x + _parent._x) + chr._x) + chr.point._x) < 350) {
_root.character._x = _root.character._x + 1;
_root.arm._x = _root.arm._x + 1;
_root.stuff._x = _root.stuff._x + 1;
_root.obj._x = _root.obj._x + 1;
_root.item._x = _root.item._x + 1;
_root.bound._x = _root.bound._x + 1;
_root.level._x = _root.level._x + 1;
_root.lvObj._x = _root.lvObj._x + 1;
_root.lvBG._x = _root.lvBG._x + 1;
_root.screenBox._x = _root.screenBox._x + 1;
}
while ((((_y + _parent._y) + chr._y) + chr.point._y) > 250) {
_root.character._y = _root.character._y - 1;
_root.arm._y = _root.arm._y - 1;
_root.stuff._y = _root.stuff._y - 1;
_root.obj._y = _root.obj._y - 1;
_root.item._y = _root.item._y - 1;
_root.bound._y = _root.bound._y - 1;
_root.level._y = _root.level._y - 1;
_root.lvObj._y = _root.lvObj._y - 1;
_root.lvBG._y = _root.lvBG._y - 1;
_root.screenBox._y = _root.screenBox._y - 1;
}
while ((((_y + _parent._y) + chr._y) + chr.point._y) < 250) {
_root.character._y = _root.character._y + 1;
_root.arm._y = _root.arm._y + 1;
_root.stuff._y = _root.stuff._y + 1;
_root.obj._y = _root.obj._y + 1;
_root.item._y = _root.item._y + 1;
_root.bound._y = _root.bound._y + 1;
_root.level._y = _root.level._y + 1;
_root.lvObj._y = _root.lvObj._y + 1;
_root.lvBG._y = _root.lvBG._y + 1;
_root.screenBox._y = _root.screenBox._y + 1;
}
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest((_x + boundBox) + _root.item._x, _y + _root.item._y, true)) && (!_root.bound.hitTest((_x + boundBox) + _root.item._x, (_y + 20) + _root.item._y, true))) {
_x = (_x + 1);
} else {
break;
}
} else if ((!_root.bound.hitTest((_x - boundBox) + _root.item._x, _y + _root.item._y, true)) && (!_root.bound.hitTest((_x - boundBox) + _root.item._x, (_y + 20) + _root.item._y, true))) {
_x = (_x - 1);
} else {
break;
}
n++;
}
}
}
}
Instance of Symbol 753 MovieClip "ene2" in Symbol 2350 MovieClip Frame 1
on (rollOver) {
if ((_root.cursor._currentframe == 3) && (health > 0)) {
_root.cursor.gotoAndStop(4);
_root.arm.drillTarget = _name;
}
}
on (rollOut, dragOut) {
if (_root.arm.gun == 14) {
_root.cursor.gotoAndStop(3);
}
_root.arm.drillTarget = "";
}
onClipEvent (load) {
if (_name != "ene2") {
nukeFun = function () {
trace(_name + " died");
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse2, "obj" + i, _root.obj.corpse2.getDepth() + 1);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(random(3) + 8);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
_root.obj["obj" + i].body.gotoAndStop(body);
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
myRadians = Math.atan2(nukeY - _y, nukeX - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
nukeRot = myDegrees + 90;
gg = 0;
while (gg < 6) {
_root.obj["obj" + i]["a" + gg]._xscale = _xscale;
if (_xscale < 0) {
_root.obj["obj" + i]["a" + gg]._rotation = nukeRot - 90;
} else {
_root.obj["obj" + i]["a" + gg]._rotation = nukeRot;
}
gg++;
}
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
createGun();
_root.character.kill = _root.character.kill + _root.multiplier;
o = 0;
while (o < _root.character.targets.length) {
if (_name == _root.character.targets[o]) {
_root.character.targets.splice(o, 1);
}
o++;
}
_root.item[ar].removeMovieClip("");
removeMovieClip("");
};
gib = function () {
_root.sfx.gotoAndPlay(36);
_root.sfx.gotoAndPlay(38);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.blood2, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y - 25;
_root.item["item" + i].gotoAndStop(random(2) + 1);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y - 30;
_root.item["item" + i].gotoAndStop(3);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.item["item" + i].gotoAndStop(5);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - 10;
_root.item["item" + i]._y = _y - 5;
_root.item["item" + i].gotoAndStop(6);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x - 15;
_root.item["item" + i]._y = _y + 5;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gib, "item" + i, i);
_root.item["item" + i]._x = _x + 15;
_root.item["item" + i]._y = _y - 5;
_root.item["item" + i].gotoAndStop(7);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.blood, "obj" + i, _root.obj.blood.getDepth() + 1);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._xscale = random(50) + 50;
_root.obj["obj" + i]._yscale = random(50) + 50;
_root.obj["obj" + i]._rotation = random(360);
_root.obj["obj" + i].gotoAndStop(random(_root.obj["obj" + i]._totalframes) + 1);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].swapDepths(1);
_root.obj["obj" + i].removeMovieClip("");
};
createCorpse = function () {
_root.obj.i++;
i = _root.obj.i;
duplicateMovieClip (_root.obj.corpse, "obj" + i, i);
_root.obj["obj" + i]._x = (_x + _parent._x) - _root.obj._x;
_root.obj["obj" + i]._y = (_y + _parent._y) - _root.obj._y;
_root.obj["obj" + i]._xscale = _xscale;
_root.obj["obj" + i].gotoAndStop(_currentframe - 14);
_root.obj["obj" + i].head.gotoAndStop(head);
_root.obj["obj" + i].head.face.gotoAndStop(face);
_root.obj["obj" + i].body.gotoAndStop(body);
if (drill == false) {
_root.obj["obj" + i].head.gore.gotoAndStop(gore);
_root.obj["obj" + i].body.gore.gotoAndStop(bodyGore);
}
_root.obj["obj" + i].foot1.gotoAndStop(foot);
_root.obj["obj" + i].foot2.gotoAndStop(foot);
_root.level.myBitmap.draw(_root.obj);
_root.obj["obj" + i].removeMovieClip("");
_root.item[obj].removeMovieClip("");
removeMovieClip("");
};
createGun = function () {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.item, "item" + i, i);
_root.item["item" + i]._x = _root.item[ar]._x + _root.item[ar].wpn._x;
_root.item["item" + i]._y = _root.item[ar]._y + _root.item[ar].wpn._y;
_root.item["item" + i].cap = _root.arm.capacity[_root.item[ar]._currentframe];
_root.item["item" + i].gotoAndStop(_root.item[ar].gun);
_root.item["item" + i]._xscale = _xscale;
_root.item["item" + i].speed = -(random(10) + 1);
};
switch (_root._currentframe) {
case 10 :
chan = random(5) + 1;
break;
case 12 :
chan = random(5) + 1;
break;
case 14 :
chan = random(5) + 1;
break;
case 16 :
chan = random(5) + 1;
break;
case 18 :
chan = random(6) + 1;
break;
case 20 :
chan = random(6) + 1;
break;
case 22 :
chan = random(6) + 1;
break;
case 24 :
chan = random(6) + 1;
break;
case 26 :
chan = random(6) + 1;
break;
case 28 :
chan = random(7) + 1;
break;
case 30 :
chan = random(7) + 1;
break;
case 32 :
chan = random(7) + 1;
break;
case 34 :
chan = random(7) + 1;
break;
case 36 :
chan = random(7) + 1;
break;
case 38 :
chan = random(7) + 1;
break;
case 40 :
chan = random(8) + 1;
break;
case 42 :
chan = random(8) + 1;
break;
case 44 :
chan = random(8) + 1;
break;
case 46 :
chan = random(8) + 1;
break;
case 48 :
chan = random(8) + 1;
break;
case 50 :
chan = random(8) + 1;
break;
case 52 :
chan = random(8) + 1;
break;
case 54 :
chan = random(8) + 1;
break;
case 56 :
chan = random(8) + 1;
break;
case 60 :
chan = 5;
}
outfit = _root.gameFun["outfit" + chan];
head = outfit[0];
body = outfit[1];
foot = outfit[2];
face = random(11) + 1;
if (_root.hardMode == true) {
maxHealth = outfit[3] * 2;
moveSpeed = 3;
} else {
maxHealth = outfit[3];
moveSpeed = 2;
}
isMetal = false;
boundBox = 40;
boundHeight = 34;
gotoAndStop (1);
gravity = 0;
xVel = 0;
gravAccel = 2;
jumpHeight = 23;
direc = random(2) + 1;
persuing = false;
dJump = false;
evade = false;
hurt = false;
headHurt = false;
drill = false;
drillTime = 0;
d = random(150) + 100;
health = maxHealth;
headHealth = maxHealth;
bodyHealth = maxHealth;
_root.character.targets.push(_name);
_root.item[ar]._x = _x;
_root.item[ar]._y = _y;
} else {
time = 0;
stop();
char.stop();
this.cacheAsBitmap = true;
}
}
onClipEvent (enterFrame) {
if ((_root.pause == false) && (_root.pause2 == false)) {
if (_name != "ene2") {
char.play();
if (health > 0) {
myRadians = Math.atan2(_root.character._y - (_y + _root.item._y), _root.character._x - (_x + _root.item._x));
myDegrees = Math.round((myRadians * 180) / Math.PI);
headRot = myDegrees;
_root.item[ar]._x = _x;
_root.item[ar]._y = _y;
_root.item[ar]._rotation = headRot;
if (hurt == false) {
shootChance = random(30) + 1;
if (shootChance == 1) {
_root.item[ar].shoot();
}
if (fall == false) {
if ((_y + _root.item._y) > (_root.character._y + 200)) {
fall = true;
gravity = -jumpHeight;
_y = (_y - 1);
}
if (((_y + _root.item._y) < (_root.character._y - 150)) || ((_y + _root.item._y) > (_root.character._y + 150))) {
persuing = true;
if (_root.character._x > (_x + _root.item._x)) {
_xscale = 100;
_root.item[ar].wpn.hand1.gotoAndStop(1);
_root.item[ar].wpn.hand2.gotoAndStop(1);
_root.item[ar]._yscale = 100;
if (_root.item[ar].getDepth() < getDepth()) {
swapDepths(_root.item[ar]);
}
} else {
_xscale = -100;
_root.item[ar].wpn.hand1.gotoAndStop(2);
_root.item[ar].wpn.hand2.gotoAndStop(2);
_root.item[ar]._yscale = -100;
if (_root.item[ar].getDepth() > getDepth()) {
swapDepths(_root.item[ar]);
}
}
if (direc == 1) {
if (fall == false) {
xVel = moveSpeed * 2;
} else {
xVel = moveSpeed * 4;
}
if (_xscale == 100) {
gotoAndStop (4);
} else {
gotoAndStop (5);
}
} else {
if (fall == false) {
xVel = (-moveSpeed) * 2;
} else {
xVel = (-moveSpeed) * 4;
}
if (_xscale == -100) {
gotoAndStop (4);
} else {
gotoAndStop (5);
}
}
} else {
persuing = true;
if (_root.character._x > (_x + _root.item._x)) {
_xscale = 100;
_root.item[ar].wpn.hand1.gotoAndStop(1);
_root.item[ar].wpn.hand2.gotoAndStop(1);
_root.item[ar]._yscale = 100;
if (_root.item[ar].getDepth() < getDepth()) {
swapDepths(_root.item[ar]);
}
if ((_root.character._x - (_x + _root.item._x)) > (d * 2)) {
if (fall == false) {
xVel = moveSpeed * 2;
} else {
xVel = moveSpeed * 4;
}
gotoAndStop (4);
} else if ((_root.character._x - (_x + _root.item._x)) > d) {
if (fall == false) {
xVel = moveSpeed * 2;
} else {
xVel = moveSpeed * 4;
}
gotoAndStop (2);
} else {
xVel = 0;
gotoAndStop (1);
}
} else {
_xscale = -100;
_root.item[ar].wpn.hand1.gotoAndStop(2);
_root.item[ar].wpn.hand2.gotoAndStop(2);
_root.item[ar]._yscale = -100;
if (_root.item[ar].getDepth() > getDepth()) {
swapDepths(_root.item[ar]);
}
if ((_root.character._x - (_x + _root.item._x)) < ((-d) * 2)) {
if (fall == false) {
xVel = (-moveSpeed) * 2;
} else {
xVel = (-moveSpeed) * 4;
}
gotoAndStop (4);
} else if ((_root.character._x - (_x + _root.item._x)) < (-d)) {
if (fall == false) {
xVel = (-moveSpeed) * 2;
} else {
xVel = (-moveSpeed) * 4;
}
gotoAndStop (2);
} else {
xVel = 0;
gotoAndStop (1);
}
}
}
} else {
gravity = gravity + 2;
if (dJump == false) {
if ((_y + _root.item._y) > (_root.character._y + 50)) {
if (gravity > 0) {
dJump = true;
gravity = -jumpHeight;
}
}
if (gravity < 0) {
gotoAndStop (6);
} else {
gotoAndStop (7);
}
} else {
gotoAndStop (8);
}
if (persuing == false) {
if (_root.character._x > (_x + _root.item._x)) {
_xscale = 100;
_root.item[ar].wpn.hand1.gotoAndStop(1);
_root.item[ar].wpn.hand2.gotoAndStop(1);
_root.item[ar]._yscale = 100;
if (_root.item[ar].getDepth() < getDepth()) {
swapDepths(_root.item[ar]);
}
if ((_root.character._x - (_x + _root.item._x)) > (d / 2)) {
xVel = moveSpeed * 3;
} else {
xVel = 0;
}
} else {
_xscale = -100;
_root.item[ar].wpn.hand1.gotoAndStop(2);
_root.item[ar].wpn.hand2.gotoAndStop(2);
_root.item[ar]._yscale = -100;
if (_root.item[ar].getDepth() > getDepth()) {
swapDepths(_root.item[ar]);
}
if ((_root.character._x - (_x + _root.item._x)) < (-(d / 2))) {
xVel = (-moveSpeed) * 3;
} else {
xVel = 0;
}
}
}
}
if (!_root.bound.hitTest(_x + _root.item._x, ((_y + boundHeight) + 1) + _root.item._y, true)) {
fall = true;
} else {
fall = false;
dJump = false;
while (_root.bound.hitTest(_x + _root.item._x, ((_y + boundHeight) - 1) + _root.item._y, true)) {
_y = (_y - 1);
}
gravity = 0;
}
chrDist = Math.sqrt((((_x + _parent._x) - _root.character._x) * ((_x + _parent._x) - _root.character._x)) + (((_y + _parent._y) - _root.character._y) * ((_y + _parent._y) - _root.character._y)));
if (chrDist < 100) {
_root.item[ar].dontShoot = false;
} else {
if (chrDist > 1500) {
o = 0;
while (o < _root.character.targets.length) {
if (_name == _root.character.targets[o]) {
_root.character.targets.splice(o, 1);
}
o++;
}
_root.item[ar].removeMovieClip("");
removeMovieClip("");
}
_root.item[ar].dontShoot = true;
}
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest((_x + boundBox) + _root.item._x, _y + _root.item._y, true)) && (!_root.bound.hitTest((_x + boundBox) + _root.item._x, (_y + 20) + _root.item._y, true))) {
_x = (_x + 1);
} else {
if (fall == false) {
direc = 2;
}
if (persuing == false) {
if (fall != true) {
fall = true;
gravity = -jumpHeight;
} else if ((gravity > 0) && (dJump == false)) {
dJump = true;
gravity = -jumpHeight;
}
} else {
jChance = random(2) + 1;
if (jChance == 1) {
direc = 1;
if (fall != true) {
fall = true;
gravity = -jumpHeight;
} else if ((gravity > 0) && (dJump == false)) {
dJump = true;
gravity = -jumpHeight;
}
}
}
break;
}
} else if ((!_root.bound.hitTest((_x - boundBox) + _root.item._x, _y + _root.item._y, true)) && (!_root.bound.hitTest((_x - boundBox) + _root.item._x, (_y + 20) + _root.item._y, true))) {
_x = (_x - 1);
} else {
if (fall == false) {
direc = 1;
}
if (persuing == false) {
if (fall != true) {
fall = true;
gravity = -jumpHeight;
} else if ((gravity > 0) && (dJump == false)) {
dJump = true;
gravity = -jumpHeight;
}
} else {
jChance = random(2) + 1;
if (jChance == 1) {
direc = 2;
if (fall != true) {
fall = true;
gravity = -jumpHeight;
} else if ((gravity > 0) && (dJump == false)) {
dJump = true;
gravity = -jumpHeight;
}
}
}
break;
}
n++;
}
}
n = 0;
while (n < Math.abs(gravity)) {
if (gravity < 0) {
_y = (_y - 1);
}
if (gravity > 0) {
_y = (_y + 1);
}
if (_root.bound.hitTest(_x + _root.item._x, ((_y - boundHeight) - 1) + _root.item._y, true)) {
if (gravity < 3) {
gravity = 3;
} else {
gravity = gravity + 2;
}
_y = (_y + 1);
n = 1000000 /* 0x0F4240 */;
}
n++;
}
} else {
if (dieOnce != true) {
createGun();
_root.character.kill = _root.character.kill + _root.multiplier;
o = 0;
while (o < _root.character.targets.length) {
if (_name == _root.character.targets[o]) {
_root.character.targets.splice(o, 1);
}
o++;
}
dieOnce = true;
}
if (drill == false) {
if (fall == false) {
if (health < -4) {
gib();
_root.item[ar].removeMovieClip("");
removeMovieClip("");
} else if (_currentframe < 15) {
if (headHealth < maxHealth) {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < 1) {
if (_currentframe != 19) {
gotoAndStop (19);
}
gore = 0;
} else {
gotoAndStop(14 + (random(2) + 1));
gore = random(3) + 2;
}
} else {
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
gotoAndStop(14 + (random(2) + 1));
gore = 0;
}
_root.item[ar].removeMovieClip("");
}
} else if (health < -4) {
gib();
_root.item[ar].removeMovieClip("");
removeMovieClip("");
} else {
if (headHealth < 1) {
if (_currentframe != 21) {
xVel = random(8) - 4;
gotoAndStop (21);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
}
} else if (_currentframe != 20) {
xVel = random(8) - 4;
gotoAndStop (20);
if (bodyHealth < maxHealth) {
bodyGore = random(7) + 2;
}
if (headHealth < maxHealth) {
gore = random(7) + 2;
}
}
_root.item[ar].removeMovieClip("");
n = 0;
while (n < Math.abs(xVel)) {
if (xVel > 0) {
if ((!_root.bound.hitTest((_x + boundBox) + _root.item._x, _y + _root.item._y, true)) && (!_root.bound.hitTest((_x + boundBox) + _root.item._x, (_y + 30) + _root.item._y, true))) {
_x = (_x + 1);
}
} else if ((!_root.bound.hitTest((_x - boundBox) + _root.item._x, _y + _root.item._y, true)) && (!_root.bound.hitTest((_x - boundBox) + _root.item._x, (_y + 30) + _root.item._y, true))) {
_x = (_x - 1);
}
n++;
}
if (!_root.bound.hitTest(_x + _root.item._x, ((_y + boundHeight) + 1) + _root.item._y, true)) {
_y = (_y + gravity);
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, ((_y + boundHeight) - 1) + _root.item._y, true)) {
_y = (_y - 1);
}
} else if (char._currentframe < 8) {
char.gotoAndPlay(8);
}
}
} else {
bodyGore = 0;
gore = 0;
_root.item[ar].removeMovieClip("");
if (!_root.bound.hitTest(_x + _root.item._x, ((_y + boundHeight) + 1) + _root.item._y, true)) {
_y = (_y + gravity);
gravity = gravity + 2;
while (_root.bound.hitTest(_x + _root.item._x, ((_y + boundHeight) - 1) + _root.item._y, true)) {
_y = (_y - 1);
}
gotoAndStop (20);
} else {
if (once != true) {
_root.sfx.gotoAndPlay(90);
once = true;
}
if (drillTime > 80) {
if (_currentframe != 18) {
gotoAndStop (18);
}
} else {
if (_currentframe != 17) {
gotoAndStop (17);
}
drillTime++;
}
}
}
}
} else {
time--;
if (time > 90) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = _x;
_root.item["item" + i]._y = _y;
_root.item["item" + i].ar = nam;
time = 0;
}
}
} else {
char.stop();
}
}
Instance of Symbol 1569 MovieClip "arm2" in Symbol 2350 MovieClip Frame 1
onClipEvent (load) {
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
if (_name != "arm2") {
fireFun = function () {
_root.sfx.gotoAndPlay(sound[gun]);
if (gun != 15) {
if ((gun == 29) || (gun == 28)) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.fla2, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation - wpn._rotation;
} else {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.fla, "item" + i, i);
wpn.barrel.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation - wpn._rotation;
}
if (gun != 2) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = wpn.eject.y - _root.item._y;
_root.item["item" + i]._rotation = _rotation;
_root.item["item" + i]._xscale = _yscale;
} else {
revolverShots = revolverShots + 1;
if (revolverShots > 5) {
revolverShots = 0;
zz = 0;
while (zz < 6) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.shell, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i].gotoAndStop(casing[gun]);
_root.item["item" + i]._x = wpn.eject.x - _root.item._x;
_root.item["item" + i]._y = (wpn.eject.y - _root.item._y) + (random(20) - 10);
_root.item["item" + i]._rotation = _rotation - wpn._rotation;
_root.item["item" + i]._xscale = _yscale;
zz++;
}
}
}
switch (int(weaponType[gun])) {
case 1 :
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
_root.item["item" + i].enemyBullet = true;
break;
case 2 :
z = 0;
while (z < 6) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.bullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].speed = -8 - random(4);
_root.item["item" + i].pow = pow[gun];
_root.item["item" + i].enemyBullet = true;
z++;
}
break;
case 3 :
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gren1, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
_root.item["item" + i].enemyBullet = true;
break;
case 4 :
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gren2, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
_root.item["item" + i].enemyBullet = true;
break;
case 5 :
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.laser, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
_root.item["item" + i].enemyBullet = true;
break;
case 6 :
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.flechette, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
_root.item["item" + i].enemyBullet = true;
break;
case 7 :
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.drill, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].tar = drillTarget;
_root.item["item" + i].enemyBullet = true;
break;
case 8 :
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
_root.item["item" + i].enemyBullet = true;
break;
case 9 :
z = 0;
while (z < 6) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.gauss, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].speed = -15;
_root.item["item" + i].pow = pow[gun];
_root.item["item" + i].enemyBullet = true;
z++;
}
break;
case 10 :
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.beanBullet, "item" + i, i);
wpn.eject.fun();
_root.item["item" + i]._x = wpn.barrel.x - _root.item._x;
_root.item["item" + i]._y = wpn.barrel.y - _root.item._y;
_root.item["item" + i]._rotation = (_rotation + (random(inAcc[gun]) - (inAcc[gun] / 2))) - wpn._rotation;
_root.item["item" + i].speed = -10;
_root.item["item" + i].pow = pow[gun];
_root.item["item" + i].enemyBullet = true;
}
wpn._rotation = wpn._rotation - (recoilAng[gun] / 3);
wpn._x = wpn._x - recoil[gun];
wpn._y = wpn._y - recoil[gun];
coolDown = recoveryTime[gun];
if (fullAuto[gun] == 2) {
coolDown = 2;
threeRound = threeRound + 1;
if (threeRound > 2) {
fire = false;
coolDown = recoveryTime[gun];
threeRound = 0;
}
}
wpn.gotoAndPlay(2);
}
};
area1Guns = new Array(2, 3, 16, 17);
area2Guns = new Array(2, 3, 16, 17, 18, 22);
area3Guns = new Array(1, 2, 3, 16, 17, 18, 22);
area4Guns = new Array(1, 2, 3, 4, 16, 17, 18, 22, 24);
area5Guns = new Array(1, 2, 3, 4, 5, 16, 17, 18, 22, 24, 25);
area6Guns = new Array(1, 2, 3, 4, 5, 16, 17, 18, 22, 24, 25);
area7Guns = new Array(1, 2, 3, 4, 5, 7, 8, 16, 17, 18, 22, 24, 25);
area8Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 16, 17, 18, 21, 22, 23, 24, 25);
area9Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27);
area10Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27);
area11Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 10, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27);
area12Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 10, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27);
area13Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 10, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27);
area14Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27);
area15Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27);
area16Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27, 28);
area17Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27, 28);
area18Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27, 28);
area19Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27, 28);
area20Guns = new Array(34, 34, 34);
area21Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27, 28);
area22Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28);
area23Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28);
area24Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28);
area25Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28);
area26Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28);
area28Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28);
area30Guns = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28);
threeRound = 0;
fire = false;
drillTarget = "_root.character";
coolDown = 0;
area = (_root._currentframe - 8) / 2;
gun = this[("area" + area) + "Guns"][random(this[("area" + area) + "Guns"].length)];
gotoAndStop(gun);
revolverShots = 0;
fullAuto = _root.arm.fullAuto;
recoil = _root.arm.recoil;
recoilAng = _root.arm.recoilAng;
recoilRec = _root.arm.recoilRec;
recoveryTime = _root.arm.recoveryTime;
casing = _root.arm.casing;
weaponType = _root.arm.weaponType;
pow = _root.arm.pow;
shake = _root.arm.shake;
inAcc = _root.arm.inAcc;
sound = _root.arm.sound;
ammo = _root.arm.ammo;
capacity = _root.arm.capacity;
}
}
onClipEvent (enterFrame) {
if ((_root.pause == false) && (_root.pause2 == false)) {
if (_name != "arm2") {
chance = random(50) + 1;
if ((chance == 1) && (dontShoot == true)) {
if (fullAuto[gun] == 0) {
fireFun();
} else {
fire = true;
}
}
if (wpn._x < 38) {
wpn._x = wpn._x + int(recoilRec[gun]);
}
if (wpn._y < -8) {
wpn._y = wpn._y + int(recoilRec[gun]);
}
if (wpn._rotation < 0) {
wpn._rotation = wpn._rotation + 5;
if (wpn._rotation > 0) {
wpn._rotation = 0;
}
}
if (coolDown > 0) {
coolDown = coolDown - 1;
}
if (fire == true) {
if (coolDown < 1) {
fireFun();
}
stopChance = random(10) + 1;
if (stopChance == 1) {
fire = false;
}
}
}
}
}
Instance of Symbol 1734 MovieClip "nukeBullet" in Symbol 2350 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
if (_name != "nukeBullet") {
swapDepths(10000000000);
explode = function () {
_root.sfx2.vol = _root.sfx.maxVol;
_root.sfx2.gotoAndPlay(2);
_root.sfx.vol = 0;
_root.sfx.nuke = true;
_root.music.vol = 0;
a = 10;
while (a > -1) {
tar = _root.character.targets[a];
_root.item[tar].health = _root.item[tar].health - 100;
_root.item[tar].nukeX = _x;
_root.item[tar].nukeY = _y;
_root.item[tar].nukeFun();
trace(a);
a--;
}
_x = (275 - _root.item._x);
_y = (200 - _root.item._y);
play();
_rotation = 0;
};
rot = _rotation - 90;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
i = 0;
while (i < 50) {
_x = (_x + x);
_y = (_y + y);
l._width = i * 15;
hit = false;
n = 0;
while (n < _root.character.targets.length) {
tar = _root.character.targets[n];
dx = Math.abs(_x - _root.item[tar]._x);
dy = Math.abs(_y - (_root.item[tar]._y - 10));
if ((dx < 20) && (dy < 25)) {
hit = true;
explode();
n = 1000;
break;
}
n++;
}
if (_root.bound.hitTest(_x + _root.item._x, _y + _root.item._y, true)) {
explode();
n = 1000;
break;
}
i++;
}
}
}
onClipEvent (enterFrame) {
if (_name != "nukeBullet") {
_x = (275 - _root.item._x);
_y = (200 - _root.item._y);
}
}
Instance of Symbol 213 MovieClip "body" in Symbol 2361 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (34);
}
Instance of Symbol 448 MovieClip in Symbol 2361 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (62);
face.gotoAndStop(64);
}
Instance of Symbol 99 MovieClip "foot2" in Symbol 2361 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (19);
}
Instance of Symbol 99 MovieClip "foot1" in Symbol 2361 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (19);
}
Symbol 2369 MovieClip Frame 1
stop();
Instance of Symbol 2368 MovieClip in Symbol 2369 MovieClip Frame 2
onClipEvent (enterFrame) {
gotoAndStop(random(_totalframes) + 1);
_alpha = random(100);
}
Instance of Symbol 2009 MovieClip in Symbol 2372 MovieClip Frame 1
onClipEvent (load) {
head = _root.character.head;
body = _root.character.body;
face = _root.character.face;
foot = _root.character.foot;
stop();
}
Instance of Symbol 957 MovieClip in Symbol 2372 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.arm.gun);
wpn.hand1.gotoAndStop(1);
wpn.hand2.gotoAndStop(1);
}
Symbol 2372 MovieClip Frame 17
d1.play();
Symbol 2372 MovieClip Frame 38
d2.play();
Symbol 2372 MovieClip Frame 58
d3.play();
Symbol 2372 MovieClip Frame 76
d4.play();
Symbol 2372 MovieClip Frame 95
d5.play();
Symbol 2372 MovieClip Frame 113
d6.play();
Symbol 2372 MovieClip Frame 133
d7.play();
Symbol 2372 MovieClip Frame 151
d8.play();
Instance of Symbol 2009 MovieClip in Symbol 2372 MovieClip Frame 180
onClipEvent (load) {
head = _root.character.head;
body = _root.character.body;
face = _root.character.face;
foot = _root.character.foot;
}
Symbol 2372 MovieClip Frame 181
Instance of Symbol 2369 MovieClip "a13" in Symbol 2372 MovieClip Frame 181
onClipEvent (load) {
time = 0;
}
onClipEvent (enterFrame) {
vid.stop();
time++;
switch (time) {
case 50 :
_parent.a1.gotoAndStop(2);
break;
case 60 :
_parent.a2.gotoAndStop(2);
break;
case 80 :
_parent.a3.gotoAndStop(2);
break;
case 85 :
_parent.a4.gotoAndStop(2);
break;
case 100 :
_parent.a5.gotoAndStop(2);
break;
case 110 :
_parent.a6.gotoAndStop(2);
break;
case 140 :
_parent.a7.gotoAndStop(2);
break;
case 150 :
_parent.a8.gotoAndStop(2);
break;
case 160 :
_parent.a9.gotoAndStop(2);
break;
case 165 :
_parent.a10.gotoAndStop(2);
break;
case 190 :
_parent.a11.gotoAndStop(2);
break;
case 200 :
_parent.a12.gotoAndStop(2);
break;
case 250 :
_parent.a13.gotoAndStop(2);
}
}
Instance of Symbol 2009 MovieClip in Symbol 2372 MovieClip Frame 181
onClipEvent (load) {
head = _root.character.head;
body = _root.character.body;
face = _root.character.face;
foot = _root.character.foot;
stop();
}
Instance of Symbol 2009 MovieClip in Symbol 2372 MovieClip Frame 200
onClipEvent (load) {
head = _root.character.head;
body = _root.character.body;
face = _root.character.face;
foot = _root.character.foot;
}
Instance of Symbol 2009 MovieClip in Symbol 2372 MovieClip Frame 254
onClipEvent (load) {
head = _root.character.head;
body = _root.character.body;
face = _root.character.face;
foot = _root.character.foot;
gotoAndStop (65);
_xscale = -100;
}
Symbol 2372 MovieClip Frame 440
stop();
Instance of Symbol 1218 MovieClip "textBox" in Symbol 2372 MovieClip Frame 440
onClipEvent (load) {
t0 = "Well done, you, Project 154. You've made it all this way, and fought though hell to get here.";
t1 = "You were expecting that I'd be there, though, were you not?";
t2 = "Normally I would be. But given the trouble you've been causing, I thought I'd get to safer ground.";
t3 = "So here you are. You've defeated every soldier and weapon we've thrown at you.";
t4 = "...Not to mention destroyed millions of dollars of my own investment, and killed countless employees of mine.";
t5 = "So what happens now, then?";
t6 = "Here I have the most poweful weapon in the world standing before me...but you're impossible to control.";
t7 = "You've also managed to destroy nearly all of our research on you.";
t8 = "...So...I suppose the answer is obvious, then.";
t9 = "We'll just have to try again.";
t10 = "You've proven your genes in the field...";
t11 = "...You just need some behavioral tweaking so that our potential buyers aren't at risk.";
t12 = "The obvious problem is that you are the sole carrier of all of our research.";
t13 = "...And more importantly, I estimate that you have no interest in returning yourself to our cause.";
t14 = "This, however, doesn't give you the upper hand. You're just a clone. You're not even the original.";
t15 = "You're one of hundreds of experiments that are just like you.";
t16 = "We've had to toss failures just like you into the incinerator because they had minor generic defects.";
t17 = "And whether or not you're alive or dead won't affect my business or my sentiments one bit.";
t18 = "I'll just kill you where you stand...and my engineers clean up what they need to make another.";
t19 = "It's a bit crude...but sometimes the simplest answers are the best.";
t20 = "Goodbye, 154. You'll surely prove profitable in your next life.";
tx = 0;
tNu = 0;
txt = "";
}
onClipEvent (enterFrame) {
if (txt.length < this["t" + tx].length) {
txt = txt + this["t" + tx].charAt(tNu);
_root.sfx.gotoAndPlay(134);
tNu++;
}
if (tx > 20) {
if (_alpha > 0) {
_alpha = (_alpha - 20);
} else {
_root.gotoAndStop(60);
}
} else if (_alpha < 100) {
_alpha = (_alpha + 20);
}
if (tx > 17) {
_parent.a2.gotoAndStop(1);
_parent.a2.cacheAsBitmap = true;
_parent.a5.gotoAndStop(1);
_parent.a5.cacheAsBitmap = true;
_parent.a6.gotoAndStop(1);
_parent.a6.cacheAsBitmap = true;
_parent.a8.gotoAndStop(1);
_parent.a8.cacheAsBitmap = true;
_parent.a10.gotoAndStop(1);
_parent.a10.cacheAsBitmap = true;
_parent.a12.gotoAndStop(1);
_parent.a12.cacheAsBitmap = true;
_parent.sm.go = true;
}
}
Instance of Symbol 1203 MovieClip "point" in Symbol 2372 MovieClip Frame 440
onClipEvent (load) {
xSt = _x;
ySt = _y;
ptX = random(30) + xSt;
ptY = random(5) + ySt;
swapDepths(1000000);
}
onClipEvent (enterFrame) {
_x = (_x - ((_x - ptX) / 20));
_y = (_y - ((_y - ptY) / 20));
if (Math.abs((_x - ptX) / 20) < 0.1) {
ptX = random(30) + xSt;
}
if (Math.abs((_y - ptY) / 20) < 0.1) {
ptY = random(20) + ySt;
}
}
Instance of Symbol 2371 MovieClip "sm" in Symbol 2372 MovieClip Frame 440
onClipEvent (load) {
if (_name != "sm") {
_xscale = (random(100) + 100);
_yscale = _xscale;
_rotation = random(360);
spd = random(4) + 1;
spd = spd + ((random(10) + 1) / 10);
} else {
go = false;
i = 0;
t = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "sm") {
_alpha = (_alpha - 1);
_y = (_y + spd);
if (_alpha < 1) {
removeMovieClip("");
}
} else if (go == true) {
t++;
if (t > 4) {
i++;
duplicateMovieClip (_parent.sm, "sm" + i, i);
_parent["sm" + i]._x = _x + random(550);
_parent["sm" + i]._y = _y;
t = 0;
}
}
}
Instance of Symbol 721 MovieClip "t1" in Symbol 2376 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
time++;
_root.character.health = _root.character.health - 0.25;
if (_root.character.targets.length < 3) {
if (time > 20) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.arm, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
nam = "item" + i;
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.ene, "item" + i, i);
_root.item["item" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["item" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["item" + i].ar = nam;
time = 0;
}
}
}
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[1] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(1);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[16] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(16);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[17] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(17);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[18] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(18);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[19] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(19);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[2] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(2);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[20] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(20);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[3] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(3);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[21] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(21);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[22] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(22);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[23] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(23);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[7] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(7);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[26] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(26);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[32] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(33);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[4] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(4);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[5] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(5);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[6] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(6);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[24] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(24);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[25] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(25);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[8] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(8);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[9] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(9);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[27] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(27);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[34] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(34);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[30] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(30);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[29] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(29);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[28] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(28);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[14] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(14);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[13] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(13);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[12] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(12);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[11] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(11);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.gameFun.haveCollected[10] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 250;
_root.item["btn" + i].gotoAndStop(10);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1601 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.achievements[8] != 1) {
swapDepths(1);
removeMovieClip("");
}
}
onClipEvent (enterFrame) {
_root.arm.i++;
i = _root.arm.i;
duplicateMovieClip (_root.item.staticItem, "btn" + i, i);
_root.item["btn" + i]._x = (_x + _parent._x) - _root.item._x;
_root.item["btn" + i]._y = (_y + _parent._y) - _root.item._y;
_root.item["btn" + i].cap = 1;
_root.item["btn" + i].gotoAndStop(35);
swapDepths(1);
removeMovieClip("");
}
Instance of Symbol 1803 MovieClip "d1" in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
if (_root.achievements[8] == 1) {
gotoAndStop (26);
_root.bound.d1.gotoAndStop(26);
} else {
gotoAndStop (1);
_root.bound.d1.gotoAndStop(1);
}
}
Instance of Symbol 1783 MovieClip in Symbol 2385 MovieClip Frame 1
onClipEvent (load) {
time = 0;
enemiesSp = 0;
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (hitTest(_root.character)) {
_root.gameFun.saveGame();
_root.gotoAndStop(4);
}
}
}
Symbol 2404 MovieClip Frame 1
k = "Kills: " + (_root.character.kill / _root.multiplier);
mk = "Melee Kills: " + _root.meleeKills;
sfNum = 0;
favGun = 0;
hh = 0;
while (hh < _root.shotsFired.length) {
sfNum = sfNum + _root.shotsFired[hh];
if (_root.shotsFired[hh] > _root.shotsFired[favGun]) {
favGun = hh;
}
hh++;
}
sf = "Shots Fired: " + sfNum;
fav = "Favorite Weapon: " + _root.gameFun.name[favGun];
ks = "Average number of shots to kills: " + (Math.round((sfNum / (_root.character.kill / _root.multiplier)) * 10) / 10);
if (ks == "Average number of shots to kills: NaN") {
ks = "Average number of shots to kills: 0";
}
ach = "";
if (_root.achievements[0] == 0) {
ach1 = "Complete the Game [ ]";
} else if (_root.achievements[1] == 0) {
ach1 = "Complete the Game [X]\rComplete Hard Mode [ ]";
} else {
ach1 = "Complete the Game [X]\rComplete Hard Mode [X]";
}
if (_root.achievements[3] == 0) {
ach3 = "Collect all Weapons [ ]";
} else {
ach3 = "Collect all Weapons [X]";
}
if (_root.achievements[4] == 0) {
ach4 = "Get 1,000 Melee Kills [ ]";
} else {
ach4 = "Get 1,000 Melee Kills [X]";
}
if (_root.achievements[5] == 0) {
ach2 = "Get 1,000 Kills [ ]";
} else if (_root.achievements[6] == 0) {
ach2 = "Get 1,000 Kills [X]\rGet 5,000 Kills [ ]";
} else if (_root.achievements[7] == 0) {
ach2 = "Get 1,000 Kills [X]\rGet 5,000 Kills [X]\rGet 10,000 Kills [ ]";
} else {
ach2 = "Get 1,000 Kills [X]\rGet 5,000 Kills [X]\rGet 10,000 Kills [X]";
}
if (_root.achievements[8] == 0) {
ach5 = "100% Complete [ ]";
} else {
ach5 = "100% Complete [X]";
}
ach = (((((((ach1 + newline) + ach3) + newline) + ach4) + newline) + ach2) + newline) + ach5;
Symbol 2412 Button
on (release) {
if (mSendOnce != true) {
_root.normMelee();
mSendOnce = true;
}
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 2417 Button
on (release) {
getURL ("http://scores.crazymonkeygames.com/hs/listscoresTT.php?id=317", "_blank");
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 2418 Button
on (release) {
if (kSendOnce != true) {
_root.normKills();
kSendOnce = true;
}
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 2419 Button
on (release) {
getURL ("http://scores.crazymonkeygames.com/hs/listscoresTT.php?id=316", "_blank");
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 2420 Button
on (release) {
if (sSendOnce != true) {
_root.normShot();
sSendOnce = true;
}
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 2421 Button
on (release) {
getURL ("http://scores.crazymonkeygames.com/hs/listscoresTT.php?id=318", "_blank");
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 2422 Button
on (release) {
gotoAndStop (2);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 2430 Button
on (release) {
if (_root.hardMode == true) {
gotoAndStop (3);
} else {
gotoAndStop (1);
}
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 2435 Button
on (release) {
getURL ("http://www.crazymonkeygames.com", _blank);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 2440 Button
on (release) {
_root.gotoAndStop(4);
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 2444 Button
on (release) {
if (mSendOnce != true) {
_root.hardMelee();
mSendOnce = true;
}
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 2445 Button
on (release) {
getURL ("http://scores.crazymonkeygames.com/hs/listscoresTT.php?id=320", "_blank");
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 2446 Button
on (release) {
if (kSendOnce != true) {
_root.hardKills();
kSendOnce = true;
}
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 2447 Button
on (release) {
getURL ("http://scores.crazymonkeygames.com/hs/listscoresTT.php?id=319", "_blank");
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 2448 Button
on (release) {
if (sSendOnce != true) {
_root.hardShot();
sSendOnce = true;
}
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 2449 Button
on (release) {
getURL ("http://scores.crazymonkeygames.com/hs/listscoresTT.php?id=321", "_blank");
}
on (rollOver) {
_root.sfx.gotoAndPlay(134);
}
Symbol 2453 MovieClip Frame 1
k = "Kills: " + (_root.character.kill / _root.multiplier);
mk = "Melee Kills: " + _root.meleeKills;
sfNum = 0;
hh = 0;
while (hh < _root.shotsFired.length) {
sfNum = sfNum + _root.shotsFired[hh];
hh++;
}
sf = "Shots Fired: " + sfNum;
ks = "Average number of shots to kills: " + (Math.round((sfNum / (_root.character.kill / _root.multiplier)) * 10) / 10);
shtPerK = Math.round((sfNum / (_root.character.kill / _root.multiplier)) * 10) / 10;
if (ks == "Average number of shots to kills: NaN") {
ks = "Average number of shots to kills: 0";
}
name = _root.playerName;
Instance of Symbol 508 MovieClip in Symbol 2453 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
stop();
}
onClipEvent (enterFrame) {
if (_alpha < 50) {
_alpha = (_alpha + 1);
}
}
Symbol 2453 MovieClip Frame 3
k = "Kills: " + (_root.character.kill / _root.multiplier);
mk = "Melee Kills: " + _root.meleeKills;
sfNum = 0;
hh = 0;
while (hh < _root.shotsFired.length) {
sfNum = sfNum + _root.shotsFired[hh];
hh++;
}
sf = "Shots Fired: " + sfNum;
ks = "Average number of shots to kills: " + (Math.round((sfNum / (_root.character.kill / _root.multiplier)) * 10) / 10);
shtPerK = Math.round((sfNum / (_root.character.kill / _root.multiplier)) * 10) / 10;
if (ks == "Average number of shots to kills: NaN") {
ks = "Average number of shots to kills: 0";
}
name = _root.playerName;
Instance of Symbol 508 MovieClip in Symbol 2453 MovieClip Frame 3
onClipEvent (load) {
_alpha = 0;
stop();
}
onClipEvent (enterFrame) {
if (_alpha < 50) {
_alpha = (_alpha + 1);
}
}