Frame 1
stop();
var LoadingTime = 1;
preloader_mc.onEnterFrame = function () {
LoadingTime = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
this.gotoAndStop(LoadingTime);
if (LoadingTime >= 100) {
preloader_mc.Mr_C.Clock_mc.stop();
Play_game._visible = true;
} else {
Play_game._visible = false;
}
Play_game.onRelease = function () {
play();
};
};
rusty_mc.onRelease = function () {
getURL ("http://www.rustyarcade.com?ref=schyzo-preloader", "_blank");
};
Instance of Symbol 2215 MovieClip "rusty_mc" in Frame 1
on (release) {
getURL ("http://www.rustyarcade.com/ref/arrivalinhell/hud", "_blank");
}
Frame 2
mochi.as2.MochiServices.connect("05a64496d4f8dd84");
mochi.as2.MochiAd.showPreGameAd({id:"05a64496d4f8dd84", res:"750x420"});
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("26465301", this, 10301, true);
var kongregate = _global.kongregate;
kongregate.services.connect();
Frame 111
function HeroMovements() {
Hero_mc._x = 350;
Hero_mc._y = 100;
LevelTime = MaxTimeArray[CurrentLevel];
EXIT = false;
CROUCHING = false;
HIDING = false;
Pause = false;
Attacking = false;
UNhiding = false;
Kills = 0;
falling = false;
Alive = true;
shooting = false;
Alarm = false;
SuckingSouls = 0;
SuckingUp = false;
alarmCounter = 0;
alarmCounterFrame = 0;
BerserkMode = false;
weaponBullets = new Array(weaponBulletsBase[0], weaponBulletsBase[1], weaponBulletsBase[2], weaponBulletsBase[3], weaponBulletsBase[4], weaponBulletsBase[5], weaponBulletsBase[6], weaponBulletsBase[7], weaponBulletsBase[8], weaponBulletsBase[9], weaponBulletsBase[10], weaponBulletsBase[11]);
ComboDone = new Array(false, false, false, false, false, false, false, false, false);
comboArray = new Array();
weaponReloaded = new Array(true, true, true, true, true, true, true, true, true, true, true);
CurrentWeapon = "Gun";
ShootingWeapon = "singleGunShooting";
ReloaderWeapon = "Reloading_singleGun";
loadWeapon("Pistol");
Boxes = TotalBoxes;
var Hero_mc = _root.attachMovie("Hero_mc", "Hero_mc", 15000);
var JumpingUp = false;
var CrouchingDown = false;
var movingRight = false;
var movingLeft = false;
var _local3 = false;
var hiding = false;
var Jumping = false;
var Falling = false;
var JumpCounter = 0;
var levelDONE = false;
var UpRightX = (Hero_mc._x + 17);
var UpRighty = Hero_mc._y;
var UpLeftX = (Hero_mc._x - 21);
var UpLefty = Hero_mc._y;
var DownRightX = (Hero_mc._x + 20);
var DownRighty = (Hero_mc._y - 8);
var DownLeftX = (Hero_mc._x - 25);
var DownLefty = (Hero_mc._y - 8);
CurrentHP = HP;
CurrentRAGE = RAGE;
Moneys = 0;
AlarmSeconds = 0;
ExitButtons(Hud_mc.Menu_btn, "Starter");
brieff_mc._visible = false;
PauseButtons(Hud_mc.PAUSE_btn);
if ((LevelsArray[CurrentLevel] == undefined) || (LevelsArray[CurrentLevel] == false)) {
Hud_mc.Menu_btn._visible = false;
}
Hero_mc.onEnterFrame = function () {
Hud_mc.mute_btn.onRelease = function () {
if (VolumeMUSIC != 0) {
VolumeMUSIC = 0;
GamePlayMusic.stop();
} else if (VolumeMUSIC == 0) {
VolumeMUSIC = 85;
playMusic(LevelSong);
}
};
Hud_mc.muteFX_btn.onRelease = function () {
if (VolumeFX != 0) {
VolumeFX = 0;
} else if (VolumeFX == 0) {
VolumeFX = 100;
}
};
Hud_mc.Quality_btn.onRelease = function () {
if (Quality == "MEDIUM") {
Quality = "LOW";
} else if (Quality == "LOW") {
Quality = "MEDIUM";
}
};
WinLevelManager();
RageMeter = Math.round((RAGE / maxRAGE) * 100);
LevelTimer = Math.round(LevelTime / 30);
Hud_mc.HP_Bar.gotoAndStop(Math.round((CurrentHP / HP) * 100));
Hud_mc.boxes_mc.gotoAndStop(Boxes + 1);
Hud_mc.RAGE_Bar.gotoAndStop(RageMeter);
UpRightX = Hero_mc._x + 17;
UpRighty = Hero_mc._y;
UpLeftX = Hero_mc._x - 21;
UpLefty = Hero_mc._y;
DownRightX = Hero_mc._x + 20;
DownRighty = Hero_mc._y - 8;
DownLeftX = Hero_mc._x - 25;
DownLefty = Hero_mc._y - 8;
_quality = Quality;
updateBullets();
fireWeapon();
swap_bullets();
Combo();
AchievementsManager();
CurrentBullets = weaponBullets[weaponBulletsSocket];
if (Pause == false) {
LevelTime = LevelTime - 1;
}
if (CurrentBullets <= 0) {
CurrentBullets = 0;
}
if (CurrentHP >= HP) {
CurrentHP = HP;
}
if (RAGE < minRAGE) {
Hud_mc.RAGE_Bar.RageStat_mc.gotoAndStop(1);
} else if ((RAGE >= minRAGE) && (RAGE < maxRAGE)) {
Hud_mc.RAGE_Bar.RageStat_mc.gotoAndStop(2);
} else if ((RAGE > minRAGE) && (RAGE >= maxRAGE)) {
Hud_mc.RAGE_Bar.RageStat_mc.gotoAndStop(3);
RageMeter = maxRAGE;
}
if (RAGE < minRAGE) {
Hud_mc.RAGE_Bar.RageStat_mc.gotoAndStop(1);
} else if ((RAGE >= minRAGE) && (RAGE < maxRAGE)) {
Hud_mc.RAGE_Bar.RageStat_mc.gotoAndStop(2);
} else if ((RAGE > minRAGE) && (RAGE >= maxRAGE)) {
Hud_mc.RAGE_Bar.RageStat_mc.gotoAndStop(3);
RageMeter = maxRAGE;
}
if ((BerserkMode == true) && (RAGE > 0)) {
BG_mc.gotoAndStop(2);
clouds_mc.cloud1_mc.gotoAndStop(2);
clouds_mc.cloud2_mc.gotoAndStop(2);
RAGE--;
} else if ((BerserkMode == true) && (RAGE <= 0)) {
BG_mc.gotoAndStop(1);
clouds_mc.cloud1_mc.gotoAndStop(1);
clouds_mc.cloud2_mc.gotoAndStop(1);
loadWeapon("Pistol");
weaponBulletsSocket = 0;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleGunShooting";
CurrentWeapon = "Gun";
ReloaderWeapon = "Reloading_singleGun";
RAGE = 0;
BerserkMode = false;
}
if (RAGE <= 0) {
RAGE = 0;
}
if (LevelTime <= 0) {
LevelTime = 0;
}
if (LevelTimer <= 10) {
timer_mc.gotoAndStop(2);
}
if ((LevelTimer <= 0) && (levelDONE == false)) {
LevelTimer = 0;
Levels_Moneys[CurrentLevel] = Levels_Moneys[CurrentLevel] + Moneys;
levelDONE = true;
Pause = true;
playSounds("TimeOver");
timer_mc.gotoAndStop(3);
TimeOut_mc.play();
}
if ((!ground_mc.hitTest(DownLeftX, DownLefty, true)) && (!ground_mc.hitTest(DownRightX, DownRighty, true))) {
HeroDirection = "Standing";
}
if ((Pause == true) || (Alive == false)) {
HeroDirection = "Standing";
}
if ((EXIT == true) || (this._y >= 500)) {
removeMovieClip(this);
}
if ((Key.isDown(38) && (Jumping == false)) && (Pause == false)) {
HeroDirection = "Standing";
JumpingUp = true;
CrouchingDown = false;
movingRight = false;
movingLeft = false;
} else if (!Key.isDown(38)) {
Jumping = false;
}
if (Key.isDown(40) && (Pause == false)) {
HeroDirection = "Standing";
CrouchingDown = true;
JumpingUp = false;
} else if ((!Key.isDown(40)) && (Pause == false)) {
CrouchingDown = false;
}
if ((Key.isDown(37) && (Alive == true)) && (Pause == false)) {
Hero_mc._xscale = -100;
Flip = false;
movingLeft = true;
movingRight = false;
} else if ((!Key.isDown(37)) || (Pause == true)) {
movingLeft = false;
}
if ((Key.isDown(39) && (Alive == true)) && (Pause == false)) {
Hero_mc._xscale = 100;
Flip = true;
movingRight = true;
movingLeft = false;
} else if ((!Key.isDown(39)) || (Pause == true)) {
movingRight = false;
}
if (Key.isDown(32) && (Pause == false)) {
if (((((((hiding == false) && (UNhiding == false)) && (CurrentBullets > 0)) && (JumpingUp == false)) && (Falling == false)) && (Boxes > 0)) && (BerserkMode == false)) {
Boxes = Boxes - 1;
hiding = true;
HIDING = true;
brieff_mc._visible = true;
} else if ((hiding == true) && (UNhiding == true)) {
hiding = false;
HIDING = false;
brieff_mc._visible = false;
Hero_mc.gotoAndStop("dishiding");
}
}
if (((Key.isDown(90) && (hiding == false)) && (UNhiding == false)) && (Pause == false)) {
shooting = true;
} else if (!Key.isDown(90)) {
shooting = false;
}
if (((((!Key.isDown(38)) && (!Key.isDown(40))) && (!Key.isDown(37))) && (!Key.isDown(39))) && (!Key.isDown(90))) {
HeroDirection = "Standing";
}
if ((((((movingRight == true) && (CrouchingDown == false)) && (hiding == false)) && (UNhiding == false)) && (Alive == true)) && (Pause == false)) {
if ((ground_mc._x >= Max_X) && (Pause == false)) {
ground_mc._x = ground_mc._x - WalkingSpeed;
Floor_mc._x = Floor_mc._x - WalkingSpeed;
foreGround_mc._x = foreGround_mc._x - (WalkingSpeed + 3);
MaxPoint_mc._x = MaxPoint_mc._x - WalkingSpeed;
MinPoint_mc._x = MinPoint_mc._x - WalkingSpeed;
HeroDirection = "Right";
} else {
HeroDirection = "Standing";
}
if (JumpingUp == false) {
if (JumpingUp == false) {
if (ground_mc.hitTest(DownRightX, DownRighty, true)) {
if (BerserkMode == false) {
Hero_mc.gotoAndStop("walking");
} else if (BerserkMode == true) {
Hero_mc.gotoAndStop("walkingBerserk");
}
Hero_mc._x = Hero_mc._x + WalkingSpeed2;
Hero_mc._y--;
} else if (!ground_mc.hitTest(DownRightX, DownRighty, true)) {
if (BerserkMode == false) {
Hero_mc.gotoAndStop("walking");
} else if (BerserkMode == true) {
Hero_mc.gotoAndStop("walkingBerserk");
}
Hero_mc._x = Hero_mc._x + WalkingSpeed2;
Hero_mc._y++;
}
} else if (JumpingUp == true) {
Hero_mc._x = Hero_mc._x + WalkingSpeed2;
}
}
}
if ((((((movingLeft == true) && (CrouchingDown == false)) && (hiding == false)) && (UNhiding == false)) && (Alive == true)) && (Pause == false)) {
if ((ground_mc._x <= Min_X) && (Pause == false)) {
ground_mc._x = ground_mc._x + WalkingSpeed;
Floor_mc._x = Floor_mc._x + WalkingSpeed;
MaxPoint_mc._x = MaxPoint_mc._x + WalkingSpeed;
MinPoint_mc._x = MinPoint_mc._x + WalkingSpeed;
foreGround_mc._x = foreGround_mc._x + (WalkingSpeed + 3);
HeroDirection = "Left";
} else {
HeroDirection = "Standing";
}
if (JumpingUp == false) {
if (ground_mc.hitTest(DownLeftX, DownLefty, true)) {
if (BerserkMode == false) {
Hero_mc.gotoAndStop("walking");
} else if (BerserkMode == true) {
Hero_mc.gotoAndStop("walkingBerserk");
}
Hero_mc._x = Hero_mc._x - WalkingSpeed2;
Hero_mc._y--;
} else if (!ground_mc.hitTest(DownLeftX, DownLefty, true)) {
if (BerserkMode == false) {
Hero_mc.gotoAndStop("walking");
} else if (BerserkMode == true) {
Hero_mc.gotoAndStop("walkingBerserk");
}
Hero_mc._x = Hero_mc._x - WalkingSpeed2;
Hero_mc._y++;
}
} else if (JumpingUp == true) {
Hero_mc._x = Hero_mc._x - WalkingSpeed2;
}
}
if (((((((CrouchingDown == true) && (movingRight == false)) && (movingLeft == false)) && (JumpingUp == false)) && (hiding == false)) && (UNhiding == false)) && (Alive == true)) {
if (BerserkMode == false) {
Hero_mc.gotoAndStop("crouching");
} else if (BerserkMode == true) {
Hero_mc.gotoAndStop("crouchingBerserk");
}
HeroDirection = "Standing";
}
if (CrouchingDown == true) {
CROUCHING = true;
GunHeight = 48;
} else if (CrouchingDown == false) {
CROUCHING = false;
GunHeight = 80;
}
if ((hiding == true) && (Alive == true)) {
Hero_mc.gotoAndStop("hiding");
HeroDirection = "Standing";
alarmCounterFrame = alarmCounterFrame - 8;
}
if (((((((movingRight == false) && (movingLeft == false)) && (CrouchingDown == false)) && (JumpingUp == false)) && (hiding == false)) && (UNhiding == false)) && (Alive == true)) {
if (BerserkMode == false) {
Hero_mc.gotoAndStop("idle");
} else if (BerserkMode == true) {
Hero_mc.gotoAndStop("idleBerserk");
}
HeroDirection = "Standing";
}
if (((!HeroDirection) == "Left") && ((!HeroDirection) == "Right")) {
HeroDirection = "Standing";
}
if ((((JumpingUp == true) && (hiding == false)) && (UNhiding == false)) && (Alive == true)) {
if (BerserkMode == false) {
Hero_mc.gotoAndStop("jumping");
} else if (BerserkMode == true) {
Hero_mc.gotoAndStop("jumpingBerserk");
}
Hero_mc._y = Hero_mc._y - jump;
JumpCounter++;
}
if (JumpingUp == false) {
if ((!ground_mc.hitTest(DownLeftX, DownLefty, true)) || (!ground_mc.hitTest(DownRightX, DownRighty, true))) {
Hero_mc._y = Hero_mc._y + 10;
if (Falling == true) {
if (BerserkMode == false) {
Hero_mc.gotoAndStop("jumping");
} else if (BerserkMode == true) {
Hero_mc.gotoAndStop("jumpingBerserk");
}
}
} else if (ground_mc.hitTest(DownLeftX, DownLefty, true) || (ground_mc.hitTest(DownRightX, DownRighty, true))) {
Jumping = false;
JumpCounter = 0;
Falling = false;
}
}
if (SuckingUp == true) {
Hero_mc.head_mc.gotoAndStop(2);
Hero_mc.head_mc.Mask.souls_mc.gotoAndStop(SuckingSouls);
} else if (SuckingUp == false) {
Hero_mc.head_mc.gotoAndStop(1);
SuckingSouls = 0;
}
if (JumpCounter >= 10) {
Falling = true;
JumpingUp = false;
Jumping = true;
}
if (Hero_mc._x <= 50) {
Hero_mc._x = 51;
} else if (Hero_mc._x >= 700) {
Hero_mc._x = 699;
}
if ((CurrentHP <= 0) && (Alive == true)) {
playSounds("DayToDie");
Hud_mc.HP_Bar.gotoAndStop(1);
Alive = false;
Loses = Loses + 1;
Levels_Moneys[CurrentLevel] = Levels_Moneys[CurrentLevel] + Moneys;
}
if (Alive == false) {
youLose_mc.play();
Hero_mc.gotoAndStop("diying");
Alarm = false;
alarmCounterFrame = 0;
}
if ((MaxTime == 30) && (alarmCounterFrame >= 900)) {
alarmCounterFrame = 870;
} else if ((MaxTime == 60) && (alarmCounterFrame >= 1800)) {
alarmCounterFrame = 1770;
} else if ((MaxTime == 90) && (alarmCounterFrame >= 2700)) {
alarmCounterFrame = 2670;
} else if ((MaxTime == 120) && (alarmCounterFrame >= 3600)) {
alarmCounterFrame = 3570;
} else if ((MaxTime == 150) && (alarmCounterFrame >= 4500)) {
alarmCounterFrame = 4470;
} else if ((MaxTime == 180) && (alarmCounterFrame >= 5400)) {
alarmCounterFrame = 5370;
} else if ((MaxTime == 210) && (alarmCounterFrame >= 6300)) {
alarmCounterFrame = 6270;
} else if ((MaxTime == 240) && (alarmCounterFrame >= 7200)) {
alarmCounterFrame = 7170;
}
if (alarmCounterFrame <= 0) {
Alarm = false;
alarmCounterFrame = 0;
}
if (Alarm == true) {
Hud_mc.alarm_mc.gotoAndStop(2);
WalkingSpeed = 11;
WalkingSpeed2 = 7;
if (Pause == false) {
alarmCounterFrame--;
}
alarmCounter = Math.round(alarmCounterFrame / 30);
if (alarmCounter <= 60) {
Hud_mc.alarm_mc.alarms_mc.counter_mc.gotoAndStop(1);
AlarmSeconds = 0;
} else if ((alarmCounter > 60) && (alarmCounter <= 120)) {
AlarmSeconds = alarmCounter - 60;
Hud_mc.alarm_mc.alarms_mc.counter_mc.gotoAndStop(2);
} else if ((alarmCounter > 120) && (alarmCounter <= 180)) {
AlarmSeconds = alarmCounter - 120;
Hud_mc.alarm_mc.alarms_mc.counter_mc.gotoAndStop(3);
} else if ((alarmCounter > 180) && (alarmCounter < 240)) {
AlarmSeconds = alarmCounter - 180;
Hud_mc.alarm_mc.alarms_mc.counter_mc.gotoAndStop(4);
} else if (alarmCounter >= 240) {
alarmCounter = 239;
}
} else if (Alarm == false) {
Hud_mc.alarm_mc.gotoAndStop(1);
WalkingSpeed = 5;
WalkingSpeed2 = 7;
}
Hero_mc.hero_mc.arms_mc.gotoAndStop(ShootingWeapon);
if (weaponBullets[weaponBulletsSocket] >= 1) {
Hero_mc.arms_mc.gotoAndStop(ShootingWeapon);
Hud_mc.BulletsCounter_mc.gotoAndStop(1);
Hud_mc.Weapons_mc.weapon_mc._visible = true;
Hud_mc.Weapons_mc.Reloading_mc.gotoAndStop(1);
ReloadingSecs = 0;
} else if (weaponBullets[weaponBulletsSocket] <= 0) {
Hero_mc.arms_mc.gotoAndStop(ReloaderWeapon);
Hud_mc.BulletsCounter_mc.gotoAndStop(2);
ReloadingSecs++;
ReloadingTime = Math.round((ReloadingSecs / ReloadingSocket) * 100);
Hud_mc.Weapons_mc.weapon_mc._visible = false;
Hud_mc.Weapons_mc.Reloading_mc.gotoAndStop(ReloadingTime);
}
if (ReloadingTime >= 99) {
weaponBullets[weaponBulletsSocket] = weaponBulletsBase[weaponBulletsSocket];
ReloadingTime = 0;
}
if (CurrentWeapon == "Gun") {
Hud_mc.Weapons_mc.gotoAndStop(1);
} else if (CurrentWeapon == "DualGun") {
Hud_mc.Weapons_mc.gotoAndStop(2);
} else if (CurrentWeapon == "Revolver") {
Hud_mc.Weapons_mc.gotoAndStop(3);
} else if (CurrentWeapon == "DualRevolver") {
Hud_mc.Weapons_mc.gotoAndStop(4);
} else if (CurrentWeapon == "SingleShotgun") {
Hud_mc.Weapons_mc.gotoAndStop(5);
} else if (CurrentWeapon == "DualShotgun") {
Hud_mc.Weapons_mc.gotoAndStop(6);
} else if (CurrentWeapon == "MachineGun") {
Hud_mc.Weapons_mc.gotoAndStop(7);
} else if (CurrentWeapon == "DualMachineGun") {
Hud_mc.Weapons_mc.gotoAndStop(8);
} else if (CurrentWeapon == "Shotgun") {
Hud_mc.Weapons_mc.gotoAndStop(9);
} else if (CurrentWeapon == "AssaultRiffle") {
Hud_mc.Weapons_mc.gotoAndStop(10);
} else if (CurrentWeapon == "Bazooka") {
Hud_mc.Weapons_mc.gotoAndStop(11);
} else if (CurrentWeapon == "ChainSaw") {
Hud_mc.Weapons_mc.gotoAndStop(12);
}
};
playMusic(LevelSong);
}
function loadWeapon(_id) {
playSounds("Reloading");
gunReloaded();
var _local1 = 0;
while (_local1 < weaponDatabase.length) {
var _local2 = weaponDatabase[_local1].itemName;
if (_local2 == _id) {
trace(("Weapon '" + _local2) + "' loaded");
playerWeapon = weaponDatabase[_local1];
return(undefined);
}
_local1++;
}
trace(("Weapon '" + _id) + "' not found!");
}
function fireWeapon() {
if ((((playerWeapon.reloadComplete && (shooting)) && (CurrentBullets > 0)) && (Pause == false)) && (Alive == true)) {
createBullet();
playSounds(playerWeapon.GunSound);
Shell(playerWeapon.shellMC);
weaponBullets[weaponBulletsSocket] = weaponBullets[weaponBulletsSocket] - playerWeapon.BulletCount;
weaponReloaded[weaponBulletsSocket] = false;
Hero_mc.arms_mc.Shooting_mc.gotoAndPlay(2);
if (playerWeapon.GunSound != "Silencer") {
Alarm = true;
alarmCounterFrame = alarmCounterFrame + 60;
}
}
}
function createBullet() {
var _local5 = 0;
while (_local5 < playerWeapon.bulletNumber) {
var _local2 = _root.socket_mc.attachMovie(playerWeapon.bulletMC, "b" + _root.socket_mc.getNextHighestDepth(), _root.socket_mc.getNextHighestDepth());
var _local6 = 0;
var _local4 = random(playerWeapon.bulletOffset) - (playerWeapon.bulletOffset / 2);
var _local3;
if (Flip == true) {
_local2._x = Hero_mc._x + (playerWeapon.barrelLength * Math.cos(0 * radians));
_local2._y = (Hero_mc._y - GunHeight) + (playerWeapon.barrelLength * Math.sin(0 * radians));
_local3 = (0 + _local4) * radians;
_local2._xscale = 100;
} else if (Flip == false) {
_local2._x = Hero_mc._x + (playerWeapon.barrelLength * Math.cos(180 * radians));
_local2._y = (Hero_mc._y - GunHeight) + (playerWeapon.barrelLength * Math.sin(180 * radians));
_local3 = (180 + _local4) * radians;
_local2._xscale = -100;
}
_local2.xSpeed = Math.cos(_local3) * playerWeapon.bulletSpeed;
_local2.ySpeed = Math.sin(_local3) * playerWeapon.bulletSpeed;
_local2.GunType = playerWeapon.GunType;
_local2.BulletDamage = playerWeapon.BulletDamage;
_local2.RipSoulChance = playerWeapon.RipSoulChance;
_local2.CriticalChance = playerWeapon.CriticalChance;
_local2.HeadShotChance = playerWeapon.HeadShotChance;
_local2.lifeTimer = setInterval(destroyBullet, playerWeapon.bulletMaxAge, _local2);
bulletArray.push(_local2);
_local5++;
}
startReloading();
}
function startReloading() {
playerWeapon.reloadComplete = false;
playerWeapon.reloadTimer = setInterval(gunReloaded, playerWeapon.reloadSpeed);
}
function gunReloaded() {
clearInterval(playerWeapon.reloadTimer);
playerWeapon.reloadComplete = true;
}
function updateBullets() {
var _local2 = 0;
while (_local2 < bulletArray.length) {
var _local1 = bulletArray[_local2];
_local1._x = _local1._x + _local1.xSpeed;
_local1._y = _local1._y + _local1.ySpeed;
_local1.cacheAsBitmap = true;
if ((_local1._x >= 760) || (_local1._x <= -10)) {
destroyBullet(_local1);
}
_local2++;
}
}
function destroyBullet(_bullet) {
var _local1 = 0;
while (_local1 < bulletArray.length) {
var _local2 = bulletArray[_local1];
if (_local2 == _bullet) {
bulletArray.splice(_local1, 1);
clearInterval(_local2.lifeTimer);
removeMovieClip(_local2);
}
_local1++;
}
}
function swap_bullets() {
keyListener.onKeyDown = function () {
if (((Key.isDown(49) && (CurrentWeapon != "Gun")) && (CurrentBullets > 0)) && (Weapons[0] == true)) {
loadWeapon("Pistol");
weaponBulletsSocket = 0;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleGunShooting";
CurrentWeapon = "Gun";
ReloaderWeapon = "Reloading_singleGun";
} else if (((Key.isDown(50) && (CurrentWeapon != "DualGun")) && (CurrentBullets > 0)) && (Weapons[1] == true)) {
loadWeapon("DualGun");
weaponBulletsSocket = 1;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualGunShooting";
CurrentWeapon = "DualGun";
ReloaderWeapon = "Reloading_dualGun";
} else if (((Key.isDown(51) && (CurrentWeapon != "Revolver")) && (CurrentBullets > 0)) && (Weapons[2] == true)) {
loadWeapon("Revolver");
weaponBulletsSocket = 2;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleRevolverShooting";
CurrentWeapon = "Revolver";
ReloaderWeapon = "Reloading_revolver";
} else if (((Key.isDown(52) && (CurrentWeapon != "DualRevolver")) && (CurrentBullets > 0)) && (Weapons[3] == true)) {
loadWeapon("DualRevolver");
weaponBulletsSocket = 3;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualRevolverShooting";
CurrentWeapon = "DualRevolver";
ReloaderWeapon = "Reloading_dualRevolver";
} else if (((Key.isDown(53) && (CurrentWeapon != "SingleShotgun")) && (CurrentBullets > 0)) && (Weapons[4] == true)) {
loadWeapon("SingleShotgun");
weaponBulletsSocket = 4;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleShotGunShooting";
CurrentWeapon = "SingleShotgun";
ReloaderWeapon = "ReloadingSingle_Shotgun";
} else if (((Key.isDown(54) && (CurrentWeapon != "DualShotgun")) && (CurrentBullets > 0)) && (Weapons[5] == true)) {
loadWeapon("DualShotgun");
weaponBulletsSocket = 5;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualShotGunShooting";
CurrentWeapon = "DualShotgun";
ReloaderWeapon = "Reloading_dualShotgun";
} else if (((Key.isDown(55) && (CurrentWeapon != "MachineGun")) && (CurrentBullets > 0)) && (Weapons[6] == true)) {
loadWeapon("SingleMachineGun");
weaponBulletsSocket = 6;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleMachineGunShooting";
CurrentWeapon = "MachineGun";
ReloaderWeapon = "Reloading_singleMachineGun";
} else if (((Key.isDown(56) && (CurrentWeapon != "DualMachineGun")) && (CurrentBullets > 0)) && (Weapons[7] == true)) {
loadWeapon("DualMachineGun");
weaponBulletsSocket = 7;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualGunMachineShooting";
CurrentWeapon = "DualMachineGun";
ReloaderWeapon = "Reloading_dualMachineGun";
} else if (((Key.isDown(57) && (CurrentWeapon != "Shotgun")) && (CurrentBullets > 0)) && (Weapons[8] == true)) {
loadWeapon("ShotGun");
weaponBulletsSocket = 8;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "ShotGunShooting";
CurrentWeapon = "Shotgun";
ReloaderWeapon = "Reloading_ShotGun";
} else if (((Key.isDown(48) && (CurrentWeapon != "AssaultRiffle")) && (CurrentBullets > 0)) && (Weapons[9] == true)) {
loadWeapon("MachineGun");
weaponBulletsSocket = 9;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "MachineGunShooting";
CurrentWeapon = "AssaultRiffle";
ReloaderWeapon = "Reloading_MachineGun";
} else if (((Key.isDown(189) && (CurrentWeapon != "Bazooka")) && (CurrentBullets > 0)) && (Weapons[10] == true)) {
loadWeapon("Bazooka");
weaponBulletsSocket = 10;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "bazookaShooting";
CurrentWeapon = "Bazooka";
ReloaderWeapon = "Reloading_bazooka";
}
if (((Key.isDown(86) && (RAGE >= minRAGE)) && (HIDING == false)) && (BerserkMode == false)) {
BerserkMode = true;
loadWeapon("Berserk");
playSounds("Unstopable");
Hero_mc.explosion_mc.gotoAndPlay(2);
weaponBulletsSocket = 11;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "BerserkShooting";
CurrentWeapon = "Berserk";
ReloaderWeapon = "BerserkReloading";
}
if (Key.isDown(67) && (CurrentBullets > 0)) {
if (CurrentWeapon == "Gun") {
if (Weapons[1] == true) {
loadWeapon("DualGun");
weaponBulletsSocket = 1;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualGunShooting";
CurrentWeapon = "DualGun";
ReloaderWeapon = "Reloading_dualGun";
} else if (Weapons[2] == true) {
loadWeapon("Revolver");
weaponBulletsSocket = 2;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleRevolverShooting";
CurrentWeapon = "Revolver";
ReloaderWeapon = "Reloading_revolver";
} else if (Weapons[3] == true) {
loadWeapon("DualRevolver");
weaponBulletsSocket = 3;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualRevolverShooting";
CurrentWeapon = "DualRevolver";
ReloaderWeapon = "Reloading_dualRevolver";
} else if (Weapons[4] == true) {
loadWeapon("SingleShotgun");
weaponBulletsSocket = 4;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleShotGunShooting";
CurrentWeapon = "SingleShotgun";
ReloaderWeapon = "ReloadingSingle_Shotgun";
} else if (Weapons[5] == true) {
loadWeapon("DualShotgun");
weaponBulletsSocket = 5;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualShotGunShooting";
CurrentWeapon = "DualShotgun";
ReloaderWeapon = "Reloading_dualShotgun";
} else if (Weapons[6] == true) {
loadWeapon("SingleMachineGun");
weaponBulletsSocket = 6;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleMachineGunShooting";
CurrentWeapon = "MachineGun";
ReloaderWeapon = "Reloading_singleMachineGun";
} else if (Weapons[7] == true) {
loadWeapon("DualMachineGun");
weaponBulletsSocket = 7;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualGunMachineShooting";
CurrentWeapon = "DualMachineGun";
ReloaderWeapon = "Reloading_dualMachineGun";
} else if (Weapons[8] == true) {
loadWeapon("ShotGun");
weaponBulletsSocket = 8;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "ShotGunShooting";
CurrentWeapon = "Shotgun";
ReloaderWeapon = "Reloading_ShotGun";
} else if (Weapons[9] == true) {
loadWeapon("MachineGun");
weaponBulletsSocket = 9;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "MachineGunShooting";
CurrentWeapon = "AssaultRiffle";
ReloaderWeapon = "Reloading_MachineGun";
} else if (Weapons[10] == true) {
loadWeapon("Bazooka");
weaponBulletsSocket = 10;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "bazookaShooting";
CurrentWeapon = "Bazooka";
ReloaderWeapon = "Reloading_bazooka";
}
} else if (CurrentWeapon == "DualGun") {
if (Weapons[2] == true) {
loadWeapon("Revolver");
weaponBulletsSocket = 2;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleRevolverShooting";
CurrentWeapon = "Revolver";
ReloaderWeapon = "Reloading_revolver";
} else if (Weapons[3] == true) {
loadWeapon("DualRevolver");
weaponBulletsSocket = 3;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualRevolverShooting";
CurrentWeapon = "DualRevolver";
ReloaderWeapon = "Reloading_dualRevolver";
} else if (Weapons[4] == true) {
loadWeapon("SingleShotgun");
weaponBulletsSocket = 4;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleShotGunShooting";
CurrentWeapon = "SingleShotgun";
ReloaderWeapon = "ReloadingSingle_Shotgun";
} else if (Weapons[5] == true) {
loadWeapon("DualShotgun");
weaponBulletsSocket = 5;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualShotGunShooting";
CurrentWeapon = "DualShotgun";
ReloaderWeapon = "Reloading_dualShotgun";
} else if (Weapons[6] == true) {
loadWeapon("SingleMachineGun");
weaponBulletsSocket = 6;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleMachineGunShooting";
CurrentWeapon = "MachineGun";
ReloaderWeapon = "Reloading_singleMachineGun";
} else if (Weapons[7] == true) {
loadWeapon("DualMachineGun");
weaponBulletsSocket = 7;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualGunMachineShooting";
CurrentWeapon = "DualMachineGun";
ReloaderWeapon = "Reloading_dualMachineGun";
} else if (Weapons[8] == true) {
loadWeapon("ShotGun");
weaponBulletsSocket = 8;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "ShotGunShooting";
CurrentWeapon = "Shotgun";
ReloaderWeapon = "Reloading_ShotGun";
} else if (Weapons[9] == true) {
loadWeapon("MachineGun");
weaponBulletsSocket = 9;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "MachineGunShooting";
CurrentWeapon = "AssaultRiffle";
ReloaderWeapon = "Reloading_MachineGun";
} else if (Weapons[10] == true) {
loadWeapon("Bazooka");
weaponBulletsSocket = 10;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "bazookaShooting";
CurrentWeapon = "Bazooka";
ReloaderWeapon = "Reloading_bazooka";
}
} else if (CurrentWeapon == "Revolver") {
if (Weapons[3] == true) {
loadWeapon("DualRevolver");
weaponBulletsSocket = 3;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualRevolverShooting";
CurrentWeapon = "DualRevolver";
ReloaderWeapon = "Reloading_dualRevolver";
} else if (Weapons[4] == true) {
loadWeapon("SingleShotgun");
weaponBulletsSocket = 4;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleShotGunShooting";
CurrentWeapon = "SingleShotgun";
ReloaderWeapon = "ReloadingSingle_Shotgun";
} else if (Weapons[5] == true) {
loadWeapon("DualShotgun");
weaponBulletsSocket = 5;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualShotGunShooting";
CurrentWeapon = "DualShotgun";
ReloaderWeapon = "Reloading_dualShotgun";
} else if (Weapons[6] == true) {
loadWeapon("SingleMachineGun");
weaponBulletsSocket = 6;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleMachineGunShooting";
CurrentWeapon = "MachineGun";
ReloaderWeapon = "Reloading_singleMachineGun";
} else if (Weapons[7] == true) {
loadWeapon("DualMachineGun");
weaponBulletsSocket = 7;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualGunMachineShooting";
CurrentWeapon = "DualMachineGun";
ReloaderWeapon = "Reloading_dualMachineGun";
} else if (Weapons[8] == true) {
loadWeapon("ShotGun");
weaponBulletsSocket = 8;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "ShotGunShooting";
CurrentWeapon = "Shotgun";
ReloaderWeapon = "Reloading_ShotGun";
} else if (Weapons[9] == true) {
loadWeapon("MachineGun");
weaponBulletsSocket = 9;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "MachineGunShooting";
CurrentWeapon = "AssaultRiffle";
ReloaderWeapon = "Reloading_MachineGun";
} else if (Weapons[10] == true) {
loadWeapon("Bazooka");
weaponBulletsSocket = 10;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "bazookaShooting";
CurrentWeapon = "Bazooka";
ReloaderWeapon = "Reloading_bazooka";
}
} else if (CurrentWeapon == "DualRevolver") {
if (Weapons[4] == true) {
loadWeapon("SingleShotgun");
weaponBulletsSocket = 4;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleShotGunShooting";
CurrentWeapon = "SingleShotgun";
ReloaderWeapon = "ReloadingSingle_Shotgun";
} else if (Weapons[5] == true) {
loadWeapon("DualShotgun");
weaponBulletsSocket = 5;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualShotGunShooting";
CurrentWeapon = "DualShotgun";
ReloaderWeapon = "Reloading_dualShotgun";
} else if (Weapons[6] == true) {
loadWeapon("SingleMachineGun");
weaponBulletsSocket = 6;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleMachineGunShooting";
CurrentWeapon = "MachineGun";
ReloaderWeapon = "Reloading_singleMachineGun";
} else if (Weapons[7] == true) {
loadWeapon("DualMachineGun");
weaponBulletsSocket = 7;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualGunMachineShooting";
CurrentWeapon = "DualMachineGun";
ReloaderWeapon = "Reloading_dualMachineGun";
} else if (Weapons[8] == true) {
loadWeapon("ShotGun");
weaponBulletsSocket = 8;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "ShotGunShooting";
CurrentWeapon = "Shotgun";
ReloaderWeapon = "Reloading_ShotGun";
} else if (Weapons[9] == true) {
loadWeapon("MachineGun");
weaponBulletsSocket = 9;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "MachineGunShooting";
CurrentWeapon = "AssaultRiffle";
ReloaderWeapon = "Reloading_MachineGun";
} else if (Weapons[10] == true) {
loadWeapon("Bazooka");
weaponBulletsSocket = 10;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "bazookaShooting";
CurrentWeapon = "Bazooka";
ReloaderWeapon = "Reloading_bazooka";
}
} else if (CurrentWeapon == "SingleShotgun") {
if (Weapons[5] == true) {
loadWeapon("DualShotgun");
weaponBulletsSocket = 5;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualShotGunShooting";
CurrentWeapon = "DualShotgun";
ReloaderWeapon = "Reloading_dualShotgun";
} else if (Weapons[6] == true) {
loadWeapon("SingleMachineGun");
weaponBulletsSocket = 6;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleMachineGunShooting";
CurrentWeapon = "MachineGun";
ReloaderWeapon = "Reloading_singleMachineGun";
} else if (Weapons[7] == true) {
loadWeapon("DualMachineGun");
weaponBulletsSocket = 7;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualGunMachineShooting";
CurrentWeapon = "DualMachineGun";
ReloaderWeapon = "Reloading_dualMachineGun";
} else if (Weapons[8] == true) {
loadWeapon("ShotGun");
weaponBulletsSocket = 8;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "ShotGunShooting";
CurrentWeapon = "Shotgun";
ReloaderWeapon = "Reloading_ShotGun";
} else if (Weapons[9] == true) {
loadWeapon("MachineGun");
weaponBulletsSocket = 9;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "MachineGunShooting";
CurrentWeapon = "AssaultRiffle";
ReloaderWeapon = "Reloading_MachineGun";
} else if (Weapons[10] == true) {
loadWeapon("Bazooka");
weaponBulletsSocket = 10;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "bazookaShooting";
CurrentWeapon = "Bazooka";
ReloaderWeapon = "Reloading_bazooka";
}
} else if (CurrentWeapon == "DualShotgun") {
if (Weapons[6] == true) {
loadWeapon("SingleMachineGun");
weaponBulletsSocket = 6;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleMachineGunShooting";
CurrentWeapon = "MachineGun";
ReloaderWeapon = "Reloading_singleMachineGun";
} else if (Weapons[7] == true) {
loadWeapon("DualMachineGun");
weaponBulletsSocket = 7;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualGunMachineShooting";
CurrentWeapon = "DualMachineGun";
ReloaderWeapon = "Reloading_dualMachineGun";
} else if (Weapons[8] == true) {
loadWeapon("ShotGun");
weaponBulletsSocket = 8;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "ShotGunShooting";
CurrentWeapon = "Shotgun";
ReloaderWeapon = "Reloading_ShotGun";
} else if (Weapons[9] == true) {
loadWeapon("MachineGun");
weaponBulletsSocket = 9;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "MachineGunShooting";
CurrentWeapon = "AssaultRiffle";
ReloaderWeapon = "Reloading_MachineGun";
} else if (Weapons[10] == true) {
loadWeapon("Bazooka");
weaponBulletsSocket = 10;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "bazookaShooting";
CurrentWeapon = "Bazooka";
ReloaderWeapon = "Reloading_bazooka";
}
} else if (CurrentWeapon == "MachineGun") {
if (Weapons[7] == true) {
loadWeapon("DualMachineGun");
weaponBulletsSocket = 7;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualGunMachineShooting";
CurrentWeapon = "DualMachineGun";
ReloaderWeapon = "Reloading_dualMachineGun";
} else if (Weapons[8] == true) {
loadWeapon("ShotGun");
weaponBulletsSocket = 8;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "ShotGunShooting";
CurrentWeapon = "Shotgun";
ReloaderWeapon = "Reloading_ShotGun";
} else if (Weapons[9] == true) {
loadWeapon("MachineGun");
weaponBulletsSocket = 9;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "MachineGunShooting";
CurrentWeapon = "AssaultRiffle";
ReloaderWeapon = "Reloading_MachineGun";
} else if (Weapons[10] == true) {
loadWeapon("Bazooka");
weaponBulletsSocket = 10;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "bazookaShooting";
CurrentWeapon = "Bazooka";
ReloaderWeapon = "Reloading_bazooka";
}
} else if (CurrentWeapon == "DualMachineGun") {
if (Weapons[8] == true) {
loadWeapon("ShotGun");
weaponBulletsSocket = 8;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "ShotGunShooting";
CurrentWeapon = "Shotgun";
ReloaderWeapon = "Reloading_ShotGun";
} else if (Weapons[9] == true) {
loadWeapon("MachineGun");
weaponBulletsSocket = 9;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "MachineGunShooting";
CurrentWeapon = "AssaultRiffle";
ReloaderWeapon = "Reloading_MachineGun";
} else if (Weapons[10] == true) {
loadWeapon("Bazooka");
weaponBulletsSocket = 10;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "bazookaShooting";
CurrentWeapon = "Bazooka";
ReloaderWeapon = "Reloading_bazooka";
}
} else if (CurrentWeapon == "Shotgun") {
if (Weapons[9] == true) {
loadWeapon("MachineGun");
weaponBulletsSocket = 9;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "MachineGunShooting";
CurrentWeapon = "AssaultRiffle";
ReloaderWeapon = "Reloading_MachineGun";
} else if (Weapons[10] == true) {
loadWeapon("Bazooka");
weaponBulletsSocket = 10;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "bazookaShooting";
CurrentWeapon = "Bazooka";
ReloaderWeapon = "Reloading_bazooka";
}
} else if (CurrentWeapon == "AssaultRiffle") {
if (Weapons[10] == true) {
loadWeapon("Bazooka");
weaponBulletsSocket = 10;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "bazookaShooting";
CurrentWeapon = "Bazooka";
ReloaderWeapon = "Reloading_bazooka";
}
}
} else if (Key.isDown(88) && (CurrentBullets > 0)) {
if (CurrentWeapon == "DualGun") {
if (Weapons[0] == true) {
loadWeapon("Pistol");
weaponBulletsSocket = 0;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleGunShooting";
CurrentWeapon = "Gun";
ReloaderWeapon = "Reloading_singleGun";
}
} else if (CurrentWeapon == "Revolver") {
if (Weapons[1] == true) {
loadWeapon("DualGun");
weaponBulletsSocket = 1;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualGunShooting";
CurrentWeapon = "DualGun";
ReloaderWeapon = "Reloading_dualGun";
} else if (Weapons[0] == true) {
loadWeapon("Pistol");
weaponBulletsSocket = 0;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleGunShooting";
CurrentWeapon = "Gun";
ReloaderWeapon = "Reloading_singleGun";
}
} else if (CurrentWeapon == "DualRevolver") {
if (Weapons[2] == true) {
loadWeapon("Revolver");
weaponBulletsSocket = 2;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleRevolverShooting";
CurrentWeapon = "Revolver";
ReloaderWeapon = "Reloading_revolver";
} else if (Weapons[1] == true) {
loadWeapon("DualGun");
weaponBulletsSocket = 1;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualGunShooting";
CurrentWeapon = "DualGun";
ReloaderWeapon = "Reloading_dualGun";
} else if (Weapons[0] == true) {
loadWeapon("Pistol");
weaponBulletsSocket = 0;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleGunShooting";
CurrentWeapon = "Gun";
ReloaderWeapon = "Reloading_singleGun";
}
} else if (CurrentWeapon == "SingleShotgun") {
if (Weapons[3] == true) {
loadWeapon("DualRevolver");
weaponBulletsSocket = 3;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualRevolverShooting";
CurrentWeapon = "DualRevolver";
ReloaderWeapon = "Reloading_dualRevolver";
} else if (Weapons[2] == true) {
loadWeapon("Revolver");
weaponBulletsSocket = 2;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleRevolverShooting";
CurrentWeapon = "Revolver";
ReloaderWeapon = "Reloading_revolver";
} else if (Weapons[1] == true) {
loadWeapon("DualGun");
weaponBulletsSocket = 1;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualGunShooting";
CurrentWeapon = "DualGun";
ReloaderWeapon = "Reloading_dualGun";
} else if (Weapons[0] == true) {
loadWeapon("Pistol");
weaponBulletsSocket = 0;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleGunShooting";
CurrentWeapon = "Gun";
ReloaderWeapon = "Reloading_singleGun";
}
} else if (CurrentWeapon == "DualShotgun") {
if (Weapons[4] == true) {
loadWeapon("SingleShotgun");
weaponBulletsSocket = 4;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleShotGunShooting";
CurrentWeapon = "SingleShotgun";
ReloaderWeapon = "ReloadingSingle_Shotgun";
} else if (Weapons[3] == true) {
loadWeapon("DualRevolver");
weaponBulletsSocket = 3;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualRevolverShooting";
CurrentWeapon = "DualRevolver";
ReloaderWeapon = "Reloading_dualRevolver";
} else if (Weapons[2] == true) {
loadWeapon("Revolver");
weaponBulletsSocket = 2;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleRevolverShooting";
CurrentWeapon = "Revolver";
ReloaderWeapon = "Reloading_revolver";
} else if (Weapons[1] == true) {
loadWeapon("DualGun");
weaponBulletsSocket = 1;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualGunShooting";
CurrentWeapon = "DualGun";
ReloaderWeapon = "Reloading_dualGun";
} else if (Weapons[0] == true) {
loadWeapon("Pistol");
weaponBulletsSocket = 0;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleGunShooting";
CurrentWeapon = "Gun";
ReloaderWeapon = "Reloading_singleGun";
}
} else if (CurrentWeapon == "MachineGun") {
if (Weapons[5] == true) {
loadWeapon("DualShotgun");
weaponBulletsSocket = 5;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualShotGunShooting";
CurrentWeapon = "DualShotgun";
ReloaderWeapon = "Reloading_dualShotgun";
} else if (Weapons[4] == true) {
loadWeapon("SingleShotgun");
weaponBulletsSocket = 4;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleShotGunShooting";
CurrentWeapon = "SingleShotgun";
ReloaderWeapon = "ReloadingSingle_Shotgun";
} else if (Weapons[3] == true) {
loadWeapon("DualRevolver");
weaponBulletsSocket = 3;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualRevolverShooting";
CurrentWeapon = "DualRevolver";
ReloaderWeapon = "Reloading_dualRevolver";
} else if (Weapons[2] == true) {
loadWeapon("Revolver");
weaponBulletsSocket = 2;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleRevolverShooting";
CurrentWeapon = "Revolver";
ReloaderWeapon = "Reloading_revolver";
} else if (Weapons[1] == true) {
loadWeapon("DualGun");
weaponBulletsSocket = 1;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualGunShooting";
CurrentWeapon = "DualGun";
ReloaderWeapon = "Reloading_dualGun";
} else if (Weapons[0] == true) {
loadWeapon("Pistol");
weaponBulletsSocket = 0;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleGunShooting";
CurrentWeapon = "Gun";
ReloaderWeapon = "Reloading_singleGun";
}
} else if (CurrentWeapon == "DualMachineGun") {
if (Weapons[6] == true) {
loadWeapon("SingleMachineGun");
weaponBulletsSocket = 6;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleMachineGunShooting";
CurrentWeapon = "MachineGun";
ReloaderWeapon = "Reloading_singleMachineGun";
} else if (Weapons[5] == true) {
loadWeapon("DualShotgun");
weaponBulletsSocket = 5;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualShotGunShooting";
CurrentWeapon = "DualShotgun";
ReloaderWeapon = "Reloading_dualShotgun";
} else if (Weapons[4] == true) {
loadWeapon("SingleShotgun");
weaponBulletsSocket = 4;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleShotGunShooting";
CurrentWeapon = "SingleShotgun";
ReloaderWeapon = "ReloadingSingle_Shotgun";
} else if (Weapons[3] == true) {
loadWeapon("DualRevolver");
weaponBulletsSocket = 3;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualRevolverShooting";
CurrentWeapon = "DualRevolver";
ReloaderWeapon = "Reloading_dualRevolver";
} else if (Weapons[2] == true) {
loadWeapon("Revolver");
weaponBulletsSocket = 2;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleRevolverShooting";
CurrentWeapon = "Revolver";
ReloaderWeapon = "Reloading_revolver";
} else if (Weapons[1] == true) {
loadWeapon("DualGun");
weaponBulletsSocket = 1;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualGunShooting";
CurrentWeapon = "DualGun";
ReloaderWeapon = "Reloading_dualGun";
} else if (Weapons[0] == true) {
loadWeapon("Pistol");
weaponBulletsSocket = 0;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleGunShooting";
CurrentWeapon = "Gun";
ReloaderWeapon = "Reloading_singleGun";
}
} else if (CurrentWeapon == "Shotgun") {
if (Weapons[7] == true) {
loadWeapon("DualMachineGun");
weaponBulletsSocket = 7;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualGunMachineShooting";
CurrentWeapon = "DualMachineGun";
ReloaderWeapon = "Reloading_dualMachineGun";
} else if (Weapons[6] == true) {
loadWeapon("SingleMachineGun");
weaponBulletsSocket = 6;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleMachineGunShooting";
CurrentWeapon = "MachineGun";
ReloaderWeapon = "Reloading_singleMachineGun";
} else if (Weapons[5] == true) {
loadWeapon("DualShotgun");
weaponBulletsSocket = 5;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualShotGunShooting";
CurrentWeapon = "DualShotgun";
ReloaderWeapon = "Reloading_dualShotgun";
} else if (Weapons[4] == true) {
loadWeapon("SingleShotgun");
weaponBulletsSocket = 4;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleShotGunShooting";
CurrentWeapon = "SingleShotgun";
ReloaderWeapon = "ReloadingSingle_Shotgun";
} else if (Weapons[3] == true) {
loadWeapon("DualRevolver");
weaponBulletsSocket = 3;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualRevolverShooting";
CurrentWeapon = "DualRevolver";
ReloaderWeapon = "Reloading_dualRevolver";
} else if (Weapons[2] == true) {
loadWeapon("Revolver");
weaponBulletsSocket = 2;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleRevolverShooting";
CurrentWeapon = "Revolver";
ReloaderWeapon = "Reloading_revolver";
} else if (Weapons[1] == true) {
loadWeapon("DualGun");
weaponBulletsSocket = 1;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualGunShooting";
CurrentWeapon = "DualGun";
ReloaderWeapon = "Reloading_dualGun";
} else if (Weapons[0] == true) {
loadWeapon("Pistol");
weaponBulletsSocket = 0;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleGunShooting";
CurrentWeapon = "Gun";
ReloaderWeapon = "Reloading_singleGun";
}
} else if (CurrentWeapon == "AssaultRiffle") {
if (Weapons[8] == true) {
loadWeapon("ShotGun");
weaponBulletsSocket = 8;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "ShotGunShooting";
CurrentWeapon = "Shotgun";
ReloaderWeapon = "Reloading_ShotGun";
} else if (Weapons[7] == true) {
loadWeapon("DualMachineGun");
weaponBulletsSocket = 7;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualGunMachineShooting";
CurrentWeapon = "DualMachineGun";
ReloaderWeapon = "Reloading_dualMachineGun";
} else if (Weapons[6] == true) {
loadWeapon("SingleMachineGun");
weaponBulletsSocket = 6;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleMachineGunShooting";
CurrentWeapon = "MachineGun";
ReloaderWeapon = "Reloading_singleMachineGun";
} else if (Weapons[5] == true) {
loadWeapon("DualShotgun");
weaponBulletsSocket = 5;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualShotGunShooting";
CurrentWeapon = "DualShotgun";
ReloaderWeapon = "Reloading_dualShotgun";
} else if (Weapons[4] == true) {
loadWeapon("SingleShotgun");
weaponBulletsSocket = 4;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleShotGunShooting";
CurrentWeapon = "SingleShotgun";
ReloaderWeapon = "ReloadingSingle_Shotgun";
} else if (Weapons[3] == true) {
loadWeapon("DualRevolver");
weaponBulletsSocket = 3;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualRevolverShooting";
CurrentWeapon = "DualRevolver";
ReloaderWeapon = "Reloading_dualRevolver";
} else if (Weapons[2] == true) {
loadWeapon("Revolver");
weaponBulletsSocket = 2;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleRevolverShooting";
CurrentWeapon = "Revolver";
ReloaderWeapon = "Reloading_revolver";
} else if (Weapons[1] == true) {
loadWeapon("DualGun");
weaponBulletsSocket = 1;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualGunShooting";
CurrentWeapon = "DualGun";
ReloaderWeapon = "Reloading_dualGun";
} else if (Weapons[0] == true) {
loadWeapon("Pistol");
weaponBulletsSocket = 0;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleGunShooting";
CurrentWeapon = "Gun";
ReloaderWeapon = "Reloading_singleGun";
}
} else if (CurrentWeapon == "Bazooka") {
if (Weapons[9] == true) {
loadWeapon("MachineGun");
weaponBulletsSocket = 9;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "MachineGunShooting";
CurrentWeapon = "AssaultRiffle";
ReloaderWeapon = "Reloading_MachineGun";
} else if (Weapons[7] == true) {
loadWeapon("DualMachineGun");
weaponBulletsSocket = 7;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualGunMachineShooting";
CurrentWeapon = "DualMachineGun";
ReloaderWeapon = "Reloading_dualMachineGun";
} else if (Weapons[6] == true) {
loadWeapon("SingleMachineGun");
weaponBulletsSocket = 6;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleMachineGunShooting";
CurrentWeapon = "MachineGun";
ReloaderWeapon = "Reloading_singleMachineGun";
} else if (Weapons[5] == true) {
loadWeapon("DualShotgun");
weaponBulletsSocket = 5;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualShotGunShooting";
CurrentWeapon = "DualShotgun";
ReloaderWeapon = "Reloading_dualShotgun";
} else if (Weapons[4] == true) {
loadWeapon("SingleShotgun");
weaponBulletsSocket = 4;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleShotGunShooting";
CurrentWeapon = "SingleShotgun";
ReloaderWeapon = "ReloadingSingle_Shotgun";
} else if (Weapons[3] == true) {
loadWeapon("DualRevolver");
weaponBulletsSocket = 3;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualRevolverShooting";
CurrentWeapon = "DualRevolver";
ReloaderWeapon = "Reloading_dualRevolver";
} else if (Weapons[2] == true) {
loadWeapon("Revolver");
weaponBulletsSocket = 2;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleRevolverShooting";
CurrentWeapon = "Revolver";
ReloaderWeapon = "Reloading_revolver";
} else if (Weapons[1] == true) {
loadWeapon("DualGun");
weaponBulletsSocket = 1;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "dualGunShooting";
CurrentWeapon = "DualGun";
ReloaderWeapon = "Reloading_dualGun";
} else if (Weapons[0] == true) {
loadWeapon("Pistol");
weaponBulletsSocket = 0;
ReloadingSocket = weaponReloadTime[weaponBulletsSocket];
ShootingWeapon = "singleGunShooting";
CurrentWeapon = "Gun";
ReloaderWeapon = "Reloading_singleGun";
}
}
}
};
}
function randomBetween(min, max) {
rand = Math.random();
diff = max - min;
num = (rand * diff) + min;
return(num);
}
function Shell(fragmentType) {
var absorbNum = 2;
var _local4 = 3;
var gravity = 3;
var HitGround = false;
var _local3 = _root.socket_mc.attachMovie(fragmentType, "fragment" + _root.getNextHighestDepth(), Math.round(Math.random() * 100) + 200);
_local3.cacheAsBitmap = true;
if (Flip == true) {
_local3._x = (Hero_mc._x + playerWeapon.barrelLength) - 10;
_local3._y = (Hero_mc._y - GunHeight) - 10;
_local3._rotation = Math.round(Math.random() * 50);
tempBullet._xscale = 100;
} else if (Flip == false) {
_local3._x = (Hero_mc._x - playerWeapon.barrelLength) + 10;
_local3._y = (Hero_mc._y - GunHeight) - 10;
_local3._rotation = Math.round(Math.random() * 50);
tempBullet._xscale = -100;
}
_local3._xvelocity = randomBetween(-3, 3);
_local3._yvelocity = 0;
_local3._Bouncing = 10;
_local3._moving = true;
_local3.onEnterFrame = function () {
if (this._Bouncing <= 0) {
this._moving = false;
this.removeMovieClip();
}
if (this._moving == true) {
if (ground_mc.hitTest(this._x, this._y, true)) {
this._Bouncing = this._Bouncing - 3;
this._yvelocity = (-this._yvelocity) - absorbNum;
this._xvelocity = randomBetween(-3, 3);
playSounds2("BulletCase");
HitGround = true;
if (this._yvelocity < 0) {
this._yvelocity = 0;
this._y = this._y - this._Bouncing;
}
} else {
this._yvelocity = this._yvelocity + gravity;
}
this._x = this._x + this._xvelocity;
this._y = this._y + this._yvelocity;
} else if (this._moving == false) {
if (!ground_mc.hitTest(this._x, this._y, true)) {
this._y++;
}
}
};
}
function playSounds(SOUND) {
var _local1 = new Sound(container1);
_local1.attachSound(SOUND);
_local1.setVolume(VolumeFX);
_local1.start();
}
function playSounds2(SOUND) {
SpecialSounds.attachSound(SOUND);
SpecialSounds.setVolume(VolumeFX);
SpecialSounds.start();
}
function playSounds3(SOUND) {
ComboSounds.stop();
SpecialSounds.stop();
ComboSounds.attachSound(SOUND);
ComboSounds.setVolume(VolumeFX);
ComboSounds.start();
}
function create_Victims(amount, targetLocation, Xlocation) {
var _local4 = 0;
while (_local4 < amount) {
var _local3 = targetLocation.attachMovie("Victim", "Victim" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
VictimsArray.push(_local3);
Hero_mc.swapDepths(_root.getNextHighestDepth());
if (Xlocation != undefined) {
randomXpos = Xlocation;
} else if (Xlocation == undefined) {
randomXpos = Math.round(Math.random() * mapWidth);
}
randomYpos = 250;
_local3._x = randomXpos;
_local3._y = randomYpos;
_local3.Dress = Math.round((Math.random() * 54) + 1);
_local3.Pants = Math.round((Math.random() * 10) + 1);
_local3.Running = Math.round((Math.random() * 2) + 1);
_local3.Pointing = Math.round(Math.random() * 1) + 1;
_local3.SoulChance = Math.round(Math.random() * 100);
_local3.SoulBulletChance = 0;
_local3.CriticalChance = Math.round(Math.random() * 100);
_local3.CriticalShoot = false;
_local3.HeadShotChance = Math.round(Math.random() * 100);
_local3.HeadShoot = false;
_local3.RunningType = "running" + _local3.Running;
_local3.alive = true;
_local3.falling = true;
_local3.Running = false;
_local3.dead = false;
_local3.Speed = 5;
_local3.Shots = 1;
_local3.TSpeed = 2;
_local3.myHealth = People_HP[0];
_local3.Decapitated = false;
_local3.Landing = true;
_local3.HitBy = "";
_local3.Direction = "Left";
_local3._xscale = 100;
_local3.Type = "Civil";
_local3.UpRightX = _local3._x + 17;
_local3.UpRighty = _local3._y;
_local3.UpLeftX = _local3._x - 21;
_local3.UpLefty = _local3._y;
_local3.DownRightX = _local3._x + 20;
_local3.DownRighty = _local3._y - 8;
_local3.DownLeftX = _local3._x - 25;
_local3.DownLefty = _local3._y - 8;
trace("ADDED");
if (_local3.Pointing == 1) {
_local3._xscale = -100;
_local3.Direction = "Right";
} else if (_local3.Pointing == 2) {
_local3._xscale = 100;
_local3.Direction = "Left";
}
VictimsNumber = VictimsNumber + 1;
trace(VictimsArray.length);
_local3.onEnterFrame = function () {
this.DownRightX = this._x + 20;
this.DownRighty = this._y - 8;
this.DownLeftX = this._x - 25;
this.DownLefty = this._y - 8;
this.body_mc.victim_head.gotoAndStop(this.Dress);
this.body_mc.victim_body.gotoAndStop(this.Dress);
this.body_mc.victim_rightarm.gotoAndStop(this.Dress);
this.body_mc.victim_leftarm.gotoAndStop(this.Dress);
this.body_mc.victim_uplftleg.gotoAndStop(this.Pants);
this.body_mc.victim_uprightleg.gotoAndStop(this.Pants);
this.body_mc.victim_lowlftlg.gotoAndStop(this.Pants);
this.body_mc.victim_lowerightleg.gotoAndStop(this.Pants);
this.body_mc.victim_lftfoot.gotoAndStop(this.Dress);
this.body_mc.victim_rightfoot.gotoAndStop(this.Dress);
if (Pause == true) {
this.body_mc.stop();
} else if (Pause == false) {
this.body_mc.play();
}
if (((this.alive == true) && (this.falling == false)) && (Pause == false)) {
if ((this.Direction == "Left") && (Pause == false)) {
if (HeroDirection == "Right") {
this._x = this._x - (this.Speed + this.TSpeed);
} else if (HeroDirection == "Left") {
this._x = this._x + (this.Speed - this.TSpeed);
} else if (HeroDirection == "Standing") {
this._x = this._x - (this.Speed - this.TSpeed);
}
}
if ((this.Direction == "Right") && (Pause == false)) {
if (HeroDirection == "Right") {
this._x = this._x - (this.Speed - this.TSpeed);
} else if (HeroDirection == "Left") {
this._x = this._x + (this.Speed + this.TSpeed);
} else if (HeroDirection == "Standing") {
this._x = this._x + (this.Speed - this.TSpeed);
}
}
} else if (this.alive == false) {
this.Speed = 0;
this.TSpeed = 0;
if ((HeroDirection == "Right") && (Pause == false)) {
this._x = this._x - WalkingSpeed;
} else if ((HeroDirection == "Left") && (Pause == false)) {
this._x = this._x + WalkingSpeed;
} else if (HeroDirection == "Standing") {
this._x = this._x + 0;
}
}
if (ground_mc.hitTest(this.DownLeftX, this.DownLefty, true) || (ground_mc.hitTest(this.DownRightX, this.DownRighty, true))) {
this.falling = false;
if (this.alive == true) {
if (this.Direction == "Left") {
if (ground_mc.hitTest(this.DownLeftX, this.DownLefty, true)) {
this._y = this._y - 0.5;
} else if (!ground_mc.hitTest(this.DownLeftX, this.DownLefty, true)) {
this._y = this._y + 0.5;
}
} else if (this.Direction == "Right") {
if (ground_mc.hitTest(this.DownRightX, this.DownRighty, true)) {
this._y = this._y - 0.5;
} else if (!ground_mc.hitTest(this.DownRightX, this.DownRighty, true)) {
this._y = this._y + 0.5;
}
}
}
} else if ((!ground_mc.hitTest(this.DownLeftX, this.DownLefty, true)) && (!ground_mc.hitTest(this.DownRightX, this.DownRighty, true))) {
this._y = this._y + 8;
}
if (this.hitTest(MaxPoint_mc) && (this.Direction == "Left")) {
this.Direction = "Right";
this._xscale = -100;
}
if (this.hitTest(MinPoint_mc) && (this.Direction == "Right")) {
this.Direction = "Left";
this._xscale = 100;
}
if ((Alarm == true) && (this.alive == true)) {
this.TSpeed = 5;
this.Speed = 11;
this.gotoAndStop(this.RunningType);
} else if ((Alarm == false) && (this.alive == true)) {
this.TSpeed = 2;
this.Speed = 5;
this.gotoAndStop("walking");
}
this.body_mc.bloodMarc_mc.gotoAndStop(this.Shots);
if ((this._x >= -10) && (this._x <= 760)) {
var _local3 = 0;
while (_local3 < bulletArray.length) {
bullet = bulletArray[_local3];
if (((this.body_mc.victim_body.hitTest(bullet) && (this.myHealth > 0)) && (this.alive == true)) && (Pause == false)) {
playSounds("Gunhit");
Alarm = true;
this.Shots = this.Shots + 1;
this.HitBy = bullet.GunType;
this.myHealth = this.myHealth - bullet.BulletDamage;
alarmCounterFrame = alarmCounterFrame + 175;
this.SoulBulletChance = bullet.RipSoulChance;
this.body_mc.victim_head.face_mc.nextFrame();
if ((((bullet.GunType == "Gun") || (bullet.GunType == "DualGun")) || (bullet.GunType == "Revolver")) || (bullet.GunType == "DualRevolver")) {
explosion(_root, "blood", this);
}
if (bullet.GunType == "Bazooka") {
playSounds("ExplosionHit");
var _local4 = _root.attachMovie("Bazooka_Explosion_mc", "Bazooka_Explosion_mc", _root.getNextHighestDepth());
_local4._x = this._x;
_local4._y = this._y;
}
if (this.CriticalChance <= bullet.CriticalChance) {
Criticalexplosion(_root, "Guts", this);
trace("CRITICAL HIT");
this.myHealth = 0;
this.CriticalShoot = true;
}
bulletArray.splice(_local3, 1);
clearInterval(bullet.lifeTimer);
removeMovieClip(bullet);
} else if (((this.body_mc.victim_head.hitTest(bullet) && (this.myHealth > 0)) && (this.alive == true)) && (Pause == false)) {
Alarm = true;
playSounds("Gunhit");
this.Shots = this.Shots + 1;
this.HitBy = bullet.GunType;
this.myHealth = this.myHealth - bullet.BulletDamage;
alarmCounterFrame = alarmCounterFrame + 175;
this.SoulBulletChance = bullet.RipSoulChance;
this.body_mc.victim_head.face_mc.nextFrame();
if ((((bullet.GunType == "Gun") || (bullet.GunType == "DualGun")) || (bullet.GunType == "Revolver")) || (bullet.GunType == "DualRevolver")) {
explosion(_root, "blood", this);
}
if (bullet.GunType == "Bazooka") {
var _local4 = _root.attachMovie("Bazooka_Explosion_mc", "Bazooka_Explosion_mc", _root.getNextHighestDepth());
_local4._x = this._x;
_local4._y = this._y;
}
if (this.HeadShotChance <= bullet.HeadShotChance) {
explosion(_root, "blood", this);
trace("HEADSHOT!");
this.HitBy = "HeadShot";
this.myHealth = 0;
this.HeadShoot = true;
}
bulletArray.splice(_local3, 1);
clearInterval(bullet.lifeTimer);
removeMovieClip(bullet);
}
_local3++;
}
}
victimKiller(this);
};
_local4++;
}
}
function victimKiller(target) {
if ((EXIT == true) || (target._y >= 500)) {
target.alive = false;
target.gotoAndStop("Eliminator");
}
if (((target.Type == "Civil") && (target.myHealth <= 0)) && (target.alive == true)) {
TotalCivilKills = TotalCivilKills + 1;
RAGE = RAGE + CivilKillRAGEBonus;
if (target.HitBy == "Gun") {
Weapon_Kills[0] = Weapon_Kills[0] + 1;
playSounds("Die1");
TotalMoneys = TotalMoneys + (CivilKillMoneyBonus + MoneyReward[0]);
Moneys = Moneys + (CivilKillMoneyBonus + MoneyReward[0]);
target.alive = false;
target.gotoAndStop("Normal_Dead1");
SoulSpawner(target);
} else if (target.HitBy == "DualGun") {
Weapon_Kills[1] = Weapon_Kills[1] + 1;
playSounds("Die1");
TotalMoneys = TotalMoneys + (CivilKillMoneyBonus + MoneyReward[1]);
Moneys = Moneys + (CivilKillMoneyBonus + MoneyReward[1]);
target.alive = false;
target.gotoAndStop("Normal_Dead2");
SoulSpawner(target);
} else if (target.HitBy == "Revolver") {
Weapon_Kills[2] = Weapon_Kills[2] + 1;
playSounds("Die2");
TotalMoneys = TotalMoneys + (CivilKillMoneyBonus + MoneyReward[2]);
Moneys = Moneys + (CivilKillMoneyBonus + MoneyReward[2]);
target.alive = false;
target.gotoAndStop("Hole_Dead1");
SoulSpawner(target);
} else if (target.HitBy == "DualRevolver") {
Weapon_Kills[3] = Weapon_Kills[3] + 1;
playSounds("Die2");
TotalMoneys = TotalMoneys + (CivilKillMoneyBonus + MoneyReward[3]);
Moneys = Moneys + (CivilKillMoneyBonus + MoneyReward[3]);
target.alive = false;
target.gotoAndStop("Hole_Dead3");
SoulSpawner(target);
} else if (target.HitBy == "SingleShotgun") {
Weapon_Kills[4] = Weapon_Kills[4] + 1;
playSounds("Die3");
TotalMoneys = TotalMoneys + (CivilKillMoneyBonus + MoneyReward[4]);
Moneys = Moneys + (CivilKillMoneyBonus + MoneyReward[4]);
target.alive = false;
target.gotoAndStop("semiExploding_Dead1");
SoulSpawner(target);
} else if (target.HitBy == "DualShotGun") {
Weapon_Kills[5] = Weapon_Kills[5] + 1;
playSounds("Die4");
TotalMoneys = TotalMoneys + (CivilKillMoneyBonus + MoneyReward[5]);
Moneys = Moneys + (CivilKillMoneyBonus + MoneyReward[5]);
target.alive = false;
target.gotoAndStop("semiExploding_Dead2");
SoulSpawner(target);
} else if (target.HitBy == "SingleMachineGun") {
Weapon_Kills[6] = Weapon_Kills[6] + 1;
playSounds("Die2");
TotalMoneys = TotalMoneys + (CivilKillMoneyBonus + MoneyReward[6]);
Moneys = Moneys + (CivilKillMoneyBonus + MoneyReward[6]);
target.alive = false;
target.gotoAndStop("Hole_Dead2");
SoulSpawner(target);
} else if (target.HitBy == "DualMachineGun") {
Weapon_Kills[7] = Weapon_Kills[7] + 1;
playSounds("Die5");
TotalMoneys = TotalMoneys + (CivilKillMoneyBonus + MoneyReward[7]);
Moneys = Moneys + (CivilKillMoneyBonus + MoneyReward[7]);
target.alive = false;
target.gotoAndStop("Hole_Dead4");
SoulSpawner(target);
} else if (target.HitBy == "ShotGun") {
Weapon_Kills[8] = Weapon_Kills[8] + 1;
playSounds("Die3");
TotalMoneys = TotalMoneys + (CivilKillMoneyBonus + MoneyReward[8]);
Moneys = Moneys + (CivilKillMoneyBonus + MoneyReward[8]);
target.alive = false;
target.gotoAndStop("TurnPieces_Dead2");
SoulSpawner(target);
} else if (target.HitBy == "MachineGun") {
Weapon_Kills[9] = Weapon_Kills[9] + 1;
playSounds("Die2");
TotalMoneys = TotalMoneys + (CivilKillMoneyBonus + MoneyReward[9]);
Moneys = Moneys + (CivilKillMoneyBonus + MoneyReward[9]);
target.alive = false;
target.gotoAndStop("TurnPieces_Dead1");
SoulSpawner(target);
} else if (target.HitBy == "Bazooka") {
Weapon_Kills[10] = Weapon_Kills[10] + 1;
playSounds("Die3");
TotalMoneys = TotalMoneys + (CivilKillMoneyBonus + MoneyReward[10]);
Moneys = Moneys + (CivilKillMoneyBonus + MoneyReward[10]);
target.alive = false;
target.gotoAndStop("Exploding_Dead1");
SoulSpawner(target);
} else if (target.HitBy == "Berserk") {
playSounds("Die2");
TotalMoneys = TotalMoneys + (CivilKillMoneyBonus + MoneyReward[13]);
Moneys = Moneys + (CivilKillMoneyBonus + MoneyReward[13]);
Weapon_Kills[11] = Weapon_Kills[11] + 1;
target.alive = false;
target.gotoAndStop("Exploding_Dead2");
SoulSpawner(target);
} else if (target.HitBy == "HeadShot") {
playSounds("Die5");
TotalMoneys = TotalMoneys + (CivilKillMoneyBonus + MoneyReward[11]);
Moneys = Moneys + (CivilKillMoneyBonus + MoneyReward[11]);
target.alive = false;
target.gotoAndStop("HeadShot_Dead");
SoulSpawner(target);
} else if (target.HitBy == "CRITICAL HIT") {
TotalMoneys = TotalMoneys + (CivilKillMoneyBonus + MoneyReward[12]);
Moneys = Moneys + (CivilKillMoneyBonus + MoneyReward[12]);
target.alive = false;
target.gotoAndStop("Exploding_Dead2");
SoulSpawner(target);
}
} else if (((target.Type == "Enemie") && (target.myHealth <= 0)) && (target.alive == true)) {
TotalCopKills = TotalCopKills + 1;
RAGE = RAGE + CopKillRAGEBonus;
LevelsCops_Kills[CurrentLevel] = LevelsCops_Kills[CurrentLevel] + 1;
EnemiesNumber = EnemiesNumber - 1;
Kind_Kills[target.KindEnemie] = Kind_Kills[target.KindEnemie] + 1;
playSounds(target.DieSound);
if (target.HitBy == "Gun") {
Weapon_Kills[0] = Weapon_Kills[0] + 1;
TotalMoneys = TotalMoneys + (CopKillMoneyBonus + MoneyReward[0]);
Moneys = Moneys + (CopKillMoneyBonus + MoneyReward[0]);
target.alive = false;
target.gotoAndStop("diying");
SoulSpawner(target);
} else if (target.HitBy == "DualGun") {
Weapon_Kills[1] = Weapon_Kills[1] + 1;
TotalMoneys = TotalMoneys + (CopKillMoneyBonus + MoneyReward[1]);
Moneys = Moneys + (CopKillMoneyBonus + MoneyReward[1]);
target.alive = false;
target.gotoAndStop("diying");
SoulSpawner(target);
} else if (target.HitBy == "Revolver") {
Weapon_Kills[2] = Weapon_Kills[2] + 1;
TotalMoneys = TotalMoneys + (CopKillMoneyBonus + MoneyReward[2]);
Moneys = Moneys + (CopKillMoneyBonus + MoneyReward[2]);
target.alive = false;
target.gotoAndStop("diying");
SoulSpawner(target);
} else if (target.HitBy == "DualRevolver") {
Weapon_Kills[3] = Weapon_Kills[3] + 1;
TotalMoneys = TotalMoneys + (CopKillMoneyBonus + MoneyReward[3]);
Moneys = Moneys + (CopKillMoneyBonus + MoneyReward[3]);
target.alive = false;
target.gotoAndStop("diying");
SoulSpawner(target);
} else if (target.HitBy == "SingleShotgun") {
Weapon_Kills[4] = Weapon_Kills[4] + 1;
TotalMoneys = TotalMoneys + (CopKillMoneyBonus + MoneyReward[4]);
Moneys = Moneys + (CopKillMoneyBonus + MoneyReward[4]);
target.alive = false;
target.gotoAndStop("diying");
SoulSpawner(target);
} else if (target.HitBy == "DualShotGun") {
Weapon_Kills[5] = Weapon_Kills[5] + 1;
TotalMoneys = TotalMoneys + (CopKillMoneyBonus + MoneyReward[5]);
Moneys = Moneys + (CopKillMoneyBonus + MoneyReward[5]);
target.alive = false;
target.gotoAndStop("diying");
SoulSpawner(target);
} else if (target.HitBy == "SingleMachineGun") {
Weapon_Kills[6] = Weapon_Kills[6] + 1;
TotalMoneys = TotalMoneys + (CopKillMoneyBonus + MoneyReward[6]);
Moneys = Moneys + (CopKillMoneyBonus + MoneyReward[6]);
target.alive = false;
target.gotoAndStop("diying");
SoulSpawner(target);
} else if (target.HitBy == "DualMachineGun") {
Weapon_Kills[7] = Weapon_Kills[7] + 1;
TotalMoneys = TotalMoneys + (CopKillMoneyBonus + MoneyReward[7]);
Moneys = Moneys + (CopKillMoneyBonus + MoneyReward[7]);
target.alive = false;
target.gotoAndStop("diying");
SoulSpawner(target);
} else if (target.HitBy == "ShotGun") {
Weapon_Kills[8] = Weapon_Kills[8] + 1;
TotalMoneys = TotalMoneys + (CopKillMoneyBonus + MoneyReward[8]);
Moneys = Moneys + (CopKillMoneyBonus + MoneyReward[8]);
target.alive = false;
target.gotoAndStop("diying");
SoulSpawner(target);
} else if (target.HitBy == "MachineGun") {
Weapon_Kills[9] = Weapon_Kills[9] + 1;
TotalMoneys = TotalMoneys + (CopKillMoneyBonus + MoneyReward[9]);
Moneys = Moneys + (CopKillMoneyBonus + MoneyReward[9]);
target.alive = false;
target.gotoAndStop("diying");
SoulSpawner(target);
} else if (target.HitBy == "Bazooka") {
Weapon_Kills[10] = Weapon_Kills[10] + 1;
TotalMoneys = TotalMoneys + (CopKillMoneyBonus + MoneyReward[10]);
Moneys = Moneys + (CopKillMoneyBonus + MoneyReward[10]);
target.alive = false;
target.gotoAndStop("diying");
SoulSpawner(target);
} else if (target.HitBy == "Berserk") {
TotalMoneys = TotalMoneys + (CopKillMoneyBonus + MoneyReward[10]);
Moneys = Moneys + (CopKillMoneyBonus + MoneyReward[10]);
Weapon_Kills[11] = Weapon_Kills[11] + 1;
target.alive = false;
target.gotoAndStop("diying");
SoulSpawner(target);
} else if (target.HitBy == "HeadShot") {
TotalMoneys = TotalMoneys + (CopKillMoneyBonus + MoneyReward[11]);
Moneys = Moneys + (CopKillMoneyBonus + MoneyReward[11]);
target.alive = false;
target.gotoAndStop("diying");
SoulSpawner(target);
} else if (target.HitBy == "CRITICAL HIT") {
TotalMoneys = TotalMoneys + (CopKillMoneyBonus + MoneyReward[12]);
Moneys = Moneys + (CopKillMoneyBonus + MoneyReward[12]);
target.alive = false;
target.gotoAndStop("diying");
SoulSpawner(target);
}
}
}
function SoulSpawner(target) {
Kills = Kills + 1;
TotalKilled = TotalKilled + 1;
comboCounter = 90;
comboArray.push(1);
alarmCounterFrame = alarmCounterFrame + AlarmKill;
Levels_Kills[CurrentLevel] = Levels_Kills[CurrentLevel] + 1;
if (target.CriticalShoot == true) {
playSounds2("KILLED");
Levels_Criticals[CurrentLevel] = Levels_Criticals[CurrentLevel] + 1;
trace(Levels_Criticals[CurrentLevel]);
TotalCriticals = TotalCriticals + 1;
var _local5 = _root.attachMovie("Critical_mc", "Critical_mc" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local5._x = target._x;
_local5._y = target._y - 10;
_local5.onEnterFrame = function () {
if ((this._y <= 0) || (EXIT == true)) {
removeMovieClip(this);
}
if ((HeroDirection == "Right") && (Pause == false)) {
this._x = this._x - WalkingSpeed;
} else if ((HeroDirection == "Left") && (Pause == false)) {
this._x = this._x + WalkingSpeed;
} else if (HeroDirection == "Standing") {
this._x = this._x + 0;
}
};
}
if (target.HeadShoot == true) {
if (target.CriticalShoot == false) {
playSounds2("HEADSHOOT");
}
LevelsHead_Shots[CurrentLevel] = LevelsHead_Shots[CurrentLevel] + 1;
TotalHeadShot = TotalHeadShot + 1;
var _local6 = _root.attachMovie("HeadShot", "HeadShot" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local6._x = target._x;
_local6._y = target._y - 10;
_local6.onEnterFrame = function () {
if ((this._y <= 0) || (EXIT == true)) {
removeMovieClip(this);
}
if ((HeroDirection == "Right") && (Pause == false)) {
this._x = this._x - WalkingSpeed;
} else if ((HeroDirection == "Left") && (Pause == false)) {
this._x = this._x + WalkingSpeed;
} else if (HeroDirection == "Standing") {
this._x = this._x + 0;
}
};
}
if (target.SoulBulletChance <= target.SoulChance) {
if ((target.HeadShoot == false) && (target.CriticalShoot == false)) {
playSounds2("RIP");
}
Levels_RIPS[CurrentLevel] = Levels_RIPS[CurrentLevel] + 1;
TotalRIPS = TotalRIPS + 1;
var _local4 = _root.attachMovie("Soul_mc", "Soul" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local4._x = target._x;
_local4._y = target._y - 20;
_local4.Money = MoneyPerSoul;
_local4.Sucked = false;
explosion2(_root, "blood", _local4);
var RIP = _root.attachMovie("RIP_mc", "RIP_mc" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
RIP._x = target._x;
RIP._y = target._y - 20;
_local4.onEnterFrame = function () {
this.FullSoul.Money_txt.text = this.Money;
this.FullSoul.Money2_txt.text = this.Money;
this._y = this._y - 3;
if ((this._y <= 0) || (EXIT == true)) {
removeMovieClip(this);
}
if ((HeroDirection == "Right") && (Pause == false)) {
RIP._x = RIP._x - WalkingSpeed;
this._x = this._x - WalkingSpeed;
} else if ((HeroDirection == "Left") && (Pause == false)) {
RIP._x = RIP._x + WalkingSpeed;
this._x = this._x + WalkingSpeed;
} else if (HeroDirection == "Standing") {
RIP._x = RIP._x + 0;
this._x = this._x + 0;
}
if (this.hitTest(Hero_mc.Vortex_mc)) {
SuckingUp = true;
if (this.Sucked == false) {
playSounds("Sucking");
Souls = Souls + 1;
Levels_Souls[CurrentLevel] = Levels_Souls[CurrentLevel] + 1;
CurrentHP = CurrentHP + HPperSoul;
soulsSucked = soulsSucked + 1;
SuckingSouls = SuckingSouls + 1;
Moneys = Moneys + this.Money;
TotalMoneys = TotalMoneys + this.Money;
this.Sucked = true;
}
removeMovieClip(this);
}
};
}
}
function create_Enemies(amount, targetLocation, Xlocation, EnemieType) {
var _local4 = 0;
while (_local4 < amount) {
if (EnemieType == "BattonPark_Guard") {
var _local3 = targetLocation.attachMovie("BattonPark_Guard", "BattonPark_Guard" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
} else if (EnemieType == "TazerPark_Guard") {
var _local3 = targetLocation.attachMovie("TazerPark_Guard", "TazerPark_Guard" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
} else if (EnemieType == "FlashLightCop") {
var _local3 = targetLocation.attachMovie("FlashLightCop", "FlashLightCop" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
} else if (EnemieType == "TazerCop") {
var _local3 = targetLocation.attachMovie("TazerCop", "TazerCop" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
} else if (EnemieType == "SWATFull") {
var _local3 = targetLocation.attachMovie("SWATFull", "SWATFull" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
} else if (EnemieType == "copCar") {
var _local3 = targetLocation.attachMovie("copCar", "copCar_mc" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
} else if (EnemieType == "SwatVan") {
var _local3 = targetLocation.attachMovie("SwatVan", "SwatVan" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
} else if (EnemieType == "SwatHellicopter") {
var _local3 = targetLocation.attachMovie("SwatHellicopter", "SwatHellicopter" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
EnemiesArray.push(_local3);
Hero_mc.swapDepths(_root.getNextHighestDepth());
if (Xlocation != undefined) {
randomXpos = Xlocation;
} else if (Xlocation == undefined) {
randomXpos = Math.round(Math.random() * mapWidth);
}
randomYpos = 250;
XscalesRandom = Math.round(Math.random() * 20) + 90;
_local3._x = randomXpos;
_local3._y = randomYpos;
_local3.HeadShoot = false;
_local3._xscale = XscalesRandom;
_local3._yscale = XscalesRandom;
_local3.SoulChance = Math.round(Math.random() * 100);
_local3.Heads = Math.round((Math.random() * 6) + 1);
_local3.SoulBulletChance = 0;
_local3.CriticalChance = Math.round(Math.random() * 100);
_local3.CriticalShoot = false;
_local3.HeadShotChance = Math.round(Math.random() * 100);
_local3.RunningType = "running" + _local3.Running;
_local3.alive = true;
_local3.falling = true;
_local3.Running = false;
_local3.dead = false;
_local3.Shooting = false;
_local3.ShootingSound = "SingleGun";
_local3.DieSound = "Die6";
_local3.Speed = 5;
_local3.MinX = 10;
_local3.MaxX = 730;
_local3.KindEnemie = 0;
_local3.Shots = 1;
_local3.TSpeed = 2;
_local3.HitSound = "Gunhit";
_local3.BulletDamage = 1;
_local3.Attacking = false;
_local3.Firing = false;
_local3.Shooter = false;
_local3.Crouching = false;
_local3.Landing = true;
_local3.HitBy = "";
_local3.BulleType = "bullet1";
_local3.Direction = "Left";
_local3.Type = "Enemie";
_local3._xscale = 100;
_local3.UpRightX = _local3._x + 17;
_local3.UpRighty = _local3._y;
_local3.UpLeftX = _local3._x - 21;
_local3.UpLefty = _local3._y;
_local3.DownRightX = _local3._x + 20;
_local3.DownRighty = _local3._y - 8;
_local3.DownLeftX = _local3._x - 25;
_local3.DownLefty = _local3._y - 8;
if (EnemieType == "BattonPark_Guard") {
_local3.Damage = 1;
_local3.myHealth = People_HP[1];
} else if (EnemieType == "TazerPark_Guard") {
_local3.Damage = 2;
_local3.KindEnemie = 1;
_local3.myHealth = People_HP[2];
} else if (EnemieType == "FlashLightCop") {
_local3.MinX = 30;
_local3.MaxX = 670;
_local3.KindEnemie = 2;
_local3.Damage = 2;
_local3.myHealth = People_HP[3];
_local3.Shooter = true;
} else if (EnemieType == "TazerCop") {
_local3.MinX = 40;
_local3.KindEnemie = 3;
_local3.ShootingSound = "Revolver";
_local3.MaxX = 650;
_local3.BulleType = "bullet2";
_local3.BulletDamage = 3;
_local3.Damage = 2;
_local3.myHealth = People_HP[4];
_local3.Shooter = true;
} else if (EnemieType == "SWATFull") {
_local3.MinX = 10;
_local3.DieSound = "Die4";
_local3.KindEnemie = 4;
_local3.ShootingSound = "MachineGun";
_local3.MaxX = 730;
_local3.BulletDamage = 4;
_local3.BulleType = "bullet6";
_local3.Damage = People_HP[5];
_local3.myHealth = 130;
_local3.Shooter = true;
} else if (EnemieType == "copCar") {
_local3.MinX = 10;
_local3.DieSound = "ExplosionCar";
_local3.HitSound = "HitMetal";
_local3.KindEnemie = 5;
_local3.MaxX = 730;
_local3.BulletDamage = 11;
_local3.BulleType = "bullet4";
_local3.Damage = 25;
_local3.myHealth = People_HP[6];
_local3.Shooter = true;
} else if (EnemieType == "SwatVan") {
_local3.MinX = 10;
_local3.MaxX = 730;
_local3.DieSound = "ExplosionCar";
_local3.ShootingSound = "MachineGun";
_local3.HitSound = "HitMetal";
_local3.KindEnemie = 6;
_local3.BulleType = "bullet8";
_local3.BulletDamage = 15;
_local3.Damage = 35;
_local3.myHealth = People_HP[7];
_local3.Shooter = true;
} else if (EnemieType == "SwatHellicopter") {
_local3.MinX = 10;
_local3.MaxX = 730;
_local3.DieSound = "ExplosionCar";
_local3.ShootingSound = "SawdShotgun";
_local3.HitSound = "HitMetal";
_local3.KindEnemie = 7;
_local3.BulleType = "bullet9";
_local3._y = 150;
_local3.BulletDamage = 25;
_local3.Damage = 40;
_local3.myHealth = People_HP[8];
_local3.falling = false;
_local3.Shooter = true;
}
if (_local3.Pointing == 1) {
_local3._xscale = -100;
_local3.Direction = "Right";
} else if (_local3.Pointing == 2) {
_local3._xscale = 100;
_local3.Direction = "Left";
}
EnemiesNumber = EnemiesNumber + 1;
_local3.onEnterFrame = function () {
if (Pause == true) {
this.body_mc.stop();
} else if (Pause == false) {
this.body_mc.play();
}
if (this.HeadShoot == true) {
this.body_mc.SwatHead._visible = false;
}
this.DownRightX = this._x + 20;
this.DownRighty = this._y - 8;
this.DownLeftX = this._x - 25;
this.DownLefty = this._y - 8;
if (Pause == true) {
this.body_mc.stop();
}
this.body_mc.SwatHead.gotoAndStop(this.Heads);
if (this.Direction == "Right") {
this._xscale = -100;
} else if (this.Direction == "Left") {
this._xscale = 100;
}
if (this.Shooting == true) {
if (this.Direction == "Right") {
if (this.Crouching == false) {
if ((((EnemieType == "FlashLightCop") || (EnemieType == "SWATFull")) || (EnemieType == "copCar")) || (EnemieType == "TazerCop")) {
EnemieShot(this, this.BulleType, 15, 100, this._x + 30, this._y - 100);
} else if (EnemieType == "SwatVan") {
EnemieShot(this, this.BulleType, 15, 100, this._x + 100, this._y - 195, 4, -340);
} else if (EnemieType == "SwatHellicopter") {
EnemieShot(this, this.BulleType, 15, 100, this._x + 150, this._y - 30, 4, -340);
}
} else if (this.Crouching == true) {
if ((((EnemieType == "FlashLightCop") || (EnemieType == "SWATFull")) || (EnemieType == "copCar")) || (EnemieType == "TazerCop")) {
EnemieShot(this, this.BulleType, 15, 100, this._x + 30, this._y - 80);
} else if (EnemieType == "SwatVan") {
EnemieShot(this, this.BulleType, 15, 100, this._x + 100, this._y - 195, 4, -340);
} else if (EnemieType == "SwatHellicopter") {
EnemieShot(this, this.BulleType, 15, 100, this._x + 150, this._y + 30, 4, -340);
}
}
} else if (this.Direction == "Left") {
if (this.Crouching == false) {
if ((((EnemieType == "FlashLightCop") || (EnemieType == "SWATFull")) || (EnemieType == "copCar")) || (EnemieType == "TazerCop")) {
EnemieShot(this, this.BulleType, 15, -100, this._x - 30, this._y - 100);
} else if (EnemieType == "SwatVan") {
EnemieShot(this, this.BulleType, 15, -100, this._x - 100, this._y - 195, 4, 340);
} else if (EnemieType == "SwatHellicopter") {
EnemieShot(this, this.BulleType, 15, -100, this._x - 150, this._y + 30, 4, 340);
}
} else if (this.Crouching == true) {
if ((((EnemieType == "FlashLightCop") || (EnemieType == "SWATFull")) || (EnemieType == "copCar")) || (EnemieType == "TazerCop")) {
EnemieShot(this, this.BulleType, 15, -100, this._x - 30, this._y - 80);
} else if (EnemieType == "SwatVan") {
EnemieShot(this, this.BulleType, 15, -100, this._x - 100, this._y - 195, 4, 340);
} else if (EnemieType == "SwatHellicopter") {
EnemieShot(this, this.BulleType, 15, -100, this._x - 150, this._y + 30, 4, 340);
}
}
}
this.Shooting = false;
}
if ((this.body_mc.hit_mc.hitTest(_root.Hero_mc.hitPoint_mc) && (HIDING == false)) && (Pause == false)) {
if (BerserkMode == false) {
CurrentHP = CurrentHP - this.Damage;
}
if ((((((EnemieType == "BattonPark_Guard") || (EnemieType == "FlashLightCop")) || (EnemieType == "copCar")) || (EnemieType == "SwatVan")) || (EnemieType == "SWATFull")) || (EnemieType == "SwatHellicopter")) {
Hero_mc.blood_mc.play();
playSounds("PUNCH1");
} else if ((EnemieType == "TazerPark_Guard") || (EnemieType == "TazerCop")) {
Hero_mc.ElectroShock.play();
playSounds("Electric");
}
}
if (((this.alive == true) && (this.falling == false)) && (Pause == false)) {
if ((this.Attacking == false) && (this.Firing == false)) {
if (this.Direction == "Left") {
this._xscale = 100;
if (HeroDirection == "Right") {
this._x = this._x - (this.Speed + this.TSpeed);
} else if (HeroDirection == "Left") {
this._x = this._x + (this.Speed - this.TSpeed);
} else if (HeroDirection == "Standing") {
this._x = this._x - (this.Speed - this.TSpeed);
}
}
if (this.Direction == "Right") {
this._xscale = -100;
if (HeroDirection == "Right") {
this._x = this._x - (this.Speed - this.TSpeed);
} else if (HeroDirection == "Left") {
this._x = this._x + (this.Speed + this.TSpeed);
} else if (HeroDirection == "Standing") {
this._x = this._x + (this.Speed - this.TSpeed);
}
}
} else if ((this.Attacking == true) || (this.Firing == true)) {
this.Speed = 0;
this.TSpeed = 0;
if ((HeroDirection == "Right") && (Pause == false)) {
this._x = this._x - WalkingSpeed;
} else if ((HeroDirection == "Left") && (Pause == false)) {
this._x = this._x + WalkingSpeed;
} else if (HeroDirection == "Standing") {
this._x = this._x + 0;
}
}
} else if (this.alive == false) {
this.Speed = 0;
this.TSpeed = 0;
if ((HeroDirection == "Right") && (Pause == false)) {
this._x = this._x - WalkingSpeed;
} else if ((HeroDirection == "Left") && (Pause == false)) {
this._x = this._x + WalkingSpeed;
} else if (HeroDirection == "Standing") {
this._x = this._x + 0;
}
}
if (ground_mc.hitTest(this.DownLeftX, this.DownLefty, true) || (ground_mc.hitTest(this.DownRightX, this.DownRighty, true))) {
if (((((((EnemieType == "BattonPark_Guard") || (EnemieType == "FlashLightCop")) || (EnemieType == "SWATFull")) || (EnemieType == "copCar")) || (EnemieType == "SwatVan")) || (EnemieType == "TazerPark_Guard")) || (EnemieType == "TazerCop")) {
this.falling = false;
if (this.alive == true) {
if (this.Direction == "Left") {
if (ground_mc.hitTest(this.DownLeftX, this.DownLefty, true)) {
this._y = this._y - 0.5;
} else if (!ground_mc.hitTest(this.DownLeftX, this.DownLefty, true)) {
this._y = this._y + 0.5;
}
} else if (this.Direction == "Right") {
if (ground_mc.hitTest(this.DownRightX, this.DownRighty, true)) {
this._y = this._y - 0.5;
} else if (!ground_mc.hitTest(this.DownRightX, this.DownRighty, true)) {
this._y = this._y + 0.5;
}
}
}
}
} else if ((!ground_mc.hitTest(this.DownLeftX, this.DownLefty, true)) && (!ground_mc.hitTest(this.DownRightX, this.DownRighty, true))) {
if (((((((EnemieType == "BattonPark_Guard") || (EnemieType == "FlashLightCop")) || (EnemieType == "SWATFull")) || (EnemieType == "copCar")) || (EnemieType == "SwatVan")) || (EnemieType == "TazerPark_Guard")) || (EnemieType == "TazerCop")) {
this._y = this._y + 8;
}
}
if (this.alive == true) {
if ((Alarm == true) && (HIDING == false)) {
if (this.hitPoint_mc.hitTest(Hero_mc.hitPoint_mc)) {
this.Attacking = true;
this.gotoAndStop("attacking");
} else if (((((!this.hitPoint_mc.hitTest(Hero_mc.hitPoint_mc)) && (this.Shooter == true)) && (this._x >= this.MinX)) && (this._x <= this.MaxX)) && (HIDING == false)) {
this.Attacking = false;
this.Firing = true;
} else if (!this.hitPoint_mc.hitTest(Hero_mc.hitPoint_mc)) {
this.Attacking = false;
this.Firing = false;
}
if (Hero_mc._x > this._x) {
this.Direction = "Right";
} else if (Hero_mc._x <= this._x) {
this.Direction = "Left";
}
}
if (Alarm == false) {
this.Crouching = false;
this.Attacking = false;
this.Firing = false;
}
if (this.hitTest(MaxPoint_mc) && (this.Direction == "Left")) {
this.Direction = "Right";
}
if (this.hitTest(MinPoint_mc) && (this.Direction == "Right")) {
this.Direction = "Left";
}
if ((((Alarm == true) && (this.alive == true)) && (this.Attacking == false)) && (this.Firing == false)) {
this.TSpeed = 5;
this.Speed = 11;
this.gotoAndStop("running");
} else if ((((Alarm == true) && (this.alive == true)) && (this.Attacking == false)) && (this.Firing == true)) {
this.TSpeed = 0;
this.Speed = 0;
if (((Hero_mc._y < this._y) && (CROUCHING == false)) && (Pause == false)) {
this.gotoAndStop("shooting");
this.Crouching = false;
} else if ((Hero_mc._y >= this._y) || (CROUCHING == true)) {
this.Crouching = true;
this.gotoAndStop("shooting_crouching");
}
} else if ((((Alarm == false) && (this.alive == true)) && (this.Attacking == false)) && (this.Firing == false)) {
this.TSpeed = 2;
this.Speed = 5;
this.gotoAndStop("walking");
}
}
this.body_mc.Guard_body.bloodMarc_mc.gotoAndStop(this.Shots);
this.body_mc.SwatBody.bloodMarc_mc.gotoAndStop(this.Shots);
this.body_mc.Chopper_mc.Helli_mc.holes_mc.gotoAndStop(this.Shots);
this.body_mc.holes_mc.gotoAndStop(this.Shots);
victimKiller(this);
if ((this._x >= -10) && (this._x <= 770)) {
var _local3 = 0;
while (_local3 < bulletArray.length) {
bullet = bulletArray[_local3];
if (((this.hitArea_mc.hitTest(bullet) && (this.myHealth > 0)) && (this.alive == true)) && (Pause == false)) {
playSounds(this.HitSound);
Alarm = true;
alarmCounterFrame = alarmCounterFrame + 175;
this.Shots = this.Shots + 1;
this.HitBy = bullet.GunType;
this.myHealth = this.myHealth - bullet.BulletDamage;
this.SoulBulletChance = bullet.RipSoulChance;
this.body_mc.victim_head.face_mc.nextFrame();
if ((((bullet.GunType == "Gun") || (bullet.GunType == "DualGun")) || (bullet.GunType == "Revolver")) || (bullet.GunType == "DualRevolver")) {
explosion(_root, "blood", this);
}
if (this.CriticalChance <= bullet.CriticalChance) {
Criticalexplosion(_root, "Guts", this);
this.myHealth = 0;
this.CriticalShoot = true;
}
if (bullet.GunType == "Bazooka") {
playSounds("ExplosionHit");
var _local4 = _root.attachMovie("Bazooka_Explosion_mc", "Bazooka_Explosion_mc", _root.getNextHighestDepth());
_local4._x = this._x;
_local4._y = this._y;
}
bulletArray.splice(_local3, 1);
clearInterval(bullet.lifeTimer);
removeMovieClip(bullet);
} else if (((this.body_mc.SwatHead.hitTest(bullet) && (this.myHealth > 0)) && (this.alive == true)) && (Pause == false)) {
Alarm = true;
this.Shots = this.Shots + 1;
playSounds(this.HitSound);
this.HitBy = bullet.GunType;
this.myHealth = this.myHealth - bullet.BulletDamage;
alarmCounterFrame = alarmCounterFrame + 175;
this.SoulBulletChance = bullet.RipSoulChance;
this.body_mc.victim_head.face_mc.nextFrame();
if ((((bullet.GunType == "Gun") || (bullet.GunType == "DualGun")) || (bullet.GunType == "Revolver")) || (bullet.GunType == "DualRevolver")) {
explosion(_root, "blood", this);
}
if (bullet.GunType == "Bazooka") {
var _local4 = _root.attachMovie("Bazooka_Explosion_mc", "Bazooka_Explosion_mc", _root.getNextHighestDepth());
_local4._x = this._x;
_local4._y = this._y;
}
if (this.HeadShotChance <= bullet.HeadShotChance) {
explosion(_root, "blood", this);
trace("HEADSHOT!");
this.HitBy = "HeadShot";
this.myHealth = 0;
this.HeadShoot = true;
}
bulletArray.splice(_local3, 1);
clearInterval(bullet.lifeTimer);
removeMovieClip(bullet);
}
_local3++;
}
}
};
_local4++;
}
}
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
function explosion(mc, type, Target) {
if (type == "fire") {
var _local5 = 5;
var _local11 = 2;
var _local9 = 6;
var _local16 = 15;
var _local15 = 30;
var _local13 = 100;
var _local12 = "fragments_fire";
} else if (type == "explosion") {
var _local5 = 5;
var _local11 = 3;
var _local9 = 8;
var _local16 = 9;
var _local15 = 18;
var _local13 = 250;
var _local12 = "fragments_ship";
} else if (type == "Soul") {
var _local5 = 5;
var _local11 = 3;
var _local9 = 8;
var _local16 = 35;
var _local15 = 70;
var _local13 = 250;
var _local12 = "stars_mc";
} else if (type == "blood") {
var _local5 = 10;
var _local11 = 6;
var _local9 = 5;
var _local16 = 20;
var _local15 = 30;
var _local13 = 100;
var _local12 = "fragments_blood";
}
var boundyLeft = (Target._x - _local13);
var boundyTop = (Target._y - _local13);
var boundyRight = (Target._x + _local13);
var boundyBottom = (Target._y + _local13);
var _local10 = randRange(_local16, _local15);
var _local8 = mc.getNextHighestDepth();
var _local4 = 0;
while (_local4 < _local10) {
var _local3 = _root.attachMovie(_local12, "fragment" + _local8, _local4 + 1000);
_local3._x = Target._x;
_local3._y = Target._y - 100;
_local3._rotation = randRange(1, 359);
_local3.gotoAndStop(randRange(1, 3));
var _local6 = randRange(_local11, _local9);
_local3._width = _local6;
_local3._height = _local6;
_local3.speedX = randRange(-_local5, _local5);
_local3.speedY = randRange(-_local5, _local5);
_local3._alpha = randRange(50, 100);
_local3.cacheAsBitmap = true;
_local3.onEnterFrame = function () {
this._alpha = this._alpha - 1;
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (((((this._alpha <= 0) || (this._x < boundyLeft)) || (this._x > boundyRight)) || (this._y < boundyTop)) || (this._y > boundyBottom)) {
this.removeMovieClip();
}
};
_local4++;
_local8++;
}
}
function explosion2(mc, type, Target) {
if (type == "fire") {
var _local5 = 5;
var _local11 = 2;
var _local9 = 6;
var _local16 = 15;
var _local15 = 30;
var _local13 = 100;
var _local12 = "fragments_fire";
} else if (type == "explosion") {
var _local5 = 5;
var _local11 = 3;
var _local9 = 8;
var _local16 = 9;
var _local15 = 18;
var _local13 = 250;
var _local12 = "fragments_ship";
} else if (type == "Soul") {
var _local5 = 5;
var _local11 = 3;
var _local9 = 8;
var _local16 = 35;
var _local15 = 70;
var _local13 = 250;
var _local12 = "stars_mc";
} else if (type == "blood") {
var _local5 = 10;
var _local11 = 6;
var _local9 = 5;
var _local16 = 50;
var _local15 = 80;
var _local13 = 100;
var _local12 = "fragments_blood";
}
var boundyLeft = (Target._x - _local13);
var boundyTop = (Target._y - _local13);
var boundyRight = (Target._x + _local13);
var boundyBottom = (Target._y + _local13);
var _local10 = randRange(_local16, _local15);
var _local8 = mc.getNextHighestDepth();
var _local4 = 0;
while (_local4 < _local10) {
var _local3 = _root.attachMovie(_local12, "fragment" + _local8, _local4 + 1000);
_local3._x = Target._x;
_local3._y = Target._y;
_local3._rotation = randRange(1, 359);
_local3.gotoAndStop(randRange(1, 3));
var _local6 = randRange(_local11, _local9);
_local3._width = _local6;
_local3._height = _local6;
_local3.speedX = randRange(-_local5, _local5);
_local3.speedY = randRange(-_local5, _local5);
_local3._alpha = randRange(50, 100);
_local3.cacheAsBitmap = true;
_local3.onEnterFrame = function () {
this._alpha = this._alpha - 1;
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (((((this._alpha <= 0) || (this._x < boundyLeft)) || (this._x > boundyRight)) || (this._y < boundyTop)) || (this._y > boundyBottom)) {
this.removeMovieClip();
}
};
_local4++;
_local8++;
}
}
function Criticalexplosion(mc, type, Target) {
var _local5 = 25;
var _local13 = 50;
var _local12 = 60;
var _local11 = 5;
var _local10 = 15;
var _local9 = 250;
var _local14 = "flesh";
var boundyLeft = (Target._x - _local9);
var boundyTop = (Target._y - _local9);
var boundyRight = (Target._x + _local9);
var boundyBottom = (Target._y + _local9);
var _local7 = randRange(_local11, _local10);
var _local8 = mc.getNextHighestDepth();
var _local4 = 0;
while (_local4 < _local7) {
var _local3 = _root.attachMovie("flesh" + _local4, "flesh" + _local4, _root.getNextHighestDepth());
_local3._x = Target._x;
_local3._y = Target._y;
_local3._rotation = randRange(1, 359);
_local3.speedX = randRange(-_local5, _local5);
_local3.speedY = randRange(-_local5, _local5);
_local3._alpha = randRange(50, 100);
_local3.cacheAsBitmap = true;
_local3.onEnterFrame = function () {
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (((((this._alpha <= 0) || (this._x < boundyLeft)) || (this._x > boundyRight)) || (this._y < boundyTop)) || (this._y > boundyBottom)) {
this.removeMovieClip();
}
};
_local4++;
_local8++;
}
}
function Combo() {
if (comboArray.length >= 1) {
comboCounter--;
}
if (comboCounter <= 0) {
comboCounter = 0;
ComboDone[0] = false;
ComboDone[1] = false;
ComboDone[2] = false;
ComboDone[3] = false;
ComboDone[4] = false;
ComboDone[5] = false;
ComboDone[6] = false;
ComboDone[7] = false;
ComboDone[8] = false;
ComboDone[9] = false;
comboArray = new Array();
}
if (comboCounter >= 90) {
comboCounter = 90;
}
if ((comboArray.length == 2) && (ComboDone[0] == false)) {
playSounds3("Combo2");
AllCombos_mc.gotoAndStop(2);
combo_mc.play();
ComboDone[0] = true;
} else if ((comboArray.length == 3) && (ComboDone[1] == false)) {
playSounds3("Combo3");
AllCombos_mc.gotoAndStop(3);
combo_mc.play();
ComboDone[1] = true;
} else if (((comboArray.length >= 4) && (comboArray.length < 6)) && (ComboDone[2] == false)) {
playSounds3("Combo4");
AllCombos_mc.gotoAndStop(4);
combo_mc.play();
ComboDone[2] = true;
} else if (((comboArray.length >= 6) && (comboArray.length < 8)) && (ComboDone[3] == false)) {
AllCombos_mc.gotoAndStop(5);
playSounds3("Combo5");
combo_mc.play();
ComboDone[3] = true;
} else if (((comboArray.length >= 8) && (comboArray.length < 10)) && (ComboDone[4] == false)) {
AllCombos_mc.gotoAndStop(6);
playSounds3("Combo6");
combo_mc.play();
ComboDone[4] = true;
} else if ((comboArray.length == 10) && (ComboDone[5] == false)) {
AllCombos_mc.gotoAndStop(7);
playSounds3("Combo7");
combo_mc.play();
ComboDone[5] = true;
} else if ((comboArray.length == 11) && (ComboDone[6] == false)) {
AllCombos_mc.gotoAndStop(8);
playSounds3("Combo8");
combo_mc.play();
ComboDone[6] = true;
} else if (((comboArray.length >= 13) && (comboArray.length < 15)) && (ComboDone[7] == false)) {
AllCombos_mc.gotoAndStop(9);
playSounds3("Combo10");
combo_mc.play();
ComboDone[7] = true;
} else if (((comboArray.length >= 15) && (comboArray.length < 17)) && (ComboDone[8] == false)) {
AllCombos_mc.gotoAndStop(10);
playSounds3("Combo5");
combo_mc.play();
ComboDone[8] = true;
} else if ((comboArray.length >= 17) && (ComboDone[9] == false)) {
playSounds3("Combo9");
AllCombos_mc.gotoAndStop(11);
combo_mc.play();
ComboDone[9] = true;
}
}
function LevelsButton(Target, SOCKET, Level, Title, Body) {
Target.onEnterFrame = function () {
Target.level_txt.text = SOCKET;
if (LevelsArray[SOCKET] == true) {
Target.gotoAndStop(3);
} else if (LevelsArray[SOCKET] == false) {
Target.gotoAndStop(2);
} else {
Target.gotoAndStop(1);
}
};
Target.onRelease = function () {
if (LevelsArray[SOCKET] == true) {
gotoAndStop(Level);
} else if (LevelsArray[SOCKET] == false) {
gotoAndStop(Level);
} else if (LevelsArray[SOCKET] == undefined) {
playSounds("Chorm");
TextTitle = "Just not yet!";
TextBody = "You still have to kick some asses before you are able play this level boy!";
}
};
Target.onRollOver = function () {
playSounds("OutButton");
if (LevelsArray[SOCKET] == true) {
TextTitle = "Mr.Schyz, is a Good Boy!";
TextBody = "Keep up the good work, my friend!";
LevelKills = Levels_Kills[SOCKET];
LevelRips = Levels_RIPS[SOCKET];
LevelHeadShots = LevelsHead_Shots[SOCKET];
LevelCopKills = LevelsCops_Kills[SOCKET];
LevelCriticals = Levels_Criticals[SOCKET];
LevelMoney = Levels_Moneys[SOCKET];
LevelSouls = Levels_Souls[SOCKET];
trace(Levels_Kills[0]);
Quote_mc.gotoAndStop(2);
} else if (LevelsArray[SOCKET] == false) {
TextTitle = Title;
TextBody = Body;
LevelKills = Levels_Kills[SOCKET];
LevelRips = Levels_RIPS[SOCKET];
LevelHeadShots = LevelsHead_Shots[SOCKET];
LevelCopKills = LevelsCops_Kills[SOCKET];
LevelCriticals = Levels_Criticals[SOCKET];
LevelMoney = Levels_Moneys[SOCKET];
LevelSouls = Levels_Souls[SOCKET];
Quote_mc.gotoAndStop(2);
} else if (LevelsArray[SOCKET] == undefined) {
TextTitle = "Not yet...";
TextBody = "You should beat the previus levels first, before you can play this one.";
LevelKills = Levels_Kills[SOCKET];
LevelRips = Levels_RIPS[SOCKET];
LevelHeadShots = LevelsHead_Shots[SOCKET];
LevelCopKills = LevelsCops_Kills[SOCKET];
LevelCriticals = Levels_Criticals[SOCKET];
LevelMoney = Levels_Moneys[SOCKET];
LevelSouls = Levels_Souls[SOCKET];
Quote_mc.gotoAndStop(2);
}
};
Target.onRollOut = function () {
playSounds("OverButton");
TextTitle = "You can go back!";
TextBody = "Once you complete a level you can play it again, any time you want!!";
Quote_mc.gotoAndStop(1);
};
}
function Buttons(target, Location) {
target.onRelease = function () {
gotoAndStop(Location);
};
}
function ExitButtons(target, Location) {
target.onRelease = function () {
Pause = true;
EXIT = true;
gotoAndStop(Location);
};
}
function PauseButtons(target) {
target.onRelease = function () {
if (Pause == true) {
Pause = false;
} else if (Pause == false) {
Pause = true;
}
};
}
function EnemieShot(Target, fragmentType, DirectionX, Flip, Xposition, Yposition, DirectionY, Rotation) {
var _local3 = _root.socket_mc.attachMovie(fragmentType, "EnemieBullet" + _root.socket_mc.getNextHighestDepth(), _root.socket_mc.getNextHighestDepth());
playSounds(Target.ShootingSound);
_local3.cacheAsBitmap = true;
_local3._x = Xposition;
_local3._y = Yposition + randRange(-25, 15);
_local3._xscale = Flip;
_local3.SpeedX = DirectionX;
_local3.SpeedY = DirectionY;
_local3.turned = Flip;
_local3._rotation = Rotation;
_local3.onEnterFrame = function () {
this._y = this._y + this.SpeedY;
if (this.turned == 100) {
if (HeroDirection == "Right") {
this._x = this._x + (this.SpeedX - 5);
} else if (HeroDirection == "Left") {
this._x = this._x + (this.SpeedX + 10);
} else if (HeroDirection == "Standing") {
this._x = this._x + this.SpeedX;
}
} else if (this.turned == -100) {
if (HeroDirection == "Right") {
this._x = this._x - (this.SpeedX + 10);
} else if (HeroDirection == "Left") {
this._x = this._x - (this.SpeedX - 5);
} else if (HeroDirection == "Standing") {
this._x = this._x - this.SpeedX;
}
}
if ((this.hitTest(_root.Hero_mc.hitPoint_mc) && (BerserkMode == false)) && (Pause == false)) {
CurrentHP = CurrentHP - Target.BulletDamage;
Hero_mc.blood_mc.play();
removeMovieClip(this);
}
if (((this._x >= 760) || (this._x <= -5)) || (this._y >= 450)) {
removeMovieClip(this);
}
};
}
function VictimSpawner() {
create_Victims(LevelVictimsNumber, _root, undefined);
Hud_mc.onEnterFrame = function () {
var _local2 = Math.round(Math.random() * 1) + 1;
if ((VictimsNumber < LevelVictimsNumber) && (EXIT == false)) {
if (_local2 == 1) {
create_Victims(1, _root, -150);
} else if (_local2 == 2) {
create_Victims(1, _root, 850);
}
}
};
}
function EnemieSpawner(Enemie_Type1, Enemie_Type2, Enemie_Type3, Enemie_Type4, Enemie_Type5) {
var EnemieSpawn = Enemie_Type1;
var positionE = 0;
create_Enemies(LevelEnemiesNumber, _root, undefined, Enemie_Type1);
AllCombos_mc.onEnterFrame = function () {
positionE = Math.round(Math.random() * 1) + 1;
if ((alarmCounter > 0) && (alarmCounter <= 30)) {
EnemieSpawn = Enemie_Type1;
} else if (((alarmCounter > 30) && (alarmCounter <= 60)) && (Enemie_Type2 != undefined)) {
EnemieSpawn = Enemie_Type2;
} else if (((alarmCounter > 60) && (alarmCounter <= 120)) && (Enemie_Type3 != undefined)) {
EnemieSpawn = Enemie_Type3;
} else if (((alarmCounter > 120) && (alarmCounter <= 180)) && (Enemie_Type4 != undefined)) {
EnemieSpawn = Enemie_Type4;
} else if (((alarmCounter > 180) && (alarmCounter < 240)) && (Enemie_Type5 != undefined)) {
EnemieSpawn = Enemie_Type5;
}
if ((EnemiesNumber < LevelEnemiesNumber) && (EXIT == false)) {
if (positionE == 1) {
create_Enemies(1, _root, -150, "BattonPark_Guard");
create_Enemies(1, _root, 850, EnemieSpawn);
} else if (positionE == 2) {
create_Enemies(1, _root, -150, "TazerPark_Guard");
create_Enemies(1, _root, 850, EnemieSpawn);
}
}
};
}
function UpgradesManager() {
upgradesList_mc.onEnterFrame = function () {
if (UpgradeMenu[0] == false) {
upgrade1_mc.selected_mc._visible = false;
} else if (UpgradeMenu[0] == true) {
upgrade1_mc.selected_mc._visible = true;
}
if (UpgradeMenu[1] == false) {
upgrade2_mc.selected_mc._visible = false;
} else if (UpgradeMenu[1] == true) {
upgrade2_mc.selected_mc._visible = true;
}
if (UpgradeMenu[2] == false) {
upgrade3_mc.selected_mc._visible = false;
} else if (UpgradeMenu[2] == true) {
upgrade3_mc.selected_mc._visible = true;
}
if (UpgradeMenu[3] == false) {
upgrade4_mc.selected_mc._visible = false;
} else if (UpgradeMenu[3] == true) {
upgrade4_mc.selected_mc._visible = true;
}
if (UpgradeMenu[4] == false) {
upgrade5_mc.selected_mc._visible = false;
} else if (UpgradeMenu[4] == true) {
upgrade5_mc.selected_mc._visible = true;
}
if (UpgradeMenu[5] == false) {
upgrade6_mc.selected_mc._visible = false;
} else if (UpgradeMenu[5] == true) {
upgrade6_mc.selected_mc._visible = true;
}
if (UpgradeMenu[6] == false) {
upgrade7_mc.selected_mc._visible = false;
} else if (UpgradeMenu[6] == true) {
upgrade7_mc.selected_mc._visible = true;
}
if (UpgradeMenu[7] == false) {
upgrade8_mc.selected_mc._visible = false;
} else if (UpgradeMenu[7] == true) {
upgrade8_mc.selected_mc._visible = true;
}
if (UpgradeMenu[8] == false) {
upgrade9_mc.selected_mc._visible = false;
} else if (UpgradeMenu[8] == true) {
upgrade9_mc.selected_mc._visible = true;
}
if (UpgradeMenu[9] == false) {
upgrade10_mc.selected_mc._visible = false;
} else if (UpgradeMenu[9] == true) {
upgrade10_mc.selected_mc._visible = true;
}
if (UpgradeMenu[10] == false) {
upgrade11_mc.selected_mc._visible = false;
} else if (UpgradeMenu[10] == true) {
upgrade11_mc.selected_mc._visible = true;
}
if (UpgradeMenu[11] == false) {
upgrade12_mc.selected_mc._visible = false;
} else if (UpgradeMenu[11] == true) {
upgrade12_mc.selected_mc._visible = true;
}
if (Upgrades[0] == undefined) {
upgradesList_mc.upgrade1_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[0] == true) {
upgradesList_mc.upgrade1_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[1] == undefined) {
upgradesList_mc.upgrade2_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[1] == true) {
upgradesList_mc.upgrade2_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[2] == undefined) {
upgradesList_mc.upgrade3_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[2] == true) {
upgradesList_mc.upgrade3_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[3] == undefined) {
upgradesList_mc.upgrade4_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[3] == true) {
upgradesList_mc.upgrade4_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[4] == undefined) {
upgradesList_mc.upgrade5_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[4] == true) {
upgradesList_mc.upgrade5_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[5] == undefined) {
upgradesList_mc.upgrade6_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[5] == true) {
upgradesList_mc.upgrade6_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[6] == undefined) {
upgradesList_mc.upgrade7_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[6] == true) {
upgradesList_mc.upgrade7_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[7] == undefined) {
upgradesList_mc.upgrade8_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[7] == true) {
upgradesList_mc.upgrade8_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[8] == undefined) {
upgradesList_mc.upgrade9_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[8] == true) {
upgradesList_mc.upgrade9_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[9] == undefined) {
upgradesList_mc.upgrade10_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[9] == true) {
upgradesList_mc.upgrade10_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[10] == undefined) {
upgradesList_mc.upgrade11_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[10] == true) {
upgradesList_mc.upgrade11_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[11] == undefined) {
upgradesList_mc.upgrade12_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[11] == true) {
upgradesList_mc.upgrade12_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[12] == undefined) {
upgradesList_mc.upgrade13_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[12] == true) {
upgradesList_mc.upgrade13_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[13] == undefined) {
upgradesList_mc.upgrade14_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[13] == true) {
upgradesList_mc.upgrade14_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[14] == undefined) {
upgradesList_mc.upgrade15_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[14] == true) {
upgradesList_mc.upgrade15_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[15] == undefined) {
upgradesList_mc.upgrade16_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[15] == true) {
upgradesList_mc.upgrade16_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[16] == undefined) {
upgradesList_mc.upgrade17_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[16] == true) {
upgradesList_mc.upgrade17_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[17] == undefined) {
upgradesList_mc.upgrade18_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[17] == true) {
upgradesList_mc.upgrade18_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[18] == undefined) {
upgradesList_mc.upgrade19_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[18] == true) {
upgradesList_mc.upgrade19_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[19] == undefined) {
upgradesList_mc.upgrade20_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[19] == true) {
upgradesList_mc.upgrade20_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[20] == undefined) {
upgradesList_mc.upgrade21_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[20] == true) {
upgradesList_mc.upgrade21_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[21] == undefined) {
upgradesList_mc.upgrade22_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[21] == true) {
upgradesList_mc.upgrade22_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[22] == undefined) {
upgradesList_mc.upgrade23_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[22] == true) {
upgradesList_mc.upgrade23_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[23] == undefined) {
upgradesList_mc.upgrade24_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[23] == true) {
upgradesList_mc.upgrade24_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[24] == undefined) {
upgradesList_mc.upgrade25_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[24] == true) {
upgradesList_mc.upgrade25_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[25] == undefined) {
upgradesList_mc.upgrade26_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[25] == true) {
upgradesList_mc.upgrade26_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[26] == undefined) {
upgradesList_mc.upgrade27_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[26] == true) {
upgradesList_mc.upgrade27_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[27] == undefined) {
upgradesList_mc.upgrade28_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[27] == true) {
upgradesList_mc.upgrade28_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[28] == undefined) {
upgradesList_mc.upgrade29_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[28] == true) {
upgradesList_mc.upgrade29_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[29] == undefined) {
upgradesList_mc.upgrade30_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[29] == true) {
upgradesList_mc.upgrade30_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[30] == undefined) {
upgradesList_mc.upgrade31_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[30] == true) {
upgradesList_mc.upgrade31_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[31] == undefined) {
upgradesList_mc.upgrade32_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[31] == true) {
upgradesList_mc.upgrade32_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[32] == undefined) {
upgradesList_mc.upgrade33_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[32] == true) {
upgradesList_mc.upgrade33_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[33] == undefined) {
upgradesList_mc.upgrade34_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[33] == true) {
upgradesList_mc.upgrade34_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[34] == undefined) {
upgradesList_mc.upgrade35_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[34] == true) {
upgradesList_mc.upgrade35_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[35] == undefined) {
upgradesList_mc.upgrade36_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[35] == true) {
upgradesList_mc.upgrade36_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[36] == undefined) {
upgradesList_mc.upgrade37_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[36] == true) {
upgradesList_mc.upgrade37_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[37] == undefined) {
upgradesList_mc.upgrade38_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[37] == true) {
upgradesList_mc.upgrade38_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[38] == undefined) {
upgradesList_mc.upgrade39_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[38] == true) {
upgradesList_mc.upgrade39_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[39] == undefined) {
upgradesList_mc.upgrade40_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[39] == true) {
upgradesList_mc.upgrade40_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[40] == undefined) {
upgradesList_mc.upgrade41_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[40] == true) {
upgradesList_mc.upgrade41_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[41] == undefined) {
upgradesList_mc.upgrade42_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[41] == true) {
upgradesList_mc.upgrade42_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[42] == undefined) {
upgradesList_mc.upgrade43_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[42] == true) {
upgradesList_mc.upgrade43_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[43] == undefined) {
upgradesList_mc.upgrade44_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[43] == true) {
upgradesList_mc.upgrade44_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[44] == undefined) {
upgradesList_mc.upgrade45_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[44] == true) {
upgradesList_mc.upgrade45_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[45] == undefined) {
upgradesList_mc.upgrade46_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[45] == true) {
upgradesList_mc.upgrade46_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[46] == undefined) {
upgradesList_mc.upgrade47_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[46] == true) {
upgradesList_mc.upgrade47_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[47] == undefined) {
upgradesList_mc.upgrade48_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[47] == true) {
upgradesList_mc.upgrade48_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[48] == undefined) {
upgradesList_mc.upgrade49_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[48] == true) {
upgradesList_mc.upgrade49_mc.Over_mc.gotoAndStop(2);
}
if (Upgrades[49] == undefined) {
upgradesList_mc.upgrade50_mc.Over_mc.gotoAndStop(1);
} else if (Upgrades[49] == true) {
upgradesList_mc.upgrade50_mc.Over_mc.gotoAndStop(2);
}
};
}
function MenuButtons(targer_mc, Target, Location, Title, Body) {
targer_mc.onRelease = function () {
Target.gotoAndStop(Location);
playSounds("DownButton");
};
targer_mc.onRollOver = function () {
playSounds("OutButton");
targer_mc._xscale = 98;
targer_mc._yscale = 98;
if (TextTitle != undefined) {
TextTitle = Title;
TextBody = Body;
}
};
targer_mc.onRollOut = function () {
playSounds("OverButton");
targer_mc._xscale = 100;
targer_mc._yscale = 100;
TextTitle = "";
TextBody = "";
};
}
function UpgradesButtons(targer_mc, Target, Location, Title, Body, GenericD, GenericF, GenericS, GenericR, GenericRo, GenericRi, GenericH, GenericC, GenericP, On1, On2, On3, On4, On5, On6, On7, On8, On9, On10, On11, On12) {
targer_mc.onRelease = function () {
playSounds("DownButton");
Target.gotoAndStop(Location);
GenericDamage = GenericD;
GenericFireRate = GenericF;
GenericShots = GenericS;
GenericReloadTime = Math.round(GenericR / 30);
GenericRounds = GenericRo;
GenericRIP = GenericRi;
GenericHS = GenericH;
GenericCritical = GenericC;
GenericPrize = GenericP;
UpgradeMenu[0] = On1;
UpgradeMenu[1] = On2;
UpgradeMenu[2] = On3;
UpgradeMenu[3] = On4;
UpgradeMenu[4] = On5;
UpgradeMenu[5] = On6;
UpgradeMenu[6] = On7;
UpgradeMenu[7] = On8;
UpgradeMenu[8] = On9;
UpgradeMenu[9] = On10;
UpgradeMenu[10] = On11;
UpgradeMenu[11] = On12;
};
targer_mc.onRollOver = function () {
playSounds("OutButton");
targer_mc._xscale = 98;
targer_mc._yscale = 98;
if (TextTitle != undefined) {
TextTitle = Title;
TextBody = Body;
}
};
targer_mc.onRollOut = function () {
playSounds("OverButton");
targer_mc._xscale = 100;
targer_mc._yscale = 100;
TextTitle = "";
TextBody = "";
};
}
function AchievementsButtons(targer_mc, Title, Body, Variable, Achievement, Achieved, Level) {
targer_mc.onRollOver = function () {
playSounds("OutButton");
targer_mc._xscale = 99;
targer_mc._yscale = 99;
TextTitle = Title;
TextBody = Body;
};
targer_mc.onRollOut = function () {
playSounds("OverButton");
targer_mc._xscale = 100;
targer_mc._yscale = 100;
TextTitle = "";
TextBody = "";
};
targer_mc.Value1_txt.text = Level;
targer_mc.Value2_txt.text = Variable;
targer_mc.Value3_txt.text = Achievement;
targer_mc.Meter_Bar.gotoAndStop(Math.round((Variable / Achievement) * 100));
if (Variable >= Achievement) {
targer_mc.Meter_Bar.gotoAndStop(100);
}
}
function AchievementsManager() {
if ((Levels_Kills[1] >= AchievementsQuote[1]) && (Achievements[1] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(2);
TotalMoneys = TotalMoneys + 180;
Moneys = Moneys + 180;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Level 1 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Level 1 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You earnt $180, for completing this achievement.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You earnt $180, for completing this achievement.";
Achievements[1] = true;
}
if ((LevelsCops_Kills[2] >= AchievementsQuote[2]) && (Achievements[2] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(2);
CopKillMoneyBonus = CopKillMoneyBonus + 3;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Level 2 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Level 2 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You get $3 more each time you kill a park guard.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You get $3 more each time you kill a park guard.";
Achievements[2] = true;
}
if ((Levels_Moneys[3] >= AchievementsQuote[3]) && (Achievements[3] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(2);
HP = HP + 5;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Level 3 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Level 3 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got +5 extra HP points.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got +5 extra HP points.";
Achievements[3] = true;
}
if ((LevelsHead_Shots[4] >= AchievementsQuote[4]) && (Achievements[4] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(2);
GunStats[12] = GunStats[12] + 2;
DualGunStats[12] = DualGunStats[12] + 2;
RevolverStats[12] = RevolverStats[12] + 2;
DualRevolverStats[12] = DualRevolverStats[12] + 2;
SingleShotgunStats[12] = SingleShotgunStats[12] + 2;
DualShotgunStats[12] = DualShotgunStats[12] + 2;
MachineGunStats[12] = MachineGunStats[12] + 2;
DualMachineGunStats[12] = DualMachineGunStats[12] + 2;
ShotgunStats[12] = ShotgunStats[12] + 2;
AssaultRiffleStats[12] = AssaultRiffleStats[12] + 2;
BazookaStats[12] = BazookaStats[12] + 2;
BerserkStats[12] = BerserkStats[12] + 2;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Level 4 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Level 4 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got +2% chances to perform a headshot, for all weapon.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got +2% chances to perform a headshot, for all weapon.";
Achievements[4] = true;
}
if ((Levels_RIPS[5] >= AchievementsQuote[5]) && (Achievements[5] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(2);
GunStats[10] = GunStats[10] + 2;
DualGunStats[10] = DualGunStats[10] + 2;
RevolverStats[10] = RevolverStats[10] + 2;
DualRevolverStats[10] = DualRevolverStats[10] + 2;
SingleShotgunStats[10] = SingleShotgunStats[10] + 2;
DualShotgunStats[10] = DualShotgunStats[10] + 2;
MachineGunStats[10] = MachineGunStats[10] + 2;
DualMachineGunStats[10] = DualMachineGunStats[10] + 2;
ShotgunStats[10] = ShotgunStats[10] + 2;
AssaultRiffleStats[10] = AssaultRiffleStats[10] + 2;
BazookaStats[10] = BazookaStats[10] + 2;
BerserkStats[10] = BerserkStats[10] + 2;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Level 5 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Level 5 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got +2% chances to perform a R.I.P, for all weapon.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got +2% chances to perform a R.I.P, for all weapon.";
Achievements[5] = true;
}
if ((LevelsCops_Kills[6] >= AchievementsQuote[6]) && (Achievements[6] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(2);
CopKillMoneyBonus = CopKillMoneyBonus + 4;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Level 6 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Level 6 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got $4 more each time you kill a Cop.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got $4 more each time you kill a Cop.";
Achievements[6] = true;
}
if ((Levels_Moneys[7] >= AchievementsQuote[7]) && (Achievements[7] == undefined)) {
playSounds("Achievement");
achievements_mc.gotoAndStop(2);
HP = HP + 15;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Level 7 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Level 7 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got +15 extra HP points.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got +15 extra HP points.";
Achievements[7] = true;
}
if ((Levels_Criticals[8] >= AchievementsQuote[8]) && (Achievements[8] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(2);
GunStats[9] = GunStats[9] + 2;
DualGunStats[9] = DualGunStats[9] + 2;
RevolverStats[9] = RevolverStats[9] + 2;
DualRevolverStats[9] = DualRevolverStats[9] + 2;
SingleShotgunStats[9] = SingleShotgunStats[9] + 2;
DualShotgunStats[9] = DualShotgunStats[9] + 2;
MachineGunStats[9] = MachineGunStats[9] + 2;
DualMachineGunStats[9] = DualMachineGunStats[9] + 2;
ShotgunStats[9] = ShotgunStats[9] + 2;
AssaultRiffleStats[9] = AssaultRiffleStats[9] + 2;
BazookaStats[9] = BazookaStats[9] + 2;
BerserkStats[9] = BerserkStats[9] + 2;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Level 8 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Level 8 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got +2 extra damage for each weapon.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got +2 extra damage for each weapon.";
Achievements[8] = true;
}
if ((Levels_Kills[9] >= AchievementsQuote[9]) && (Achievements[9] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(2);
TotalMoneys = TotalMoneys + 500;
Moneys = Moneys + 500;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Level 9 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Level 9 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got + $500.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got + $500.";
Achievements[9] = true;
}
if ((LevelsHead_Shots[10] >= AchievementsQuote[10]) && (Achievements[10] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(2);
GunStats[12] = GunStats[12] + 2;
DualGunStats[12] = DualGunStats[12] + 2;
RevolverStats[12] = RevolverStats[12] + 2;
DualRevolverStats[12] = DualRevolverStats[12] + 2;
SingleShotgunStats[12] = SingleShotgunStats[12] + 2;
DualShotgunStats[12] = DualShotgunStats[12] + 2;
MachineGunStats[12] = MachineGunStats[12] + 2;
DualMachineGunStats[12] = DualMachineGunStats[12] + 2;
ShotgunStats[12] = ShotgunStats[12] + 2;
AssaultRiffleStats[12] = AssaultRiffleStats[12] + 2;
BazookaStats[12] = BazookaStats[12] + 2;
BerserkStats[12] = BerserkStats[12] + 2;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Level 10 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Level 10 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got +2% more chances to perform a headshot, for all weapon.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got +2% more chances to perform a headshot, for all weapon.";
Achievements[10] = true;
}
if ((Levels_Kills[11] >= AchievementsQuote[11]) && (Achievements[11] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(2);
HP = HP + 26;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Level 11 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Level 11 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got +26 extra HP points.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got +26 extra HP points.";
Achievements[11] = true;
}
if ((Levels_RIPS[12] >= AchievementsQuote[12]) && (Achievements[12] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(2);
MoneyPerSoul = MoneyPerSoul + 4;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Level 12 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Level 12 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got $4 more per each soul you catch.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got $4 more per each soul you catch.";
Achievements[12] = true;
}
if ((Levels_Moneys[13] >= AchievementsQuote[13]) && (Achievements[13] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(2);
maxRAGE = maxRAGE + 12;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Level 13 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Level 13 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got +12 extra seconds in Berserk mode.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got +12 extra seconds in Berserk mode.";
Achievements[13] = true;
}
if ((LevelsCops_Kills[14] >= AchievementsQuote[14]) && (Achievements[14] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(2);
CopKillMoneyBonus = CopKillMoneyBonus + 7;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Level 14 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Level 14 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got $7 more each time you kill a Swat.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got $7 more each time you kill a Swat.";
Achievements[14] = true;
}
if ((Levels_Criticals[15] >= AchievementsQuote[15]) && (Achievements[15] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(2);
AlarmKill = AlarmKill - 90;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Level 15 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Level 15 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "Reduce the alarm time per kill by 3 seconds.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "Reduce the alarm time per kill by 3 seconds.";
Achievements[15] = true;
}
if ((LevelsHead_Shots[16] >= AchievementsQuote[16]) && (Achievements[16] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(2);
GunStats[4] = GunStats[4] + 2;
DualGunStats[4] = DualGunStats[4] + 2;
RevolverStats[4] = RevolverStats[4] + 2;
DualRevolverStats[4] = DualRevolverStats[4] + 2;
SingleShotgunStats[4] = SingleShotgunStats[4] + 2;
DualShotgunStats[4] = DualShotgunStats[4] + 2;
MachineGunStats[4] = MachineGunStats[4] + 2;
DualMachineGunStats[4] = DualMachineGunStats[4] + 2;
ShotgunStats[4] = ShotgunStats[4] + 2;
AssaultRiffleStats[4] = AssaultRiffleStats[4] + 2;
BazookaStats[4] = BazookaStats[4] + 2;
BerserkStats[4] = BerserkStats[4] + 2;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Level 16 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Level 16 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "Increase the speed of your bullet by 2, for all weapon.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "Increase the speed of your bullet by 2, for all weapon.";
Achievements[16] = true;
}
if ((LevelsCops_Kills[17] >= AchievementsQuote[17]) && (Achievements[17] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(2);
HP = HP + 20;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Level 17 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Level 17 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got +20 extra HP points.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got +20 extra HP points.";
Achievements[17] = true;
}
if ((Levels_Moneys[18] >= AchievementsQuote[18]) && (Achievements[18] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(2);
CivilKillMoneyBonus = CivilKillMoneyBonus + 3;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Level 18 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Level 18 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got $3 more per kill.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got $3 more per kill.";
Achievements[18] = true;
}
if ((LevelsCops_Kills[19] >= AchievementsQuote[19]) && (Achievements[19] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(2);
GunStats[9] = GunStats[9] + 5;
DualGunStats[9] = DualGunStats[9] + 5;
RevolverStats[9] = RevolverStats[9] + 5;
DualRevolverStats[9] = DualRevolverStats[9] + 5;
SingleShotgunStats[9] = SingleShotgunStats[9] + 5;
DualShotgunStats[9] = DualShotgunStats[9] + 5;
MachineGunStats[9] = MachineGunStats[9] + 5;
DualMachineGunStats[9] = DualMachineGunStats[9] + 5;
ShotgunStats[9] = ShotgunStats[9] + 5;
AssaultRiffleStats[9] = AssaultRiffleStats[9] + 5;
BazookaStats[9] = BazookaStats[9] + 5;
BerserkStats[9] = BerserkStats[9] + 5;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Level 19 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Level 19 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got +5 extra damage for all weapons.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got +5 extra damage for all weapons.";
Achievements[19] = true;
}
if ((Levels_Kills[20] >= AchievementsQuote[20]) && (Achievements[20] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(2);
HP = HP + 20;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Level 20 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Level 20 Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got +20 extra HP points.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got +20 extra HP points.";
Achievements[20] = true;
}
if ((Weapon_Kills[0] >= AchievementsQuote[21]) && (Achievements[21] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(3);
GunStats[9] = GunStats[9] + 5;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Gun Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Gun Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got +5 extra damage for this weapon.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got +5 extra damage for this weapon.";
Achievements[21] = true;
}
if ((Weapon_Kills[1] >= AchievementsQuote[22]) && (Achievements[22] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(3);
DualGunStats[4] = DualGunStats[4] + 2;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Dual Gun Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Dual Gun Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got faster bullets speed for this weapon.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got faster bullets speed for this weapon.";
Achievements[22] = true;
}
if ((Weapon_Kills[2] >= AchievementsQuote[23]) && (Achievements[23] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(3);
RevolverStats[12] = RevolverStats[12] + 10;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Revolver Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Revolver Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got +10% chance to make a Headshot with this weapon.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got +10% chance to make a Headshot with this weapon.";
Achievements[23] = true;
}
if ((Weapon_Kills[3] >= AchievementsQuote[24]) && (Achievements[24] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(3);
DualRevolverStats[10] = DualRevolverStats[10] + 5;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Dual Revolver";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Dual Revolver";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got +5% chance to make a R.I.P with this weapon.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got +5% chance to make a R.I.P with this weapon.";
Achievements[24] = true;
}
if ((Weapon_Kills[4] >= AchievementsQuote[25]) && (Achievements[25] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(3);
SingleShotgunStats[11] = SingleShotgunStats[11] + 15;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Sawed Shotgun";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Sawed Shotgun";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got +15% chance to make a Critical with this weapon.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got +15% chance to make a Critical with this weapon.";
Achievements[25] = true;
}
if ((Weapon_Kills[5] >= AchievementsQuote[26]) && (Achievements[26] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(3);
DualShotgunStats[9] = DualShotgunStats[9] + 10;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Dual Sawed Shotgun";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Dual Sawed Shotgun";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got +10 extra damage for this weapon.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got +10 extra damage for this weapon.";
Achievements[26] = true;
}
if ((Weapon_Kills[6] >= AchievementsQuote[27]) && (Achievements[27] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(3);
MachineGunStats[4] = MachineGunStats[4] + 2;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Machine gun Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Machine gun Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got faster bullets speed for this weapon.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got faster bullets speed for this weapon.";
Achievements[27] = true;
}
if ((Weapon_Kills[7] >= AchievementsQuote[28]) && (Achievements[28] == undefined)) {
playSounds("Achievement");
achievements_mc.gotoAndStop(3);
DualMachineGunStats[9] = DualMachineGunStats[9] + 6;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Dual Machine gun";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Dual Machine gun";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got +6 extra damage for this weapon.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got +6 extra damage for this weapon.";
Achievements[28] = true;
}
if ((Weapon_Kills[8] >= AchievementsQuote[29]) && (Achievements[29] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(3);
ShotgunStats[7] = ShotgunStats[7] - 150;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Tactical Shotgun";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Tactical Shotgun";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got faster Shooting rate for this weapon.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got faster Shooting rate for this weapon.";
Achievements[29] = true;
}
if ((Weapon_Kills[9] >= AchievementsQuote[30]) && (Achievements[30] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(3);
AssaultRiffleStats[9] = AssaultRiffleStats[9] + 9;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Assault Rifle";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Assault Rifle";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got +9 extra damage for this weapon.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got +9 extra damage for this weapon.";
Achievements[30] = true;
}
if ((Weapon_Kills[10] >= AchievementsQuote[31]) && (Achievements[31] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(3);
BazookaStats[4] = BazookaStats[4] + 2;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Rocket Launcher";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Rocket Launcher";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got faster bullets speed for this weapon.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got faster bullets speed for this weapon.";
Achievements[31] = true;
}
if ((TotalCivilKills >= AchievementsQuote[32]) && (Achievements[32] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(4);
CivilKillMoneyBonus = CivilKillMoneyBonus + 14;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Pedestrians Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Pedestrians Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got $14 more per each pedestrian kill.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got $14 more per each pedestrian kill.";
Achievements[32] = true;
}
if ((Kind_Kills[0] >= AchievementsQuote[33]) && (Achievements[33] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(4);
CopKillMoneyBonus = CopKillMoneyBonus + 14;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Park Guard Kills";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Park Guard Kills";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got $14 more per each Enemie kill.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got $14 more per each Enemie kill.";
Achievements[33] = true;
}
if ((Kind_Kills[1] >= AchievementsQuote[34]) && (Achievements[34] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(4);
People_HP[1] = People_HP[1] - 5;
People_HP[2] = People_HP[2] - 5;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Park Guard 2 Kills";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Park Guard 2 Kills";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You reduced the Park Guard's HP by 5.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You reduced the Park Guard's HP by 5.";
Achievements[34] = true;
}
if ((Kind_Kills[2] >= AchievementsQuote[35]) && (Achievements[35] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(4);
People_HP[3] = People_HP[3] - 5;
People_HP[4] = People_HP[4] - 5;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Cop Kills";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Cop Kills";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You reduced the Cop's HP by 5.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You reduced the Cop's HP by 5.";
Achievements[35] = true;
}
if ((Kind_Kills[3] >= AchievementsQuote[36]) && (Achievements[36] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(4);
People_HP[3] = People_HP[3] - 5;
People_HP[4] = People_HP[4] - 5;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Cop 2 Kills";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Cop 2 Kills";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You reduced the Cop's HP by 5.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You reduced the Cop's HP by 5.";
Achievements[36] = true;
}
if ((Kind_Kills[4] >= AchievementsQuote[37]) && (Achievements[37] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(4);
People_HP[5] = People_HP[5] - 15;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Police Patrol car";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Police Patrol car";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You reduced the Police Patrol car's HP by 15.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You reduced the Police Patrol car's HP by 15.";
Achievements[37] = true;
}
if ((Kind_Kills[5] >= AchievementsQuote[38]) && (Achievements[38] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(4);
People_HP[6] = People_HP[6] - 10;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Swats Kills";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Swats Kills";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You reduced the Police Swat's HP by 6.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You reduced the Police Swat's HP by 6.";
Achievements[38] = true;
}
if ((Kind_Kills[6] >= AchievementsQuote[39]) && (Achievements[39] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(4);
People_HP[7] = People_HP[7] - 20;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Swat Vans Destroyed";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Swat Vans Destroyed";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You reduced the Swat Van's HP by 7.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You reduced the Swat Van's HP by 7.";
Achievements[39] = true;
}
if ((Kind_Kills[7] >= AchievementsQuote[40]) && (Achievements[40] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(4);
People_HP[8] = People_HP[8] - 25;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Choppers Destroyed";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Choppers Destroyed";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You reduced the Chopper's HP by 7.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You reduced the Chopper's HP by 7.";
Achievements[40] = true;
}
if ((Souls >= AchievementsQuote[41]) && (Achievements[41] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(5);
HP = HP + 70;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Souls Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Souls Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got +70 extra HP points.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got +70 extra HP points.";
Achievements[41] = true;
}
if ((TotalRIPS >= AchievementsQuote[42]) && (Achievements[42] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(5);
maxRAGE = maxRAGE + 90;
minRAGE = minRAGE + 90;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "R.I.P Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "R.I.P Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got +3 extra seconds in Berserk mode.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got +3 extra seconds in Berserk mode.";
Achievements[42] = true;
}
if ((TotalCriticals >= AchievementsQuote[43]) && (Achievements[43] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(5);
HPperSoul = HPperSoul + 7;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Criticals Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Criticals Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You earn 7 more HP each time you catch a soul.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You earn 7 more HP each time you catch a soul.";
Achievements[43] = true;
}
if ((TotalHeadShot >= AchievementsQuote[44]) && (Achievements[44] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(5);
MoneyReward[2] = MoneyReward[2] + 10;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Headshot Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Headshot Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You earn $10 more each time you kill with the revolver.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You earn $10 more each time you kill with the revolver.";
Achievements[44] = true;
}
if ((TotalCombos >= AchievementsQuote[45]) && (Achievements[45] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(5);
CivilKillRAGEBonus = CivilKillRAGEBonus + 3;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Combo Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Combo Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You get 3 extra Rage Points each time you kill a pedestrian.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You get 3 extra Rage Points each time you kill a pedestrian.";
Achievements[45] = true;
}
if ((TotalUpgrades >= AchievementsQuote[46]) && (Achievements[46] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(6);
HP = HP + 35;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Upgrades Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Upgrades Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got +35 extra HP points.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got +35 extra HP points.";
Achievements[46] = true;
}
if ((TotalMoneys >= AchievementsQuote[47]) && (Achievements[47] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(6);
CopKillRAGEBonus = CopKillRAGEBonus + 8;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Money Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Money Achievement";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got +8 extra Rage Points each time you kill an enemie.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got +8 extra Rage Points each time you kill an enemie.";
Achievements[47] = true;
}
if ((TotalLevelsPlayed >= AchievementsQuote[48]) && (Achievements[48] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(6);
People_HP[0] = People_HP[0] - 2;
People_HP[1] = People_HP[1] - 2;
People_HP[2] = People_HP[2] - 2;
People_HP[3] = People_HP[3] - 2;
People_HP[4] = People_HP[4] - 2;
People_HP[6] = People_HP[6] - 2;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Total Levels beated";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Total Levels beated";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You reduced the HP of all Humans by 2.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You reduced the HP of all Humans by 2.";
Achievements[48] = true;
}
if ((TotalAchievements >= AchievementsQuote[49]) && (Achievements[49] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(6);
People_HP[5] = People_HP[5] - 10;
People_HP[7] = People_HP[7] - 10;
People_HP[8] = People_HP[8] - 10;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Total Achievements";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Total Achievements";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You reduced the HP of all the vehicles by 10.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You reduced the HP of all the vehicles by 10.";
Achievements[49] = true;
}
if ((TotalKilled >= AchievementsQuote[50]) && (Achievements[50] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(6);
TotalMoneys = TotalMoneys + 1500;
Moneys = Moneys + 1500;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Total Kills Achievements";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Total Kills Achievements";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You earnt $1500 for completing this achievement.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You earnt $1500 for completing this achievement.";
Achievements[50] = true;
}
if ((Weapon_Kills[11] >= AchievementsQuote[51]) && (Achievements[51] == undefined)) {
playSounds("Achievement");
TotalAchievements = TotalAchievements + 1;
achievements_mc.gotoAndStop(6);
HP = HP + 40;
achievements_mc.achievement_mc.upgrade1_mc.Name2_txt.text = "Berserk Kills";
achievements_mc.achievement_mc.upgrade1_mc.Name_txt.text = "Berserk Kills";
achievements_mc.achievement_mc.upgrade1_mc.Achi2_txt.text = "You got +40 extra HP points.";
achievements_mc.achievement_mc.upgrade1_mc.Achi_txt.text = "You got +40 extra HP points.";
Achievements[51] = true;
}
}
function weaponsUpgradesMenu(WeaponName, WeaponID, target1, target2, Prize) {
if (Weapons[WeaponID] == true) {
target1.gotoAndStop(2);
target2.gotoAndStop(2);
} else if (Weapons[WeaponID] == false) {
target1.gotoAndStop(1);
target2.gotoAndStop(1);
}
if ((Prize > TotalMoneys) && (Weapons[WeaponID] == false)) {
target2._alpha = 50;
} else if ((Prize <= TotalMoneys) || (Weapons[WeaponID] == true)) {
target2._alpha = 100;
}
target2.onRelease = function () {
if ((Weapons[WeaponID] == false) && (Prize <= TotalMoneys)) {
Weapons[WeaponID] = true;
playSounds("cash");
TotalMoneys = TotalMoneys - Prize;
TextTitle = WeaponName;
TextBody = "Congratulaions, you just purchased a brand new " + WeaponName;
} else if (Weapons[WeaponID] == true) {
playSounds("beep");
TextTitle = WeaponName;
TextBody = "What? you already got a " + WeaponName;
} else if (Prize > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this weapon.";
}
};
target2.onRollOver = function () {
TextTitle = WeaponName;
TextBody = "Purchase a " + WeaponName;
};
target2.onRollOut = function () {
TextTitle = " ";
TextBody = " ";
};
}
function OverDesc(Name, Desc, target, ID) {
UpgradeState(target, ID, ID, ID);
target.onRollOver = function () {
playSounds("OutButton");
TextTitle = Name;
TextBody = Desc;
target._xscale = 99;
target._yscale = 99;
};
target.onRollOut = function () {
playSounds("OverButton");
TextTitle = " ";
TextBody = " ";
target._xscale = 100;
target._yscale = 100;
};
}
function UpgradeState(target, CurretUpgrade, MaxUpgrade, Price) {
if (UpgradesLevel[CurretUpgrade] >= UpgradesMaxLevel[MaxUpgrade]) {
target.gotoAndStop(2);
}
if ((UpgradesLevel[CurretUpgrade] < UpgradesMaxLevel[MaxUpgrade]) && (UpgradesPrizes[Price] <= TotalMoneys)) {
target._alpha = 100;
} else if ((UpgradesLevel[CurretUpgrade] < UpgradesMaxLevel[MaxUpgrade]) && (UpgradesPrizes[Price] > TotalMoneys)) {
target._alpha = 50;
} else if (UpgradesLevel[CurretUpgrade] >= UpgradesMaxLevel[MaxUpgrade]) {
target._alpha = 100;
}
}
function WinLevel(Level, Points, UnlockLevel) {
if ((LevelsArray[Level] == false) && (Levels_Quotes[Level] <= Points)) {
TotalLevelsPlayed = TotalLevelsPlayed + 1;
playSounds("YouWon");
LevelMoney = LevelsMoneyArray[Level];
TotalMoneys = TotalMoneys + LevelsMoneyArray[Level];
Moneys = Moneys + LevelsMoneyArray[Level];
youWIN_mc.gotoAndPlay(2);
Hud_mc.Menu_btn._visible = true;
LevelsArray[UnlockLevel] = false;
LevelsArray[Level] = true;
}
}
function WinLevelManager() {
if (CurrentLevel == 0) {
MissionBrieff = "Learn everything you need, to accomplish all your missions!";
} else if (CurrentLevel == 1) {
WinLevel(CurrentLevel, Levels_Souls[CurrentLevel], 2);
MissionBrieff = "Catch at least 15 souls, to beat this level.";
} else if (CurrentLevel == 2) {
WinLevel(CurrentLevel, Levels_Moneys[CurrentLevel], 3);
MissionBrieff = "Get over $1000 in cash, to beat this level.";
} else if (CurrentLevel == 3) {
WinLevel(CurrentLevel, LevelsCops_Kills[CurrentLevel], 4);
MissionBrieff = "Kill at least 15 Cops, to beat this level.";
} else if (CurrentLevel == 4) {
WinLevel(CurrentLevel, Levels_Kills[CurrentLevel], 5);
MissionBrieff = "Kill at least 60 people, to beat this level.";
} else if (CurrentLevel == 5) {
WinLevel(CurrentLevel, LevelsHead_Shots[CurrentLevel], 6);
MissionBrieff = "Perform more than 13 Headshots, to beat this level.";
} else if (CurrentLevel == 6) {
WinLevel(CurrentLevel, Levels_RIPS[CurrentLevel], 7);
MissionBrieff = "Perform more than 34 R.I.Ps, to beat this level.";
} else if (CurrentLevel == 7) {
WinLevel(CurrentLevel, Levels_Criticals[CurrentLevel], 8);
MissionBrieff = "Perform more than 21 Criticals, to beat this level.";
} else if (CurrentLevel == 8) {
WinLevel(CurrentLevel, Levels_Kills[CurrentLevel], 9);
MissionBrieff = "Kill at least 137 people, to beat this level.";
} else if (CurrentLevel == 9) {
WinLevel(CurrentLevel, Levels_Moneys[CurrentLevel], 10);
MissionBrieff = "Get over $5500 in cash, to beat this level.";
} else if (CurrentLevel == 10) {
WinLevel(CurrentLevel, Levels_Souls[CurrentLevel], 11);
MissionBrieff = "Catch at least 49 souls, to beat this level.";
} else if (CurrentLevel == 11) {
WinLevel(CurrentLevel, LevelsHead_Shots[CurrentLevel], 12);
MissionBrieff = "Perform more than 33 Headshots, to beat this level.";
} else if (CurrentLevel == 12) {
WinLevel(CurrentLevel, LevelsCops_Kills[CurrentLevel], 13);
MissionBrieff = "Kill at least 80 cops, to beat this level.";
} else if (CurrentLevel == 13) {
WinLevel(CurrentLevel, Levels_RIPS[CurrentLevel], 14);
MissionBrieff = "Perform more than 71 R.I.Ps, to beat this level.";
} else if (CurrentLevel == 14) {
WinLevel(CurrentLevel, Levels_Kills[CurrentLevel], 15);
MissionBrieff = "Kill at least 207 people, to beat this level.";
} else if (CurrentLevel == 15) {
WinLevel(CurrentLevel, Levels_Criticals[CurrentLevel], 16);
MissionBrieff = "Perform more than 54 Criticals, to beat this level.";
} else if (CurrentLevel == 16) {
WinLevel(CurrentLevel, Levels_Moneys[CurrentLevel], 17);
MissionBrieff = "Get over $14540 in cash, to beat this level.";
} else if (CurrentLevel == 17) {
WinLevel(CurrentLevel, Levels_Souls[CurrentLevel], 18);
MissionBrieff = "Catch at least 145 souls, to beat this level.";
} else if (CurrentLevel == 18) {
WinLevel(CurrentLevel, LevelsHead_Shots[CurrentLevel], 19);
MissionBrieff = "Perform more than 60 Headshots, to beat this level.";
} else if (CurrentLevel == 19) {
WinLevel(CurrentLevel, Levels_RIPS[CurrentLevel], 20);
MissionBrieff = "Perform more than 215 R.I.Ps, to beat this level.";
} else if (CurrentLevel == 20) {
WinLevel(CurrentLevel, Levels_Souls[CurrentLevel], 21);
MissionBrieff = "Collect more than 300 souls to beat this level.";
}
}
function playMusic(MUSIC) {
GamePlayMusic.stop();
GamePlayMusic.attachSound(MUSIC);
GamePlayMusic.setVolume(VolumeMUSIC);
GamePlayMusic.start();
}
var keyListener = new Object();
var SuckingUp = false;
var Grav = 0.9;
var MaxTime = 30;
var Pause = false;
var MissionBrieff = "";
var Cheat = "Introduce Cheat";
var CheatText = "Introduce the correct cheat in the text field.";
var LevelSong = "MenuSong";
var Quality = "MEDIUM";
var HIDING = false;
var LevelMoney = 0;
var Attacking = false;
var UNhiding = false;
var falling = false;
var Alive = true;
var shooting = false;
var Alarm = false;
var alarmCounter = 0;
var AlarmSeconds = 0;
var alarmCounterFrame = 0;
var radians = (Math.PI/180);
var radians2 = 57.2957795130823;
var HeroDirection = "Standing";
var Flip = true;
var EXIT = false;
var CROUCHING = false;
var BerserkMode = false;
var BGMoving = true;
var Max_X = -1100;
var Min_X = -300;
var GunHeight = 80;
var mapWidth = Stage.width;
var mapHeight = Stage.height;
var weaponBulletsSocket = 0;
var weaponReloadTime = new Array(75, 100, 105, 212, 56, 141, 74, 100, 89, 60, 90, 50);
var weaponReloaded = new Array(true, true, true, true, true, true, true, true, true, true, true);
var ComboDone = new Array(false, false, false, false, false, false, false, false, false);
var CurrentWeapon = "Gun";
var CurrentBullets = weaponBullets[weaponBulletsSocket];
var ShootingWeapon = "singleGunShooting";
var ReloaderWeapon = "Reloading_singleGun";
var ReloadingSecs = 1;
var ReloadingSocket = weaponReloadTime[0];
var ReloadingTime = Math.round((ReloadingSecs / ReloadingSocket) * 100);
var SuckingSouls = 0;
var comboCounter = 0;
var comboArray = new Array();
var UpgradesMaxLevel = new Array(0, 5, 4, 6, 1, 3, 2, 2, 1, 1, 3, 2, 3, 3, 1, 1, 1, 3, 2, 1, 1, 2, 1, 2, 2, 3, 1, 2, 3, 1, 2, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 2, 3, 2, 3, 2, 3, 2, 2, 3, 2, 2);
var UpgradeMenu = new Array(true, false, false, false, false, false, false, false, false, false, false, false);
var TextTitle = "Hello Mr.K";
var TextBody = "This park is full of people waiting to be disposed so, let's shoot some bullets, have big fun and go home!";
var LevelKills = 0;
var LevelRips = 0;
var LevelHeadShots = 0;
var LevelSouls = 0;
var LevelCopKills = 0;
var LevelCriticals = 0;
var LevelMoney = 0;
var LevelVictimsNumber = 0;
var VictimsNumber = 0;
var LevelEnemiesNumber = 0;
var EnemiesNumber = 0;
var ParkGuardNumber = 0;
var CurrentLevel = 0;
var Moneys = 0;
var RageMeter = 0;
var Kills = 0;
var LevelTime = 0;
var LevelTimer = 0;
var MaxTimeArray = new Array(6500, 2700, 2700, 2700, 2700, 2700, 3600, 3600, 3600, 3600, 3600, 4500, 4500, 4500, 4500, 4500, 9000, 9000, 9000, 9000, 9000, 9000);
var Levels_Quotes = new Array(0, 15, 1000, 15, 60, 13, 34, 21, 137, 5500, 49, 33, 80, 71, 207, 54, 14540, 145, 60, 215, 300);
var GenericDamage = 0;
var GenericFireRate = 0;
var GenericShots = 0;
var GenericReloadTime = 0;
var GenericRounds = 0;
var GenericRIP = 0;
var GenericHS = 0;
var GenericCritical = 0;
var GenericPrize = 0;
var WalkingSpeed = 5;
var WalkingSpeed2 = 7;
var jump = 15;
var VolumeFX = 100;
var VolumeMUSIC = 85;
var FinalScore = 0;
var Loses = 0;
var soulsSucked = 0;
var AlarmKill = 300;
var HP = 100;
var TotalBoxes = 2;
var RAGE = 5;
var maxRAGE = 300;
var minRAGE = 200;
var TotalMoneys = 0;
var Souls = 0;
var MoneyPerSoul = 3;
var HPperSoul = 2;
var TotalUpgrades = 0;
var TotalAchievements = 0;
var TotalLevelsPlayed = 0;
var TotalKilled = 0;
var TotalRIPS = 0;
var TotalCriticals = 0;
var TotalHeadShot = 0;
var TotalCombos = 0;
var TotalCopKills = 0;
var TotalCivilKills = 0;
var CivilKillMoneyBonus = 5;
var CopKillMoneyBonus = 10;
var CivilKillRAGEBonus = 4;
var CopKillRAGEBonus = 8;
var GunStats = new Array(1, "bullet1", "Bullet1Casq", 5, 15, 2000, 45, 850, 1, 5, 30, 10, 30, "SingleGun");
var DualGunStats = new Array(2, "bullet1", "Bullet1Casq", 15, 17, 2000, 45, 850, 2, 5, 35, 12, 20, "DualGun");
var RevolverStats = new Array(1, "bullet2", "Bullet1Casq", 5, 18, 2000, 45, 500, 1, 14, 48, 11, 45, "Revolver");
var DualRevolverStats = new Array(1, "bullet2", "Bullet1Casq", 5, 17, 2000, 45, 600, 1, 14, 52, 12, 50, "Revolver");
var SingleShotgunStats = new Array(3, "bullet3", "Bullet2Casq", 18, 15, 2000, 45, 1100, 1, 12, 20, 20, 20, "SawdShotgun");
var DualShotgunStats = new Array(3, "bullet3", "Bullet2Casq", 20, 16, 2000, 45, 1200, 1, 13, 25, 30, 18, "SawdShotgun");
var MachineGunStats = new Array(1, "bullet4", "Bullet1Casq", 15, 16, 2000, 45, 100, 1, 6, 30, 7, 17, "SingleMachineGun");
var DualMachineGunStats = new Array(2, "bullet4", "Bullet1Casq", 17, 15, 2000, 45, 150, 2, 4, 32, 6, 19, "DualMachineGun");
var ShotgunStats = new Array(6, "bullet5", "Bullet2Casq", 22, 18, 2000, 65, 1300, 1, 15, 41, 35, 10, "SingleShotgun");
var AssaultRiffleStats = new Array(1, "bullet6", "Bullet3Casq", 12, 25, 2000, 65, 200, 1, 8, 20, 20, 20, "MachineGun");
var BazookaStats = new Array(1, "bullet7", "Bullet4Casq", 7, 15, 2000, 75, 1000, 1, 100, 12, 40, 5, "Bazooka");
var BerserkStats = new Array(2, "bulletberserk", "Bullet5Casquet", 7, 25, 2000, 65, 200, 1, 8, 65, 30, 60, "LaserGun");
var MoneyReward = new Array(15, 12, 15, 14, 16, 15, 8, 6, 5, 4, 5, 65, 75, 45);
var LevelsMoneyArray = new Array(0, 250, 500, 1150, 1400, 1750, 2000, 2250, 2600, 2800, 3200, 3500, 3700, 3900, 4000, 4100, 4200, 4600, 4800, 5000, 6600);
var Weapons = new Array(true, false, false, false, false, false, false, false, false, false, false, false);
var LevelsArray = new Array(false);
var Levels_Kills = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
var Levels_RIPS = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
var LevelsCops_Kills = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
var LevelsHead_Shots = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
var Levels_Criticals = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
var Levels_Souls = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
var Levels_Moneys = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
var Achievements = new Array();
var AchievementsQuote = new Array(0, 180, 160, 30000, 95, 85, 55, 25000, 90, 230, 45, 360, 140, 28000, 275, 335, 80, 200, 30000, 4000, 750, 250, 300, 200, 270, 440, 570, 720, 850, 910, 950, 1000, 1400, 1200, 1150, 1100, 1050, 1000, 900, 850, 800, 700, 660, 500, 100, 50, 50, 80000, 15, 25, 1500, 100);
var weaponBulletsBase = new Array(12, 24, 8, 16, 2, 4, 32, 64, 7, 30, 2, 25);
var CheatsArray = new Array(0, 0, 0, 0, 0);
var CheatsNames = new Array();
var Weapon_Kills = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
var Kind_Kills = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
var People_HP = new Array(15, 20, 30, 55, 70, 130, 200, 300, 300);
var Bullet_Damage = new Array(0, 10, 20, 15, 25, 40, 20, 50, 50);
var weaponBullets = new Array(weaponBulletsBase[0], weaponBulletsBase[1], weaponBulletsBase[2], weaponBulletsBase[3], weaponBulletsBase[4], weaponBulletsBase[5], weaponBulletsBase[6], weaponBulletsBase[7], weaponBulletsBase[8], weaponBulletsBase[9], weaponBulletsBase[10], weaponBulletsBase[11]);
var UpgradesLevel = 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
var UpgradesPrizes = new Array(0, 500, 700, 800, 650, 200, 900, 800, 350, 925, 400, 550, 980, 435, 740, 680, 965, 730, 670, 520, 640, 850, 990, 1030, 1400, 1250, 1345, 1435, 1300, 1560, 1665, 2400, 2385, 2500, 2345, 2850, 2945, 2900, 2730, 5300, 5480, 5230, 5740, 6170, 6590, 6900, 6780, 7850, 8400, 8150, 8340);
var WeaponPrizes = new Array(0, 800, 1950, 3050, 4520, 5850, 9130, 10980, 12140, 14285, 17852, 21420);
var UpgradesLevels = new Array();
var Upgrades = new Array();
var Boxes = TotalBoxes;
var CurrentHP = HP;
var CurrentRAGE = RAGE;
var weaponDatabase = new Array();
var tempWeapon = {itemName:"Pistol", GunType:"Gun", bulletNumber:GunStats[0], bulletMC:GunStats[1], shellMC:GunStats[2], bulletOffset:GunStats[3], bulletSpeed:GunStats[4], bulletMaxAge:GunStats[5], barrelLength:GunStats[6], reloadComplete:true, reloadSpeed:GunStats[7], BulletCount:GunStats[8], BulletDamage:GunStats[9], RipSoulChance:GunStats[10], CriticalChance:GunStats[11], HeadShotChance:GunStats[12], GunSound:GunStats[13], reloadTimer:0};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"DualGun", GunType:"DualGun", bulletNumber:DualGunStats[0], bulletMC:DualGunStats[1], shellMC:DualGunStats[2], bulletOffset:DualGunStats[3], bulletSpeed:DualGunStats[4], bulletMaxAge:DualGunStats[5], barrelLength:DualGunStats[6], reloadComplete:true, reloadSpeed:DualGunStats[7], BulletCount:DualGunStats[8], BulletDamage:DualGunStats[9], RipSoulChance:DualGunStats[10], CriticalChance:DualGunStats[11], HeadShotChance:DualGunStats[12], GunSound:DualGunStats[13], reloadTimer:0};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"Revolver", GunType:"Revolver", bulletNumber:RevolverStats[0], bulletMC:RevolverStats[1], shellMC:RevolverStats[2], bulletOffset:RevolverStats[3], bulletSpeed:RevolverStats[4], bulletMaxAge:RevolverStats[5], barrelLength:RevolverStats[6], reloadComplete:true, reloadSpeed:RevolverStats[7], BulletCount:RevolverStats[8], BulletDamage:RevolverStats[9], RipSoulChance:RevolverStats[10], CriticalChance:RevolverStats[11], HeadShotChance:RevolverStats[12], GunSound:RevolverStats[13], reloadTimer:0};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"DualRevolver", GunType:"DualRevolver", bulletNumber:DualRevolverStats[0], bulletMC:DualRevolverStats[1], shellMC:DualRevolverStats[2], bulletOffset:DualRevolverStats[3], bulletSpeed:DualRevolverStats[4], bulletMaxAge:DualRevolverStats[5], barrelLength:DualRevolverStats[6], reloadComplete:true, reloadSpeed:DualRevolverStats[7], BulletCount:DualRevolverStats[8], BulletDamage:DualRevolverStats[9], RipSoulChance:DualRevolverStats[10], CriticalChance:DualRevolverStats[11], HeadShotChance:DualRevolverStats[12], GunSound:DualRevolverStats[13], reloadTimer:0};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"SingleShotgun", GunType:"SingleShotgun", bulletNumber:SingleShotgunStats[0], bulletMC:SingleShotgunStats[1], shellMC:SingleShotgunStats[2], bulletOffset:SingleShotgunStats[3], bulletSpeed:SingleShotgunStats[4], bulletMaxAge:SingleShotgunStats[5], barrelLength:SingleShotgunStats[6], reloadComplete:true, reloadSpeed:SingleShotgunStats[7], BulletCount:SingleShotgunStats[8], BulletDamage:SingleShotgunStats[9], RipSoulChance:SingleShotgunStats[10], CriticalChance:SingleShotgunStats[11], HeadShotChance:SingleShotgunStats[12], GunSound:SingleShotgunStats[13], reloadTimer:0};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"DualShotgun", GunType:"DualShotGun", bulletNumber:DualShotgunStats[0], bulletMC:DualShotgunStats[1], shellMC:DualShotgunStats[2], bulletOffset:DualShotgunStats[3], bulletSpeed:DualShotgunStats[4], bulletMaxAge:DualShotgunStats[5], barrelLength:DualShotgunStats[6], reloadComplete:true, reloadSpeed:DualShotgunStats[7], BulletCount:DualShotgunStats[8], BulletDamage:DualShotgunStats[9], RipSoulChance:DualShotgunStats[10], CriticalChance:DualShotgunStats[11], HeadShotChance:DualShotgunStats[12], GunSound:DualShotgunStats[13], reloadTimer:0};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"SingleMachineGun", GunType:"SingleMachineGun", bulletNumber:MachineGunStats[0], bulletMC:MachineGunStats[1], shellMC:MachineGunStats[2], bulletOffset:MachineGunStats[3], bulletSpeed:MachineGunStats[4], bulletMaxAge:MachineGunStats[5], barrelLength:MachineGunStats[6], reloadComplete:true, reloadSpeed:MachineGunStats[7], BulletCount:MachineGunStats[8], BulletDamage:MachineGunStats[9], RipSoulChance:MachineGunStats[10], CriticalChance:MachineGunStats[11], HeadShotChance:MachineGunStats[12], GunSound:MachineGunStats[13], reloadTimer:0};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"DualMachineGun", GunType:"DualMachineGun", bulletNumber:DualMachineGunStats[0], bulletMC:DualMachineGunStats[1], shellMC:DualMachineGunStats[2], bulletOffset:DualMachineGunStats[3], bulletSpeed:DualMachineGunStats[4], bulletMaxAge:DualMachineGunStats[5], barrelLength:DualMachineGunStats[6], reloadComplete:true, reloadSpeed:DualMachineGunStats[7], BulletCount:DualMachineGunStats[8], BulletDamage:DualMachineGunStats[9], RipSoulChance:DualMachineGunStats[10], CriticalChance:DualMachineGunStats[11], HeadShotChance:DualMachineGunStats[12], GunSound:DualMachineGunStats[13], reloadTimer:0};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"ShotGun", GunType:"ShotGun", bulletNumber:ShotgunStats[0], bulletMC:ShotgunStats[1], shellMC:ShotgunStats[2], bulletOffset:ShotgunStats[3], bulletSpeed:ShotgunStats[4], bulletMaxAge:ShotgunStats[5], barrelLength:ShotgunStats[6], reloadComplete:true, reloadSpeed:ShotgunStats[7], BulletCount:ShotgunStats[8], BulletDamage:ShotgunStats[9], RipSoulChance:ShotgunStats[10], CriticalChance:ShotgunStats[11], HeadShotChance:ShotgunStats[12], GunSound:ShotgunStats[13], reloadTimer:0};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"MachineGun", GunType:"MachineGun", bulletNumber:AssaultRiffleStats[0], bulletMC:AssaultRiffleStats[1], shellMC:AssaultRiffleStats[2], bulletOffset:AssaultRiffleStats[3], bulletSpeed:AssaultRiffleStats[4], bulletMaxAge:AssaultRiffleStats[5], barrelLength:AssaultRiffleStats[6], reloadComplete:true, reloadSpeed:AssaultRiffleStats[7], BulletCount:AssaultRiffleStats[8], BulletDamage:AssaultRiffleStats[9], RipSoulChance:AssaultRiffleStats[10], CriticalChance:AssaultRiffleStats[11], HeadShotChance:AssaultRiffleStats[12], GunSound:AssaultRiffleStats[13], reloadTimer:0};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"Bazooka", GunType:"Bazooka", bulletNumber:BazookaStats[0], bulletMC:BazookaStats[1], shellMC:BazookaStats[2], bulletOffset:BazookaStats[3], bulletSpeed:BazookaStats[4], bulletMaxAge:BazookaStats[5], barrelLength:BazookaStats[6], reloadComplete:true, reloadSpeed:BazookaStats[7], BulletCount:BazookaStats[8], BulletDamage:BazookaStats[9], RipSoulChance:BazookaStats[10], CriticalChance:BazookaStats[11], HeadShotChance:BazookaStats[12], GunSound:BazookaStats[13], reloadTimer:0};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"Berserk", GunType:"Berserk", bulletNumber:BerserkStats[0], bulletMC:BerserkStats[1], shellMC:BerserkStats[2], bulletOffset:BerserkStats[3], bulletSpeed:BerserkStats[4], bulletMaxAge:BerserkStats[5], barrelLength:BerserkStats[6], reloadComplete:true, reloadSpeed:BerserkStats[7], BulletCount:BerserkStats[8], BulletDamage:BerserkStats[9], RipSoulChance:BerserkStats[10], CriticalChance:BerserkStats[11], HeadShotChance:BerserkStats[12], GunSound:BerserkStats[13], reloadTimer:0};
weaponDatabase.push(tempWeapon);
var bulletArray = new Array();
var enemyArray = new Array();
var playerWeapon = new Object();
var container1 = this.createEmptyMovieClip("container1", 2000);
var container2 = this.createEmptyMovieClip("container2", 2001);
var container3 = this.createEmptyMovieClip("container3", 2002);
var SpecialSounds = new Sound(container3);
var ComboSounds = new Sound(container3);
var VictimsArray = new Array();
var EnemiesArray = new Array();
var GamePlayMusic = new Sound(container2);
GamePlayMusic.onSoundComplete = function () {
playMusic(LevelSong);
};
Key.addListener(keyListener);
Frame 112
stop();
var saveMessage = "";
onEnterFrame = function () {
Stage.showMenu = false;
};
var deleteGame = true;
var storedData;
storedData = SharedObject.getLocal("myZombieSaveOmg");
if (storedData.data.campaignSave.soulsSucked == undefined) {
storedData.data.campaignSave = new Object();
deleteGame = true;
play_game._visible = false;
} else if (storedData.data.campaignSave.soulsSucked != undefined) {
play_game._visible = true;
deleteGame = false;
}
var saveData;
saveData = new Object();
saveData = storedData.data.campaignSave;
New_game.onRollOver = function () {
saveMessage = "This game Auto Saves your progress";
};
New_game.onRollOut = function () {
saveMessage = "";
};
New_game.onRelease = function () {
if (deleteGame == true) {
deleteGame = false;
storedData.clear();
playSounds("OverButton");
saveData.CheatsNames = _root.CheatsNames;
saveData.CheatsArray = _root.CheatsArray;
saveData.FinalScore = _root.Loses;
saveData.Loses = _root.Loses;
saveData.soulsSucked = _root.soulsSucked;
saveData.AlarmKill = _root.AlarmKill;
saveData.HP = _root.HP;
saveData.TotalBoxes = _root.TotalBoxes;
saveData.RAGE = _root.RAGE;
saveData.maxRAGE = _root.maxRAGE;
saveData.minRAGE = _root.minRAGE;
saveData.TotalMoneys = _root.TotalMoneys;
saveData.Souls = _root.Souls;
saveData.MoneyPerSoul = _root.MoneyPerSoul;
saveData.HPperSoul = _root.HPperSoul;
saveData.TotalUpgrades = _root.TotalUpgrades;
saveData.TotalAchievements = _root.TotalAchievements;
saveData.TotalLevelsPlayed = _root.TotalLevelsPlayed;
saveData.TotalKilled = _root.TotalKilled;
saveData.TotalRIPS = _root.TotalRIPS;
saveData.TotalCriticals = _root.TotalCriticals;
saveData.TotalHeadShot = _root.TotalHeadShot;
saveData.TotalCombos = _root.TotalCombos;
saveData.TotalHeadShot = _root.TotalHeadShot;
saveData.TotalCopKills = _root.TotalCopKills;
saveData.TotalCivilKills = _root.TotalCivilKills;
saveData.CivilKillMoneyBonus = _root.CivilKillMoneyBonus;
saveData.CopKillMoneyBonus = _root.CopKillMoneyBonus;
saveData.CivilKillRAGEBonus = _root.CivilKillRAGEBonus;
saveData.CopKillRAGEBonus = _root.CopKillRAGEBonus;
saveData.GunStats = _root.GunStats;
saveData.DualGunStats = _root.DualGunStats;
saveData.RevolverStats = _root.RevolverStats;
saveData.DualRevolverStats = _root.DualRevolverStats;
saveData.SingleShotgunStats = _root.SingleShotgunStats;
saveData.DualShotgunStats = _root.DualShotgunStats;
saveData.MachineGunStats = _root.MachineGunStats;
saveData.DualMachineGunStats = _root.DualMachineGunStats;
saveData.ShotgunStats = _root.ShotgunStats;
saveData.AssaultRiffleStats = _root.AssaultRiffleStats;
saveData.BazookaStats = _root.BazookaStats;
saveData.BerserkStats = _root.BerserkStats;
saveData.MoneyReward = _root.MoneyReward;
saveData.LevelsMoneyArray = _root.LevelsMoneyArray;
saveData.Weapons = _root.Weapons;
saveData.LevelsArray = _root.LevelsArray;
saveData.Levels_Kills = _root.Levels_Kills;
saveData.Levels_RIPS = _root.Levels_RIPS;
saveData.LevelsCops_Kills = _root.LevelsCops_Kills;
saveData.LevelsHead_Shots = _root.LevelsHead_Shots;
saveData.Levels_Criticals = _root.Levels_Criticals;
saveData.Levels_Souls = _root.Levels_Souls;
saveData.Levels_Moneys = _root.Levels_Moneys;
saveData.Achievements = _root.Achievements;
saveData.AchievementsQuote = _root.AchievementsQuote;
saveData.weaponBulletsBase = _root.weaponBulletsBase;
saveData.Weapon_Kills = _root.Weapon_Kills;
saveData.Kind_Kills = _root.Kind_Kills;
saveData.People_HP = _root.People_HP;
saveData.Bullet_Damage = _root.Bullet_Damage;
saveData.weaponBullets = _root.weaponBullets;
saveData.UpgradesLevel = _root.UpgradesLevel;
saveData.UpgradesPrizes = _root.UpgradesPrizes;
saveData.WeaponPrizes = _root.WeaponPrizes;
saveData.UpgradesLevels = _root.UpgradesLevels;
saveData.Upgrades = _root.Upgrades;
saveData.Boxes = _root.Boxes;
saveData.CurrentHP = _root.CurrentHP;
saveData.CurrentRAGE = _root.CurrentRAGE;
storedData.data.campaignSave = saveData;
flushResult = storedData.flush(1024);
gotoAndStop ("Starter");
} else if (deleteGame == false) {
deleteGame = true;
saveMessage = "This will Delete your saved game";
playSounds("Chorm");
}
};
play_game.onRollOver = function () {
saveMessage = "Continue saved game";
};
play_game.onRollOut = function () {
saveMessage = "";
};
play_game.onRelease = function () {
_root.CheatsNames = storedData.data.campaignSave.CheatsNames;
_root.TotalCombos = storedData.data.campaignSave.TotalCombos;
_root.CheatsArray = storedData.data.campaignSave.CheatsArray;
_root.Loses = storedData.data.campaignSave.Loses;
_root.soulsSucked = storedData.data.campaignSave.soulsSucked;
_root.AlarmKill = storedData.data.campaignSave.AlarmKill;
_root.HP = storedData.data.campaignSave.HP;
_root.TotalBoxes = storedData.data.campaignSave.TotalBoxes;
_root.RAGE = storedData.data.campaignSave.RAGE;
_root.maxRAGE = storedData.data.campaignSave.maxRAGE;
_root.minRAGE = storedData.data.campaignSave.minRAGE;
_root.TotalMoneys = storedData.data.campaignSave.TotalMoneys;
_root.Souls = storedData.data.campaignSave.Souls;
_root.MoneyPerSoul = storedData.data.campaignSave.MoneyPerSoul;
_root.HPperSoul = storedData.data.campaignSave.HPperSoul;
_root.TotalUpgrades = storedData.data.campaignSave.TotalUpgrades;
_root.TotalAchievements = storedData.data.campaignSave.TotalAchievements;
_root.TotalLevelsPlayed = storedData.data.campaignSave.TotalLevelsPlayed;
_root.TotalKilled = storedData.data.campaignSave.TotalKilled;
_root.TotalRIPS = storedData.data.campaignSave.TotalRIPS;
_root.TotalCriticals = storedData.data.campaignSave.TotalCriticals;
_root.TotalHeadShot = storedData.data.campaignSave.TotalHeadShot;
_root.TotalCopKills = storedData.data.campaignSave.TotalCopKills;
_root.TotalCivilKills = storedData.data.campaignSave.TotalCivilKills;
_root.CivilKillMoneyBonus = storedData.data.campaignSave.CivilKillMoneyBonus;
_root.CopKillMoneyBonus = storedData.data.campaignSave.CopKillMoneyBonus;
_root.CivilKillRAGEBonus = storedData.data.campaignSave.CivilKillRAGEBonus;
_root.CopKillRAGEBonus = storedData.data.campaignSave.CopKillRAGEBonus;
_root.GunStats = storedData.data.campaignSave.GunStats;
_root.DualGunStats = storedData.data.campaignSave.DualGunStats;
_root.RevolverStats = storedData.data.campaignSave.RevolverStats;
_root.DualRevolverStats = storedData.data.campaignSave.DualRevolverStats;
_root.SingleShotgunStats = storedData.data.campaignSave.SingleShotgunStats;
_root.DualShotgunStats = storedData.data.campaignSave.DualShotgunStats;
_root.MachineGunStats = storedData.data.campaignSave.MachineGunStats;
_root.DualMachineGunStats = storedData.data.campaignSave.DualMachineGunStats;
_root.ShotgunStats = storedData.data.campaignSave.ShotgunStats;
_root.AssaultRiffleStats = storedData.data.campaignSave.AssaultRiffleStats;
_root.BazookaStats = storedData.data.campaignSave.BazookaStats;
_root.BerserkStats = storedData.data.campaignSave.BerserkStats;
_root.MoneyReward = storedData.data.campaignSave.MoneyReward;
_root.LevelsMoneyArray = storedData.data.campaignSave.LevelsMoneyArray;
_root.Weapons = storedData.data.campaignSave.Weapons;
_root.LevelsArray = storedData.data.campaignSave.LevelsArray;
_root.Levels_Kills = storedData.data.campaignSave.Levels_Kills;
_root.Levels_RIPS = storedData.data.campaignSave.Levels_RIPS;
_root.LevelsCops_Kills = storedData.data.campaignSave.LevelsCops_Kills;
_root.LevelsHead_Shots = storedData.data.campaignSave.LevelsHead_Shots;
_root.Levels_Criticals = storedData.data.campaignSave.Levels_Criticals;
_root.Levels_Souls = storedData.data.campaignSave.Levels_Souls;
_root.Levels_Moneys = storedData.data.campaignSave.Levels_Moneys;
_root.Achievements = storedData.data.campaignSave.Achievements;
_root.AchievementsQuote = storedData.data.campaignSave.AchievementsQuote;
_root.weaponBulletsBase = storedData.data.campaignSave.weaponBulletsBase;
_root.Weapon_Kills = storedData.data.campaignSave.Weapon_Kills;
_root.Kind_Kills = storedData.data.campaignSave.Kind_Kills;
_root.People_HP = storedData.data.campaignSave.People_HP;
_root.Bullet_Damage = storedData.data.campaignSave.Bullet_Damage;
_root.weaponBullets = storedData.data.campaignSave.weaponBullets;
_root.UpgradesLevel = storedData.data.campaignSave.UpgradesLevel;
_root.UpgradesPrizes = storedData.data.campaignSave.UpgradesPrizes;
_root.WeaponPrizes = storedData.data.campaignSave.WeaponPrizes;
_root.UpgradesLevels = storedData.data.campaignSave.UpgradesLevels;
_root.Upgrades = storedData.data.campaignSave.Upgrades;
_root.FinalScore = storedData.data.campaignSave.FinalScore;
_root.Boxes = storedData.data.campaignSave.Boxes;
_root.CurrentHP = storedData.data.campaignSave.CurrentHP;
_root.CurrentRAGE = storedData.data.campaignSave.CurrentRAGE;
playSounds("OverButton");
gotoAndStop ("Starter");
};
rusty_mc.onRelease = function () {
getURL ("http://www.rustyarcade.com?ref=schyzo-level", "_blank");
};
GuideLink_mc.onRelease = function () {
getURL ("http://www.rustyarcade.com/blog/read/64/Mr.-Schyzo-full-Guide", "_blank");
};
CheatsLink_mc.onRelease = function () {
getURL ("http://www.rustyarcade.com/blog/read/65/Mr.-Schyzo-Cheats-List", "_blank");
};
BadgesLink_mc.onRelease = function () {
getURL ("http://www.rustyarcade.com/achievements", "_blank");
};
musicLink_btn.onRelease = function () {
getURL ("http://www.facebook.com/summersoundtrackmusic", "_blank");
};
RABadges_mc.onRelease = function () {
getURL ("http://www.rustyarcade.com/games/play/1249/Mr.-Schyzo", "_blank");
};
Frame 121
FinalScore = Math.round(((((((((((TotalUpgrades + TotalAchievements) + TotalLevelsPlayed) + TotalKilled) + TotalRIPS) + TotalCriticals) + TotalHeadShot) + TotalCombos) + TotalCopKills) + TotalCivilKills) + Souls) - (Loses * 10));
if (FinalScore <= 0) {
FinalScore = 0;
}
saveData.CheatsNames = _root.CheatsNames;
saveData.CheatsArray = _root.CheatsArray;
saveData.soulsSucked = _root.soulsSucked;
saveData.AlarmKill = _root.AlarmKill;
saveData.HP = _root.HP;
saveData.TotalBoxes = _root.TotalBoxes;
saveData.RAGE = _root.RAGE;
saveData.maxRAGE = _root.maxRAGE;
saveData.minRAGE = _root.minRAGE;
saveData.TotalMoneys = _root.TotalMoneys;
saveData.Souls = _root.Souls;
saveData.MoneyPerSoul = _root.MoneyPerSoul;
saveData.HPperSoul = _root.HPperSoul;
saveData.TotalUpgrades = _root.TotalUpgrades;
saveData.TotalAchievements = _root.TotalAchievements;
saveData.TotalLevelsPlayed = _root.TotalLevelsPlayed;
saveData.TotalKilled = _root.TotalKilled;
saveData.TotalRIPS = _root.TotalRIPS;
saveData.TotalCriticals = _root.TotalCriticals;
saveData.TotalHeadShot = _root.TotalHeadShot;
saveData.TotalCombos = _root.TotalCombos;
saveData.TotalHeadShot = _root.TotalHeadShot;
saveData.TotalCopKills = _root.TotalCopKills;
saveData.TotalCivilKills = _root.TotalCivilKills;
saveData.CivilKillMoneyBonus = _root.CivilKillMoneyBonus;
saveData.CopKillMoneyBonus = _root.CopKillMoneyBonus;
saveData.CivilKillRAGEBonus = _root.CivilKillRAGEBonus;
saveData.CopKillRAGEBonus = _root.CopKillRAGEBonus;
saveData.GunStats = _root.GunStats;
saveData.DualGunStats = _root.DualGunStats;
saveData.RevolverStats = _root.RevolverStats;
saveData.DualRevolverStats = _root.DualRevolverStats;
saveData.SingleShotgunStats = _root.SingleShotgunStats;
saveData.DualShotgunStats = _root.DualShotgunStats;
saveData.MachineGunStats = _root.MachineGunStats;
saveData.DualMachineGunStats = _root.DualMachineGunStats;
saveData.ShotgunStats = _root.ShotgunStats;
saveData.AssaultRiffleStats = _root.AssaultRiffleStats;
saveData.BazookaStats = _root.BazookaStats;
saveData.BerserkStats = _root.BerserkStats;
saveData.MoneyReward = _root.MoneyReward;
saveData.LevelsMoneyArray = _root.LevelsMoneyArray;
saveData.Weapons = _root.Weapons;
saveData.LevelsArray = _root.LevelsArray;
saveData.Levels_Kills = _root.Levels_Kills;
saveData.Levels_RIPS = _root.Levels_RIPS;
saveData.LevelsCops_Kills = _root.LevelsCops_Kills;
saveData.LevelsHead_Shots = _root.LevelsHead_Shots;
saveData.Levels_Criticals = _root.Levels_Criticals;
saveData.Levels_Souls = _root.Levels_Souls;
saveData.Levels_Moneys = _root.Levels_Moneys;
saveData.Achievements = _root.Achievements;
saveData.AchievementsQuote = _root.AchievementsQuote;
saveData.FinalScore = _root.Loses;
saveData.Loses = _root.Loses;
saveData.weaponBulletsBase = _root.weaponBulletsBase;
saveData.Weapon_Kills = _root.Weapon_Kills;
saveData.Kind_Kills = _root.Kind_Kills;
saveData.People_HP = _root.People_HP;
saveData.Bullet_Damage = _root.Bullet_Damage;
saveData.weaponBullets = _root.weaponBullets;
saveData.UpgradesLevel = _root.UpgradesLevel;
saveData.UpgradesPrizes = _root.UpgradesPrizes;
saveData.WeaponPrizes = _root.WeaponPrizes;
saveData.UpgradesLevels = _root.UpgradesLevels;
saveData.Upgrades = _root.Upgrades;
saveData.Boxes = _root.Boxes;
saveData.CurrentHP = _root.CurrentHP;
saveData.CurrentRAGE = _root.CurrentRAGE;
storedData.data.campaignSave = saveData;
flushResult = storedData.flush(1024);
LevelSong = "MenuSong";
playMusic(LevelSong);
play();
MenuButtons(level_btn, _root, "level_Menu", "Levels Menu", "Select which level to play and check your statistics for each one.");
MenuButtons(upgrades_btn, _root, "upgrades_Menu", "Upgrades Menu", "Purchase weapons, upgrade your character and enhance your inventory.");
MenuButtons(medal_btn, _root, "medals_Menu", "Medals Menu", "Collect medals and unlock achievements; this increases your performance in the field.");
shade_mc.play();
mute_btn.onRelease = function () {
if (VolumeMUSIC != 0) {
VolumeMUSIC = 0;
GamePlayMusic.stop();
} else if (VolumeMUSIC == 0) {
VolumeMUSIC = 85;
playMusic(LevelSong);
}
};
muteFX_btn.onRelease = function () {
if (VolumeFX != 0) {
VolumeFX = 0;
} else if (VolumeFX == 0) {
VolumeFX = 100;
}
};
rusty_mc.onRelease = function () {
getURL ("http://www.rustyarcade.com?ref=schyzo-level", "_blank");
};
GuideLink_mc.onRelease = function () {
getURL ("http://www.rustyarcade.com/blog/read/64/Mr.-Schyzo-full-Guide", "_blank");
};
CheatsLink_mc.onRelease = function () {
getURL ("http://www.rustyarcade.com/blog/read/65/Mr.-Schyzo-Cheats-List", "_blank");
};
BadgesLink_mc.onRelease = function () {
getURL ("http://www.rustyarcade.com/achievements", "_blank");
};
if (LevelsArray[20] == true) {
MR_c.gotoAndStop(2);
}
MR_c.onRelease = function () {
if (LevelsArray[20] == true) {
gotoAndPlay ("GameEnd");
} else if (LevelsArray[20] != true) {
_root.TextTitle = "It's Me Mr.C";
_root.TextBody = "Whats up?";
}
};
MR_c.onRollOver = function () {
if (LevelsArray[20] == true) {
_root.TextTitle = "En scene?";
_root.TextBody = "Want to replay the end scene?";
} else if (LevelsArray[20] != true) {
_root.TextTitle = "Hmmmmmm...";
_root.TextBody = "Whats up?";
}
};
MR_c.onRollOut = function () {
_root.TextTitle = "";
_root.TextBody = "";
};
kongregate.stats.submit("SoulsSucked", Souls);
kongregate.stats.submit("TotalKills", TotalKilled);
kongregate.stats.submit("TotalUpgrades", TotalUpgrades);
kongregate.stats.submit("TotalLevelsPlayed", TotalLevelsPlayed);
kongregate.stats.submit("TotalEnemiesKill", TotalCopKills);
Instance of Symbol 2215 MovieClip "rusty_mc" in Frame 121
on (release) {
getURL ("http://www.rustyarcade.com/ref/arrivalinhell/hud", "_blank");
}
Frame 122
stop();
_root._quality = "HIGH";
LevelsButton(tutorial_btn, 0, "tutorial", "Tutorial", "In this level you will learn everything you need to accomplish your missions!");
LevelsButton(Level1_btn, 1, "level1", "The Green passage", "You're gonna make this the red passage. Catch at least 15 souls, to beat this level.");
LevelsButton(Level2_btn, 2, "level2", "The Happy Bridge", "The Happy Bridge is loaded with money. Get over $1000 in cash, to beat this level.");
LevelsButton(Level3_btn, 3, "level3", "Night stroll", "Who doesn't love night sprees? Kill at least 15 Cops, to beat this level.");
LevelsButton(Level4_btn, 4, "level4", "River of Peace", "Oh, it'll be quite peaceful...When you're done. Kill at least 60 people, to beat this level.");
LevelsButton(Level5_btn, 5, "level5", "The joy Lake", "Try not to enjoy yourself too much. Perform more than 13 Headshots, to beat this level.");
LevelsButton(Level6_btn, 6, "level6", "Duck island", "Quack, quack, boom! Perform more than 34 R.I.Ps, to beat this level.");
LevelsButton(Level7_btn, 7, "level7", "The Gift shop", "Give the gift that keeps on giving. Perform more than 21 Criticals, to beat this level.");
LevelsButton(Level8_btn, 8, "level8", "Rocky Ride", "They have no idea just how rocky it's gonna get. Kill at least 137 people, to beat this level.");
LevelsButton(Level9_btn, 9, "level9", "Lucky Lunch", "You're gonna make lunch today, for the vultures that is. Get over $5500 in cash, to beat this level.");
LevelsButton(Level10_btn, 10, "level10", "Swamp of Faith", "This swamp has always been faithful, but so have you. Catch at least 49 souls, to beat this level.");
LevelsButton(Level11_btn, 11, "level11", "Hope Street", "This street lost hope the second you set foot on it. Perform more than 33 Headshots, to beat this level.");
LevelsButton(Level12_btn, 12, "level12", "The Bus Stop", "Time to bust some cops at the bus stop. Kill at least 80 cops, to beat this level.");
LevelsButton(Level13_btn, 13, "level13", "Night and Rides", "More like Nightmare rides. Perform more than 71 R.I.Ps, to beat this level.");
LevelsButton(Level14_btn, 14, "level14", "Day and Rides", "Day may have come, but the nightmare isn't over. Kill at least 207 people, to beat this level.");
LevelsButton(Level15_btn, 15, "level15", "The Green Way", "Go green? no way, go CRITICAL. Perform more than 54 Criticals, to beat this level.");
LevelsButton(Level16_btn, 16, "level16", "The Fun Path", "Oh, it's lots of fun...for you anyway. Get over $14540 in cash, to beat this level.");
LevelsButton(Level17_btn, 17, "level17", "Stone Road", "Show the people of stone road how to be stone cold. Catch at least 145 souls, to beat this level.");
LevelsButton(Level18_btn, 18, "level18", "Seats and trees", "Not even the trees are safe. Perform more than 60 Headshots, to beat this level.");
LevelsButton(Level19_btn, 19, "level19", "The fountain", "Send them all to rest in peace. Perform more than 215 R.I.Ps, to beat this level.");
LevelsButton(Level20_btn, 20, "level20", "The fountain II", "This is it kid, make this place a memorial. Collect more than 300 souls, to beat this level.");
if ((LevelsArray[1] == false) || (LevelsArray[1] == true)) {
tutorial_btn._visible = false;
}
var weaponDatabase = new Array();
var bulletArray = new Array();
var enemyArray = new Array();
var playerWeapon = new Object();
var tempWeapon = {itemName:"Pistol", GunType:"Gun", bulletNumber:GunStats[0], bulletMC:GunStats[1], shellMC:GunStats[2], bulletOffset:GunStats[3], bulletSpeed:GunStats[4], bulletMaxAge:GunStats[5], barrelLength:GunStats[6], reloadComplete:true, reloadSpeed:GunStats[7], BulletCount:GunStats[8], BulletDamage:GunStats[9], RipSoulChance:GunStats[10], CriticalChance:GunStats[11], HeadShotChance:GunStats[12], GunSound:GunStats[13], reloadTimer:0};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"DualGun", GunType:"DualGun", bulletNumber:DualGunStats[0], bulletMC:DualGunStats[1], shellMC:DualGunStats[2], bulletOffset:DualGunStats[3], bulletSpeed:DualGunStats[4], bulletMaxAge:DualGunStats[5], barrelLength:DualGunStats[6], reloadComplete:true, reloadSpeed:DualGunStats[7], BulletCount:DualGunStats[8], BulletDamage:DualGunStats[9], RipSoulChance:DualGunStats[10], CriticalChance:DualGunStats[11], HeadShotChance:DualGunStats[12], GunSound:DualGunStats[13], reloadTimer:0};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"Revolver", GunType:"Revolver", bulletNumber:RevolverStats[0], bulletMC:RevolverStats[1], shellMC:RevolverStats[2], bulletOffset:RevolverStats[3], bulletSpeed:RevolverStats[4], bulletMaxAge:RevolverStats[5], barrelLength:RevolverStats[6], reloadComplete:true, reloadSpeed:RevolverStats[7], BulletCount:RevolverStats[8], BulletDamage:RevolverStats[9], RipSoulChance:RevolverStats[10], CriticalChance:RevolverStats[11], HeadShotChance:RevolverStats[12], GunSound:RevolverStats[13], reloadTimer:0};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"DualRevolver", GunType:"DualRevolver", bulletNumber:DualRevolverStats[0], bulletMC:DualRevolverStats[1], shellMC:DualRevolverStats[2], bulletOffset:DualRevolverStats[3], bulletSpeed:DualRevolverStats[4], bulletMaxAge:DualRevolverStats[5], barrelLength:DualRevolverStats[6], reloadComplete:true, reloadSpeed:DualRevolverStats[7], BulletCount:DualRevolverStats[8], BulletDamage:DualRevolverStats[9], RipSoulChance:DualRevolverStats[10], CriticalChance:DualRevolverStats[11], HeadShotChance:DualRevolverStats[12], GunSound:DualRevolverStats[13], reloadTimer:0};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"SingleShotgun", GunType:"SingleShotgun", bulletNumber:SingleShotgunStats[0], bulletMC:SingleShotgunStats[1], shellMC:SingleShotgunStats[2], bulletOffset:SingleShotgunStats[3], bulletSpeed:SingleShotgunStats[4], bulletMaxAge:SingleShotgunStats[5], barrelLength:SingleShotgunStats[6], reloadComplete:true, reloadSpeed:SingleShotgunStats[7], BulletCount:SingleShotgunStats[8], BulletDamage:SingleShotgunStats[9], RipSoulChance:SingleShotgunStats[10], CriticalChance:SingleShotgunStats[11], HeadShotChance:SingleShotgunStats[12], GunSound:SingleShotgunStats[13], reloadTimer:0};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"DualShotgun", GunType:"DualShotGun", bulletNumber:DualShotgunStats[0], bulletMC:DualShotgunStats[1], shellMC:DualShotgunStats[2], bulletOffset:DualShotgunStats[3], bulletSpeed:DualShotgunStats[4], bulletMaxAge:DualShotgunStats[5], barrelLength:DualShotgunStats[6], reloadComplete:true, reloadSpeed:DualShotgunStats[7], BulletCount:DualShotgunStats[8], BulletDamage:DualShotgunStats[9], RipSoulChance:DualShotgunStats[10], CriticalChance:DualShotgunStats[11], HeadShotChance:DualShotgunStats[12], GunSound:DualShotgunStats[13], reloadTimer:0};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"SingleMachineGun", GunType:"SingleMachineGun", bulletNumber:MachineGunStats[0], bulletMC:MachineGunStats[1], shellMC:MachineGunStats[2], bulletOffset:MachineGunStats[3], bulletSpeed:MachineGunStats[4], bulletMaxAge:MachineGunStats[5], barrelLength:MachineGunStats[6], reloadComplete:true, reloadSpeed:MachineGunStats[7], BulletCount:MachineGunStats[8], BulletDamage:MachineGunStats[9], RipSoulChance:MachineGunStats[10], CriticalChance:MachineGunStats[11], HeadShotChance:MachineGunStats[12], GunSound:MachineGunStats[13], reloadTimer:0};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"DualMachineGun", GunType:"DualMachineGun", bulletNumber:DualMachineGunStats[0], bulletMC:DualMachineGunStats[1], shellMC:DualMachineGunStats[2], bulletOffset:DualMachineGunStats[3], bulletSpeed:DualMachineGunStats[4], bulletMaxAge:DualMachineGunStats[5], barrelLength:DualMachineGunStats[6], reloadComplete:true, reloadSpeed:DualMachineGunStats[7], BulletCount:DualMachineGunStats[8], BulletDamage:DualMachineGunStats[9], RipSoulChance:DualMachineGunStats[10], CriticalChance:DualMachineGunStats[11], HeadShotChance:DualMachineGunStats[12], GunSound:DualMachineGunStats[13], reloadTimer:0};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"ShotGun", GunType:"ShotGun", bulletNumber:ShotgunStats[0], bulletMC:ShotgunStats[1], shellMC:ShotgunStats[2], bulletOffset:ShotgunStats[3], bulletSpeed:ShotgunStats[4], bulletMaxAge:ShotgunStats[5], barrelLength:ShotgunStats[6], reloadComplete:true, reloadSpeed:ShotgunStats[7], BulletCount:ShotgunStats[8], BulletDamage:ShotgunStats[9], RipSoulChance:ShotgunStats[10], CriticalChance:ShotgunStats[11], HeadShotChance:ShotgunStats[12], GunSound:ShotgunStats[13], reloadTimer:0};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"MachineGun", GunType:"MachineGun", bulletNumber:AssaultRiffleStats[0], bulletMC:AssaultRiffleStats[1], shellMC:AssaultRiffleStats[2], bulletOffset:AssaultRiffleStats[3], bulletSpeed:AssaultRiffleStats[4], bulletMaxAge:AssaultRiffleStats[5], barrelLength:AssaultRiffleStats[6], reloadComplete:true, reloadSpeed:AssaultRiffleStats[7], BulletCount:AssaultRiffleStats[8], BulletDamage:AssaultRiffleStats[9], RipSoulChance:AssaultRiffleStats[10], CriticalChance:AssaultRiffleStats[11], HeadShotChance:AssaultRiffleStats[12], GunSound:AssaultRiffleStats[13], reloadTimer:0};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"Bazooka", GunType:"Bazooka", bulletNumber:BazookaStats[0], bulletMC:BazookaStats[1], shellMC:BazookaStats[2], bulletOffset:BazookaStats[3], bulletSpeed:BazookaStats[4], bulletMaxAge:BazookaStats[5], barrelLength:BazookaStats[6], reloadComplete:true, reloadSpeed:BazookaStats[7], BulletCount:BazookaStats[8], BulletDamage:BazookaStats[9], RipSoulChance:BazookaStats[10], CriticalChance:BazookaStats[11], HeadShotChance:BazookaStats[12], GunSound:BazookaStats[13], reloadTimer:0};
weaponDatabase.push(tempWeapon);
var tempWeapon = {itemName:"Berserk", GunType:"Berserk", bulletNumber:BerserkStats[0], bulletMC:BerserkStats[1], shellMC:BerserkStats[2], bulletOffset:BerserkStats[3], bulletSpeed:BerserkStats[4], bulletMaxAge:BerserkStats[5], barrelLength:BerserkStats[6], reloadComplete:true, reloadSpeed:BerserkStats[7], BulletCount:BerserkStats[8], BulletDamage:BerserkStats[9], RipSoulChance:BerserkStats[10], CriticalChance:BerserkStats[11], HeadShotChance:BerserkStats[12], GunSound:BerserkStats[13], reloadTimer:0};
weaponDatabase.push(tempWeapon);
MenuButtons(level_btn, _root, "level_Menu", "Levels Menu", "Select which level to play and check your statistics for each one.");
MenuButtons(upgrades_btn, _root, "upgrades_Menu", "Upgrades Menu", "Purchase weapons, upgrade your character and enhance your inventory.");
MenuButtons(medal_btn, _root, "medals_Menu", "Medals Menu", "Collect medals and unlock achievements; this increases your performance in the field.");
shade_mc.play();
mute_btn.onRelease = function () {
if (VolumeMUSIC != 0) {
VolumeMUSIC = 0;
GamePlayMusic.stop();
} else if (VolumeMUSIC == 0) {
VolumeMUSIC = 85;
playMusic(LevelSong);
}
};
muteFX_btn.onRelease = function () {
if (VolumeFX != 0) {
VolumeFX = 0;
} else if (VolumeFX == 0) {
VolumeFX = 100;
}
};
rusty_mc.onRelease = function () {
getURL ("http://www.rustyarcade.com?ref=schyzo-level", "_blank");
};
GuideLink_mc.onRelease = function () {
getURL ("http://www.rustyarcade.com/blog/read/64/Mr.-Schyzo-full-Guide", "_blank");
};
CheatsLink_mc.onRelease = function () {
getURL ("http://www.rustyarcade.com/blog/read/65/Mr.-Schyzo-Cheats-List", "_blank");
};
BadgesLink_mc.onRelease = function () {
getURL ("http://www.rustyarcade.com/achievements", "_blank");
};
if (LevelsArray[20] == true) {
MR_c.gotoAndStop(2);
}
MR_c.onRelease = function () {
if (LevelsArray[20] == true) {
gotoAndPlay ("GameEnd");
} else if (LevelsArray[20] != true) {
_root.TextTitle = "It's Me Mr.C";
_root.TextBody = "Whats up?";
}
};
MR_c.onRollOver = function () {
if (LevelsArray[20] == true) {
_root.TextTitle = "En scene?";
_root.TextBody = "Want to replay the end scene?";
} else if (LevelsArray[20] != true) {
_root.TextTitle = "Hmmmmmm...";
_root.TextBody = "Whats up?";
}
};
MR_c.onRollOut = function () {
_root.TextTitle = "";
_root.TextBody = "";
};
Frame 132
MR_c.onEnterFrame = function () {
weaponBullets = new Array(weaponBulletsBase[0], weaponBulletsBase[1], weaponBulletsBase[2], weaponBulletsBase[3], weaponBulletsBase[4], weaponBulletsBase[5], weaponBulletsBase[6], weaponBulletsBase[7], weaponBulletsBase[8], weaponBulletsBase[9], weaponBulletsBase[10], weaponBulletsBase[11]);
UpgradesButtons(upgrade1_mc, upgradesList_mc, "hero", "Mr. Schyz", "Upgrade Mr. Schyz to perform better on the battle field and win our ultimate goal!", GunStats[9], GunStats[4], GunStats[0], weaponReloadTime[0], weaponBullets[0], GunStats[10], GunStats[12], GunStats[11], 800, true, false, false, false, false, false, false, false, false, false, false, false);
UpgradesButtons(upgrade2_mc, upgradesList_mc, "gun", "Gun Upgrades", "The hand gun is the most basic weapon but don't underestimate it. With full upgrades and mastery its deadly potential is unlocked!", GunStats[9], GunStats[4], GunStats[0], weaponReloadTime[0], weaponBullets[0], GunStats[10], GunStats[12], GunStats[11], WeaponPrizes[1], false, true, false, false, false, false, false, false, false, false, false, false);
UpgradesButtons(upgrade3_mc, upgradesList_mc, "dualGun", "Dual Guns", "Deal double damage with these dual guns! with higher chances to perform 'RIP' combos and criticals, these are not to be ignored.", DualGunStats[9], DualGunStats[4], DualGunStats[0], weaponReloadTime[1], weaponBullets[1], DualGunStats[10], DualGunStats[12], DualGunStats[11], WeaponPrizes[2], false, false, true, false, false, false, false, false, false, false, false, false);
UpgradesButtons(upgrade4_mc, upgradesList_mc, "revolver", "Revolver", "Get your hands on the Old West with this death dealer! What it lacks in reload speed is made up by its high ability to perform headshots and the highest rewards per kill.", RevolverStats[9], RevolverStats[4], RevolverStats[0], weaponReloadTime[2], weaponBullets[2], RevolverStats[10], RevolverStats[12], RevolverStats[11], WeaponPrizes[3], false, false, false, true, false, false, false, false, false, false, false, false);
UpgradesButtons(upgrade5_mc, upgradesList_mc, "dualRevolver", "Dual Revolvers", "Two weapons always are better than one! Use these 2 revolvers to increase the number of shots before reloading. The reloading time still bites though.", DualRevolverStats[9], DualRevolverStats[4], DualRevolverStats[0], weaponReloadTime[3], weaponBullets[3], DualRevolverStats[10], DualRevolverStats[12], DualRevolverStats[11], WeaponPrizes[4], false, false, false, false, true, false, false, false, false, false, false, false);
UpgradesButtons(upgrade6_mc, upgradesList_mc, "sShotgun", "Sawed-off Shotgun", "Two shots, many bodies. This gun boasts a strong critical rate and a wide range of fire.", SingleShotgunStats[9], SingleShotgunStats[4], SingleShotgunStats[0], weaponReloadTime[4], weaponBullets[4], SingleShotgunStats[10], SingleShotgunStats[12], SingleShotgunStats[11], WeaponPrizes[5], false, false, false, false, false, true, false, false, false, false, false, false);
UpgradesButtons(upgrade7_mc, upgradesList_mc, "dsShotgun", "Dual Sawed-off Shotguns", "Double your critical ratio and shots before reloading, what's not to love?", DualShotgunStats[9], DualShotgunStats[4], DualShotgunStats[0], weaponReloadTime[5], weaponBullets[5], DualShotgunStats[10], DualShotgunStats[12], DualShotgunStats[11], WeaponPrizes[6], false, false, false, false, false, false, true, false, false, false, false, false);
UpgradesButtons(upgrade8_mc, upgradesList_mc, "machineGun", "Sub Machine Gun", "High fire rate, good reloading time and decent bullet damage. The best all-purpose weapon hands-down.", MachineGunStats[9], MachineGunStats[4], MachineGunStats[0], weaponReloadTime[6], weaponBullets[6], MachineGunStats[10], MachineGunStats[12], MachineGunStats[11], WeaponPrizes[7], false, false, false, false, false, false, false, true, false, false, false, false);
UpgradesButtons(upgrade9_mc, upgradesList_mc, "dualMachineGun", "Dual Machine Guns", "A man with two machine guns is surely a threat! Bring chaos to the park by performing double damage.", DualMachineGunStats[9], DualMachineGunStats[4], DualMachineGunStats[0], weaponReloadTime[7], weaponBullets[7], DualMachineGunStats[10], DualMachineGunStats[12], DualMachineGunStats[11], WeaponPrizes[8], false, false, false, false, false, false, false, false, true, false, false, false);
UpgradesButtons(upgrade10_mc, upgradesList_mc, "shotgun", "Tactical Shotgun", "A professional worker, needs professional tools. A perfectly balanced tactical shotgun, for massive mayhem!", ShotgunStats[9], ShotgunStats[4], ShotgunStats[0], weaponReloadTime[8], weaponBullets[8], ShotgunStats[10], ShotgunStats[12], ShotgunStats[11], WeaponPrizes[9], false, false, false, false, false, false, false, false, false, true, false, false);
UpgradesButtons(upgrade11_mc, upgradesList_mc, "assaultRifle", "Assault Rifle", "Kill every one in your way with this awe-inspiring weapon. The assault rifle brings higher damage, an unmatched rate of fire, and awesome reloading time.", AssaultRiffleStats[9], AssaultRiffleStats[4], AssaultRiffleStats[0], weaponReloadTime[9], weaponBullets[9], AssaultRiffleStats[10], AssaultRiffleStats[12], AssaultRiffleStats[11], WeaponPrizes[10], false, false, false, false, false, false, false, false, false, false, true, false);
UpgradesButtons(upgrade12_mc, upgradesList_mc, "rocketLauncher", "Rocket Launcher", "Become the ultimate concussive force of decimation. Everything in your path is dust.", BazookaStats[9], BazookaStats[4], BazookaStats[0], weaponReloadTime[10], weaponBullets[10], BazookaStats[10], BazookaStats[12], BazookaStats[11], WeaponPrizes[11], false, false, false, false, false, false, false, false, false, false, false, true);
OverDesc("Bullet Proof Vest", "Increase your HP by purchasing and upgrading this bullet proof vest.", upgradesList_mc.upgrade1_mc, 1);
OverDesc("Berserk Rage", "Make your berserk mode last longer, by purchasing and upgrading this perk.", upgradesList_mc.upgrade2_mc, 2);
OverDesc("Gold Amulet", "Get more money and HP each time you catch a soul, by purchasing and upgrading this Amulet.", upgradesList_mc.upgrade3_mc, 3);
OverDesc("Orange Stripes", "Get Money and Rage points each time you make a combo higher than 10, Orange is a magic color!", upgradesList_mc.upgrade4_mc, 4);
OverDesc("Extra Boxes", "Increase your stash of boxes, so you can hide more times per level. More hiding = less alarm.", upgradesList_mc.upgrade5_mc, 5);
OverDesc("Special Box", "Your portable hospital in a box, your health goes up by 15 at small intervals while hiding.", upgradesList_mc.upgrade6_mc, 6);
OverDesc("Enlarge Magazine", "Make your gun shoot more rounds before reloading, by purchasing and upgrading this enlarger magazine.", upgradesList_mc.upgrade7_mc, 7);
OverDesc("Shooting Gloves", "Increase your chances to make a critical hit. Just like the kind the profressionals wear!.", upgradesList_mc.upgrade8_mc, 8);
OverDesc("Gun Silencer", "Your gun won't activate the alarm until you land a bullet on some one. For when you need to keep it hush-hush.", upgradesList_mc.upgrade9_mc, 9);
OverDesc("Firing Mechanism", "Increase your Gun shooting speed by adjusting the Firing Rate Mechanism.", upgradesList_mc.upgrade10_mc, 10);
OverDesc("Bigger Bullets", "Make your Dual Guns and Gun do more damage! bigger bullets, more unfortunate targets.", upgradesList_mc.upgrade11_mc, 11);
OverDesc("Enlarge Magazines", "Make your Dual Guns shoot more rounds before reloading, upgradeable.", upgradesList_mc.upgrade12_mc, 12);
OverDesc("The Hammers", "Increase your chances to make a R.I.P with your Dual Guns, upgradeable.", upgradesList_mc.upgrade13_mc, 13);
OverDesc("Laser Sight", "Increase your chances to land a critical hit with your Dual Guns.", upgradesList_mc.upgrade14_mc, 14);
OverDesc("Wider Barrel", "For bigger bullets and more damage. Bigger is better!", upgradesList_mc.upgrade15_mc, 15);
OverDesc("Larger Cannon", "Speed up those bullets, you don't have all day!", upgradesList_mc.upgrade16_mc, 16);
OverDesc("Jesse James Bracelet", "Worn by the fabled Jesse james, head shots come easy when sporting this magical artifact.", upgradesList_mc.upgrade17_mc, 17);
OverDesc("Sacred Wood Handle", "Increase the reward you get for killing with this weapon, upgradeable.", upgradesList_mc.upgrade18_mc, 18);
OverDesc("Silver Bullets", "Increase your chances to make a R.I.P with the Dual Revolvers and the Revolver, it's time for a dirt nap.", upgradesList_mc.upgrade19_mc, 19);
OverDesc("Wider Barrel", "This Wider barrel holds bigger bullets, for more damage. Duh.", upgradesList_mc.upgrade20_mc, 20);
OverDesc("Jesse James Gloves", "Another priceless treasure that was once worn by the man himself. Head shot rating goes up!", upgradesList_mc.upgrade21_mc, 21);
OverDesc("Revolver Silencers", "Your Dual Revolvers won't activate the alarm until you land a bullet on some one; better keep your cowboy status on the down-low.", upgradesList_mc.upgrade22_mc, 22);
OverDesc("Bigger Shells", "Make your Shells bigger so they can hold more shots.", upgradesList_mc.upgrade23_mc, 23);
OverDesc("Spike Shots", "Sharp things hurt more! upgradeable.", upgradesList_mc.upgrade24_mc, 24);
OverDesc("Crafted Wood Handle", "A special handle that raises your critical hit rate, it's scientifically proven! Maybe...", upgradesList_mc.upgrade25_mc, 25);
OverDesc("Gold Decoration", "Increase your chances to make a R.I.P with your Sawed Shotgun, send 'em to the grave in style.", upgradesList_mc.upgrade26_mc, 26);
OverDesc("Capone's Gloves", "Increase your chances to make a Headshot with this weapon, by purchasing and upgrading these Leather Gloves.", upgradesList_mc.upgrade27_mc, 27);
OverDesc("The Hammers", "Increase your shooting speed by adjusting the hammers.", upgradesList_mc.upgrade28_mc, 28);
OverDesc("Larger Cannon", "Longer cannon, more velocity on your bullets.", upgradesList_mc.upgrade29_mc, 29);
OverDesc("Capone's Bracelet", "Increase the reward you get for killing with this weapon, If only you had a tommy gun...", upgradesList_mc.upgrade30_mc, 30);
OverDesc("Enlarge Magazine", "Make your Machine Gun shoot more rounds before reloading, upgradeable.", upgradesList_mc.upgrade31_mc, 31);
OverDesc("Larger Bullets", "Increase your chances to make a Headshot with the Machine gun, That's no small feat.", upgradesList_mc.upgrade32_mc, 32);
OverDesc("Tempo's Watch", "Increase the reward you get for killing with this weapon, it's time to up the tempo.", upgradesList_mc.upgrade33_mc, 33);
OverDesc("Machine gun Silencer", "Your Machine gun won't activate the alarm until you land a bullet on some one.", upgradesList_mc.upgrade34_mc, 34);
OverDesc("Enlarge Magazines", "Make your Dual Machine Guns shoot more rounds before reloading, upgradeable.", upgradesList_mc.upgrade35_mc, 35);
OverDesc("Machine gun Butts", "Increase your chances to make a R.I.P with this weapon, it's not the butt you're thinking about.", upgradesList_mc.upgrade36_mc, 36);
OverDesc("Mr.S Bracelet", "Increase your chances to make a Critical Hit, puts the 's' in hurts.", upgradesList_mc.upgrade37_mc, 37);
OverDesc("Silver Bullets", "Make more damage with this weapon, if only there were some werewolves...", upgradesList_mc.upgrade38_mc, 38);
OverDesc("Bigger Shells", "Make your Tactical Shotgun, shells bigger so they can hold more shots.", upgradesList_mc.upgrade39_mc, 39);
OverDesc("Laser Sight", "Increase your chances to make a Critical Hit with this weapon, by purchasing this laser sight.", upgradesList_mc.upgrade40_mc, 40);
OverDesc("The Hammer", "Increase your shooting speed by adjusting The Hammer.", upgradesList_mc.upgrade41_mc, 41);
OverDesc("Grip Handle", "Increase your chances to make a R.I.P with this weapon, by purchasing and upgrading this special Handle.", upgradesList_mc.upgrade42_mc, 42);
OverDesc("Larger Bullets", "increase your damage with this weapon!", upgradesList_mc.upgrade43_mc, 43);
OverDesc("Enlarge Magazine", "Make your Assault Rifle shoot more rounds before reloading, upgradeable", upgradesList_mc.upgrade44_mc, 44);
OverDesc("Telescopic Sight", "Increase your chances to make a Headshoot with this weapon, upgradeable.", upgradesList_mc.upgrade45_mc, 45);
OverDesc("Assassin's Gloves", "Increase the reward you get for killing with this weapon, It's time to do work.", upgradesList_mc.upgrade46_mc, 46);
OverDesc("Power Rockets", "And you thought rockets were destructive enough! upgradeable.", upgradesList_mc.upgrade47_mc, 47);
OverDesc("Grip Handle", "Increase your chances to make a R.I.P with this weapon, get a grip on your gunnery.", upgradesList_mc.upgrade48_mc, 48);
OverDesc("Warlord's Watch", "Increase the reward you get for killing with this weapon, watch out for the Warlord!", upgradesList_mc.upgrade49_mc, 49);
OverDesc("Telescopic Sight", "Increase your chances to land a Critical hit with this weapon, upgradeable.", upgradesList_mc.upgrade50_mc, 50);
OverDesc("Mr. Schyz HP", "This is the amount of HP you currently have. The more the better of course.", upgradesList_mc.HPmenu_mc);
OverDesc("Rage Points", "The more Rage Points you got, the longer you last while you are in Berserk Mode. Free the beast!", upgradesList_mc.RAGEmenu_mc);
OverDesc("Boxes", "Buy boxes so you can hide more times on each level.", upgradesList_mc.BOXESmenu_mc);
OverDesc("Money Per Soul", "Increase the monetary reward you get per soul you catch. It pays being the grim reaper.", upgradesList_mc.SOULmenu_mc);
OverDesc("Weapon Damage", "The damage you can do per bullet with this weapon.", upgradesList_mc.damage_mc);
OverDesc("Bullet Speed", "The speed of this weapons bullets, the higher the faster.", upgradesList_mc.fire_rate_mc);
OverDesc("Shots", "The amount of bullets this weapon releases per shoot.", upgradesList_mc.shots_mc);
OverDesc("Reloading Time", "The time you wait until the clip is exchanged, this stat can't be upgraded.", upgradesList_mc.reload_time_mc);
OverDesc("Rounds", "The amount of shots you can make before reloading this weapon.", upgradesList_mc.rounds_mc);
OverDesc("R.I.P Chance", "The Chance you get to reap the soul from a body.", upgradesList_mc.rip_mc);
OverDesc("Headshot Chance", "The Chance you get to make a Headshot. Remember to shoot the head of course.", upgradesList_mc.h_s_mc);
OverDesc("Critical Chance", "The chance you have to kill someone in one shot. It's of critical importance!", upgradesList_mc.critical_mc);
upgradesList_mc.upgrade1_mc.price_txt.text = UpgradesPrizes[1];
upgradesList_mc.upgrade1_mc.level_txt.text = UpgradesLevel[1];
upgradesList_mc.upgrade2_mc.price_txt.text = UpgradesPrizes[2];
upgradesList_mc.upgrade2_mc.level_txt.text = UpgradesLevel[2];
upgradesList_mc.upgrade3_mc.price_txt.text = UpgradesPrizes[3];
upgradesList_mc.upgrade3_mc.level_txt.text = UpgradesLevel[3];
upgradesList_mc.upgrade4_mc.price_txt.text = UpgradesPrizes[4];
upgradesList_mc.upgrade4_mc.level_txt.text = UpgradesLevel[4];
upgradesList_mc.upgrade5_mc.price_txt.text = UpgradesPrizes[5];
upgradesList_mc.upgrade5_mc.level_txt.text = UpgradesLevel[5];
upgradesList_mc.upgrade6_mc.price_txt.text = UpgradesPrizes[6];
upgradesList_mc.upgrade6_mc.level_txt.text = UpgradesLevel[6];
upgradesList_mc.upgrade7_mc.price_txt.text = UpgradesPrizes[7];
upgradesList_mc.upgrade7_mc.level_txt.text = UpgradesLevel[7];
upgradesList_mc.upgrade8_mc.price_txt.text = UpgradesPrizes[8];
upgradesList_mc.upgrade8_mc.level_txt.text = UpgradesLevel[8];
upgradesList_mc.upgrade9_mc.price_txt.text = UpgradesPrizes[9];
upgradesList_mc.upgrade9_mc.level_txt.text = UpgradesLevel[9];
upgradesList_mc.upgrade10_mc.price_txt.text = UpgradesPrizes[10];
upgradesList_mc.upgrade10_mc.level_txt.text = UpgradesLevel[10];
upgradesList_mc.upgrade11_mc.price_txt.text = UpgradesPrizes[11];
upgradesList_mc.upgrade11_mc.level_txt.text = UpgradesLevel[11];
upgradesList_mc.upgrade12_mc.price_txt.text = UpgradesPrizes[12];
upgradesList_mc.upgrade12_mc.level_txt.text = UpgradesLevel[12];
upgradesList_mc.upgrade13_mc.price_txt.text = UpgradesPrizes[13];
upgradesList_mc.upgrade13_mc.level_txt.text = UpgradesLevel[13];
upgradesList_mc.upgrade14_mc.price_txt.text = UpgradesPrizes[14];
upgradesList_mc.upgrade14_mc.level_txt.text = UpgradesLevel[14];
upgradesList_mc.upgrade15_mc.price_txt.text = UpgradesPrizes[15];
upgradesList_mc.upgrade15_mc.level_txt.text = UpgradesLevel[15];
upgradesList_mc.upgrade16_mc.price_txt.text = UpgradesPrizes[16];
upgradesList_mc.upgrade16_mc.level_txt.text = UpgradesLevel[16];
upgradesList_mc.upgrade17_mc.price_txt.text = UpgradesPrizes[17];
upgradesList_mc.upgrade17_mc.level_txt.text = UpgradesLevel[17];
upgradesList_mc.upgrade18_mc.price_txt.text = UpgradesPrizes[18];
upgradesList_mc.upgrade18_mc.level_txt.text = UpgradesLevel[18];
upgradesList_mc.upgrade19_mc.price_txt.text = UpgradesPrizes[19];
upgradesList_mc.upgrade19_mc.level_txt.text = UpgradesLevel[19];
upgradesList_mc.upgrade20_mc.price_txt.text = UpgradesPrizes[20];
upgradesList_mc.upgrade20_mc.level_txt.text = UpgradesLevel[20];
upgradesList_mc.upgrade21_mc.price_txt.text = UpgradesPrizes[21];
upgradesList_mc.upgrade21_mc.level_txt.text = UpgradesLevel[21];
upgradesList_mc.upgrade22_mc.price_txt.text = UpgradesPrizes[22];
upgradesList_mc.upgrade22_mc.level_txt.text = UpgradesLevel[22];
upgradesList_mc.upgrade23_mc.price_txt.text = UpgradesPrizes[23];
upgradesList_mc.upgrade23_mc.level_txt.text = UpgradesLevel[23];
upgradesList_mc.upgrade24_mc.price_txt.text = UpgradesPrizes[24];
upgradesList_mc.upgrade24_mc.level_txt.text = UpgradesLevel[24];
upgradesList_mc.upgrade25_mc.price_txt.text = UpgradesPrizes[25];
upgradesList_mc.upgrade25_mc.level_txt.text = UpgradesLevel[25];
upgradesList_mc.upgrade26_mc.price_txt.text = UpgradesPrizes[26];
upgradesList_mc.upgrade26_mc.level_txt.text = UpgradesLevel[26];
upgradesList_mc.upgrade27_mc.price_txt.text = UpgradesPrizes[27];
upgradesList_mc.upgrade27_mc.level_txt.text = UpgradesLevel[27];
upgradesList_mc.upgrade28_mc.price_txt.text = UpgradesPrizes[28];
upgradesList_mc.upgrade28_mc.level_txt.text = UpgradesLevel[28];
upgradesList_mc.upgrade29_mc.price_txt.text = UpgradesPrizes[29];
upgradesList_mc.upgrade29_mc.level_txt.text = UpgradesLevel[29];
upgradesList_mc.upgrade30_mc.price_txt.text = UpgradesPrizes[30];
upgradesList_mc.upgrade30_mc.level_txt.text = UpgradesLevel[30];
upgradesList_mc.upgrade31_mc.price_txt.text = UpgradesPrizes[31];
upgradesList_mc.upgrade31_mc.level_txt.text = UpgradesLevel[31];
upgradesList_mc.upgrade32_mc.price_txt.text = UpgradesPrizes[32];
upgradesList_mc.upgrade32_mc.level_txt.text = UpgradesLevel[32];
upgradesList_mc.upgrade33_mc.price_txt.text = UpgradesPrizes[33];
upgradesList_mc.upgrade33_mc.level_txt.text = UpgradesLevel[33];
upgradesList_mc.upgrade34_mc.price_txt.text = UpgradesPrizes[34];
upgradesList_mc.upgrade34_mc.level_txt.text = UpgradesLevel[34];
upgradesList_mc.upgrade35_mc.price_txt.text = UpgradesPrizes[35];
upgradesList_mc.upgrade35_mc.level_txt.text = UpgradesLevel[35];
upgradesList_mc.upgrade36_mc.price_txt.text = UpgradesPrizes[36];
upgradesList_mc.upgrade36_mc.level_txt.text = UpgradesLevel[36];
upgradesList_mc.upgrade37_mc.price_txt.text = UpgradesPrizes[37];
upgradesList_mc.upgrade37_mc.level_txt.text = UpgradesLevel[37];
upgradesList_mc.upgrade38_mc.price_txt.text = UpgradesPrizes[38];
upgradesList_mc.upgrade38_mc.level_txt.text = UpgradesLevel[38];
upgradesList_mc.upgrade39_mc.price_txt.text = UpgradesPrizes[39];
upgradesList_mc.upgrade39_mc.level_txt.text = UpgradesLevel[39];
upgradesList_mc.upgrade40_mc.price_txt.text = UpgradesPrizes[40];
upgradesList_mc.upgrade40_mc.level_txt.text = UpgradesLevel[40];
upgradesList_mc.upgrade41_mc.price_txt.text = UpgradesPrizes[41];
upgradesList_mc.upgrade41_mc.level_txt.text = UpgradesLevel[41];
upgradesList_mc.upgrade42_mc.price_txt.text = UpgradesPrizes[42];
upgradesList_mc.upgrade42_mc.level_txt.text = UpgradesLevel[42];
upgradesList_mc.upgrade43_mc.price_txt.text = UpgradesPrizes[43];
upgradesList_mc.upgrade43_mc.level_txt.text = UpgradesLevel[43];
upgradesList_mc.upgrade44_mc.price_txt.text = UpgradesPrizes[44];
upgradesList_mc.upgrade44_mc.level_txt.text = UpgradesLevel[44];
upgradesList_mc.upgrade45_mc.price_txt.text = UpgradesPrizes[45];
upgradesList_mc.upgrade45_mc.level_txt.text = UpgradesLevel[45];
upgradesList_mc.upgrade46_mc.price_txt.text = UpgradesPrizes[46];
upgradesList_mc.upgrade46_mc.level_txt.text = UpgradesLevel[46];
upgradesList_mc.upgrade47_mc.price_txt.text = UpgradesPrizes[47];
upgradesList_mc.upgrade47_mc.level_txt.text = UpgradesLevel[47];
upgradesList_mc.upgrade48_mc.price_txt.text = UpgradesPrizes[48];
upgradesList_mc.upgrade48_mc.level_txt.text = UpgradesLevel[48];
upgradesList_mc.upgrade49_mc.price_txt.text = UpgradesPrizes[49];
upgradesList_mc.upgrade49_mc.level_txt.text = UpgradesLevel[49];
upgradesList_mc.upgrade50_mc.price_txt.text = UpgradesPrizes[50];
upgradesList_mc.upgrade50_mc.level_txt.text = UpgradesLevel[50];
weaponsUpgradesMenu("Gun", 0, upgrade2_mc, upgradesList_mc.buyGun_mc, WeaponPrizes[1]);
weaponsUpgradesMenu("Dual Guns", 1, upgrade3_mc, upgradesList_mc.buyDualGun_mc, WeaponPrizes[2]);
weaponsUpgradesMenu("Revolver", 2, upgrade4_mc, upgradesList_mc.buyRevolver_mc, WeaponPrizes[3]);
weaponsUpgradesMenu("Dual Revolvers", 3, upgrade5_mc, upgradesList_mc.buyDualRevolver_mc, WeaponPrizes[4]);
weaponsUpgradesMenu("Sawed Shotgun", 4, upgrade6_mc, upgradesList_mc.buyShotgun_mc, WeaponPrizes[5]);
weaponsUpgradesMenu("Dual Shotguns", 5, upgrade7_mc, upgradesList_mc.buyDualShotgun_mc, WeaponPrizes[6]);
weaponsUpgradesMenu("Sub Machine Gun", 6, upgrade8_mc, upgradesList_mc.buyMachineGun_mc, WeaponPrizes[7]);
weaponsUpgradesMenu("Dual Machine Guns", 7, upgrade9_mc, upgradesList_mc.buyDualMachineGun_mc, WeaponPrizes[8]);
weaponsUpgradesMenu("Tactical Shotgun", 8, upgrade10_mc, upgradesList_mc.buyShotGun_mc, WeaponPrizes[9]);
weaponsUpgradesMenu("Assault Rifle", 9, upgrade11_mc, upgradesList_mc.buyAssaultRifle_mc, WeaponPrizes[10]);
weaponsUpgradesMenu("Rocket Launcher", 10, upgrade12_mc, upgradesList_mc.buyRocketLauncher_mc, WeaponPrizes[11]);
UpgradesManager();
upgradesList_mc.upgrade1_mc.onRelease = function () {
if ((UpgradesLevel[1] < UpgradesMaxLevel[1]) && (UpgradesPrizes[1] <= TotalMoneys)) {
UpgradesLevel[1] = UpgradesLevel[1] + 1;
HP = HP + 100;
TotalUpgrades = TotalUpgrades + 1;
Upgrades[0] = true;
TotalMoneys = TotalMoneys - UpgradesPrizes[1];
UpgradesPrizes[1] = UpgradesPrizes[1] + 300;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[1] >= UpgradesMaxLevel[1]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[1] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade2_mc.onRelease = function () {
if ((UpgradesLevel[2] < UpgradesMaxLevel[2]) && (UpgradesPrizes[2] <= TotalMoneys)) {
UpgradesLevel[2] = UpgradesLevel[2] + 1;
maxRAGE = maxRAGE + 30;
TotalUpgrades = TotalUpgrades + 1;
Upgrades[1] = true;
TotalMoneys = TotalMoneys - UpgradesPrizes[2];
UpgradesPrizes[2] = UpgradesPrizes[2] + 500;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[2] >= UpgradesMaxLevel[2]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[2] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade3_mc.onRelease = function () {
if ((UpgradesLevel[3] < UpgradesMaxLevel[3]) && (UpgradesPrizes[3] <= TotalMoneys)) {
UpgradesLevel[3] = UpgradesLevel[3] + 1;
MoneyPerSoul = MoneyPerSoul + 4;
HPperSoul = HPperSoul + 2;
Upgrades[2] = true;
TotalUpgrades = TotalUpgrades + 1;
TotalMoneys = TotalMoneys - UpgradesPrizes[3];
UpgradesPrizes[3] = UpgradesPrizes[3] + 250;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[3] >= UpgradesMaxLevel[3]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[3] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade4_mc.onRelease = function () {
if ((UpgradesLevel[4] < UpgradesMaxLevel[4]) && (UpgradesPrizes[4] <= TotalMoneys)) {
UpgradesLevel[4] = UpgradesLevel[4] + 1;
TotalMoneys = TotalMoneys - UpgradesPrizes[4];
Upgrades[3] = true;
TotalUpgrades = TotalUpgrades + 1;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[4] >= UpgradesMaxLevel[4]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[4] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade5_mc.onRelease = function () {
if ((UpgradesLevel[5] < UpgradesMaxLevel[5]) && (UpgradesPrizes[5] <= TotalMoneys)) {
UpgradesLevel[5] = UpgradesLevel[5] + 1;
Upgrades[4] = true;
TotalUpgrades = TotalUpgrades + 1;
TotalBoxes = TotalBoxes + 1;
TotalMoneys = TotalMoneys - UpgradesPrizes[5];
playSounds("cash");
UpgradesPrizes[5] = UpgradesPrizes[5] + 85;
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[5] >= UpgradesMaxLevel[5]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[5] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade6_mc.onRelease = function () {
if ((UpgradesLevel[6] < UpgradesMaxLevel[6]) && (UpgradesPrizes[6] <= TotalMoneys)) {
UpgradesLevel[6] = UpgradesLevel[6] + 1;
Upgrades[5] = true;
TotalUpgrades = TotalUpgrades + 1;
TotalMoneys = TotalMoneys - UpgradesPrizes[6];
UpgradesPrizes[6] = UpgradesPrizes[6] + 400;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[6] >= UpgradesMaxLevel[6]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[6] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade7_mc.onRelease = function () {
if ((UpgradesLevel[7] < UpgradesMaxLevel[7]) && (UpgradesPrizes[7] <= TotalMoneys)) {
UpgradesLevel[7] = UpgradesLevel[7] + 1;
weaponBulletsBase[0] = weaponBulletsBase[0] + 8;
GenericRounds = GenericRounds + 8;
Upgrades[6] = true;
TotalUpgrades = TotalUpgrades + 1;
TotalMoneys = TotalMoneys - UpgradesPrizes[7];
UpgradesPrizes[7] = UpgradesPrizes[7] + 400;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[7] >= UpgradesMaxLevel[7]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[7] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade8_mc.onRelease = function () {
if ((UpgradesLevel[8] < UpgradesMaxLevel[8]) && (UpgradesPrizes[8] <= TotalMoneys)) {
UpgradesLevel[8] = UpgradesLevel[8] + 1;
GunStats[11] = GunStats[11] + 2;
GenericCritical = GenericCritical + 2;
Upgrades[7] = true;
TotalUpgrades = TotalUpgrades + 1;
TotalMoneys = TotalMoneys - UpgradesPrizes[8];
UpgradesPrizes[8] = UpgradesPrizes[8] + 200;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[8] >= UpgradesMaxLevel[8]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[8] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade9_mc.onRelease = function () {
if ((UpgradesLevel[9] < UpgradesMaxLevel[9]) && (UpgradesPrizes[9] <= TotalMoneys)) {
UpgradesLevel[9] = UpgradesLevel[9] + 1;
Upgrades[8] = true;
TotalUpgrades = TotalUpgrades + 1;
GunStats[13] = "Silencer";
TotalMoneys = TotalMoneys - UpgradesPrizes[9];
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[9] >= UpgradesMaxLevel[9]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[9] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade10_mc.onRelease = function () {
if ((UpgradesLevel[10] < UpgradesMaxLevel[10]) && (UpgradesPrizes[10] <= TotalMoneys)) {
UpgradesLevel[10] = UpgradesLevel[10] + 1;
GunStats[7] = GunStats[7] - 150;
Upgrades[9] = true;
TotalUpgrades = TotalUpgrades + 1;
TotalMoneys = TotalMoneys - UpgradesPrizes[10];
UpgradesPrizes[10] = UpgradesPrizes[10] + 400;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[10] >= UpgradesMaxLevel[10]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[10] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade11_mc.onRelease = function () {
if ((UpgradesLevel[11] < UpgradesMaxLevel[11]) && (UpgradesPrizes[11] <= TotalMoneys)) {
UpgradesLevel[11] = UpgradesLevel[11] + 1;
Upgrades[10] = true;
TotalUpgrades = TotalUpgrades + 1;
GenericDamage = GenericDamage + 2;
GunStats[1] = "bullet1-2";
DualGunStats[1] = "bullet1-2";
GunStats[9] = GunStats[9] + 2;
DualGunStats[9] = DualGunStats[9] + 2;
TotalMoneys = TotalMoneys - UpgradesPrizes[11];
UpgradesPrizes[11] = UpgradesPrizes[11] + 850;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[11] >= UpgradesMaxLevel[11]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[11] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade12_mc.onRelease = function () {
if ((UpgradesLevel[12] < UpgradesMaxLevel[12]) && (UpgradesPrizes[12] <= TotalMoneys)) {
UpgradesLevel[12] = UpgradesLevel[12] + 1;
weaponBulletsBase[1] = weaponBulletsBase[1] + 8;
GenericRounds = GenericRounds + 8;
Upgrades[11] = true;
TotalUpgrades = TotalUpgrades + 1;
TotalMoneys = TotalMoneys - UpgradesPrizes[12];
UpgradesPrizes[12] = UpgradesPrizes[12] + 700;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[12] >= UpgradesMaxLevel[12]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[12] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade13_mc.onRelease = function () {
if ((UpgradesLevel[13] < UpgradesMaxLevel[13]) && (UpgradesPrizes[13] <= TotalMoneys)) {
UpgradesLevel[13] = UpgradesLevel[13] + 1;
Upgrades[12] = true;
TotalUpgrades = TotalUpgrades + 1;
DualGunStats[10] = DualGunStats[10] + 3;
GenericRIP = GenericRIP + 3;
TotalMoneys = TotalMoneys - UpgradesPrizes[13];
UpgradesPrizes[13] = UpgradesPrizes[13] + 700;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[13] >= UpgradesMaxLevel[13]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[13] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade14_mc.onRelease = function () {
if ((UpgradesLevel[14] < UpgradesMaxLevel[14]) && (UpgradesPrizes[14] <= TotalMoneys)) {
UpgradesLevel[14] = UpgradesLevel[14] + 1;
Upgrades[13] = true;
TotalUpgrades = TotalUpgrades + 1;
GenericCritical = GenericCritical + 5;
DualGunStats[11] = DualGunStats[11] + 5;
TotalMoneys = TotalMoneys - UpgradesPrizes[14];
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[14] >= UpgradesMaxLevel[14]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[14] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade15_mc.onRelease = function () {
if ((UpgradesLevel[15] < UpgradesMaxLevel[15]) && (UpgradesPrizes[15] <= TotalMoneys)) {
UpgradesLevel[15] = UpgradesLevel[15] + 1;
GenericDamage = GenericDamage + 5;
RevolverStats[1] = "bullet2-2";
RevolverStats[9] = RevolverStats[9] + 3;
Upgrades[14] = true;
TotalUpgrades = TotalUpgrades + 1;
TotalMoneys = TotalMoneys - UpgradesPrizes[15];
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[15] >= UpgradesMaxLevel[15]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[15] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade16_mc.onRelease = function () {
if ((UpgradesLevel[16] < UpgradesMaxLevel[16]) && (UpgradesPrizes[16] <= TotalMoneys)) {
UpgradesLevel[16] = UpgradesLevel[16] + 1;
Upgrades[15] = true;
TotalUpgrades = TotalUpgrades + 1;
GenericFireRate = GenericFireRate + 1;
RevolverStats[4] = RevolverStats[4] + 1;
TotalMoneys = TotalMoneys - UpgradesPrizes[16];
UpgradesPrizes[16] = UpgradesPrizes[16] + 150;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[16] >= UpgradesMaxLevel[16]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[16] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade17_mc.onRelease = function () {
if ((UpgradesLevel[17] < UpgradesMaxLevel[17]) && (UpgradesPrizes[17] <= TotalMoneys)) {
UpgradesLevel[17] = UpgradesLevel[17] + 1;
Upgrades[16] = true;
TotalUpgrades = TotalUpgrades + 1;
GenericHS = GenericHS + 10;
RevolverStats[12] = RevolverStats[12] + 12;
TotalMoneys = TotalMoneys - UpgradesPrizes[17];
UpgradesPrizes[17] = UpgradesPrizes[17] + 840;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[17] >= UpgradesMaxLevel[17]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[17] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade18_mc.onRelease = function () {
if ((UpgradesLevel[18] < UpgradesMaxLevel[18]) && (UpgradesPrizes[18] <= TotalMoneys)) {
UpgradesLevel[18] = UpgradesLevel[18] + 1;
Upgrades[17] = true;
TotalUpgrades = TotalUpgrades + 1;
TotalMoneys = TotalMoneys - UpgradesPrizes[18];
MoneyReward[2] = MoneyReward[2] + 50;
UpgradesPrizes[18] = UpgradesPrizes[18] + 1000;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[18] >= UpgradesMaxLevel[18]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[18] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade19_mc.onRelease = function () {
if ((UpgradesLevel[19] < UpgradesMaxLevel[19]) && (UpgradesPrizes[19] <= TotalMoneys)) {
UpgradesLevel[19] = UpgradesLevel[19] + 1;
Upgrades[18] = true;
TotalUpgrades = TotalUpgrades + 1;
RevolverStats[1] = "bullet2-3";
GenericRIP = GenericRIP + 2;
RevolverStats[10] = RevolverStats[10] + 2;
DualRevolverStats[1] = "bullet2-3";
DualRevolverStats[10] = DualRevolverStats[10] + 2;
TotalMoneys = TotalMoneys - UpgradesPrizes[19];
UpgradesPrizes[19] = UpgradesPrizes[19] + 750;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[19] >= UpgradesMaxLevel[19]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[19] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade20_mc.onRelease = function () {
if ((UpgradesLevel[20] < UpgradesMaxLevel[20]) && (UpgradesPrizes[20] <= TotalMoneys)) {
UpgradesLevel[20] = UpgradesLevel[20] + 1;
Upgrades[19] = true;
TotalUpgrades = TotalUpgrades + 1;
GenericDamage = GenericDamage + 10;
TotalMoneys = TotalMoneys - UpgradesPrizes[20];
DualRevolverStats[9] = DualRevolverStats[9] + 10;
UpgradesPrizes[20] = UpgradesPrizes[20] + 930;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[20] >= UpgradesMaxLevel[20]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[20] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade21_mc.onRelease = function () {
if ((UpgradesLevel[21] < UpgradesMaxLevel[21]) && (UpgradesPrizes[21] <= TotalMoneys)) {
UpgradesLevel[21] = UpgradesLevel[21] + 1;
Upgrades[20] = true;
TotalUpgrades = TotalUpgrades + 1;
GenericHS = GenericHS + 15;
DualRevolverStats[12] = DualRevolverStats[12] + 15;
TotalMoneys = TotalMoneys - UpgradesPrizes[21];
UpgradesPrizes[21] = UpgradesPrizes[21] + 1120;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[21] >= UpgradesMaxLevel[21]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[21] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade22_mc.onRelease = function () {
if ((UpgradesLevel[22] < UpgradesMaxLevel[22]) && (UpgradesPrizes[22] <= TotalMoneys)) {
UpgradesLevel[22] = UpgradesLevel[22] + 1;
Upgrades[21] = true;
TotalUpgrades = TotalUpgrades + 1;
DualRevolverStats[13] = "Silencer";
TotalMoneys = TotalMoneys - UpgradesPrizes[22];
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[22] >= UpgradesMaxLevel[22]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[22] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade23_mc.onRelease = function () {
if ((UpgradesLevel[23] < UpgradesMaxLevel[23]) && (UpgradesPrizes[23] <= TotalMoneys)) {
UpgradesLevel[23] = UpgradesLevel[23] + 1;
Upgrades[22] = true;
TotalUpgrades = TotalUpgrades + 1;
GenericShots = GenericShots + 1;
SingleShotgunStats[0] = SingleShotgunStats[0] + 1;
SingleShotgunStats[2] = "Bullet2Casq-2";
TotalMoneys = TotalMoneys - UpgradesPrizes[23];
UpgradesPrizes[23] = UpgradesPrizes[23] + 1100;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[23] >= UpgradesMaxLevel[23]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[23] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade24_mc.onRelease = function () {
if ((UpgradesLevel[24] < UpgradesMaxLevel[24]) && (UpgradesPrizes[24] <= TotalMoneys)) {
UpgradesLevel[24] = UpgradesLevel[24] + 1;
GenericDamage = GenericDamage + 2;
SingleShotgunStats[9] = SingleShotgunStats[9] + 2;
SingleShotgunStats[1] = "bullet3-2";
Upgrades[23] = true;
TotalUpgrades = TotalUpgrades + 1;
TotalMoneys = TotalMoneys - UpgradesPrizes[24];
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[24] >= UpgradesMaxLevel[24]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[24] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade25_mc.onRelease = function () {
if ((UpgradesLevel[25] < UpgradesMaxLevel[25]) && (UpgradesPrizes[25] <= TotalMoneys)) {
UpgradesLevel[25] = UpgradesLevel[25] + 1;
SingleShotgunStats[11] = SingleShotgunStats[11] + 2;
GenericCritical = GenericCritical + 2;
Upgrades[24] = true;
TotalUpgrades = TotalUpgrades + 1;
TotalMoneys = TotalMoneys - UpgradesPrizes[25];
UpgradesPrizes[25] = UpgradesPrizes[25] + 1300;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[25] >= UpgradesMaxLevel[25]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[25] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade26_mc.onRelease = function () {
if ((UpgradesLevel[26] < UpgradesMaxLevel[26]) && (UpgradesPrizes[26] <= TotalMoneys)) {
UpgradesLevel[26] = UpgradesLevel[26] + 1;
Upgrades[25] = true;
TotalUpgrades = TotalUpgrades + 1;
GenericRIP = GenericRIP + 3;
SingleShotgunStats[10] = SingleShotgunStats[10] + 3;
TotalMoneys = TotalMoneys - UpgradesPrizes[26];
UpgradesPrizes[26] = UpgradesPrizes[26] + 1500;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[26] >= UpgradesMaxLevel[26]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[26] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade27_mc.onRelease = function () {
if ((UpgradesLevel[27] < UpgradesMaxLevel[27]) && (UpgradesPrizes[27] <= TotalMoneys)) {
UpgradesLevel[27] = UpgradesLevel[27] + 1;
GenericHS = GenericHS + 3;
DualShotgunStats[12] = DualShotgunStats[12] + 3;
Upgrades[26] = true;
TotalUpgrades = TotalUpgrades + 1;
TotalMoneys = TotalMoneys - UpgradesPrizes[27];
UpgradesPrizes[27] = UpgradesPrizes[27] + 1020;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[27] >= UpgradesMaxLevel[27]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[27] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade28_mc.onRelease = function () {
if ((UpgradesLevel[28] < UpgradesMaxLevel[28]) && (UpgradesPrizes[28] <= TotalMoneys)) {
UpgradesLevel[28] = UpgradesLevel[28] + 1;
DualShotgunStats[7] = DualShotgunStats[7] - 50;
Upgrades[27] = true;
TotalUpgrades = TotalUpgrades + 1;
TotalMoneys = TotalMoneys - UpgradesPrizes[28];
UpgradesPrizes[28] = UpgradesPrizes[28] + 840;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[28] >= UpgradesMaxLevel[28]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[28] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade29_mc.onRelease = function () {
if ((UpgradesLevel[29] < UpgradesMaxLevel[29]) && (UpgradesPrizes[29] <= TotalMoneys)) {
UpgradesLevel[29] = UpgradesLevel[29] + 1;
GenericFireRate = GenericFireRate + 2;
DualShotgunStats[4] = DualShotgunStats[4] + 2;
Upgrades[28] = true;
TotalUpgrades = TotalUpgrades + 1;
TotalMoneys = TotalMoneys - UpgradesPrizes[29];
UpgradesPrizes[29] = UpgradesPrizes[29] + 900;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[29] >= UpgradesMaxLevel[29]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[29] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade30_mc.onRelease = function () {
if ((UpgradesLevel[30] < UpgradesMaxLevel[30]) && (UpgradesPrizes[30] <= TotalMoneys)) {
UpgradesLevel[30] = UpgradesLevel[30] + 1;
Upgrades[29] = true;
TotalUpgrades = TotalUpgrades + 1;
MoneyReward[6] = MoneyReward[6] + 10;
TotalMoneys = TotalMoneys - UpgradesPrizes[30];
UpgradesPrizes[30] = UpgradesPrizes[30] + 1150;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[30] >= UpgradesMaxLevel[30]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[30] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade31_mc.onRelease = function () {
if ((UpgradesLevel[31] < UpgradesMaxLevel[31]) && (UpgradesPrizes[31] <= TotalMoneys)) {
UpgradesLevel[31] = UpgradesLevel[31] + 1;
weaponBulletsBase[6] = weaponBulletsBase[6] + 8;
GenericRounds = GenericRounds + 8;
Upgrades[30] = true;
TotalUpgrades = TotalUpgrades + 1;
TotalMoneys = TotalMoneys - UpgradesPrizes[31];
UpgradesPrizes[31] = UpgradesPrizes[31] + 1120;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[31] >= UpgradesMaxLevel[31]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[31] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade32_mc.onRelease = function () {
if ((UpgradesLevel[32] < UpgradesMaxLevel[32]) && (UpgradesPrizes[32] <= TotalMoneys)) {
UpgradesLevel[32] = UpgradesLevel[32] + 1;
GenericHS = GenericHS + 5;
MachineGunStats[12] = MachineGunStats[12] + 5;
Upgrades[31] = true;
TotalUpgrades = TotalUpgrades + 1;
TotalMoneys = TotalMoneys - UpgradesPrizes[32];
UpgradesPrizes[32] = UpgradesPrizes[32] + 1300;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[32] >= UpgradesMaxLevel[32]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[32] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade33_mc.onRelease = function () {
if ((UpgradesLevel[33] < UpgradesMaxLevel[33]) && (UpgradesPrizes[33] <= TotalMoneys)) {
UpgradesLevel[33] = UpgradesLevel[33] + 1;
Upgrades[32] = true;
TotalUpgrades = TotalUpgrades + 1;
MoneyReward[7] = MoneyReward[7] + 8;
TotalMoneys = TotalMoneys - UpgradesPrizes[33];
UpgradesPrizes[33] = UpgradesPrizes[33] + 1100;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[33] >= UpgradesMaxLevel[33]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[33] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade34_mc.onRelease = function () {
if ((UpgradesLevel[34] < UpgradesMaxLevel[34]) && (UpgradesPrizes[34] <= TotalMoneys)) {
UpgradesLevel[34] = UpgradesLevel[34] + 1;
Upgrades[33] = true;
TotalUpgrades = TotalUpgrades + 1;
MachineGunStats[13] = "Silencer";
TotalMoneys = TotalMoneys - UpgradesPrizes[34];
UpgradesPrizes[34] = UpgradesPrizes[34] + 1000;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[34] >= UpgradesMaxLevel[34]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[34] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade35_mc.onRelease = function () {
if ((UpgradesLevel[35] < UpgradesMaxLevel[35]) && (UpgradesPrizes[35] <= TotalMoneys)) {
UpgradesLevel[35] = UpgradesLevel[35] + 1;
Upgrades[34] = true;
TotalUpgrades = TotalUpgrades + 1;
GenericRounds = GenericRounds + 16;
weaponBulletsBase[7] = weaponBulletsBase[7] + 16;
TotalMoneys = TotalMoneys - UpgradesPrizes[35];
UpgradesPrizes[35] = UpgradesPrizes[35] + 1400;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[35] >= UpgradesMaxLevel[35]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[35] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade36_mc.onRelease = function () {
if ((UpgradesLevel[36] < UpgradesMaxLevel[36]) && (UpgradesPrizes[36] <= TotalMoneys)) {
UpgradesLevel[36] = UpgradesLevel[36] + 1;
DualMachineGunStats[10] = DualMachineGunStats[10] + 2;
GenericRIP = GenericRIP + 2;
Upgrades[35] = true;
TotalUpgrades = TotalUpgrades + 1;
TotalMoneys = TotalMoneys - UpgradesPrizes[36];
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[36] >= UpgradesMaxLevel[36]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[36] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade37_mc.onRelease = function () {
if ((UpgradesLevel[37] < UpgradesMaxLevel[37]) && (UpgradesPrizes[37] <= TotalMoneys)) {
UpgradesLevel[37] = UpgradesLevel[37] + 1;
Upgrades[36] = true;
TotalUpgrades = TotalUpgrades + 1;
DualMachineGunStats[11] = DualMachineGunStats[11] + 2;
GenericCritical = GenericCritical + 2;
TotalMoneys = TotalMoneys - UpgradesPrizes[37];
UpgradesPrizes[37] = UpgradesPrizes[37] + 1320;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[37] >= UpgradesMaxLevel[37]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[37] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade38_mc.onRelease = function () {
if ((UpgradesLevel[38] < UpgradesMaxLevel[38]) && (UpgradesPrizes[38] <= TotalMoneys)) {
UpgradesLevel[38] = UpgradesLevel[38] + 1;
GenericDamage = GenericDamage + 3;
DualMachineGunStats[1] = "bullet2-2";
Upgrades[37] = true;
TotalUpgrades = TotalUpgrades + 1;
TotalMoneys = TotalMoneys - UpgradesPrizes[38];
UpgradesPrizes[38] = UpgradesPrizes[38] + 1400;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[38] >= UpgradesMaxLevel[38]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[38] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade39_mc.onRelease = function () {
if ((UpgradesLevel[39] < UpgradesMaxLevel[39]) && (UpgradesPrizes[39] <= TotalMoneys)) {
UpgradesLevel[39] = UpgradesLevel[39] + 1;
ShotgunStats[0] = ShotgunStats[0] + 1;
GenericShots = GenericShots + 1;
Upgrades[38] = true;
TotalUpgrades = TotalUpgrades + 1;
TotalMoneys = TotalMoneys - UpgradesPrizes[39];
UpgradesPrizes[39] = UpgradesPrizes[39] + 1500;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[39] >= UpgradesMaxLevel[39]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[39] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade40_mc.onRelease = function () {
if ((UpgradesLevel[40] < UpgradesMaxLevel[40]) && (UpgradesPrizes[40] <= TotalMoneys)) {
UpgradesLevel[40] = UpgradesLevel[40] + 1;
GenericCritical = GenericCritical + 3;
ShotgunStats[11] = ShotgunStats[11] + 3;
Upgrades[39] = true;
TotalUpgrades = TotalUpgrades + 1;
TotalMoneys = TotalMoneys - UpgradesPrizes[40];
UpgradesPrizes[40] = UpgradesPrizes[40] + 1600;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[40] >= UpgradesMaxLevel[40]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[40] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade41_mc.onRelease = function () {
if ((UpgradesLevel[41] < UpgradesMaxLevel[41]) && (UpgradesPrizes[41] <= TotalMoneys)) {
UpgradesLevel[41] = UpgradesLevel[41] + 1;
Upgrades[40] = true;
TotalUpgrades = TotalUpgrades + 1;
ShotgunStats[7] = ShotgunStats[7] - 75;
TotalMoneys = TotalMoneys - UpgradesPrizes[41];
UpgradesPrizes[41] = UpgradesPrizes[41] + 1650;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[41] >= UpgradesMaxLevel[41]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[41] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade42_mc.onRelease = function () {
if ((UpgradesLevel[42] < UpgradesMaxLevel[42]) && (UpgradesPrizes[42] <= TotalMoneys)) {
UpgradesLevel[42] = UpgradesLevel[42] + 1;
GenericRIP = GenericRIP + 3;
ShotgunStats[10] = ShotgunStats[10] + 3;
Upgrades[41] = true;
TotalUpgrades = TotalUpgrades + 1;
TotalMoneys = TotalMoneys - UpgradesPrizes[42];
UpgradesPrizes[42] = UpgradesPrizes[42] + 1450;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[42] >= UpgradesMaxLevel[42]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[42] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade43_mc.onRelease = function () {
if ((UpgradesLevel[43] < UpgradesMaxLevel[43]) && (UpgradesPrizes[43] <= TotalMoneys)) {
UpgradesLevel[43] = UpgradesLevel[43] + 1;
GenericDamage = GenericDamage + 8;
AssaultRiffleStats[1] = "bullet8";
AssaultRiffleStats[9] = AssaultRiffleStats[9] + 8;
Upgrades[42] = true;
TotalUpgrades = TotalUpgrades + 1;
TotalMoneys = TotalMoneys - UpgradesPrizes[43];
UpgradesPrizes[43] = UpgradesPrizes[43] + 1700;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[43] >= UpgradesMaxLevel[43]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[43] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade44_mc.onRelease = function () {
if ((UpgradesLevel[44] < UpgradesMaxLevel[44]) && (UpgradesPrizes[44] <= TotalMoneys)) {
UpgradesLevel[44] = UpgradesLevel[44] + 1;
Upgrades[43] = true;
TotalUpgrades = TotalUpgrades + 1;
weaponBulletsBase[9] = weaponBulletsBase[9] + 8;
GenericRounds = GenericRounds + 8;
TotalMoneys = TotalMoneys - UpgradesPrizes[44];
UpgradesPrizes[44] = UpgradesPrizes[44] + 1650;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[44] >= UpgradesMaxLevel[44]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[44] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade45_mc.onRelease = function () {
if ((UpgradesLevel[45] < UpgradesMaxLevel[45]) && (UpgradesPrizes[45] <= TotalMoneys)) {
UpgradesLevel[45] = UpgradesLevel[45] + 1;
Upgrades[44] = true;
TotalUpgrades = TotalUpgrades + 1;
GenericHS = GenericHS + 5;
AssaultRiffleStats[12] = AssaultRiffleStats[12] + 5;
TotalMoneys = TotalMoneys - UpgradesPrizes[45];
UpgradesPrizes[45] = UpgradesPrizes[45] + 1750;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[45] >= UpgradesMaxLevel[45]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[45] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade46_mc.onRelease = function () {
if ((UpgradesLevel[46] < UpgradesMaxLevel[46]) && (UpgradesPrizes[46] <= TotalMoneys)) {
UpgradesLevel[46] = UpgradesLevel[46] + 1;
Upgrades[45] = true;
TotalUpgrades = TotalUpgrades + 1;
MoneyReward[10] = MoneyReward[10] + 10;
TotalMoneys = TotalMoneys - UpgradesPrizes[46];
UpgradesPrizes[46] = UpgradesPrizes[46] + 1760;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[46] >= UpgradesMaxLevel[46]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[46] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade47_mc.onRelease = function () {
if ((UpgradesLevel[47] < UpgradesMaxLevel[47]) && (UpgradesPrizes[47] <= TotalMoneys)) {
UpgradesLevel[47] = UpgradesLevel[47] + 1;
GenericDamage = GenericDamage + 50;
BazookaStats[9] = BazookaStats[9] + 50;
Upgrades[46] = true;
TotalUpgrades = TotalUpgrades + 1;
BazookaStats[1] = "bullet7-2";
TotalMoneys = TotalMoneys - UpgradesPrizes[47];
UpgradesPrizes[47] = UpgradesPrizes[47] + 3120;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[47] >= UpgradesMaxLevel[47]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[47] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade48_mc.onRelease = function () {
if ((UpgradesLevel[48] < UpgradesMaxLevel[48]) && (UpgradesPrizes[48] <= TotalMoneys)) {
UpgradesLevel[48] = UpgradesLevel[48] + 1;
Upgrades[47] = true;
TotalUpgrades = TotalUpgrades + 1;
GenericRIP = GenericRIP + 10;
BazookaStats[10] = BazookaStats[10] + 10;
TotalMoneys = TotalMoneys - UpgradesPrizes[48];
UpgradesPrizes[48] = UpgradesPrizes[48] + 3240;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[48] >= UpgradesMaxLevel[48]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[48] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade49_mc.onRelease = function () {
if ((UpgradesLevel[49] < UpgradesMaxLevel[49]) && (UpgradesPrizes[49] <= TotalMoneys)) {
UpgradesLevel[49] = UpgradesLevel[49] + 1;
Upgrades[48] = true;
TotalUpgrades = TotalUpgrades + 1;
MoneyReward[10] = MoneyReward[10] + 10;
TotalMoneys = TotalMoneys - UpgradesPrizes[49];
UpgradesPrizes[49] = UpgradesPrizes[49] + 3600;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[49] >= UpgradesMaxLevel[49]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[49] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
upgradesList_mc.upgrade50_mc.onRelease = function () {
if ((UpgradesLevel[50] < UpgradesMaxLevel[50]) && (UpgradesPrizes[50] <= TotalMoneys)) {
UpgradesLevel[50] = UpgradesLevel[50] + 1;
Upgrades[49] = true;
TotalUpgrades = TotalUpgrades + 1;
GenericCritical = GenericCritical + 2;
BazookaStats[11] = BazookaStats[11] + 2;
TotalMoneys = TotalMoneys - UpgradesPrizes[50];
UpgradesPrizes[50] = UpgradesPrizes[50] + 2300;
playSounds("cash");
TextTitle = "Upgrade Purchased";
TextBody = "Congratulaions, you got this upgrade.";
} else if (UpgradesLevel[50] >= UpgradesMaxLevel[50]) {
playSounds("beep");
TextTitle = "This upgrade is full.";
TextBody = "This upgrade is full.";
} else if (UpgradesPrizes[50] > TotalMoneys) {
playSounds("Chorm");
TextTitle = "Not enough Cash";
TextBody = "You don't have enough money to purschase this upgrade.";
}
};
};
UpgradeMenu = new Array(true, false, false, false, false, false, false, false, false, false, false, false);
MenuButtons(level_btn, _root, "level_Menu", "Levels Menu", "Select which level to play and check your statistics for each one.");
MenuButtons(upgrades_btn, _root, "upgrades_Menu", "Upgrades Menu", "Purchase weapons, upgrade your character and enhance your inventory.");
MenuButtons(medal_btn, _root, "medals_Menu", "Medals Menu", "Collect medals and unlock achievements; this increases your performance in the field.");
shade_mc.play();
mute_btn.onRelease = function () {
if (VolumeMUSIC != 0) {
VolumeMUSIC = 0;
GamePlayMusic.stop();
} else if (VolumeMUSIC == 0) {
VolumeMUSIC = 85;
playMusic(LevelSong);
}
};
muteFX_btn.onRelease = function () {
if (VolumeFX != 0) {
VolumeFX = 0;
} else if (VolumeFX == 0) {
VolumeFX = 100;
}
};
rusty_mc.onRelease = function () {
getURL ("http://www.rustyarcade.com?ref=schyzo-level", "_blank");
};
GuideLink_mc.onRelease = function () {
getURL ("http://www.rustyarcade.com/blog/read/64/Mr.-Schyzo-full-Guide", "_blank");
};
CheatsLink_mc.onRelease = function () {
getURL ("http://www.rustyarcade.com/blog/read/65/Mr.-Schyzo-Cheats-List", "_blank");
};
BadgesLink_mc.onRelease = function () {
getURL ("http://www.rustyarcade.com/achievements", "_blank");
};
if (LevelsArray[20] == true) {
MR_c.gotoAndStop(2);
}
MR_c.onRelease = function () {
if (LevelsArray[20] == true) {
gotoAndPlay ("GameEnd");
} else if (LevelsArray[20] != true) {
_root.TextTitle = "It's Me Mr.C";
_root.TextBody = "Whats up?";
}
};
MR_c.onRollOver = function () {
if (LevelsArray[20] == true) {
_root.TextTitle = "En scene?";
_root.TextBody = "Want to replay the end scene?";
} else if (LevelsArray[20] != true) {
_root.TextTitle = "Hmmmmmm...";
_root.TextBody = "Whats up?";
}
};
MR_c.onRollOut = function () {
_root.TextTitle = "";
_root.TextBody = "";
};
Frame 146
MR_c.onEnterFrame = function () {
MenuButtons(upgrade1_mc, achievementsMenu_mc, "levelsAchievements1", "Levels Achievements", "Each level has its own special achievement, complete then and earn a nice rewards!");
MenuButtons(upgrade2_mc, achievementsMenu_mc, "WeaponsAchievements", "Weapon Achievements", "Each weapon has its own special achievement, complete then to enhance your guns.");
MenuButtons(upgrade3_mc, achievementsMenu_mc, "KillsAchievements", "Kills Achievements", "Complete achievements and earn nice rewards by killing pedestrians, eliminating cops and destroying vehicles!");
MenuButtons(upgrade4_mc, achievementsMenu_mc, "SpecialAchievements", "Especial Achievements", "Complete achievements by performing especial kills like Combos, R.I.P, Criticals and Headshots!");
MenuButtons(upgrade5_mc, achievementsMenu_mc, "CharacterAchievements", "Character Achievements", "Complete achievements related to the character performances like your max HP, your total money and increase your stats.");
MenuButtons(upgrade6_mc, achievementsMenu_mc, "CheatsAchievements", "Cheats List", "FInd the secret cheats hiden trough the game and increase your stats and performance by doing so.");
MenuButtons(achievementsMenu_mc.next_mc, achievementsMenu_mc, "levelsAchievements2", "Level achievements Tier 2", "Theres more level achievements buddie, don't freak out!");
MenuButtons(achievementsMenu_mc.back_mc, achievementsMenu_mc, "levelsAchievements1", "Level achievements Tier 1", "Go back to the first tier of level achievements.");
AchievementsButtons(achievementsMenu_mc.achievement1_mc, "Level 1 Achievement", "Kill 180 people in this level. Complete this achievement and earn $180.", Levels_Kills[1], AchievementsQuote[1], Achievements[1], 1);
AchievementsButtons(achievementsMenu_mc.achievement2_mc, "Level 2 Achievement", "Kill 160 Park guards in this level. Complete this achievement and earn $3 more each time you kill a park guard.", LevelsCops_Kills[2], AchievementsQuote[2], Achievements[2], 2);
AchievementsButtons(achievementsMenu_mc.achievement3_mc, "Level 3 Achievement", "Collect $30,000 in this level. Complete this achievement and get +5 extra HP points.", Levels_Moneys[3], AchievementsQuote[3], Achievements[3], 3);
AchievementsButtons(achievementsMenu_mc.achievement4_mc, "Level 4 Achievement", "Perform 55 Headshots in this level. Complete this achievement and get 2% more chances to perform a headshot, for all weapon.", LevelsHead_Shots[4], AchievementsQuote[4], Achievements[4], 4);
AchievementsButtons(achievementsMenu_mc.achievement5_mc, "Level 5 Achievement", "Rip 85 souls out of their body. Complete this achievement and get 2% more chances to perform a R.I.P, for each weapon.", Levels_RIPS[5], AchievementsQuote[5], Achievements[5], 5);
AchievementsButtons(achievementsMenu_mc.achievement6_mc, "Level 6 Achievement", "Kill 95 Cops in this level. Complete this achievement and earn $4 more each time you kill a Cop.", LevelsCops_Kills[6], AchievementsQuote[6], Achievements[6], 6);
AchievementsButtons(achievementsMenu_mc.achievement7_mc, "Level 7 Achievement", "Collect $25,000 in this level. Complete this achievement and get +15 extra HP points.", Levels_Moneys[7], AchievementsQuote[7], Achievements[7], 7);
AchievementsButtons(achievementsMenu_mc.achievement8_mc, "Level 8 Achievement", "Perform 90 Criticals in this level. Complete this achievement and get +2 extra damage for each weapon.", Levels_Criticals[8], AchievementsQuote[8], Achievements[8], 8);
AchievementsButtons(achievementsMenu_mc.achievement9_mc, "Level 9 Achievement", "Kill 230 people in this level. Complete this achievement and earn $500.", Levels_Kills[9], AchievementsQuote[9], Achievements[9], 9);
AchievementsButtons(achievementsMenu_mc.achievement10_mc, "Level 10 Achievement", "Perform 45 Headshots in this level. Complete this achievement and get 2% more chances to perform a headshot, for all weapon.", LevelsHead_Shots[10], AchievementsQuote[10], Achievements[10], 10);
AchievementsButtons(achievementsMenu_mc.achievement11_mc, "Level 11 Achievement", "Kill 360 people in this level. Complete this achievement and get +26 extra HP points.", Levels_Kills[11], AchievementsQuote[11], Achievements[11], 11);
AchievementsButtons(achievementsMenu_mc.achievement12_mc, "Level 12 Achievement", "Rip 140 souls out of their body. Complete this achievement and get $4 more per each soul you catch.", Levels_RIPS[12], AchievementsQuote[12], Achievements[12], 12);
AchievementsButtons(achievementsMenu_mc.achievement13_mc, "Level 13 Achievement", "Collect $28,000 in this level. Complete this achievement and get 12 extra seconds in Berserk mode.", Levels_Moneys[13], AchievementsQuote[13], 13);
AchievementsButtons(achievementsMenu_mc.achievement14_mc, "Level 14 Achievement", "Kill 275 cops in this level. Complete this achievement and earn $7 more each time you kill a Swat.", LevelsCops_Kills[14], AchievementsQuote[14], Achievements[14], 14);
AchievementsButtons(achievementsMenu_mc.achievement15_mc, "Level 15 Achievement", "Perform 335 Criticals in this level. Complete this achievement and reduce the alarm time per kill by 3.", Levels_Criticals[15], AchievementsQuote[15], Achievements[15], 15);
AchievementsButtons(achievementsMenu_mc.achievement16_mc, "Level 16 Achievement", "Perform 80 Headshots in this level. Complete this achievement and increase the speed of your bullet by 2, for all weapon.", LevelsHead_Shots[16], AchievementsQuote[16], Achievements[16], 16);
AchievementsButtons(achievementsMenu_mc.achievement17_mc, "Level 17 Achievement", "Destroy 200 cops in this level. Complete this achievement and get +20 extra HP points.", LevelsCops_Kills[17], AchievementsQuote[17], Achievements[17], 17);
AchievementsButtons(achievementsMenu_mc.achievement18_mc, "Level 18 Achievement", "Collect $30,000 in this level. Complete this achievement and get $3 more per kill", Levels_Moneys[18], AchievementsQuote[18], Achievements[18], 18);
AchievementsButtons(achievementsMenu_mc.achievement19_mc, "Level 19 Achievement", "Destroy 400 cops in this level. Complete this achievement and get +5 extra damage in all weapons", LevelsCops_Kills[19], AchievementsQuote[19], Achievements[19], 19);
AchievementsButtons(achievementsMenu_mc.achievement20_mc, "Level 20 Achievement", "Kill 750 people in this level. Complete this achievement and get 20 extra HP points.", Levels_Kills[20], AchievementsQuote[20], Achievements[20], 20);
AchievementsButtons(achievementsMenu_mc.achievement21_mc, "Gun Achievement", "Kill 250 people with the Gun. Complete this achievement and get +5 extra damage for this weapon.", Weapon_Kills[0], AchievementsQuote[21], Achievements[21]);
AchievementsButtons(achievementsMenu_mc.achievement22_mc, "Dual Gun Achievement", "Kill 300 people with the Dual Guns. Complete this achievement to get faster bullets speed for this weapon.", Weapon_Kills[1], AchievementsQuote[22], Achievements[22]);
AchievementsButtons(achievementsMenu_mc.achievement23_mc, "Revolver Achievement", "Kill 200 people with the Revolver. Complete this achievement to get +10% chance to make a Headshot with this weapon.", Weapon_Kills[2], AchievementsQuote[23], Achievements[23]);
AchievementsButtons(achievementsMenu_mc.achievement24_mc, "Dual Revolver Achievement", "Kill 270 people with the Dual Revolver. Complete this achievement to get +5% chance to make a R.I.P with this weapon.", Weapon_Kills[3], AchievementsQuote[24], Achievements[24]);
AchievementsButtons(achievementsMenu_mc.achievement25_mc, "Sawed Shotgun Achievement", "Kill 440 people with the Sawed Shotgun. Complete this achievement to get +15% chance to make a Critical with this weapon.", Weapon_Kills[4], AchievementsQuote[25], Achievements[25]);
AchievementsButtons(achievementsMenu_mc.achievement26_mc, "Dual Sawed Shotgun", "Kill 570 people with the Dual Sawed Shotgun. Complete this achievement and get +10 extra damage for this weapon.", Weapon_Kills[5], AchievementsQuote[26], Achievements[26]);
AchievementsButtons(achievementsMenu_mc.achievement27_mc, "Machine gun Achievements", "Kill 620 people with the Sub Machine gun. Complete this achievement to get faster bullets speed for this weapon.", Weapon_Kills[6], AchievementsQuote[27], Achievements[27]);
AchievementsButtons(achievementsMenu_mc.achievement28_mc, "Dual Machine gun", "Kill 850 people with the Dual Sub Machine gun. Complete this achievement and get +6 extra damage for this weapon.", Weapon_Kills[7], AchievementsQuote[28], Achievements[28]);
AchievementsButtons(achievementsMenu_mc.achievement29_mc, "Tactical Shotgun", "Kill 910 people with the Tactical Shotgun. Complete this achievement to get faster Shooting rate for this weapon.", Weapon_Kills[8], AchievementsQuote[29], Achievements[29]);
AchievementsButtons(achievementsMenu_mc.achievement30_mc, "Assault Rifle Achievement", "Kill 950 people with the Assault Rifle. Complete this achievement and get +9 extra damage for this weapon.", Weapon_Kills[9], AchievementsQuote[30], Achievements[30]);
AchievementsButtons(achievementsMenu_mc.achievement31_mc, "Rocket Launcher", "Kill 1000 people with the Rocket Launcher. Complete this achievement to get faster bullets speed for this weapon.", Weapon_Kills[10], AchievementsQuote[31], Achievements[31]);
AchievementsButtons(achievementsMenu_mc.achievement32_mc, "Pedestrians Achievement", "Kill 1450 pedestrians, with any weapon and in any level. Complete this achievement and get $14 more per each pedestrian kill.", TotalCivilKills, AchievementsQuote[32], Achievements[32]);
AchievementsButtons(achievementsMenu_mc.achievement33_mc, "Park Guard Kills", "Kill 1200 Park Guards, with any weapon and in any level. Complete this achievement to get $14 more per each enemie kill.", Kind_Kills[0], AchievementsQuote[33], Achievements[33]);
AchievementsButtons(achievementsMenu_mc.achievement34_mc, "Park Guard 2 Kills", "Kill 1150 Tazer Park Guards, with any weapon and in any level. Complete this achievement to reduces the Park Guards HP by 5.", Kind_Kills[1], AchievementsQuote[34], Achievements[34]);
AchievementsButtons(achievementsMenu_mc.achievement35_mc, "Cop Kills Achievement", "Kill 1100 police officers, with any weapon and in any level. Complete this achievement to reduces the Police Officers HP by 5.", Kind_Kills[2], AchievementsQuote[35], Achievements[35]);
AchievementsButtons(achievementsMenu_mc.achievement36_mc, "Tazer Cop Kills", "Kill 1050 Tazer Police Officers, with any weapon and in any level. Complete this achievement to reduces the Police Officers HP by 5.", Kind_Kills[3], AchievementsQuote[36], Achievements[36]);
AchievementsButtons(achievementsMenu_mc.achievement37_mc, "Police Patrol car", "Destroy 1000 Police Patrol Cars, with any weapon and in any level. Complete this achievement to reduces the Police Patrol Car HP by 15.", Kind_Kills[4], AchievementsQuote[37], Achievements[37]);
AchievementsButtons(achievementsMenu_mc.achievement38_mc, "Swat Kills Achievement", "Kill 900 Swats, with any weapon and in any level. Complete this achievement to reduces the Swats HP by 10.", Kind_Kills[5], AchievementsQuote[38], Achievements[38]);
AchievementsButtons(achievementsMenu_mc.achievement39_mc, "Swat Vans Achievement", "Destroy 850 Swats Vans, with any weapon and in any level. Complete this achievement to reduces the Swat Van HP by 20.", Kind_Kills[6], AchievementsQuote[39], Achievements[39]);
AchievementsButtons(achievementsMenu_mc.achievement40_mc, "Chopper Achievement", "Destroy 800 Choppers, with any weapon and in any level. Complete this achievement to reduces the Chopper HP by 25.", Kind_Kills[7], AchievementsQuote[40], Achievements[40]);
AchievementsButtons(achievementsMenu_mc.achievement41_mc, "Souls Achievement", "Collect 700 souls. Complete this achievement and get +70 extra HP points.", Souls, AchievementsQuote[41], Achievements[41]);
AchievementsButtons(achievementsMenu_mc.achievement42_mc, "R.I.P Achievement", "Perform 660 Rips. Complete this achievement and get 16 extra seconds in Berserk mode.", TotalRIPS, AchievementsQuote[42], Achievements[42]);
AchievementsButtons(achievementsMenu_mc.achievement43_mc, "Criticals Achievement", "Make 500 Critical hits. Complete this achievement and earn 7 more HP time you catch a soul.", TotalCriticals, AchievementsQuote[43], Achievements[43]);
AchievementsButtons(achievementsMenu_mc.achievement44_mc, "Headshot Achievement", "Make 100 Headshots. Complete this achievement and earn $10 more each time you kill with the revolver.", TotalHeadShot, AchievementsQuote[44], Achievements[44]);
AchievementsButtons(achievementsMenu_mc.achievement45_mc, "+10 Combo Achievement", "Perform 50 combos higher than 10. Complete this achievement and get 3 extra Rage Points each time you kill a pedestrian.", TotalCombos, AchievementsQuote[45], Achievements[45]);
AchievementsButtons(achievementsMenu_mc.achievement47_mc, "Upgrades Achievement", "Get the 50 basic upgrades. Complete this achievement and get +35 extra HP points.", TotalUpgrades, AchievementsQuote[46], Achievements[46]);
AchievementsButtons(achievementsMenu_mc.achievement48_mc, "Money Achievement", "Collect $80,000. Complete this achievement and get 8 extra Rage Points each time you kill an enemie.", TotalMoneys, AchievementsQuote[47], Achievements[47]);
AchievementsButtons(achievementsMenu_mc.achievement49_mc, "Total Levels beated", "Beat at least 15 levels. Complete this achievement and reduce the HP of all Humans by 2.", TotalLevelsPlayed, AchievementsQuote[48], Achievements[48]);
AchievementsButtons(achievementsMenu_mc.achievement50_mc, "Total Achievements", "Complete at least 50% of all the achievements. Complete this achievement and reduce the HP of all vehicles by 10.", TotalAchievements, AchievementsQuote[49], Achievements[49]);
AchievementsButtons(achievementsMenu_mc.achievement51_mc, "Kills Achievement", "Kill at least 1500 people. Complete this achievement and earn $1500.", TotalKilled, AchievementsQuote[50], Achievements[50]);
AchievementsButtons(achievementsMenu_mc.achievement52_mc, "Berserk Kills", "Kill at least 100 people in Berserk mode. Complete this achievement and get +40 extra HP points.", Weapon_Kills[11], AchievementsQuote[51], Achievements[51]);
AchievementsButtons(achievementsMenu_mc.achievement53_mc, "Money for Souls Cheat", "Name the cartoon characters, appearing as pedestrians in the game, to trade 50 souls for 200 in chash.", CheatsArray[0], 5, Achievements[52]);
AchievementsButtons(achievementsMenu_mc.achievement54_mc, "HP for Souls Cheat", "Name the titles of the five songs used in this game, to trade 25 souls for 10 HP points.", CheatsArray[1], 5, Achievements[53]);
AchievementsButtons(achievementsMenu_mc.achievement55_mc, "Rage for Souls Cheat", "Name the anime characters with a power similar to the soul sucking ability, to trade 100 souls for 20 Rage points.", CheatsArray[2], 3, Achievements[54]);
AchievementsButtons(achievementsMenu_mc.achievement56_mc, "Damage for Souls Cheat", "Name the programmer, artist, music composer and sponsor of this game, to trade 150 souls for 1 extra damage point for each weapon.", CheatsArray[3], 4, Achievements[55]);
AchievementsButtons(achievementsMenu_mc.achievement57_mc, "Boxes for Souls Cheat", "Name the two main characters of this game, to trade 20 souls for 1 extra box.", CheatsArray[4], 2, Achievements[56]);
Cheat = achievementsMenu_mc.Cheat_txt.text;
achievementsMenu_mc.Score_mc.onRelease = function () {
gotoAndStop ("score");
};
achievementsMenu_mc.OK_mc.onRelease = function () {
if (Cheat == "Peter Griffin") {
if ((Souls >= 50) && (CheatsNames[0] == undefined)) {
playSounds("cash");
TotalMoneys = TotalMoneys + 200;
Souls = Souls - 50;
CheatsArray[0] = CheatsArray[0] + 1;
CheatText = "You got a Cheat!";
CheatsNames[0] = "DONE";
} else if ((Souls >= 50) && (CheatsNames[0] != undefined)) {
playSounds("Chorm");
CheatText = "You already got this cheat...";
} else if ((Souls < 50) && (CheatsNames[0] == undefined)) {
playSounds("Chorm");
CheatText = "Sorry you dont have enough souls to trade.";
}
} else if (Cheat == "Glenn Quagmire") {
if ((Souls >= 50) && (CheatsNames[1] == undefined)) {
playSounds("cash");
TotalMoneys = TotalMoneys + 200;
Souls = Souls - 50;
CheatText = "You got a Cheat!";
CheatsArray[0] = CheatsArray[0] + 1;
CheatsNames[1] = "DONE";
} else if ((Souls >= 50) && (CheatsNames[1] != undefined)) {
playSounds("Chorm");
CheatText = "You already got this cheat...";
} else if ((Souls < 50) && (CheatsNames[1] == undefined)) {
playSounds("Chorm");
CheatText = "Sorry you dont have enough souls to trade.";
}
} else if (Cheat == "Goku") {
if ((Souls >= 50) && (CheatsNames[2] == undefined)) {
playSounds("cash");
TotalMoneys = TotalMoneys + 200;
Souls = Souls - 50;
CheatText = "You got a Cheat!";
CheatsArray[0] = CheatsArray[0] + 1;
CheatsNames[2] = "DONE";
} else if ((Souls >= 50) && (CheatsNames[2] != undefined)) {
playSounds("Chorm");
CheatText = "You already got this cheat...";
} else if ((Souls < 50) && (CheatsNames[2] == undefined)) {
playSounds("Chorm");
CheatText = "Sorry you dont have enough souls to trade.";
}
} else if (Cheat == "Popeye") {
if ((Souls >= 50) && (CheatsNames[3] == undefined)) {
playSounds("cash");
TotalMoneys = TotalMoneys + 200;
Souls = Souls - 50;
CheatText = "You got a Cheat!";
CheatsArray[0] = CheatsArray[0] + 1;
CheatsNames[3] = "DONE";
} else if ((Souls >= 50) && (CheatsNames[3] != undefined)) {
playSounds("Chorm");
CheatText = "You already got this cheat...";
} else if ((Souls < 50) && (CheatsNames[3] == undefined)) {
playSounds("Chorm");
CheatText = "Sorry you dont have enough souls to trade.";
}
} else if (Cheat == "Waldo") {
if ((Souls >= 50) && (CheatsNames[4] == undefined)) {
playSounds("cash");
TotalMoneys = TotalMoneys + 200;
Souls = Souls - 50;
CheatText = "You got a Cheat!";
CheatsArray[0] = CheatsArray[0] + 1;
CheatsNames[4] = "DONE";
} else if ((Souls >= 50) && (CheatsNames[4] != undefined)) {
playSounds("Chorm");
CheatText = "You already got this cheat...";
} else if ((Souls < 50) && (CheatsNames[4] == undefined)) {
playSounds("Chorm");
CheatText = "Sorry you dont have enough souls to trade.";
}
} else if (Cheat == "Intense Shit") {
if ((Souls >= 25) && (CheatsNames[5] == undefined)) {
playSounds("cash");
HP = HP + 10;
Souls = Souls - 25;
CheatText = "You got a Cheat!";
CheatsArray[1] = CheatsArray[1] + 1;
CheatsNames[5] = "DONE";
} else if ((Souls >= 25) && (CheatsNames[5] != undefined)) {
playSounds("Chorm");
CheatText = "You already got this cheat...";
} else if ((Souls < 25) && (CheatsNames[5] == undefined)) {
playSounds("Chorm");
CheatText = "Sorry you dont have enough souls to trade.";
}
} else if (Cheat == "Clam Hat") {
if ((Souls >= 25) && (CheatsNames[6] == undefined)) {
playSounds("cash");
HP = HP + 10;
Souls = Souls - 25;
CheatText = "You got a Cheat!";
CheatsArray[1] = CheatsArray[1] + 1;
CheatsNames[6] = "DONE";
} else if ((Souls >= 25) && (CheatsNames[6] != undefined)) {
playSounds("Chorm");
CheatText = "You already got this cheat...";
} else if ((Souls < 25) && (CheatsNames[6] == undefined)) {
playSounds("Chorm");
CheatText = "Sorry you dont have enough souls to trade.";
}
} else if (Cheat == "NESxcore D&B") {
if ((Souls >= 25) && (CheatsNames[7] == undefined)) {
playSounds("cash");
HP = HP + 10;
Souls = Souls - 25;
CheatText = "You got a Cheat!";
CheatsArray[1] = CheatsArray[1] + 1;
CheatsNames[7] = "DONE";
} else if ((Souls >= 25) && (CheatsNames[7] != undefined)) {
playSounds("Chorm");
CheatText = "You already got this cheat...";
} else if ((Souls < 25) && (CheatsNames[7] == undefined)) {
playSounds("Chorm");
CheatText = "Sorry you dont have enough souls to trade.";
}
} else if (Cheat == "A Space Odyssey") {
if ((Souls >= 25) && (CheatsNames[8] == undefined)) {
playSounds("cash");
HP = HP + 10;
Souls = Souls - 25;
CheatText = "You got a Cheat!";
CheatsArray[1] = CheatsArray[1] + 1;
CheatsNames[8] = "DONE";
} else if ((Souls >= 25) && (CheatsNames[8] != undefined)) {
playSounds("Chorm");
CheatText = "You already got this cheat...";
} else if ((Souls < 25) && (CheatsNames[8] == undefined)) {
playSounds("Chorm");
CheatText = "Sorry you dont have enough souls to trade.";
}
} else if (Cheat == "A Piano Song") {
if ((Souls >= 25) && (CheatsNames[9] == undefined)) {
playSounds("cash");
HP = HP + 10;
Souls = Souls - 25;
CheatText = "You got a Cheat!";
CheatsArray[1] = CheatsArray[1] + 1;
CheatsNames[9] = "DONE";
} else if ((Souls >= 25) && (CheatsNames[9] != undefined)) {
playSounds("Chorm");
CheatText = "You already got this cheat...";
} else if ((Souls < 25) && (CheatsNames[9] == undefined)) {
playSounds("Chorm");
CheatText = "Sorry you dont have enough souls to trade.";
}
} else if (Cheat == "Tobi") {
if ((Souls >= 100) && (CheatsNames[10] == undefined)) {
playSounds("cash");
maxRAGE = maxRAGE + 20;
minRAGE = minRAGE + 10;
Souls = Souls - 100;
CheatText = "You got a Cheat!";
CheatsArray[2] = CheatsArray[2] + 1;
CheatsNames[10] = "DONE";
} else if ((Souls >= 100) && (CheatsNames[10] != undefined)) {
playSounds("Chorm");
CheatText = "You already got this cheat...";
} else if ((Souls < 100) && (CheatsNames[10] == undefined)) {
playSounds("Chorm");
CheatText = "Sorry you dont have enough souls to trade.";
}
} else if (Cheat == "Madara Uchiha") {
if ((Souls >= 100) && (CheatsNames[11] == undefined)) {
playSounds("cash");
maxRAGE = maxRAGE + 20;
minRAGE = minRAGE + 10;
Souls = Souls - 100;
CheatText = "You got a Cheat!";
CheatsArray[2] = CheatsArray[2] + 1;
CheatsNames[11] = "DONE";
} else if ((Souls >= 100) && (CheatsNames[11] != undefined)) {
playSounds("Chorm");
CheatText = "You already got this cheat...";
} else if ((Souls < 100) && (CheatsNames[11] == undefined)) {
playSounds("Chorm");
CheatText = "Sorry you dont have enough souls to trade.";
}
} else if (Cheat == "Kakashi") {
if ((Souls >= 100) && (CheatsNames[12] == undefined)) {
playSounds("cash");
maxRAGE = maxRAGE + 20;
minRAGE = minRAGE + 10;
Souls = Souls - 100;
CheatText = "You got a Cheat!";
CheatsArray[2] = CheatsArray[2] + 1;
CheatsNames[12] = "DONE";
} else if ((Souls >= 100) && (CheatsNames[12] != undefined)) {
playSounds("Chorm");
CheatText = "You already got this cheat...";
} else if ((Souls < 100) && (CheatsNames[12] == undefined)) {
playSounds("Chorm");
CheatText = "Sorry you dont have enough souls to trade.";
}
} else if (Cheat == "Cicla") {
if ((Souls >= 150) && (CheatsNames[13] == undefined)) {
playSounds("cash");
Souls = Souls - 150;
CheatText = "You got a Cheat!";
CheatsArray[3] = CheatsArray[3] + 1;
CheatsNames[13] = "DONE";
GunStats[9] = GunStats[9] + 1;
DualGunStats[9] = DualGunStats[9] + 1;
RevolverStats[9] = RevolverStats[9] + 1;
DualRevolverStats[9] = DualRevolverStats[9] + 1;
SingleShotgunStats[9] = SingleShotgunStats[9] + 1;
DualShotgunStats[9] = DualShotgunStats[9] + 1;
MachineGunStats[9] = MachineGunStats[9] + 2;
DualMachineGunStats[9] = DualMachineGunStats[9] + 1;
ShotgunStats[9] = ShotgunStats[9] + 1;
AssaultRiffleStats[9] = AssaultRiffleStats[9] + 1;
BazookaStats[9] = BazookaStats[9] + 1;
BerserkStats[9] = BerserkStats[9] + 1;
} else if ((Souls >= 150) && (CheatsNames[13] != undefined)) {
playSounds("Chorm");
CheatText = "You already got this cheat...";
} else if ((Souls < 40) && (CheatsNames[13] == undefined)) {
playSounds("Chorm");
CheatText = "Sorry you dont have enough souls to trade.";
}
} else if (Cheat == "Taylor Payton") {
if ((Souls >= 150) && (CheatsNames[14] == undefined)) {
playSounds("cash");
Souls = Souls - 150;
CheatText = "You got a Cheat!";
CheatsArray[3] = CheatsArray[3] + 1;
CheatsNames[14] = "DONE";
GunStats[9] = GunStats[9] + 1;
DualGunStats[9] = DualGunStats[9] + 1;
RevolverStats[9] = RevolverStats[9] + 1;
DualRevolverStats[9] = DualRevolverStats[9] + 1;
SingleShotgunStats[9] = SingleShotgunStats[9] + 1;
DualShotgunStats[9] = DualShotgunStats[9] + 1;
MachineGunStats[9] = MachineGunStats[9] + 2;
DualMachineGunStats[9] = DualMachineGunStats[9] + 1;
ShotgunStats[9] = ShotgunStats[9] + 1;
AssaultRiffleStats[9] = AssaultRiffleStats[9] + 1;
BazookaStats[9] = BazookaStats[9] + 1;
BerserkStats[9] = BerserkStats[9] + 1;
} else if ((Souls >= 150) && (CheatsNames[14] != undefined)) {
playSounds("Chorm");
CheatText = "You already got this cheat...";
} else if ((Souls < 150) && (CheatsNames[14] == undefined)) {
playSounds("Chorm");
CheatText = "Sorry you dont have enough souls to trade.";
}
} else if (Cheat == "BAZmotherfucker") {
if ((Souls >= 150) && (CheatsNames[15] == undefined)) {
playSounds("cash");
Souls = Souls - 150;
CheatText = "You got a Cheat!";
CheatsArray[3] = CheatsArray[3] + 1;
CheatsNames[15] = "DONE";
GunStats[9] = GunStats[9] + 1;
DualGunStats[9] = DualGunStats[9] + 1;
RevolverStats[9] = RevolverStats[9] + 1;
DualRevolverStats[9] = DualRevolverStats[9] + 1;
SingleShotgunStats[9] = SingleShotgunStats[9] + 1;
DualShotgunStats[9] = DualShotgunStats[9] + 1;
MachineGunStats[9] = MachineGunStats[9] + 2;
DualMachineGunStats[9] = DualMachineGunStats[9] + 1;
ShotgunStats[9] = ShotgunStats[9] + 1;
AssaultRiffleStats[9] = AssaultRiffleStats[9] + 1;
BazookaStats[9] = BazookaStats[9] + 1;
BerserkStats[9] = BerserkStats[9] + 1;
} else if ((Souls >= 150) && (CheatsNames[15] != undefined)) {
playSounds("Chorm");
CheatText = "You already got this cheat...";
} else if ((Souls < 150) && (CheatsNames[15] == undefined)) {
playSounds("Chorm");
CheatText = "Sorry you dont have enough souls to trade.";
}
} else if (Cheat == "rustyarcade.com") {
if ((Souls >= 150) && (CheatsNames[16] == undefined)) {
playSounds("cash");
Souls = Souls - 150;
CheatText = "You got a Cheat!";
CheatsArray[3] = CheatsArray[3] + 1;
CheatsNames[16] = "DONE";
GunStats[9] = GunStats[9] + 1;
DualGunStats[9] = DualGunStats[9] + 1;
RevolverStats[9] = RevolverStats[9] + 1;
DualRevolverStats[9] = DualRevolverStats[9] + 1;
SingleShotgunStats[9] = SingleShotgunStats[9] + 1;
DualShotgunStats[9] = DualShotgunStats[9] + 1;
MachineGunStats[9] = MachineGunStats[9] + 2;
DualMachineGunStats[9] = DualMachineGunStats[9] + 1;
ShotgunStats[9] = ShotgunStats[9] + 1;
AssaultRiffleStats[9] = AssaultRiffleStats[9] + 1;
BazookaStats[9] = BazookaStats[9] + 1;
BerserkStats[9] = BerserkStats[9] + 1;
} else if ((Souls >= 150) && (CheatsNames[16] != undefined)) {
playSounds("Chorm");
CheatText = "You already got this cheat...";
} else if ((Souls < 150) && (CheatsNames[16] == undefined)) {
playSounds("Chorm");
CheatText = "Sorry you dont have enough souls to trade.";
}
} else if (Cheat == "Mr. Schyzo") {
if ((Souls >= 20) && (CheatsNames[17] == undefined)) {
playSounds("cash");
Souls = Souls - 20;
TotalBoxes = TotalBoxes + 1;
CheatText = "You got a Cheat!";
CheatsArray[4] = CheatsArray[4] + 1;
CheatsNames[17] = "DONE";
} else if ((Souls >= 20) && (CheatsNames[17] != undefined)) {
playSounds("Chorm");
CheatText = "You already got this cheat...";
} else if ((Souls < 20) && (CheatsNames[17] == undefined)) {
playSounds("Chorm");
CheatText = "Sorry you dont have enough souls to trade.";
}
} else if (Cheat == "Mr. Conscience") {
if ((Souls >= 20) && (CheatsNames[18] == undefined)) {
playSounds("cash");
Souls = Souls - 20;
TotalBoxes = TotalBoxes + 1;
CheatText = "You got a Cheat!";
CheatsArray[4] = CheatsArray[4] + 1;
CheatsNames[18] = "DONE";
} else if ((Souls >= 20) && (CheatsNames[18] != undefined)) {
playSounds("Chorm");
CheatText = "You already got this cheat...";
} else if ((Souls < 20) && (CheatsNames[18] == undefined)) {
playSounds("Chorm");
CheatText = "Sorry you dont have enough souls to trade.";
}
} else if (Cheat == "Steve Jobs") {
if ((Souls >= 200) && (CheatsNames[19] == undefined)) {
playSounds("cash");
Souls = Souls - 200;
TotalMoneys = TotalMoneys + 2000;
CheatText = "You got 2000 for this Cheat!";
CheatsArray[5] = CheatsArray[5] + 1;
CheatsNames[19] = "DONE";
} else if ((Souls >= 200) && (CheatsNames[19] != undefined)) {
playSounds("Chorm");
CheatText = "You already got this cheat...";
} else if ((Souls < 200) && (CheatsNames[19] == undefined)) {
playSounds("Chorm");
CheatText = "You need 200 souls to trade this cheat.";
}
} else if (Cheat == "Open Level 20") {
if (CheatsNames[20] == undefined) {
playSounds("cash");
Levels_Quotes[20] = 0;
LevelsArray[20] = false;
CheatText = "You unlock level 20!";
CheatsArray[5] = CheatsArray[5] + 1;
CheatsNames[20] = "DONE";
} else if (CheatsNames[20] != undefined) {
playSounds("Chorm");
CheatText = "You already got this cheat...";
}
}
};
achievementsMenu_mc.OK_mc.onRollOut = function () {
CheatText = " ";
};
};
MenuButtons(level_btn, _root, "level_Menu", "Levels Menu", "Select which level to play and check your statistics for each one.");
MenuButtons(upgrades_btn, _root, "upgrades_Menu", "Upgrades Menu", "Purchase weapons, upgrade your character and enhance your inventory.");
MenuButtons(medal_btn, _root, "medals_Menu", "Medals Menu", "Collect medals and unlock achievements; this increases your performance in the field.");
shade_mc.play();
mute_btn.onRelease = function () {
if (VolumeMUSIC != 0) {
VolumeMUSIC = 0;
GamePlayMusic.stop();
} else if (VolumeMUSIC == 0) {
VolumeMUSIC = 85;
playMusic(LevelSong);
}
};
muteFX_btn.onRelease = function () {
if (VolumeFX != 0) {
VolumeFX = 0;
} else if (VolumeFX == 0) {
VolumeFX = 100;
}
};
rusty_mc.onRelease = function () {
getURL ("http://www.rustyarcade.com?ref=schyzo-level", "_blank");
};
GuideLink_mc.onRelease = function () {
getURL ("http://www.rustyarcade.com/blog/read/64/Mr.-Schyzo-full-Guide", "_blank");
};
CheatsLink_mc.onRelease = function () {
getURL ("http://www.rustyarcade.com/blog/read/65/Mr.-Schyzo-Cheats-List", "_blank");
};
BadgesLink_mc.onRelease = function () {
getURL ("http://www.rustyarcade.com/achievements", "_blank");
};
if (LevelsArray[20] == true) {
MR_c.gotoAndStop(2);
}
MR_c.onRelease = function () {
if (LevelsArray[20] == true) {
gotoAndPlay ("GameEnd");
} else if (LevelsArray[20] != true) {
_root.TextTitle = "It's Me Mr.C";
_root.TextBody = "Whats up?";
}
};
MR_c.onRollOver = function () {
if (LevelsArray[20] == true) {
_root.TextTitle = "En scene?";
_root.TextBody = "Want to replay the end scene?";
} else if (LevelsArray[20] != true) {
_root.TextTitle = "Hmmmmmm...";
_root.TextBody = "Whats up?";
}
};
MR_c.onRollOut = function () {
_root.TextTitle = "";
_root.TextBody = "";
};
Frame 159
LevelSong = "Song3";
var TutorialSteps = 0;
RAGE = 195;
CurrentLevel = 0;
Weapons[1] = true;
MaxTime = 30;
VictimsNumber = 0;
LevelVictimsNumber = 6;
EnemiesNumber = 0;
LevelEnemiesNumber = 1;
loadWeapon("Pistol");
HeroMovements();
VictimSpawner();
Boxes = 6;
tut_mc.onEnterFrame = function () {
Hud_mc.Menu_btn._visible = false;
if ((TutorialSteps == 0) && (HeroDirection == "Right")) {
TutorialSteps = 1;
tut_mc.gotoAndStop(2);
} else if ((TutorialSteps == 1) && (CurrentWeapon == "DualGun")) {
TutorialSteps = 2;
tut_mc.gotoAndStop(3);
} else if ((TutorialSteps == 2) && (Alarm == true)) {
TutorialSteps = 3;
tut_mc.gotoAndStop(4);
} else if ((TutorialSteps == 3) && (HIDING == true)) {
TutorialSteps = 4;
tut_mc.gotoAndStop(5);
} else if ((TutorialSteps == 4) && (BerserkMode == true)) {
TutorialSteps = 5;
tut_mc.gotoAndStop(6);
} else if ((TutorialSteps == 5) && (CurrentBullets <= 0)) {
TutorialSteps = 6;
tut_mc.gotoAndStop(7);
} else if ((TutorialSteps == 6) && (HIDING == true)) {
TutorialSteps = 7;
tut_mc.gotoAndStop(8);
LevelTime = 600;
} else if ((TutorialSteps == 7) && (Souls >= 1)) {
TutorialSteps = 8;
tut_mc.gotoAndStop(9);
}
if (LevelTimer <= 0) {
Weapons[1] = false;
LevelsArray[1] = false;
}
};
Frame 160
LevelSong = "Song1";
MaxTime = 30;
CurrentLevel = 1;
VictimsNumber = 0;
LevelVictimsNumber = 4;
EnemiesNumber = 0;
LevelEnemiesNumber = 2;
HeroMovements();
VictimSpawner();
EnemieSpawner("BattonPark_Guard", "TazerPark_Guard");
Frame 161
LevelSong = "Song4";
MaxTime = 30;
CurrentLevel = 2;
VictimsNumber = 0;
LevelVictimsNumber = 4;
EnemiesNumber = 0;
LevelEnemiesNumber = 2;
loadWeapon("Pistol");
HeroMovements();
VictimSpawner();
EnemieSpawner("TazerPark_Guard");
Frame 162
LevelSong = "Song2";
MaxTime = 30;
CurrentLevel = 3;
VictimsNumber = 0;
LevelVictimsNumber = 3;
EnemiesNumber = 0;
LevelEnemiesNumber = 2;
loadWeapon("Pistol");
HeroMovements();
VictimSpawner();
EnemieSpawner("FlashLightCop");
Frame 163
MaxTime = 60;
CurrentLevel = 4;
LevelSong = "Song1";
VictimsNumber = 0;
LevelVictimsNumber = 3;
EnemiesNumber = 0;
LevelEnemiesNumber = 2;
loadWeapon("Pistol");
HeroMovements();
VictimSpawner();
EnemieSpawner("BattonPark_Guard", "TazerCop");
Frame 164
MaxTime = 60;
CurrentLevel = 5;
LevelSong = "Song2";
VictimsNumber = 0;
LevelVictimsNumber = 3;
EnemiesNumber = 0;
LevelEnemiesNumber = 2;
loadWeapon("Pistol");
HeroMovements();
VictimSpawner();
EnemieSpawner("TazerPark_Guard", "TazerCop");
Frame 165
MaxTime = 90;
CurrentLevel = 6;
LevelSong = "Song3";
VictimsNumber = 0;
LevelVictimsNumber = 3;
EnemiesNumber = 0;
LevelEnemiesNumber = 2;
loadWeapon("Pistol");
HeroMovements();
VictimSpawner();
EnemieSpawner("BattonPark_Guard", "FlashLightCop", "SWATFull");
Frame 166
MaxTime = 90;
CurrentLevel = 7;
LevelSong = "Song4";
VictimsNumber = 0;
LevelVictimsNumber = 3;
EnemiesNumber = 0;
LevelEnemiesNumber = 2;
loadWeapon("Pistol");
HeroMovements();
VictimSpawner();
EnemieSpawner("TazerCop", "FlashLightCop", "SWATFull");
Frame 167
MaxTime = 90;
CurrentLevel = 8;
LevelSong = "Song1";
VictimsNumber = 0;
LevelVictimsNumber = 3;
EnemiesNumber = 0;
LevelEnemiesNumber = 2;
loadWeapon("Pistol");
HeroMovements();
VictimSpawner();
EnemieSpawner("TazerCop", "SWATFull", "copCar");
Frame 168
MaxTime = 120;
CurrentLevel = 9;
LevelSong = "Song2";
VictimsNumber = 0;
LevelVictimsNumber = 3;
EnemiesNumber = 0;
LevelEnemiesNumber = 2;
loadWeapon("Pistol");
HeroMovements();
VictimSpawner();
EnemieSpawner("TazerCop", "SWATFull", "copCar", "SwatVan");
Frame 169
LevelSong = "Song3";
MaxTime = 120;
CurrentLevel = 10;
VictimsNumber = 0;
LevelVictimsNumber = 3;
EnemiesNumber = 0;
LevelEnemiesNumber = 2;
loadWeapon("Pistol");
HeroMovements();
VictimSpawner();
EnemieSpawner("FlashLightCop", "copCar", "SWATFull", "SwatVan");
Frame 170
MaxTime = 120;
CurrentLevel = 11;
LevelSong = "Song4";
VictimsNumber = 0;
LevelVictimsNumber = 3;
EnemiesNumber = 0;
LevelEnemiesNumber = 3;
loadWeapon("Pistol");
HeroMovements();
VictimSpawner();
EnemieSpawner("copCar", "TazerCop", "SwatVan");
Frame 171
MaxTime = 150;
CurrentLevel = 12;
LevelSong = "Song1";
VictimsNumber = 0;
LevelVictimsNumber = 3;
EnemiesNumber = 0;
LevelEnemiesNumber = 2;
loadWeapon("Pistol");
HeroMovements();
VictimSpawner();
EnemieSpawner("copCar", "SwatVan", "SWATFull");
Frame 172
LevelSong = "Song2";
MaxTime = 150;
CurrentLevel = 13;
VictimsNumber = 0;
LevelVictimsNumber = 2;
EnemiesNumber = 0;
LevelEnemiesNumber = 2;
loadWeapon("Pistol");
HeroMovements();
VictimSpawner();
EnemieSpawner("FlashLightCop", "SWATFull");
Frame 173
LevelSong = "Song3";
MaxTime = 180;
CurrentLevel = 14;
VictimsNumber = 0;
LevelVictimsNumber = 2;
EnemiesNumber = 0;
LevelEnemiesNumber = 2;
loadWeapon("Pistol");
HeroMovements();
VictimSpawner();
EnemieSpawner("TazerCop", "SWATFull", "copCar", "SwatVan", "SwatHellicopter");
Frame 174
MaxTime = 180;
CurrentLevel = 15;
LevelSong = "Song4";
VictimsNumber = 0;
LevelVictimsNumber = 2;
EnemiesNumber = 0;
LevelEnemiesNumber = 4;
loadWeapon("Pistol");
HeroMovements();
VictimSpawner();
EnemieSpawner("FlashLightCop");
Frame 175
LevelSong = "Song1";
MaxTime = 210;
CurrentLevel = 16;
VictimsNumber = 0;
LevelVictimsNumber = 2;
EnemiesNumber = 0;
LevelEnemiesNumber = 3;
loadWeapon("Pistol");
HeroMovements();
VictimSpawner();
EnemieSpawner("SWATFull", "TazerCop", "SwatVan", "copCar", "SwatHellicopter");
Frame 176
MaxTime = 210;
CurrentLevel = 17;
LevelSong = "Song2";
VictimsNumber = 0;
LevelVictimsNumber = 1;
EnemiesNumber = 0;
LevelEnemiesNumber = 3;
loadWeapon("Pistol");
HeroMovements();
VictimSpawner();
EnemieSpawner("SWATFull");
Frame 177
MaxTime = 240;
CurrentLevel = 18;
LevelSong = "Song3";
VictimsNumber = 0;
LevelVictimsNumber = 2;
EnemiesNumber = 0;
LevelEnemiesNumber = 2;
loadWeapon("Pistol");
HeroMovements();
VictimSpawner();
EnemieSpawner("SwatVan", "SwatHellicopter");
Frame 178
MaxTime = 240;
CurrentLevel = 19;
LevelSong = "Song4";
VictimsNumber = 0;
LevelVictimsNumber = 2;
EnemiesNumber = 0;
LevelEnemiesNumber = 2;
loadWeapon("Pistol");
HeroMovements();
VictimSpawner();
EnemieSpawner("SwatHellicopter", "SwatVan");
Frame 179
MaxTime = 240;
CurrentLevel = 20;
LevelSong = "Song2";
VictimsNumber = 0;
LevelVictimsNumber = 2;
EnemiesNumber = 0;
LevelEnemiesNumber = 2;
loadWeapon("Pistol");
HeroMovements();
VictimSpawner();
EnemieSpawner("copCar", "SwatHellicopter");
Instance of Symbol 2215 MovieClip "rusty_mc" in Frame 981
on (release) {
getURL ("http://www.rustyarcade.com/ref/arrivalinhell/hud", "_blank");
}
Frame 1001
stop();
RustyAPI.sendData("FinalScore", FinalScore);
rusty_mc.onRelease = function () {
getURL ("http://www.rustyarcade.com?ref=schyzo-level", "_blank");
};
Game1_btn.onRelease = function () {
getURL ("http://www.rustyarcade.com/games/play/19/Arrival-in-hell", "_blank");
};
Game2_btn.onRelease = function () {
getURL ("http://www.rustyarcade.com/games/play/1089/Arrival-In-Hell-2", "_blank");
};
Game3_btn.onRelease = function () {
getURL ("http://www.rustyarcade.com/games/play/964/When-The-Plague-Came", "_blank");
};
Game4_btn.onRelease = function () {
getURL ("http://www.rustyarcade.com/games/play/708/Target-Barbarossa", "_blank");
};
Game5_btn.onRelease = function () {
getURL ("http://www.rustyarcade.com/games/play/526/Mecha-Martyr", "_blank");
};
back_mc.onRelease = function () {
gotoAndStop ("intro");
};
Score_mc.onRelease = function () {
play();
};
Frame 1002
GamePlayMusic.stop();
var o = {n:[8, 2, 2, 14, 11, 2, 12, 6, 11, 3, 1, 7, 4, 10, 8, 6], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID, score:FinalScore});
Frame 1003
gotoAndStop ("intro");
Symbol 81 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 1
gotoAndStop(this._parent._parent.Heads);
Symbol 95 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 3
_parent.Shooting = true;
Symbol 104 MovieClip Frame 3
_parent.Shooting = true;
Symbol 119 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 60
_parent.gotoAndStop("Eliminator");
Symbol 146 MovieClip [TazerCop] Frame 1
stop();
Symbol 146 MovieClip [TazerCop] Frame 79
_root.EnemiesArray.shift();
removeMovieClip(this);
Symbol 163 MovieClip Frame 1
stop();
gotoAndStop(this._parent._parent.Heads);
Symbol 169 MovieClip Frame 4
_parent.Shooting = true;
Symbol 169 MovieClip Frame 18
_parent.Shooting = true;
Symbol 169 MovieClip Frame 32
_parent.Shooting = true;
Symbol 172 MovieClip Frame 5
_parent.Shooting = true;
Symbol 172 MovieClip Frame 18
_parent.Shooting = true;
Symbol 172 MovieClip Frame 33
_parent.Shooting = true;
Symbol 223 MovieClip Frame 46
_parent.gotoAndStop("Eliminator");
Symbol 224 MovieClip [SWATFull] Frame 1
stop();
Symbol 224 MovieClip [SWATFull] Frame 75
_root.EnemiesArray.shift();
removeMovieClip(this);
Symbol 246 MovieClip Frame 1
gotoAndStop(this._parent._parent.Heads);
Symbol 274 MovieClip Frame 51
_parent.gotoAndStop("Eliminator");
Symbol 275 MovieClip [BattonPark_Guard] Frame 1
stop();
Symbol 275 MovieClip [BattonPark_Guard] Frame 53
_root.EnemiesArray.shift();
removeMovieClip(this);
Symbol 293 MovieClip Frame 1
gotoAndStop(this._parent._parent.Heads);
Symbol 320 MovieClip Frame 60
_parent.gotoAndStop("Eliminator");
Symbol 321 MovieClip [TazerPark_Guard] Frame 1
stop();
Symbol 321 MovieClip [TazerPark_Guard] Frame 59
_root.EnemiesArray.shift();
removeMovieClip(this);
Symbol 327 MovieClip Frame 3
_parent.Shooting = true;
Symbol 328 MovieClip Frame 3
_parent.Shooting = true;
Symbol 347 MovieClip Frame 60
_parent.gotoAndStop("Eliminator");
Symbol 348 MovieClip [FlashLightCop] Frame 1
stop();
Symbol 348 MovieClip [FlashLightCop] Frame 75
_root.EnemiesArray.shift();
removeMovieClip(this);
Symbol 355 MovieClip Frame 1
stop();
gotoAndStop(this._parent._parent.Heads);
Symbol 384 MovieClip Frame 1
stop();
Symbol 390 MovieClip Frame 3
_parent.Shooting = true;
Symbol 390 MovieClip Frame 5
_parent.Shooting = true;
Symbol 390 MovieClip Frame 7
_parent.Shooting = true;
Symbol 390 MovieClip Frame 9
_parent.Shooting = true;
Symbol 390 MovieClip Frame 11
_parent.Shooting = true;
Symbol 434 MovieClip Frame 3
_parent.Shooting = true;
Symbol 434 MovieClip Frame 7
_parent.Shooting = true;
Symbol 434 MovieClip Frame 10
_parent.Shooting = true;
Symbol 434 MovieClip Frame 13
_parent.Shooting = true;
Symbol 434 MovieClip Frame 50
_parent.Shooting = true;
Symbol 434 MovieClip Frame 56
_parent.Shooting = true;
Symbol 434 MovieClip Frame 59
_parent.Shooting = true;
Symbol 434 MovieClip Frame 62
_parent.Shooting = true;
Symbol 478 MovieClip Frame 25
_parent.gotoAndStop("Eliminator");
Symbol 479 MovieClip [SwatVan] Frame 1
stop();
Symbol 479 MovieClip [SwatVan] Frame 81
_root.EnemiesArray.shift();
removeMovieClip(this);
Symbol 509 MovieClip Frame 1
stop();
Symbol 526 MovieClip Frame 6
_parent.Shooting = true;
Symbol 526 MovieClip Frame 11
_parent.Shooting = true;
Symbol 526 MovieClip Frame 16
_parent.Shooting = true;
Symbol 526 MovieClip Frame 22
_parent.Shooting = true;
Symbol 526 MovieClip Frame 28
_parent.Shooting = true;
Symbol 526 MovieClip Frame 67
_parent.Shooting = true;
Symbol 526 MovieClip Frame 75
_parent.Shooting = true;
Symbol 526 MovieClip Frame 84
_parent.Shooting = true;
Symbol 526 MovieClip Frame 92
_parent.Shooting = true;
Symbol 526 MovieClip Frame 99
_parent.Shooting = true;
Symbol 534 MovieClip Frame 41
_parent.gotoAndStop("Eliminator");
Symbol 535 MovieClip [SwatHellicopter] Frame 1
stop();
Symbol 535 MovieClip [SwatHellicopter] Frame 81
_root.EnemiesArray.shift();
removeMovieClip(this);
Symbol 536 MovieClip [Bazooka_Explosion_mc] Frame 23
removeMovieClip(this);
Symbol 538 MovieClip [flesh16] Frame 90
removeMovieClip(this);
Symbol 540 MovieClip [flesh21] Frame 90
removeMovieClip(this);
Symbol 542 MovieClip [flesh20] Frame 90
removeMovieClip(this);
Symbol 544 MovieClip [flesh19] Frame 90
removeMovieClip(this);
Symbol 546 MovieClip [flesh22] Frame 90
removeMovieClip(this);
Symbol 548 MovieClip [flesh18] Frame 90
removeMovieClip(this);
Symbol 550 MovieClip [flesh1] Frame 90
removeMovieClip(this);
Symbol 552 MovieClip [flesh3] Frame 90
removeMovieClip(this);
Symbol 554 MovieClip [flesh2] Frame 90
removeMovieClip(this);
Symbol 556 MovieClip [flesh4] Frame 90
removeMovieClip(this);
Symbol 558 MovieClip [flesh5] Frame 90
removeMovieClip(this);
Symbol 560 MovieClip [flesh6] Frame 90
removeMovieClip(this);
Symbol 562 MovieClip [flesh7] Frame 90
removeMovieClip(this);
Symbol 564 MovieClip [flesh8] Frame 90
removeMovieClip(this);
Symbol 566 MovieClip [flesh9] Frame 90
removeMovieClip(this);
Symbol 568 MovieClip [flesh10] Frame 90
removeMovieClip(this);
Symbol 570 MovieClip [flesh11] Frame 90
removeMovieClip(this);
Symbol 572 MovieClip [flesh12] Frame 90
removeMovieClip(this);
Symbol 574 MovieClip [flesh13] Frame 90
removeMovieClip(this);
Symbol 576 MovieClip [flesh14] Frame 90
removeMovieClip(this);
Symbol 578 MovieClip [flesh15] Frame 90
removeMovieClip(this);
Symbol 580 MovieClip [flesh17] Frame 90
removeMovieClip(this);
Symbol 584 MovieClip [fragments_blood] Frame 1
stop();
Symbol 640 MovieClip Frame 1
stop();
gotoAndStop(this._parent._parent.Dress);
Symbol 654 MovieClip Frame 1
stop();
gotoAndStop(this._parent._parent.Pants);
Symbol 667 MovieClip Frame 1
stop();
gotoAndStop(this._parent._parent.Pants);
Symbol 724 MovieClip Frame 1
stop();
gotoAndStop(this._parent._parent.Dress);
Symbol 780 MovieClip Frame 1
stop();
gotoAndStop(this._parent._parent.Dress);
Symbol 784 MovieClip Frame 1
stop();
Symbol 787 MovieClip Frame 1
stop();
Symbol 790 MovieClip Frame 1
stop();
Symbol 793 MovieClip Frame 1
stop();
Symbol 796 MovieClip Frame 1
stop();
Symbol 799 MovieClip Frame 1
stop();
Symbol 802 MovieClip Frame 1
stop();
Symbol 805 MovieClip Frame 1
stop();
Symbol 808 MovieClip Frame 1
stop();
Symbol 811 MovieClip Frame 1
stop();
Symbol 814 MovieClip Frame 1
stop();
Symbol 817 MovieClip Frame 1
stop();
Symbol 820 MovieClip Frame 1
stop();
Symbol 823 MovieClip Frame 1
stop();
Symbol 826 MovieClip Frame 1
stop();
Symbol 829 MovieClip Frame 1
stop();
Symbol 832 MovieClip Frame 1
stop();
Symbol 835 MovieClip Frame 1
stop();
Symbol 838 MovieClip Frame 1
stop();
Symbol 841 MovieClip Frame 1
stop();
Symbol 844 MovieClip Frame 1
stop();
Symbol 847 MovieClip Frame 1
stop();
Symbol 850 MovieClip Frame 1
stop();
Symbol 853 MovieClip Frame 1
stop();
Symbol 856 MovieClip Frame 1
stop();
Symbol 859 MovieClip Frame 1
stop();
Symbol 862 MovieClip Frame 1
stop();
Symbol 865 MovieClip Frame 1
stop();
Symbol 868 MovieClip Frame 1
stop();
Symbol 872 MovieClip Frame 1
stop();
Symbol 879 MovieClip Frame 1
stop();
Symbol 882 MovieClip Frame 1
stop();
Symbol 885 MovieClip Frame 1
stop();
Symbol 888 MovieClip Frame 1
stop();
Symbol 891 MovieClip Frame 1
stop();
Symbol 894 MovieClip Frame 1
stop();
Symbol 897 MovieClip Frame 1
stop();
Symbol 901 MovieClip Frame 1
stop();
Symbol 904 MovieClip Frame 1
stop();
Symbol 908 MovieClip Frame 1
stop();
Symbol 911 MovieClip Frame 1
stop();
Symbol 914 MovieClip Frame 1
stop();
Symbol 917 MovieClip Frame 1
stop();
Symbol 921 MovieClip Frame 1
stop();
Symbol 925 MovieClip Frame 1
stop();
Symbol 927 MovieClip Frame 1
stop();
gotoAndStop(this._parent._parent.Dress);
Symbol 935 MovieClip Frame 15
stop();
Symbol 976 MovieClip Frame 59
_parent.gotoAndStop("Eliminator");
Symbol 1028 MovieClip Frame 60
_parent.gotoAndStop("Eliminator");
Symbol 1060 MovieClip Frame 60
_parent.gotoAndStop("Eliminator");
Symbol 1097 MovieClip Frame 61
_parent.gotoAndStop("Eliminator");
Symbol 1122 MovieClip Frame 60
_parent.gotoAndStop("Eliminator");
Symbol 1124 MovieClip Frame 1
stop();
Symbol 1164 MovieClip Frame 60
_parent.gotoAndStop("Eliminator");
Symbol 1191 MovieClip Frame 57
_parent.gotoAndStop("Eliminator");
Symbol 1222 MovieClip Frame 60
_parent.gotoAndStop("Eliminator");
Symbol 1240 MovieClip Frame 60
_parent.gotoAndStop("Eliminator");
Symbol 1241 MovieClip Frame 24
_parent.gotoAndStop("Eliminator");
Symbol 1258 MovieClip Frame 60
_parent.gotoAndStop("Eliminator");
Symbol 1290 MovieClip Frame 60
_parent.gotoAndStop("Eliminator");
Symbol 1320 MovieClip Frame 59
_parent.gotoAndStop("Eliminator");
Symbol 1321 MovieClip [Victim] Frame 1
stop();
Symbol 1321 MovieClip [Victim] Frame 220
_root.VictimsNumber--;
_root.VictimsArray.shift();
removeMovieClip(this);
Symbol 1392 MovieClip [HeadShot] Frame 29
removeMovieClip(this);
Symbol 1397 MovieClip [RIP_mc] Frame 29
removeMovieClip(this);
Symbol 1402 MovieClip [Critical_mc] Frame 29
removeMovieClip(this);
Symbol 1409 MovieClip Frame 1
stop();
if (_root.Upgrades[11] == undefined) {
Magazine_mc._visible = false;
}
if (_root.Upgrades[13] == undefined) {
laserSight_mc._visible = false;
}
Symbol 1413 MovieClip Frame 1
stop();
Symbol 1439 MovieClip Frame 1
stop();
Symbol 1448 MovieClip Frame 3
_parent.Shooting = true;
Symbol 1458 MovieClip Frame 3
_parent.Shooting = true;
Symbol 1500 MovieClip Frame 40
_parent.gotoAndStop("Eliminator");
Symbol 1501 MovieClip [copCar] Frame 1
stop();
Symbol 1501 MovieClip [copCar] Frame 81
_root.EnemiesArray.shift();
removeMovieClip(this);
Symbol 1511 MovieClip Frame 1
if (_root.Upgrades[2] == undefined) {
Chain_mc._visible = false;
} else if (_root.Upgrades[2] == true) {
Chain_mc._visible = true;
}
if (_root.Upgrades[0] == undefined) {
BulletProofVest_mc._visible = false;
} else if (_root.Upgrades[0] == true) {
BulletProofVest_mc._visible = true;
}
Symbol 1518 MovieClip Frame 1
stop();
Symbol 1523 MovieClip Frame 1
stop();
if (_root.Upgrades[3] == undefined) {
strips_mc._visible = false;
} else if (_root.Upgrades[3] == true) {
strips_mc._visible = true;
}
Symbol 1530 MovieClip Frame 1
stop();
if (_root.Upgrades[6] == undefined) {
Magazine_mc._visible = false;
}
if (_root.Upgrades[7] == undefined) {
Glove_mc._visible = false;
}
if (_root.Upgrades[8] == undefined) {
silencer_mc._visible = false;
}
Symbol 1535 MovieClip Frame 1
stop();
if (_root.Upgrades[3] == undefined) {
strips_mc._visible = false;
} else if (_root.Upgrades[3] == true) {
strips_mc._visible = true;
}
Symbol 1543 MovieClip Frame 1
stop();
Symbol 1550 MovieClip Frame 1
stop();
if (_root.Upgrades[6] == undefined) {
Magazine_mc._visible = false;
}
if (_root.Upgrades[7] == undefined) {
Glove_mc._visible = false;
}
if (_root.Upgrades[8] == undefined) {
silencer_mc._visible = false;
}
Symbol 1559 MovieClip Frame 1
stop();
if (_root.Upgrades[11] == undefined) {
Magazine_mc._visible = false;
}
if (_root.Upgrades[13] == undefined) {
laserSight_mc._visible = false;
}
Symbol 1567 MovieClip Frame 1
stop();
Symbol 1574 MovieClip Frame 1
stop();
if (_root.Upgrades[11] == undefined) {
Magazine_mc._visible = false;
}
if (_root.Upgrades[13] == undefined) {
laserSight_mc._visible = false;
}
Symbol 1576 MovieClip Frame 1
stop();
if (_root.Upgrades[11] == undefined) {
Magazine_mc._visible = false;
}
if (_root.Upgrades[13] == undefined) {
laserSight_mc._visible = false;
}
Symbol 1589 MovieClip Frame 1
stop();
if (_root.Upgrades[15] == undefined) {
Cannon_mc._visible = false;
}
if (_root.Upgrades[16] == undefined) {
bracelet_mc._visible = false;
}
if (_root.Upgrades[17] == undefined) {
handle_mc._visible = false;
}
Symbol 1599 MovieClip Frame 1
stop();
Symbol 1605 MovieClip Frame 1
stop();
Symbol 1613 MovieClip Frame 1
stop();
if (_root.Upgrades[21] == undefined) {
silencer_mc._visible = false;
}
if (_root.Upgrades[20] == undefined) {
Glove_mc._visible = false;
}
Symbol 1619 MovieClip Frame 1
stop();
if (_root.Upgrades[21] == undefined) {
silencer_mc._visible = false;
}
if (_root.Upgrades[20] == undefined) {
Glove_mc._visible = false;
}
Symbol 1626 MovieClip Frame 1
stop();
Symbol 1633 MovieClip Frame 1
stop();
Symbol 1635 MovieClip Frame 1
stop();
Symbol 1646 MovieClip Frame 1
stop();
if (_root.Upgrades[24] == undefined) {
handle_mc._visible = false;
}
if (_root.Upgrades[25] == undefined) {
deco_mc._visible = false;
}
Symbol 1659 MovieClip Frame 1
stop();
Symbol 1664 MovieClip Frame 1
stop();
if (_root.Upgrades[24] == undefined) {
handle_mc._visible = false;
}
if (_root.Upgrades[25] == undefined) {
deco_mc._visible = false;
}
Symbol 1673 MovieClip Frame 1
stop();
if (_root.Upgrades[26] == undefined) {
Glove_mc._visible = false;
}
if (_root.Upgrades[28] == undefined) {
Cannon_mc._visible = false;
}
if (_root.Upgrades[29] == undefined) {
bracelet_mc._visible = false;
}
Symbol 1681 MovieClip Frame 1
stop();
if (_root.Upgrades[26] == undefined) {
Glove_mc._visible = false;
}
if (_root.Upgrades[28] == undefined) {
Cannon_mc._visible = false;
}
if (_root.Upgrades[29] == undefined) {
bracelet_mc._visible = false;
}
Symbol 1688 MovieClip Frame 1
stop();
Symbol 1693 MovieClip Frame 1
stop();
if (_root.Upgrades[26] == undefined) {
Glove_mc._visible = false;
}
if (_root.Upgrades[28] == undefined) {
Cannon_mc._visible = false;
}
if (_root.Upgrades[29] == undefined) {
bracelet_mc._visible = false;
}
Symbol 1695 MovieClip Frame 1
stop();
Symbol 1700 MovieClip Frame 1
stop();
Symbol 1708 MovieClip Frame 1
stop();
if (_root.Upgrades[30] == undefined) {
Magazine_mc._visible = false;
}
if (_root.Upgrades[32] == undefined) {
bracelet_mc._visible = false;
}
if (_root.Upgrades[33] == undefined) {
silencer_mc._visible = false;
}
Symbol 1720 MovieClip Frame 1
stop();
Symbol 1724 MovieClip Frame 1
stop();
if (_root.Upgrades[30] == undefined) {
Magazine_mc._visible = false;
}
if (_root.Upgrades[32] == undefined) {
bracelet_mc._visible = false;
}
if (_root.Upgrades[33] == undefined) {
silencer_mc._visible = false;
}
Symbol 1731 MovieClip Frame 1
stop();
if (_root.Upgrades[34] == undefined) {
Magazine_mc._visible = false;
}
if (_root.Upgrades[35] == undefined) {
handle_mc._visible = false;
}
if (_root.Upgrades[36] == undefined) {
bracelet_mc._visible = false;
}
Symbol 1735 MovieClip Frame 1
stop();
if (_root.Upgrades[34] == undefined) {
Magazine_mc._visible = false;
}
if (_root.Upgrades[35] == undefined) {
handle_mc._visible = false;
}
if (_root.Upgrades[36] == undefined) {
bracelet_mc._visible = false;
}
Symbol 1753 MovieClip Frame 1
stop();
Symbol 1759 MovieClip Frame 1
stop();
if (_root.Upgrades[34] == undefined) {
Magazine_mc._visible = false;
}
if (_root.Upgrades[35] == undefined) {
handle_mc._visible = false;
}
if (_root.Upgrades[36] == undefined) {
bracelet_mc._visible = false;
}
Symbol 1761 MovieClip Frame 1
stop();
if (_root.Upgrades[34] == undefined) {
Magazine_mc._visible = false;
}
if (_root.Upgrades[35] == undefined) {
handle_mc._visible = false;
}
if (_root.Upgrades[36] == undefined) {
bracelet_mc._visible = false;
}
Symbol 1768 MovieClip Frame 1
stop();
if (_root.Upgrades[39] == undefined) {
laserSight_mc._visible = false;
}
if (_root.Upgrades[41] == undefined) {
handle_mc._visible = false;
}
Symbol 1791 MovieClip Frame 1
stop();
Symbol 1804 MovieClip Frame 1
stop();
if (_root.Upgrades[43] == undefined) {
Magazine_mc._visible = false;
}
if (_root.Upgrades[44] == undefined) {
sight_mc._visible = false;
}
if (_root.Upgrades[45] == undefined) {
Glove_mc._visible = false;
}
Symbol 1823 MovieClip Frame 1
stop();
Symbol 1830 MovieClip Frame 1
stop();
if (_root.Upgrades[43] == undefined) {
Magazine_mc._visible = false;
}
if (_root.Upgrades[44] == undefined) {
sight_mc._visible = false;
}
if (_root.Upgrades[45] == undefined) {
Glove_mc._visible = false;
}
Symbol 1842 MovieClip Frame 1
stop();
if (_root.Upgrades[47] == undefined) {
handle_mc._visible = false;
}
if (_root.Upgrades[48] == undefined) {
bracelet_mc._visible = false;
}
if (_root.Upgrades[49] == undefined) {
sight_mc._visible = false;
}
Symbol 1857 MovieClip Frame 1
stop();
Symbol 1866 MovieClip Frame 1
stop();
Symbol 1872 MovieClip Frame 1
stop();
if (_root.Upgrades[47] == undefined) {
handle_mc._visible = false;
}
if (_root.Upgrades[48] == undefined) {
bracelet_mc._visible = false;
}
if (_root.Upgrades[49] == undefined) {
sight_mc._visible = false;
}
Symbol 1874 MovieClip Frame 1
stop();
Symbol 1884 MovieClip Frame 1
stop();
Symbol 1895 MovieClip Frame 1
stop();
Symbol 1921 MovieClip Frame 35
_root.SuckingUp = false;
_root.SuckingSouls = 0;
Symbol 1922 MovieClip Frame 1
stop();
Symbol 1934 MovieClip Frame 1
stop();
Symbol 1945 MovieClip Frame 1
stop();
Symbol 1958 MovieClip Frame 1
stop();
Symbol 1971 MovieClip Frame 1
stop();
Symbol 1975 MovieClip Frame 1
stop();
if (_root.Upgrades[5] == undefined) {
gotoAndStop (1);
} else if (_root.Upgrades[5] == true) {
gotoAndStop (2);
}
Symbol 2006 MovieClip Frame 29
_root.UNhiding = false;
this._parent.gotoAndStop("idle");
Symbol 2025 MovieClip Frame 38
stop();
_root.UNhiding = true;
if (_root.Upgrades[5] == true) {
if (_root.UpgradesLevel[6] == 1) {
_root.CurrentHP = _root.CurrentHP + 25;
} else if (_root.UpgradesLevel[6] == 2) {
_root.CurrentHP = _root.CurrentHP + 50;
}
}
Symbol 2065 MovieClip Frame 130
stop();
Symbol 2096 MovieClip Frame 1
stop();
Symbol 2130 MovieClip Frame 1
stop();
Symbol 2159 MovieClip Frame 35
_root.SuckingUp = false;
_root.SuckingSouls = 0;
Symbol 2160 MovieClip Frame 1
stop();
Symbol 2172 MovieClip Frame 1
stop();
Symbol 2186 MovieClip [Hero_mc] Frame 1
stop();
Symbol 2189 MovieClip [RustyAPI] Frame 1
#initclip 12
Object.registerClass("RustyAPI", RustyAPI);
#endinitclip
Symbol 3554 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local23 = 11000;
var _local19 = options.ad_timeout;
if (options.skip) {
_local19 = 0;
}
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local22 = options.color;
delete options.color;
var _local20 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local20);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local24, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local19;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
mochi.as2.MochiAd.containerNotify(clip, {id:"hostLoadPcnt", pcnt:_local2}, clip._mochiad._containerLCName);
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local10 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local10);
var clip = options.clip;
var _local9 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var _local3 = clip._mochiad;
_local3.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local11 = _local5[0];
var _local8 = _local5[1];
_local3._x = _local11 * 0.5;
_local3._y = _local8 * 0.5;
var chk = _local3.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local9;
chk.started = getTimer();
chk.showing = false;
_local3.lc.adLoaded = options.ad_loaded;
_local3.lc.adSkipped = options.ad_skipped;
_local3.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
_local3.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local21 = false;
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local12 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local12);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local6 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local6._mochiad_loaded) {
return(null);
}
var _local11 = options.depth;
delete options.depth;
var mc = _local6.createEmptyMovieClip("_mochiad", _local11);
var _local10 = _getRes(options);
options.res = (_local10[0] + "x") + _local10[1];
options.server = options.server + options.id;
delete options.id;
_local6._mochiad_loaded = true;
if (_local6._url.indexOf("http") != 0) {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
}
var _local4 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local9 = _local4.server;
delete _local4.server;
var _local13 = _allowDomains(_local9);
mc.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new Object();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = mc;
_local5.name = _local8;
_local5.hostname = _local13;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
mc.lc = _local5;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
_local4.lc = _local8;
_local4.st = getTimer();
if (!options.skip) {
_local4.loadMovie(_local9 + ".swf", "POST");
}
return(mc);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
containerNotify(clip, {id:"unload"}, clip._mochiad._containerLCName);
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
containerRpcResult(clip, callbackID, _local4, clip._mochiad._containerLCName);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
containerRpcResult(clip, callbackID, _local3, clip._mochiad._containerLCName);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
static function containerNotify(clip, args, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.notify) {
_local1.notify(args);
} else {
new LocalConnection().send(lcName, "notify", args);
}
}
static function containerRpcResult(clip, callbackID, val, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.rpcResult) {
_local1.rpcResult(callbackID, val);
} else {
new LocalConnection().send(lcName, "rpcResult", callbackID, val);
}
}
}
Symbol 3555 MovieClip [__Packages.mochi.as2.MochiSync] Frame 0
class mochi.as2.MochiSync
{
var _syncContainer;
function MochiSync () {
_syncContainer = {};
}
function getProp(name) {
return(_syncContainer[name]);
}
function setProp(name, value) {
if (_syncContainer[name] == value) {
return(undefined);
}
_syncContainer[name] = value;
mochi.as2.MochiServices.send("sync_propUpdate", {name:name, value:value});
}
function triggerEvent(eventType, args) {
switch (eventType) {
case SYNC_REQUEST :
mochi.as2.MochiServices.send("sync_syncronize", _syncContainer);
break;
case SYNC_PROPERTY :
_syncContainer[args.name] = args.value;
}
}
static var SYNC_REQUEST = "SyncRequest";
static var SYNC_PROPERTY = "UpdateProperty";
}
Symbol 3556 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.8 as2");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError.apply(null, [errorCode]);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
break;
case "sync" :
mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function updateCopy(args) {
send("coins_updateCopy", args, null, null);
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var servicesSync = new mochi.as2.MochiSync();
}
Symbol 3557 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 3558 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function setNotifications(clip, style) {
var _local2 = {};
for (var _local3 in style) {
_local2[_local3] = style[_local3];
}
_local2.clip = clip;
mochi.as2.MochiServices.send("events_setNotifications", _local2, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startPlay(tag) {
if (tag == undefined) {
tag = "gameplay";
}
mochi.as2.MochiServices.send("events_setRoundID", {tag:String(tag)}, null, null);
}
static function endPlay() {
mochi.as2.MochiServices.send("events_clearRoundID", null, null, null);
}
static function trackEvent(tag, value) {
mochi.as2.MochiServices.send("events_trackEvent", {tag:tag, value:value}, null, null);
}
static var ACHIEVEMENT_RECEIVED = "AchievementReceived";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 3559 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("coins_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("coins_hideLoginWidget");
}
static function requestLogin() {
mochi.as2.MochiServices.send("coins_requestLogin");
}
static function getUserInfo() {
mochi.as2.MochiServices.send("coins_getUserInfo");
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("coins_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 2187 MovieClip [__Packages.RustyAPI] Frame 0
class RustyAPI extends MovieClip
{
static var _instance, _status, _tries, _queue, _lc, _title, _keepAliveInt;
function RustyAPI () {
super();
if (!_instance) {
_instance = this;
_status = "";
_tries = 0;
_queue = new Array();
_instance = this;
_lc = new LocalConnection();
_lc.allowDomain = utils.Delegate.create(_instance, allowDomain);
_lc.allowInsecureDomain = utils.Delegate.create(_instance, allowDomain);
_lc.onStatus = utils.Delegate.create(_instance, onStatus);
_lc.wrapperData = utils.Delegate.create(_instance, wrapperData);
_lc.connect("RustyAPI_R_" + _title);
connect();
}
}
function allowDomain(domain) {
return(true);
}
function connect() {
if ((_status == "retrying") || (_status == "")) {
_status = "connecting";
_lc.send("RustyAPI_S_" + _title, "startConnect");
}
}
function onStatus(info) {
if (info.level == "error") {
if ((_status == "connecting") && (_tries < 30)) {
_global.setTimeout(utils.Delegate.create(_instance, connect), 1000);
_status = "retrying";
_tries++;
} else {
clearInterval(_keepAliveInt);
}
}
}
function wrapperData() {
_status = "connected";
_keepAliveInt = setInterval(utils.Delegate.create(_instance, keepAlive), 1000);
var _local2 = 0;
while (_local2 < _queue.length) {
_queue[_local2].call();
_local2++;
}
}
function keepAlive() {
_lc.send("RustyAPI_S_" + _title, "keepAlive");
}
static function sendData(name, value) {
if (_status == "connected") {
_lc.send("RustyAPI_S_" + _title, "gameData", name, value);
} else {
_queue.push(utils.Delegate.create(_instance, sendData, name, value));
}
}
function get id() {
return(_title);
}
function set id(val) {
_title = val;
//return(id);
}
}
Symbol 3560 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
options.clip = mochi.as2.MochiServices.clip;
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
trace("WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!");
trace("make sure MochiServices.connect is called as early in the application runtime as possible.");
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.as2.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.as2.MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 3561 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 2190 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 2191 MovieClip [__Packages.utils.Delegate] Frame 0
class utils.Delegate extends mx.utils.Delegate
{
function Delegate () {
super();
}
static function create(scope, func) {
var args = arguments.splice(2);
return(function () {
return(func.apply(scope, args.concat(arguments)));
});
}
}
Symbol 2235 Button
on (release) {
getURL ("http://www.rustyarcade.com?ref=schyzo-intro", "_blank");
}
Symbol 2290 MovieClip Frame 1
stop();
Symbol 2299 MovieClip Frame 1
stop();
Symbol 2340 MovieClip Frame 1
stop();
Symbol 2393 MovieClip Frame 11
stop();
Symbol 2394 MovieClip Frame 13
stop();
Symbol 2395 MovieClip Frame 1
stop();
Symbol 2398 MovieClip Frame 10
stop();
Symbol 2410 MovieClip Frame 1
stop();
Symbol 2415 MovieClip Frame 1
stop();
Symbol 2419 MovieClip Frame 1
stop();
Symbol 2423 MovieClip Frame 1
stop();
Symbol 2427 MovieClip Frame 1
stop();
Symbol 2431 MovieClip Frame 1
stop();
Symbol 2435 MovieClip Frame 1
stop();
Symbol 2440 MovieClip Frame 1
stop();
Symbol 2442 MovieClip Frame 1
stop();
Symbol 2444 MovieClip Frame 1
stop();
Symbol 2446 MovieClip Frame 1
stop();
Symbol 2448 MovieClip Frame 1
stop();
Symbol 2452 MovieClip Frame 1
stop();
Symbol 2454 MovieClip Frame 1
stop();
Symbol 2458 MovieClip Frame 10
stop();
Symbol 2461 MovieClip Frame 10
stop();
Symbol 2462 MovieClip Frame 1
stop();
Symbol 2471 MovieClip Frame 1
stop();
Symbol 2480 MovieClip Frame 1
stop();
Symbol 2488 MovieClip Frame 1
stop();
Symbol 2491 MovieClip Frame 1
stop();
Symbol 2497 MovieClip Frame 1
stop();
Symbol 2506 MovieClip Frame 1
stop();
Symbol 2515 MovieClip Frame 1
stop();
Symbol 2532 MovieClip Frame 10
stop();
Symbol 2540 MovieClip Frame 1
stop();
Symbol 2547 MovieClip Frame 1
stop();
Symbol 2554 MovieClip Frame 1
stop();
Symbol 2562 MovieClip Frame 1
stop();
Symbol 2592 MovieClip Frame 1
stop();
Symbol 2602 MovieClip Frame 1
stop();
Symbol 2609 MovieClip Frame 1
stop();
Symbol 2617 MovieClip Frame 1
stop();
Symbol 2624 MovieClip Frame 1
stop();
Symbol 2640 MovieClip Frame 1
stop();
Symbol 2647 MovieClip Frame 1
stop();
Symbol 2654 MovieClip Frame 1
stop();
Symbol 2661 MovieClip Frame 1
stop();
Symbol 2679 MovieClip Frame 1
stop();
Symbol 2688 MovieClip Frame 1
stop();
Symbol 2697 MovieClip Frame 1
stop();
Symbol 2706 MovieClip Frame 1
stop();
Symbol 2724 MovieClip Frame 1
stop();
Symbol 2733 MovieClip Frame 1
stop();
Symbol 2740 MovieClip Frame 1
stop();
Symbol 2747 MovieClip Frame 1
stop();
Symbol 2762 MovieClip Frame 1
stop();
Symbol 2769 MovieClip Frame 1
stop();
Symbol 2776 MovieClip Frame 1
stop();
Symbol 2783 MovieClip Frame 1
stop();
Symbol 2799 MovieClip Frame 1
stop();
Symbol 2808 MovieClip Frame 1
stop();
Symbol 2815 MovieClip Frame 1
stop();
Symbol 2822 MovieClip Frame 1
stop();
Symbol 2839 MovieClip Frame 1
stop();
Symbol 2846 MovieClip Frame 1
stop();
Symbol 2852 MovieClip Frame 1
stop();
Symbol 2859 MovieClip Frame 1
stop();
Symbol 2876 MovieClip Frame 1
stop();
Symbol 2883 MovieClip Frame 1
stop();
Symbol 2890 MovieClip Frame 1
stop();
Symbol 2897 MovieClip Frame 1
stop();
Symbol 2914 MovieClip Frame 1
stop();
Symbol 2921 MovieClip Frame 1
stop();
Symbol 2928 MovieClip Frame 1
stop();
Symbol 2935 MovieClip Frame 1
stop();
Symbol 2953 MovieClip Frame 1
stop();
Symbol 2960 MovieClip Frame 1
stop();
Symbol 2966 MovieClip Frame 1
stop();
Symbol 2973 MovieClip Frame 1
stop();
Symbol 2983 MovieClip Frame 1
stop();
shades_mc.play();
Symbol 2983 MovieClip Frame 6
shades_mc.play();
Symbol 2983 MovieClip Frame 12
shades_mc.play();
Symbol 2983 MovieClip Frame 20
shades_mc.play();
Symbol 2983 MovieClip Frame 28
shades_mc.play();
Symbol 2983 MovieClip Frame 40
shades_mc.play();
Symbol 2983 MovieClip Frame 49
shades_mc.play();
Symbol 2983 MovieClip Frame 58
shades_mc.play();
Symbol 2983 MovieClip Frame 68
shades_mc.play();
Symbol 2983 MovieClip Frame 81
shades_mc.play();
Symbol 2983 MovieClip Frame 93
shades_mc.play();
Symbol 2983 MovieClip Frame 106
shades_mc.play();
Symbol 2998 MovieClip Frame 1
stop();
Symbol 3033 MovieClip Frame 1
stop();
Symbol 3038 MovieClip Frame 1
stop();
Symbol 3040 MovieClip Frame 1
stop();
Symbol 3044 MovieClip Frame 1
stop();
Symbol 3046 MovieClip Frame 1
stop();
Symbol 3048 MovieClip Frame 1
stop();
Symbol 3050 MovieClip Frame 1
stop();
Symbol 3061 MovieClip Frame 1
stop();
Symbol 3123 MovieClip Frame 1
stop();
Symbol 3124 MovieClip Frame 10
stop();
Symbol 3139 MovieClip Frame 10
stop();
Symbol 3145 MovieClip Frame 10
stop();
Symbol 3154 MovieClip Frame 10
stop();
Symbol 3161 MovieClip Frame 10
stop();
Symbol 3167 MovieClip Frame 10
stop();
Symbol 3171 MovieClip Frame 10
stop();
Symbol 3175 MovieClip Frame 10
stop();
Symbol 3178 MovieClip Frame 1
stop();
Symbol 3191 MovieClip Frame 80
stop();
Symbol 3203 MovieClip Frame 1
stop();
Symbol 3204 MovieClip Frame 11
stop();
Symbol 3205 MovieClip Frame 1
stop();
Symbol 3208 MovieClip Frame 1
stop();
Symbol 3212 MovieClip Frame 1
stop();
Symbol 3218 MovieClip Frame 1
stop();
Symbol 3242 MovieClip Frame 1
stop();
Symbol 3246 MovieClip Frame 1
stop();
Symbol 3259 MovieClip Frame 1
stop();
Symbol 3260 MovieClip Frame 1
stop();
Symbol 3273 MovieClip Frame 45
stop();
Symbol 3277 MovieClip Frame 45
stop();
Symbol 3281 MovieClip Frame 45
stop();
Symbol 3285 MovieClip Frame 40
stop();
Symbol 3289 MovieClip Frame 45
stop();
Symbol 3293 MovieClip Frame 1
if (_root.Upgrades[3] == true) {
HPandMoney_mc._visible = true;
} else if (_root.Upgrades[3] == undefined) {
HPandMoney_mc._visible = false;
}
Symbol 3297 MovieClip Frame 45
stop();
Symbol 3301 MovieClip Frame 45
stop();
Symbol 3305 MovieClip Frame 45
stop();
Symbol 3309 MovieClip Frame 45
stop();
Symbol 3312 MovieClip Frame 45
stop();
Symbol 3313 MovieClip Frame 1
stop();
Symbol 3313 MovieClip Frame 7
_root.TotalCombos = _root.TotalCombos + 1;
if (_root.Upgrades[3] == true) {
_root.CurrentHP = _root.CurrentHP + 10;
_root.TotalMoneys = _root.TotalMoneys + 10;
_root.Moneys = _root.Moneys + 10;
}
Symbol 3313 MovieClip Frame 8
_root.TotalCombos = _root.TotalCombos + 1;
if (_root.Upgrades[3] == true) {
_root.CurrentHP = _root.CurrentHP + 10;
_root.TotalMoneys = _root.TotalMoneys + 10;
_root.Moneys = _root.Moneys + 10;
}
Symbol 3313 MovieClip Frame 9
_root.TotalCombos = _root.TotalCombos + 1;
if (_root.Upgrades[3] == true) {
_root.CurrentHP = _root.CurrentHP + 10;
_root.TotalMoneys = _root.TotalMoneys + 10;
_root.Moneys = _root.Moneys + 10;
}
Symbol 3313 MovieClip Frame 10
_root.TotalCombos = _root.TotalCombos + 1;
if (_root.Upgrades[3] == true) {
_root.CurrentHP = _root.CurrentHP + 10;
_root.TotalMoneys = _root.TotalMoneys + 10;
_root.Moneys = _root.Moneys + 10;
}
Symbol 3313 MovieClip Frame 11
_root.TotalCombos = _root.TotalCombos + 1;
if (_root.Upgrades[3] == true) {
_root.CurrentHP = _root.CurrentHP + 10;
_root.TotalMoneys = _root.TotalMoneys + 10;
_root.Moneys = _root.Moneys + 10;
}
Symbol 3319 MovieClip Frame 1
stop();
Symbol 3319 MovieClip Frame 185
stop();
_root.EXIT = true;
_root.gotoAndStop("Starter");
Symbol 3326 MovieClip Frame 1
stop();
Symbol 3331 MovieClip Frame 1
stop();
Symbol 3332 MovieClip Frame 142
stop();
_parent.gotoAndStop(1);
Symbol 3337 MovieClip Frame 1
stop();
Symbol 3338 MovieClip Frame 143
stop();
_parent.gotoAndStop(1);
Symbol 3343 MovieClip Frame 1
stop();
Symbol 3344 MovieClip Frame 142
stop();
_parent.gotoAndStop(1);
Symbol 3349 MovieClip Frame 1
stop();
Symbol 3350 MovieClip Frame 142
stop();
_parent.gotoAndStop(1);
Symbol 3355 MovieClip Frame 1
stop();
Symbol 3356 MovieClip Frame 141
stop();
_parent.gotoAndStop(1);
Symbol 3361 MovieClip Frame 1
stop();
Symbol 3362 MovieClip Frame 142
stop();
_parent.gotoAndStop(1);
Symbol 3363 MovieClip Frame 1
stop();
Symbol 3369 MovieClip Frame 1
stop();
Symbol 3369 MovieClip Frame 30
Symbol 3369 MovieClip Frame 120
stop();
_root.EXIT = true;
_root.gotoAndStop("Starter");
Symbol 3383 MovieClip Frame 1
stop();
Symbol 3390 MovieClip Frame 1
stop();
Symbol 3401 MovieClip Frame 1
stop();
Symbol 3401 MovieClip Frame 30
_root.Pause = true;
Symbol 3401 MovieClip Frame 120
stop();
_root.EXIT = true;
_root.gotoAndStop("Starter");
Symbol 3404 MovieClip Frame 1
stop();
Symbol 3418 MovieClip Frame 1
stop();
Symbol 3426 MovieClip Frame 1
stop();
Symbol 3435 MovieClip Frame 111
stop();
Symbol 3438 MovieClip Frame 1
stop();
Symbol 3488 MovieClip Frame 1
stop();
Symbol 3489 MovieClip Frame 1
stop();
Symbol 3489 MovieClip Frame 126
_root.Pause = true;
Symbol 3489 MovieClip Frame 158
_root.gotoAndPlay("GameEnd");
_root.EXIT = true;
Symbol 3492 MovieClip Frame 1
stop();