Frame 1
MySave = SharedObject.getLocal("flashcookieZR");
var rightClick = new ContextMenu();
rightClick.hideBuiltInItems();
_root.menu = rightClick;
_root.SoundOn = true;
_root.NOGAME = false;
Instance of Symbol 290 MovieClip "siteLock" in Frame 1
onClipEvent (enterFrame) {
if (_root.NOGAME == true) {
this._y = 360;
}
}
Frame 2
stop();
Instance of Symbol 305 MovieClip "HUDStartGame" in Frame 2
on (rollOver) {
}
on (press) {
getURL ("http://www.playermatters.com", "_blank");
}
Instance of Symbol 290 MovieClip "siteLock" in Frame 2
onClipEvent (enterFrame) {
if (_root.NOGAME == true) {
this._y = 279;
}
}
Frame 3
_root.LoadGame = false;
_root.DiffSetting = "Normal";
if ((MySave.data.LevelNow == undefined) or (MySave.data.LevelNow == -1)) {
_root.McResumeNo._x = 54.5;
_root.McResume._x = -500;
} else {
_root.McResumeNo._x = -500;
_root.McResume._x = 54.5;
}
stop();
if (_root.SoundOn == true) {
mymusic = new Sound(_root);
mymusic.attachSound("music");
mymusic.start(0, 999);
}
Instance of Symbol 308 MovieClip in Frame 3
onClipEvent (enterFrame) {
AShakeX = random(3);
AShakeY = random(3);
this._x = 0 + AShakeX;
this._y = -3 + AShakeY;
}
Instance of Symbol 327 MovieClip "McNG" in Frame 3
on (rollOver) {
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("rollover");
mySound.start();
}
this.gotoAndPlay(2);
_root.McScores._x = -500;
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("ClickMenu");
mySound.start();
}
_root.DiffSetting = "Normal";
_root.gotoAndStop(4);
}
Instance of Symbol 330 MovieClip "McResume" in Frame 3
on (rollOver) {
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("rollover");
mySound.start();
}
this.gotoAndPlay(2);
_root.McScores._x = -500;
_root.NewGameSelected = false;
_parent.mcHS.gotoAndStop(1);
_parent.McNG.gotoAndStop(1);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("ClickMenu");
mySound.start();
}
_root.LoadGame = true;
_root.gotoAndStop(4);
}
Instance of Symbol 335 MovieClip in Frame 3
on (rollOver) {
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("rollover");
mySound.start();
}
_root.McNewGameBox._x = -500;
_root.McScores._x = -500;
this.gotoAndPlay(2);
_root.NewGameSelected = false;
_parent.mcHS.gotoAndStop(1);
_parent.McNG.gotoAndStop(1);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://armorgames.com", "_blank");
}
Instance of Symbol 340 MovieClip "mcHS" in Frame 3
on (rollOver) {
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("rollover");
mySound.start();
}
this.gotoAndPlay(2);
_root.McNewGameBox._x = -500;
_root.McScores._x = 256.2;
_root.McScores._y = 348;
}
on (rollOut) {
_root.McScores._x = -500;
this.gotoAndStop(1);
}
on (press) {
agi.showScoreboardList();
}
Instance of Symbol 345 MovieClip in Frame 3
on (rollOver) {
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("rollover");
mySound.start();
}
this.gotoAndPlay(2);
_root.McScores._x = -500;
_root.McAchievementBox._x = 254.5;
_root.McAchievementBox._y = 195.4;
_root.NewGameSelected = false;
_parent.mcHS.gotoAndStop(1);
_parent.McNG.gotoAndStop(1);
}
on (rollOut) {
this.gotoAndStop(1);
_root.McAchievementBox._x = -500;
}
Instance of Symbol 365 MovieClip "McScores" in Frame 3
onClipEvent (enterFrame) {
if (_root.MySave.data.BestScore1Now == undefined) {
_root.BestScore1 = "No Score Yet!";
_root.BestScore1A = 0;
} else {
_root.BestScore1 = _root.MySave.data.BestScore1Now + " Points";
_root.BestScore1A = _root.MySave.data.BestScore1Now;
}
if (_root.MySave.data.BestScore2Now == undefined) {
_root.BestScore2 = "No Score Yet!";
_root.BestScore2A = 0;
} else {
_root.BestScore2 = _root.MySave.data.BestScore2Now + " Points";
_root.BestScore2A = _root.MySave.data.BestScore2Now;
}
if (_root.MySave.data.BestScore3Now == undefined) {
_root.BestScore3 = "No Score Yet!";
_root.BestScore3A = 0;
} else {
_root.BestScore3 = _root.MySave.data.BestScore3Now + " Points";
_root.BestScore3A = _root.MySave.data.BestScore3Now;
}
}
Instance of Symbol 370 MovieClip in Frame 3
on (press) {
this.gotoAndPlay(2);
if (_root.SoundOn == true) {
_root.SoundOn = false;
_root.mymusic.setVolume(0);
} else {
_root.SoundOn = true;
_root.mymusic.setVolume(100);
}
}
Instance of Symbol 372 MovieClip in Frame 3
on (rollOver) {
}
on (press) {
getURL ("http://armorgames.com", "_blank");
}
Frame 4
_root.Health = 1000;
_root.McPlayerHealthBar.gotoAndStop(_root.Health);
_root.EndGame = false;
_root.cptShotPlayer = 0;
_root.VctPlayerShot_DirX = [];
_root.VctPlayerShot_DirY = [];
_root.AchievementText = "";
_root.AchievementZombieCompteur = 0;
if (((((((((_root.MySave.data.Achievement1Now == 1) or (_root.MySave.data.Achievement2Now == 1)) or (MySave.data.Achievement3Now == 1)) or (MySave.data.Achievement4Now == 1)) or (MySave.data.Achievement5Now == 1)) or (MySave.data.Achievement6Now == 1)) or (MySave.data.Achievement7Now == 1)) or (MySave.data.Achievement8Now == 1)) or (MySave.data.Achievement9Now == 1)) {
_root.Achievement1Status = MySave.data.Achievement1Now;
_root.Achievement2Status = MySave.data.Achievement2Now;
_root.Achievement3Status = MySave.data.Achievement3Now;
_root.Achievement4Status = MySave.data.Achievement4Now;
_root.Achievement5Status = MySave.data.Achievement5Now;
_root.Achievement6Status = MySave.data.Achievement6Now;
_root.Achievement7Status = MySave.data.Achievement7Now;
_root.Achievement8Status = MySave.data.Achievement8Now;
_root.Achievement9Status = MySave.data.Achievement9Now;
} else {
_root.Achievement1Status = 0;
_root.Achievement2Status = 0;
_root.Achievement3Status = 0;
_root.Achievement4Status = 0;
_root.Achievement5Status = 0;
_root.Achievement6Status = 0;
_root.Achievement7Status = 0;
_root.Achievement8Status = 0;
_root.Achievement9Status = 0;
}
_root.LastSentence = "";
_root.CurrentCar = 1;
car1.code = "player";
acceleration = 0.35;
speedDecay = 0.96;
rotationStep = 9;
maxSpeed = 6.5;
backSpeed = 2.2;
_root.CarArmor = 2;
_root.speed = 0;
_root.PlayerDirX = 0;
_root.PlayerDirY = 0;
_root.KeyUpPressed = false;
_root.StopBack = false;
_root.ShopShowThisCarNb = 1;
_root.StopCar = false;
_root.CarStopFirstTest = false;
_root.RotationCarStopForce = 0;
_root.ShopMotorUp = 0;
_root.ShopTireUp = 0;
_root.DamagedPourc = 0;
_root.ShopArmorUp = 0;
_root.PriceRepair = 0;
_root.PriceCar2 = 1000;
_root.PriceCar3 = 2000;
_root.PriceCar4 = 3300;
_root.PriceCar5 = 5400;
_root.PriceCar1Eng1 = 50;
_root.PriceCar1Eng2 = 100;
_root.PriceCar1Eng3 = 150;
_root.PriceCar1Tir1 = 25;
_root.PriceCar1Tir2 = 50;
_root.PriceCar1Tir3 = 100;
_root.PriceCar1Arm1 = 20;
_root.PriceCar1Arm2 = 45;
_root.PriceCar1Arm3 = 95;
_root.PriceCar2Eng1 = 75;
_root.PriceCar2Eng2 = 150;
_root.PriceCar2Eng3 = 250;
_root.PriceCar2Tir1 = 50;
_root.PriceCar2Tir2 = 75;
_root.PriceCar2Tir3 = 150;
_root.PriceCar2Arm1 = 40;
_root.PriceCar2Arm2 = 65;
_root.PriceCar2Arm3 = 125;
_root.PriceCar3Eng1 = 150;
_root.PriceCar3Eng2 = 300;
_root.PriceCar3Eng3 = 400;
_root.PriceCar3Tir1 = 110;
_root.PriceCar3Tir2 = 150;
_root.PriceCar3Tir3 = 225;
_root.PriceCar3Arm1 = 65;
_root.PriceCar3Arm2 = 95;
_root.PriceCar3Arm3 = 140;
_root.PriceCar4Eng1 = 200;
_root.PriceCar4Eng2 = 350;
_root.PriceCar4Eng3 = 450;
_root.PriceCar4Tir1 = 170;
_root.PriceCar4Tir2 = 250;
_root.PriceCar4Tir3 = 305;
_root.PriceCar4Arm1 = 125;
_root.PriceCar4Arm2 = 175;
_root.PriceCar4Arm3 = 250;
_root.PriceCar5Eng1 = 200;
_root.PriceCar5Eng2 = 300;
_root.PriceCar5Eng3 = 400;
_root.PriceCar5Tir1 = 200;
_root.PriceCar5Tir2 = 250;
_root.PriceCar5Tir3 = 325;
_root.PriceCar5Arm1 = 175;
_root.PriceCar5Arm2 = 200;
_root.PriceCar5Arm3 = 250;
_root.UpdateCarShopUpg();
_root.CarnageNb = 0;
_root.CarnagePoint = 0;
_root.CarnageNbBack = 0;
_root.CarnagePointBack = 0;
_root.CarnageMaxNb = 0;
_root.MiniGameOn = false;
_root.GSPosX = 298.6;
_root.GSPosY = 317.1;
_root.StationHealth = 1000;
_root.MinigameLevel1 = 6;
_root.MinigameLevel2 = 12;
_root.MinigameLevel3 = 18;
_root.MinigameLevel4 = 24;
_root.MinigameLevel5 = 30;
_root.BossMode = false;
_root.cptBossDropShit = 0;
_root.BossCptAttack = 0;
_root.BKillerAmmoGrab = false;
_root.ShootBKillerAmmo = false;
_root.McBossHealth = 2;
_root.McBossHBar.In.gotoAndPlay(_root.McBossHealth + 1);
_root.BossHitSequence = false;
_root.TeleportBOn = false;
_root.Boss1Level = 14;
_root.Boss2Level = 25;
_root.Boss3Level = 35;
_root.BossStatsPowerBig = 5;
_root.BossStatsPowerSmall = 2;
_root.NitroCooldownOver = false;
_root.NitroFXOn = false;
_root.ScreenShake = false;
_root.ShakeX = 0;
_root.ShakeY = 0;
_root.cptZombies = 0;
_root.VctEnnCptAttack = [];
_root.VctEnnType = [];
_root.VctEnnMissile_DirX = [];
_root.VctEnnMissile_DirY = [];
_root.VctEnnMissile_Type = [];
_root.cptEnnMissile = 0;
_root.Score = 0;
_root.CashTotal = 100;
_root.ShowShop = false;
_root.MaxEnnRound = 10;
_root.Level = 2;
_root.EnnTotalRound = 0;
_root.EnnTotalLeft = 0;
_root.EnnNow = 0;
_root.MaxEnnNow = 0;
_root.EnnType1Left = 0;
_root.EnnType1Max = 0;
_root.EnnType2Left = 0;
_root.EnnType2Max = 0;
_root.EnnType3Left = 0;
_root.EnnType3Max = 0;
_root.EnnType4Left = 0;
_root.EnnType4Max = 0;
_root.EnnType5Left = 0;
_root.EnnType5Max = 0;
_root.EnnType6Left = 0;
_root.EnnType6Max = 0;
_root.EnnType7Left = 0;
_root.EnnType7Max = 0;
_root.EnnType8Left = 0;
_root.EnnType8Max = 0;
_root.EnnType9Left = 0;
_root.EnnType9Max = 0;
_root.EnnType10Left = 0;
_root.EnnType10Max = 0;
_root.LevelMapNow = 1;
_root.EnnType1GiveCash = 10;
_root.EnnType1GivePoints = 100;
_root.EnnType2GiveCash = 12;
_root.EnnType2GivePoints = 150;
_root.EnnType3GiveCash = 10;
_root.EnnType3GivePoints = 100;
_root.EnnType4GiveCash = 11;
_root.EnnType4GivePoints = 150;
_root.EnnType5GiveCash = 12;
_root.EnnType5GivePoints = 150;
_root.EnnType6GiveCash = 15;
_root.EnnType6GivePoints = 200;
_root.EnnType7GiveCash = 8;
_root.EnnType7GivePoints = 50;
_root.EnnType8GiveCash = 9;
_root.EnnType8GivePoints = 50;
_root.EnnType9GiveCash = 11;
_root.EnnType9GivePoints = 150;
_root.EnnType10GiveCash = 14;
_root.EnnType10GivePoints = 200;
_root.LastCollisionState = false;
_root.cptFx = 1;
_root.TmrTraceOn = false;
_root.cptTireTraceAdd = 0;
_root.VctFX_OriginX = [];
_root.VctFX_OriginY = [];
_root.CptTmrBonus = 120;
_root.BonusType = 0;
_root.CptBonusGiven = 0;
_root.McBonusOriginX = 0;
_root.McBonusOriginY = 0;
_root.DepthFx = 500;
_root.DepthZombie = 840;
_root.DepthEnnMissile = 1400;
_root.LayerBDropShit = 1325;
_root.car1.swapDepths(1900);
_root.McHUD.swapDepths(2000);
_root.McPlayerHealthBar.swapDepths(2001);
_root.McZombiesLeft.swapDepths(2002);
_root.McBoss.swapDepths(1921);
_root.McBossHBar.swapDepths(17);
_root.McPoints.swapDepths(2003);
_root.McCash.swapDepths(2004);
_root.McShop.swapDepths(2100);
_root.McCarnage.swapDepths(8100);
_root.McMouseAim.swapDepths(6100);
_root.McNitroShield.swapDepths(1920);
_root.McRuleLabel.swapDepths(200);
_root.McNitroBar.swapDepths(2006);
_root.McMainChar.swapDepths(8120);
_root.McLayerTop.swapDepths(1901);
_root.McAchievementBox.swapDepths(9050);
_root.McGameOverBox.swapDepths(9051);
_root.McLevelBoxStatus.swapDepths(9052);
function step(who) {
if ((_root.Health < 1) or (_root.StationHealth < 1)) {
_root.EndGame = true;
}
if ((_root.ShowShop == false) and (_root.MiniGameOn == false)) {
if (_root["car" + who].code == "player") {
if (_root.speed > 0.3) {
_root.speed = _root.speed * _root.speedDecay;
} else {
_root.speed = 0;
}
if ((((_root.car1._x < 0) or (_root.car1._x > 640)) or (_root.car1._y < 0)) or (_root.car1._y > 480)) {
_root.car1._x = 230;
_root.car1._y = 200;
}
if (Key.isDown(38) && (_root.speed < _root.maxSpeed)) {
if (_root.StopCar == false) {
_root.speed = _root.speed + _root.acceleration;
} else {
_root.speed = _root.speed + (_root.acceleration / 2);
}
_root.KeyUpPressed = true;
_root.StopBack = false;
}
if (Key.isDown(40)) {
if (_root.StopBack == false) {
_root.speed = _root.speed - _root.backSpeed;
}
_root.KeyUpPressed = false;
}
if (Key.isDown(37) && (Math.abs(_root.speed) > 0.3)) {
_root["car" + who]._rotation = _root["car" + who]._rotation - (_root.rotationStep * (_root.speed / _root.maxSpeed));
}
if (Key.isDown(39) && (Math.abs(_root.speed) > 0.3)) {
_root["car" + who]._rotation = _root["car" + who]._rotation + (_root.rotationStep * (_root.speed / _root.maxSpeed));
}
if (_root.BKillerAmmoGrab == true) {
if (Key.isDown(16)) {
_root.BKillerAmmoGrab = false;
_root.ShootBKillerAmmo = true;
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("Shot");
mySound.start();
}
}
}
if (Key.isDown(32) && (_root.McNitroBar._currentframe > 42)) {
if (_root.StopCar == false) {
downnitro = 43;
_root.speed = _root.maxSpeed + (_root.maxSpeed / 3);
_root.McNitroBar.gotoAndPlay(McNitroBar._currentframe - downnitro);
_root.NitroCooldownOver = false;
_root.McNitroBG.gotoAndStop(1);
_root.NitroFXOn = true;
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("Explosion");
mySound.setVolume(30);
mySound.start();
}
}
}
_root.ScreenShake = false;
if (_root.NitroFXOn == true) {
_root.McNitroShield._x = _root.car1._x;
_root.McNitroShield._y = _root.car1._y;
_root.McNitroShield._rotation = _root.car1._rotation;
_root.ScreenShake = true;
_root.UpdateFXShake(1);
_root.CreateFX(8, _root["car" + who]._x, _root["car" + who]._y, 0);
}
if ((_root.speed < (_root.maxSpeed + 1)) and (_root.NitroFXOn == true)) {
_root.UpdateFXShake(2);
_root.NitroFXOn = false;
_root.McNitroShield.gotoAndPlay(10);
}
this["rotation" + who] = _root["car" + who]._rotation;
this["speedx" + who] = Math.sin(this["rotation" + who] * (Math.PI/180)) * _root.speed;
this["speedy" + who] = (Math.cos(this["rotation" + who] * (Math.PI/180)) * _root.speed) * -1;
_root["car" + who]._x = _root["car" + who]._x + this["speedx" + who];
_root["car" + who]._y = _root["car" + who]._y + this["speedy" + who];
_root.PlayerDirX = this["speedx" + who];
_root.PlayerDirY = this["speedy" + who];
_root["car" + who].pointLeft = {x:-25, y:0};
_root["car" + who].localToGlobal(_root["car" + who].pointLeft);
_root["car" + who].pointRight = {x:25, y:0};
_root["car" + who].localToGlobal(_root["car" + who].pointRight);
_root["car" + who].pointFront = {x:0, y:-30};
_root["car" + who].localToGlobal(_root["car" + who].pointFront);
_root["car" + who].pointBack = {x:0, y:30};
_root["car" + who].localToGlobal(_root["car" + who].pointBack);
this["lpx" + who] = _root["car" + who].pointLeft.x;
this["lpy" + who] = _root["car" + who].pointLeft.y;
this["rpx" + who] = _root["car" + who].pointRight.x;
this["rpy" + who] = _root["car" + who].pointRight.y;
this["fpx" + who] = _root["car" + who].pointFront.x;
this["fpy" + who] = _root["car" + who].pointFront.y;
this["bpx" + who] = _root["car" + who].pointBack.x;
this["bpy" + who] = _root["car" + who].pointBack.y;
if (_root.BossMode == true) {
StopMove = false;
if (_root.McBoss.hitTest(this["lpx" + who], this["lpy" + who], true)) {
_root["car" + who]._rotation = _root["car" + who]._rotation + 15;
_root.speed = _root.speed * 0.05;
}
if (_root.McBoss.hitTest(this["rpx" + who], this["rpy" + who], true)) {
_root["car" + who]._rotation = _root["car" + who]._rotation - 15;
_root.speed = _root.speed * 0.05;
}
if (_root.McBoss.hitTest(this["fpx" + who], this["fpy" + who], true)) {
_root.speed = -1;
_root.StopCar = true;
if (_root.CarStopFirstTest == false) {
if (_root["car" + who]._rotation < 0) {
_root.RotationCarStopForce = 10;
} else {
_root.RotationCarStopForce = -10;
}
}
_root["car" + who]._rotation = _root["car" + who]._rotation + _root.RotationCarStopForce;
_root.CarStopFirstTest = true;
} else {
_root.CarStopFirstTest = false;
}
}
if (_root.McBoss.hitTest(this["bpx" + who], this["bpy" + who], true)) {
_root.speed = _root.backSpeed / 3;
}
_root.StopCar = false;
if (_root.terrain.hitTest(this["lpx" + who], this["lpy" + who], true)) {
_root["car" + who]._rotation = _root["car" + who]._rotation + 15;
_root.speed = _root.speed * 0.05;
}
if (_root.terrain.hitTest(this["rpx" + who], this["rpy" + who], true)) {
_root["car" + who]._rotation = _root["car" + who]._rotation - 15;
_root.speed = _root.speed * 0.05;
}
if (_root.terrain.hitTest(this["fpx" + who], this["fpy" + who], true)) {
_root.speed = -1;
_root.StopCar = true;
if (_root.CarStopFirstTest == false) {
if (_root["car" + who]._rotation < 0) {
_root.RotationCarStopForce = 10;
} else {
_root.RotationCarStopForce = -10;
}
}
_root["car" + who]._rotation = _root["car" + who]._rotation + _root.RotationCarStopForce;
_root.CarStopFirstTest = true;
} else {
_root.CarStopFirstTest = false;
}
if (_root.terrain.hitTest(this["bpx" + who], this["bpy" + who], true)) {
_root.speed = _root.backSpeed;
_root.StopBack = true;
}
_root["shadow" + who].gotoAndStop(_root.CurrentCar);
_root["shadow" + who]._x = _root["car" + who]._x - 4;
_root["shadow" + who]._y = _root["car" + who]._y + 2;
_root["shadow" + who]._rotation = _root["car" + who]._rotation;
if (_root.TmrTraceOn == true) {
_root.cptTireTraceAdd = _root.cptTireTraceAdd + 1;
if (_root.cptTireTraceAdd > 1) {
_root.CreateFX(4, _root["car" + who]._x, _root["car" + who]._y, 0);
_root.cptTireTraceAdd = 0;
}
}
if (_root.BossMode == true) {
_root.UpdateBossKiller();
_root.UpdateBShit();
}
Done = false;
if (_root.McBonus.hitTest(this["lpx" + who], this["lpy" + who], true)) {
Done = true;
}
if (_root.McBonus.hitTest(this["rpx" + who], this["rpy" + who], true)) {
Done = true;
}
if (_root.McBonus.hitTest(this["fpx" + who], this["fpy" + who], true)) {
Done = true;
}
if (_root.McBonus.hitTest(this["bpx" + who], this["bpy" + who], true)) {
Done = true;
}
if ((Done == true) and (_root.BonusGrabbed == false)) {
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("shieldimpact");
mySound.start();
}
if (_root.BonusType == 1) {
if (_root.McPlayerHealthBar._currentframe < 949) {
_root.Health = _root.Health + 50;
if (_root.Health > 1000) {
_root.Health = 1000;
}
_root.McPlayerHealthBar.gotoAndPlay(_root.Health);
} else {
_root.Health = 1000;
_root.McPlayerHealthBar.gotoAndStop(_root.Health);
}
} else if (_root.BonusType == 2) {
if (McNitroBar._currentframe < 799) {
_root.McNitroBar.gotoAndPlay(McNitroBar._currentframe + 170);
} else {
_root.McNitroBar.gotoAndPlay(999);
}
} else if (_root.BonusType == 3) {
_root.CashTotal = _root.CashTotal + 40;
}
if (_root.McBonus._currentframe < 16) {
_root.McBonus.gotoAndPlay(16);
_root.BonusGrabbed = true;
}
}
}
}
}
function CreateZombies() {
var _local3 = 1;
while (_local3 < (_root.MaxEnnRound + 1)) {
if (_root["McEnn" + _local3] == undefined) {
NextFree = _local3;
_local3 = _root.MaxEnnRound;
}
_local3++;
}
var _local2 = 1;
while (_local2 < 500) {
a = random(4);
if (a == 0) {
PosX = 0;
PosY = random(480);
} else if (a == 1) {
PosX = 648;
PosY = random(480);
} else if (a == 2) {
PosX = random(640);
PosY = -2;
} else if (a == 3) {
PosX = random(640);
PosY = 484;
}
Done = false;
_local3 = 1;
while (_local3 < 500) {
a = random(10);
if (_root[("EnnType" + (a + 1)) + "Left"] > 0) {
_local3 = 5000;
}
_local3++;
}
if (a == 0) {
RefX = 15;
RefY = 15;
} else if (a == 1) {
RefX = 20;
RefY = 25;
} else if (a == 2) {
RefX = 17;
RefY = 27;
} else if (a == 3) {
RefX = 21;
RefY = 34;
} else if (a == 4) {
RefX = 20;
RefY = 22;
} else if (a == 5) {
RefX = 27;
RefY = 30;
} else if (a == 6) {
RefX = 12;
RefY = 12;
} else if (a == 7) {
RefX = 12;
RefY = 12;
} else if (a == 8) {
RefX = 14;
RefY = 14;
} else if (a == 9) {
RefX = 22;
RefY = 27;
}
_local2 = 1;
while (_local2 < 500) {
Collision = false;
if (_root.terrainzombies.hitTest((PosX + RefX) + 2, PosY, true)) {
Collision = true;
}
if (_root.terrainzombies.hitTest((PosX - RefX) - 2, PosY, true)) {
Collision = true;
}
if (_root.terrainzombies.hitTest(PosX, (PosY + RefY) + 2, true)) {
Collision = true;
}
if (_root.terrainzombies.hitTest(PosX, (PosY - RefY) - 2, true)) {
Collision = true;
}
if (Collision == true) {
b = random(4);
if (b == 0) {
PosX = 5;
PosY = random(480);
} else if (b == 1) {
PosX = 645;
PosY = random(480);
} else if (b == 2) {
PosX = random(640);
PosY = 5;
} else if (b == 3) {
PosX = random(640);
PosY = 485;
}
} else {
_local2 = 5000;
}
_local2++;
}
_local2++;
}
_local3 = 1;
while (_local3 < 500) {
if (_root.EnnType1Left > 0) {
if (a == 0) {
SourceMc = "McZombie";
Done = true;
_root.EnnType1Left = _root.EnnType1Left - 1;
}
}
if (_root.EnnType2Left > 0) {
if (a == 1) {
SourceMc = "McZombieBig";
Done = true;
_root.EnnType2Left = _root.EnnType2Left - 1;
}
}
if (_root.EnnType3Left > 0) {
if (a == 2) {
SourceMc = "McDog";
Done = true;
_root.EnnType3Left = _root.EnnType3Left - 1;
}
}
if (_root.EnnType4Left > 0) {
if (a == 3) {
SourceMc = "McDogBig";
Done = true;
_root.EnnType4Left = _root.EnnType4Left - 1;
}
}
if (_root.EnnType5Left > 0) {
if (a == 4) {
SourceMc = "McDeamon";
Done = true;
_root.EnnType5Left = _root.EnnType5Left - 1;
}
}
if (_root.EnnType6Left > 0) {
if (a == 5) {
SourceMc = "McDeamonBig";
Done = true;
_root.EnnType6Left = _root.EnnType6Left - 1;
}
}
if (_root.EnnType7Left > 0) {
if (a == 6) {
SourceMc = "McZombieSmall";
Done = true;
_root.EnnType7Left = _root.EnnType7Left - 1;
}
}
if (_root.EnnType8Left > 0) {
if (a == 7) {
SourceMc = "McDogSmall";
Done = true;
_root.EnnType8Left = _root.EnnType8Left - 1;
}
}
if (_root.EnnType9Left > 0) {
if (a == 8) {
SourceMc = "McDeamonBlueSmall";
Done = true;
_root.EnnType9Left = _root.EnnType9Left - 1;
}
}
if (_root.EnnType10Left > 0) {
if (a == 9) {
SourceMc = "McDeamonBlueBig";
Done = true;
_root.EnnType10Left = _root.EnnType10Left - 1;
}
}
if (Done == true) {
_root.VctEnnType[NextFree] = a;
_local3 = 5000;
}
_local3++;
}
_root.attachMovie(SourceMc, "McEnn" + NextFree, _root.DepthZombie + NextFree);
_root["McEnn" + NextFree]._x = PosX;
_root["McEnn" + NextFree]._y = PosY;
_root.VctEnnCptAttack[NextFree] = 0;
_root["McEnn" + NextFree].Enn.gotoAndPlay(random(17) + 1);
_root.attachMovie("McOmbre", "McEnnShadow" + NextFree, 800 + NextFree);
_root["McEnnShadow" + NextFree]._x = PosX;
_root["McEnnShadow" + NextFree]._y = PosY;
}
function UpdateZombies() {
CollisionCursor = false;
if ((_root.BossMode == true) and (_root.ShowShop == false)) {
_root.UpdateBoss();
}
if (((_root.EnnTotalLeft < 1) and (_root.EnnNow < 1)) and (_root.BossMode == false)) {
if (_root.ShowShop == false) {
if (_root.EndGame == false) {
_root.McShop.gotoAndPlay(1);
}
_root.McBonus.removeMovieClip();
_root.McCarnage._visible = false;
_root.car1.Car.gotoAndPlay(1);
}
_root.UpdateCarShopUpg();
_root.ShowShop = true;
_root.McBKillerAmmo._x = -500;
_root.McShop._y = 230;
_root.McShop._visible = true;
if (_root.MiniGameOn == true) {
_root.McMainChar._x = -500;
}
Mouse.show();
_root.ScreenShake = false;
}
var _local2 = 1;
while (_local2 < (_root.MaxEnnRound + 1)) {
if (_root.VctEnnType[_local2] == 0) {
Power = 2;
SpeedNeeded = 8;
SpeedStop = 70;
DamagetoCar = 35;
} else if (_root.VctEnnType[_local2] == 1) {
Power = 3.5;
SpeedNeeded = 11;
SpeedStop = 90;
DamagetoCar = 45;
} else if (_root.VctEnnType[_local2] == 2) {
Power = 3.5;
SpeedNeeded = 9.5;
SpeedStop = 70;
DamagetoCar = 55;
} else if (_root.VctEnnType[_local2] == 3) {
Power = 4.5;
SpeedNeeded = 12;
SpeedStop = 90;
DamagetoCar = 50;
} else if (_root.VctEnnType[_local2] == 4) {
Power = 2;
SpeedNeeded = 10;
SpeedStop = 80;
} else if (_root.VctEnnType[_local2] == 5) {
Power = 2.5;
SpeedNeeded = 13.5;
SpeedStop = 55;
} else if (_root.VctEnnType[_local2] == 6) {
Power = 1.5;
SpeedNeeded = 6.5;
SpeedStop = 57;
DamagetoCar = 25;
} else if (_root.VctEnnType[_local2] == 7) {
Power = 2;
SpeedNeeded = 7;
SpeedStop = 57;
DamagetoCar = 35;
} else if (_root.VctEnnType[_local2] == 8) {
Power = 2;
SpeedNeeded = 9;
SpeedStop = 80;
} else if (_root.VctEnnType[_local2] == 9) {
Power = 2.5;
SpeedNeeded = 11.5;
SpeedStop = 90;
}
if (_root.BossMode == true) {
DamagetoCar = DamagetoCar + 30;
}
TargetX = _root.car1._x;
TargetY = _root.car1._y;
if (_root.MiniGameOn == true) {
TargetX = _root.McStation._x;
TargetY = _root.McStation._y;
if (_root["McEnn" + _local2].hitTest(_root.McMouseAim._x, _root.McMouseAim._y, true)) {
CollisionCursor = true;
}
Xdiff = _root.McMouseAim._x - _root.McStation._x;
Ydiff = _root.McMouseAim._y - _root.McStation._y;
radAngle = Math.atan2(Ydiff, Xdiff);
angle = int((radAngle * 360) / (Math.PI*2));
_root.McMainChar._rotation = angle;
}
Xdiff = TargetX - _root["McEnn" + _local2]._x;
Ydiff = TargetY - _root["McEnn" + _local2]._y;
radAngle = Math.atan2(Ydiff, Xdiff);
_root["McEnn" + _local2]._rotation = int(((radAngle * 360) / (Math.PI*2)) + 275);
angle = int((radAngle * 360) / (Math.PI*2));
firepower = Power;
dirx = Math.cos((angle * Math.PI) / 180) * firepower;
diry = Math.sin((angle * Math.PI) / 180) * firepower;
if (_root.MiniGameOn == false) {
if (_root.terrainzombies.hitTest(_root["McEnn" + _local2]._x + dirx, _root["McEnn" + _local2]._y, true)) {
dirx = 0;
diry = diry * 2;
}
if (_root.terrainzombies.hitTest(_root["McEnn" + _local2]._x, _root["McEnn" + _local2]._y + diry, true)) {
dirx = dirx * 2;
diry = 0;
}
} else if (_root.MiniGameOn == true) {
var _local3 = 0;
while (_local3 < 31) {
if (_root["McEnn" + _local2].hitTest(_root["McPlayerShot" + _local3]._x, _root["McPlayerShot" + _local3]._y, true)) {
if (_root.VctEnnType[_local2] == 0) {
CashGive = _root.EnnType1GiveCash;
PointsGive = _root.EnnType1GivePoints;
} else if (_root.VctEnnType[_local2] == 1) {
CashGive = _root.EnnType2GiveCash;
PointsGive = _root.EnnType2GivePoints;
} else if (_root.VctEnnType[_local2] == 2) {
CashGive = _root.EnnType3GiveCash;
PointsGive = _root.EnnType3GivePoints;
} else if (_root.VctEnnType[_local2] == 3) {
CashGive = _root.EnnType4GiveCash;
PointsGive = _root.EnnType4GivePoints;
} else if (_root.VctEnnType[_local2] == 4) {
CashGive = _root.EnnType5GiveCash;
PointsGive = _root.EnnType5GivePoints;
} else if (_root.VctEnnType[_local2] == 5) {
CashGive = _root.EnnType6GiveCash;
PointsGive = _root.EnnType6GivePoints;
} else if (_root.VctEnnType[_local2] == 6) {
CashGive = _root.EnnType7GiveCash;
PointsGive = _root.EnnType7GivePoints;
} else if (_root.VctEnnType[_local2] == 7) {
CashGive = _root.EnnType8GiveCash;
PointsGive = _root.EnnType8GivePoints;
} else if (_root.VctEnnType[_local2] == 8) {
CashGive = _root.EnnType9GiveCash;
PointsGive = _root.EnnType9GivePoints;
} else if (_root.VctEnnType[_local2] == 9) {
CashGive = _root.EnnType10GiveCash;
PointsGive = _root.EnnType10GivePoints;
}
_root.CreateFX(2, _root["McEnn" + _local2]._x, _root["McEnn" + _local2]._y, 0);
_root.CreateFX(11, _root["McEnn" + _local2]._x - random(2), _root["McEnn" + _local2]._y - random(2), _root["McEnn" + _local2]._rotation);
_root.CreateFX(3, _root["McEnn" + _local2]._x, _root["McEnn" + _local2]._y, 0);
_root["McEnn" + _local2].removeMovieClip();
_root["McEnnShadow" + _local2].removeMovieClip();
_root["McPlayerShot" + _local3].removeMovieClip();
_root.EnnNow = _root.EnnNow - 1;
_root.EnnTotalLeft = _root.EnnTotalLeft - 1;
_root.VctEnnCptAttack[_local2] = 0;
_root.AchievementZombieCompteur = _root.AchievementZombieCompteur + 1;
_root.AchievementCheck();
if (PointsGive == NaN) {
PointsGive = 10;
}
_root.CashTotal = _root.CashTotal + CashGive;
_root.Score = _root.Score + PointsGive;
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("Impact");
mySound.start();
}
}
_local3++;
}
}
RangeEnn = false;
if (_root.VctEnnType[_local2] == 0) {
RefX = 15;
RefY = 15;
CashGive = _root.EnnType1GiveCash;
PointsGive = _root.EnnType1GivePoints;
} else if (_root.VctEnnType[_local2] == 1) {
RefX = 20;
RefY = 25;
CashGive = _root.EnnType2GiveCash;
PointsGive = _root.EnnType2GivePoints;
} else if (_root.VctEnnType[_local2] == 2) {
RefX = 17;
RefY = 27;
CashGive = _root.EnnType3GiveCash;
PointsGive = _root.EnnType3GivePoints;
} else if (_root.VctEnnType[_local2] == 3) {
RefX = 21;
RefY = 34;
CashGive = _root.EnnType4GiveCash;
PointsGive = _root.EnnType4GivePoints;
} else if (_root.VctEnnType[_local2] == 4) {
RefX = 20;
RefY = 21;
CashGive = _root.EnnType5GiveCash;
PointsGive = _root.EnnType5GivePoints;
RangeEnn = true;
} else if (_root.VctEnnType[_local2] == 5) {
RefX = 28;
RefY = 28;
CashGive = _root.EnnType6GiveCash;
PointsGive = _root.EnnType6GivePoints;
RangeEnn = true;
} else if (_root.VctEnnType[_local2] == 6) {
RefX = 12;
RefY = 12;
CashGive = _root.EnnType7GiveCash;
PointsGive = _root.EnnType7GivePoints;
} else if (_root.VctEnnType[_local2] == 7) {
RefX = 12;
RefY = 12;
CashGive = _root.EnnType8GiveCash;
PointsGive = _root.EnnType8GivePoints;
} else if (_root.VctEnnType[_local2] == 8) {
RefX = 16;
RefY = 16;
CashGive = _root.EnnType9GiveCash;
PointsGive = _root.EnnType9GivePoints;
RangeEnn = true;
} else if (_root.VctEnnType[_local2] == 9) {
RefX = 27;
RefY = 27;
CashGive = _root.EnnType10GiveCash;
PointsGive = _root.EnnType10GivePoints;
RangeEnn = true;
}
_root["McEnn" + _local2].pointFront = {x:0, y:RefY};
_root["McEnn" + _local2].localToGlobal(_root["McEnn" + _local2].pointFront);
_root["McEnn" + _local2].pointBack = {x:0, y:-RefY};
_root["McEnn" + _local2].localToGlobal(_root["McEnn" + _local2].pointBack);
_root["McEnn" + _local2].pointLeft = {x:-RefX, y:0};
_root["McEnn" + _local2].localToGlobal(_root["McEnn" + _local2].pointLeft);
_root["McEnn" + _local2].pointRight = {x:RefX, y:0};
_root["McEnn" + _local2].localToGlobal(_root["McEnn" + _local2].pointRight);
_root["McEnn" + _local2].pointMidFront = {x:0, y:8};
_root["McEnn" + _local2].localToGlobal(_root["McEnn" + _local2].pointMidFront);
_root["McEnn" + _local2].pointMidLeft = {x:-8, y:0};
_root["McEnn" + _local2].localToGlobal(_root["McEnn" + _local2].pointMidLeft);
_root["McEnn" + _local2].pointMidRight = {x:8, y:0};
_root["McEnn" + _local2].localToGlobal(_root["McEnn" + _local2].pointMidRight);
Collision = false;
if (_root.MiniGameOn == false) {
if ((_root.car1.hitTest(_root["McEnn" + _local2].pointMidFront.x, _root["McEnn" + _local2].pointMidFront.y, true) or _root.car1.hitTest(_root["McEnn" + _local2].pointMidLeft.x, _root["McEnn" + _local2].pointMidLeft.y, true)) or _root.car1.hitTest(_root["McEnn" + _local2].pointMidRight.x, _root["McEnn" + _local2].pointMidRight.y, true)) {
Collision = true;
_root.CreateFX(2, _root["McEnn" + _local2]._x, _root["McEnn" + _local2]._y, 0);
_root.CreateFX(1, _root["McEnn" + _local2]._x - random(2), _root["McEnn" + _local2]._y - random(2), 0);
_root.CreateFX(1, _root["McEnn" + _local2]._x + random(2), _root["McEnn" + _local2]._y + random(2), 0);
_root.CreateFX(3, _root["McEnn" + _local2]._x, _root["McEnn" + _local2]._y, 0);
_root.TmrTireTrace.gotoAndPlay(2);
_root.TmrTraceOn = true;
_root["McEnn" + _local2].removeMovieClip();
_root["McEnnShadow" + _local2].removeMovieClip();
_root.EnnNow = _root.EnnNow - 1;
_root.EnnTotalLeft = _root.EnnTotalLeft - 1;
_root.VctEnnCptAttack[_local2] = 0;
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("Impact");
mySound.start();
}
if (_root.TmrTraceOn == true) {
CarnagePointAdd = 0;
_root.CarnageNb = _root.CarnageNb + 1;
if (_root.CarnageNb > _root.CarnageMaxNb) {
_root.CarnageMaxNb = _root.CarnageNb;
}
if (_root.CarnageNb > 1) {
_root.McCarnage.gotoAndPlay(2);
ttt = 20;
var _local3 = 1;
while (_local3 < _root.CarnageNb) {
ttt = ttt + int(30 * _local3);
_local3++;
}
_root.CarnagePoint = ttt;
CarnagePointAdd = int(30 * CarnageNb);
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("bell2");
mySound.setVolume(50);
mySound.start();
}
_root.AchievementCheck();
}
}
_root.CashTotal = _root.CashTotal + CashGive;
if (PointsGive == NaN) {
PointsGive = 10;
}
if (CarnagePointAdd == NaN) {
PointsGive = 50;
}
_root.Score = (_root.Score + PointsGive) + CarnagePointAdd;
_root.speed = _root.speed * (SpeedStop / 100);
_root.AchievementZombieCompteur = _root.AchievementZombieCompteur + 1;
_root.AchievementCheck();
}
if (_root.car1.hitTest(_root["McEnn" + _local2].pointFront.x, _root["McEnn" + _local2].pointFront.y, true)) {
Collision = true;
if ((_root.speed > SpeedNeeded) or (_root.NitroFXOn == true)) {
_root.CreateFX(2, _root["McEnn" + _local2]._x, _root["McEnn" + _local2]._y, 0);
_root.CreateFX(1, _root["McEnn" + _local2]._x - random(2), _root["McEnn" + _local2]._y - random(2), 0);
_root.CreateFX(1, _root["McEnn" + _local2]._x + random(2), _root["McEnn" + _local2]._y + random(2), 0);
_root.CreateFX(3, _root["McEnn" + _local2]._x, _root["McEnn" + _local2]._y, 0);
_root.TmrTireTrace.gotoAndPlay(2);
_root.TmrTraceOn = true;
_root["McEnn" + _local2].removeMovieClip();
_root["McEnnShadow" + _local2].removeMovieClip();
_root.EnnNow = _root.EnnNow - 1;
_root.EnnTotalLeft = _root.EnnTotalLeft - 1;
_root.VctEnnCptAttack[_local2] = 0;
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("Impact");
mySound.start();
}
if (_root.TmrTraceOn == true) {
CarnagePointAdd = 0;
_root.CarnageNb = _root.CarnageNb + 1;
if (_root.CarnageNb > 1) {
_root.McCarnage.gotoAndPlay(2);
ttt = 20;
var _local3 = 1;
while (_local3 < _root.CarnageNb) {
ttt = ttt + int(30 * _local3);
_local3++;
}
_root.CarnagePoint = ttt;
CarnagePointAdd = int(30 * CarnageNb);
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("bell2");
mySound.setVolume(50);
mySound.start();
}
_root.AchievementCheck();
}
}
_root.CashTotal = _root.CashTotal + CashGive;
if (PointsGive == NaN) {
PointsGive = 10;
}
if (CarnagePointAdd == NaN) {
PointsGive = 50;
}
_root.Score = (_root.Score + PointsGive) + CarnagePointAdd;
_root.speed = _root.speed * (SpeedStop / 100);
_root.AchievementZombieCompteur = _root.AchievementZombieCompteur + 1;
_root.AchievementCheck();
} else {
if (_root.VctEnnCptAttack[_local2] == 0) {
_root.VctEnnCptAttack[_local2] = 43 + int(_root.Level / 5);
}
_root.speed = _root.speed / 10;
dirx = 0;
diry = 0;
}
}
if (_root.car1.hitTest(_root["McEnn" + _local2].pointLeft.x, _root["McEnn" + _local2].pointLeft.y, true)) {
Collision = true;
if (_root.speed <= 5) {
if (_root.VctEnnCptAttack[_local2] == 0) {
_root.VctEnnCptAttack[_local2] = 43 + int(_root.Level / 5);
}
dirx = -dirx;
diry = -dirx;
}
}
if (_root.car1.hitTest(_root["McEnn" + _local2].pointRight.x, _root["McEnn" + _local2].pointRight.y, true)) {
Collision = true;
if (_root.speed <= 5) {
if (_root.VctEnnCptAttack[_local2] == 0) {
_root.VctEnnCptAttack[_local2] = 43 + int(_root.Level / 5);
}
dirx = -dirx;
diry = -dirx;
}
}
_root.car1.pointBack = {x:0, y:30};
_root.car1.localToGlobal(_root.car1.pointBack);
if (_root["McEnn" + _local2].hitTest(_root.car1.pointBack.x, _root.car1.pointBack.y, true)) {
Collision = true;
dirx = 0;
diry = 0;
_root.speed = 1;
_root.StopBack = true;
}
if ((((_root.VctEnnType[_local2] == 4) or (_root.VctEnnType[_local2] == 5)) or (_root.VctEnnType[_local2] == 8)) or (_root.VctEnnType[_local2] == 9)) {
} else if (Collision == false) {
_root.VctEnnCptAttack[_local2] = 0;
}
}
if (_root.MiniGameOn == true) {
_root.UpdatePlayerShoot();
if (_root.McStation.hitTest(_root["McEnn" + _local2].pointFront.x, _root["McEnn" + _local2].pointFront.y, true)) {
dirx = 0;
diry = 0;
if (_root.VctEnnCptAttack[_local2] == 0) {
_root.VctEnnCptAttack[_local2] = 43 + int(_root.Level / 5);
}
}
}
_root.LastCollisionState = Collision;
if (_root.VctEnnType[_local2] == 0) {
AttackFrame = 18;
} else if (_root.VctEnnType[_local2] == 1) {
AttackFrame = 18;
} else if (_root.VctEnnType[_local2] == 2) {
AttackFrame = 15;
} else if (_root.VctEnnType[_local2] == 3) {
AttackFrame = 15;
} else if (_root.VctEnnType[_local2] == 4) {
AttackFrame = 13;
} else if (_root.VctEnnType[_local2] == 5) {
AttackFrame = 13;
} else if (_root.VctEnnType[_local2] == 6) {
AttackFrame = 18;
} else if (_root.VctEnnType[_local2] == 7) {
AttackFrame = 15;
} else if (_root.VctEnnType[_local2] == 8) {
AttackFrame = 13;
} else if (_root.VctEnnType[_local2] == 9) {
AttackFrame = 13;
}
if (RangeEnn == true) {
_root.VctEnnCptAttack[_local2] = _root.VctEnnCptAttack[_local2] + 1;
aaa = 55;
PassTypeAttackIce = false;
PassTypeAttackFire = false;
if (Collision == true) {
if (_root.VctEnnType[_local2] == 5) {
PassTypeAttackFire = true;
}
if (_root.VctEnnType[_local2] == 9) {
PassTypeAttackIce = true;
}
}
if (_root.VctEnnCptAttack[_local2] > aaa) {
_root["McEnn" + _local2].Enn.gotoAndPlay(AttackFrame);
_root.VctEnnCptAttack[_local2] = 0;
if ((_root.VctEnnType[_local2] == 4) or (PassTypeAttackFire == true)) {
_root["McEnnShadow" + _local2].gotoAndPlay(2);
}
if ((_root.VctEnnType[_local2] == 5) and (PassTypeAttackFire == false)) {
_root["McEnnShadow" + _local2].gotoAndPlay(32);
}
if ((_root.VctEnnType[_local2] == 8) or (PassTypeAttackIce == true)) {
_root["McEnnShadow" + _local2].gotoAndPlay(17);
}
if ((_root.VctEnnType[_local2] == 9) and (PassTypeAttackIce == false)) {
_root["McEnnShadow" + _local2].gotoAndPlay(47);
}
}
} else if (RangeEnn == false) {
if (_root.VctEnnCptAttack[_local2] > 0) {
_root.VctEnnCptAttack[_local2] = _root.VctEnnCptAttack[_local2] + 1;
if (_root.VctEnnCptAttack[_local2] > int(60 - int(_root.Level / 4))) {
_root["McEnn" + _local2].Enn.gotoAndPlay(AttackFrame);
_root.VctEnnCptAttack[_local2] = 43;
if (_root.MiniGameOn == true) {
_root.StationHealth = _root.StationHealth - int(DamagetoCar / 3);
_root.McPlayerHealthBar.gotoAndStop(_root.StationHealth);
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("hit");
mySound.start();
}
_root.McStation.gotoAndPlay(2);
} else if (_root.MiniGameOn == false) {
t = DamagetoCar - int(_root.CarArmor * 3.5);
_root.Health = _root.Health - t;
_root.McPlayerHealthBar.gotoAndStop(_root.Health);
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("hit");
mySound.start();
}
_root.car1.Car.gotoAndPlay(2);
}
}
}
}
if (_root["McEnnShadow" + _local2]._currentframe > 2) {
dirx = 0;
diry = 0;
}
_root["McEnn" + _local2]._x = _root["McEnn" + _local2]._x + dirx;
_root["McEnn" + _local2]._y = _root["McEnn" + _local2]._y + diry;
_root["McEnnShadow" + _local2]._x = _root["McEnn" + _local2]._x;
_root["McEnnShadow" + _local2]._y = _root["McEnn" + _local2]._y;
_local2++;
}
if (CollisionCursor == true) {
if (_root.McMouseAim._currentframe == 1) {
_root.McMouseAim.gotoAndPlay(2);
}
} else if (CollisionCursor == false) {
_root.McMouseAim.gotoAndPlay(1);
}
}
function CreateIconBonus(Type) {
if (_root.ShowShop == false) {
NextFree = 1;
if (Type == 1) {
McSource = "McWrenchIcon";
} else if (Type == 2) {
McSource = "McNitroIcon";
} else if (Type == 3) {
McSource = "McMoneyIcon";
}
PosX = random(580) + 30;
PosY = random(419) + 30;
if (_root.terrainzombies.hitTest(PosX, PosY, true)) {
_root.CreateIconBonus(Type);
}
_root.attachMovie(McSource, "McBonus", 6511);
_root.McBonus._x = PosX;
_root.McBonus._y = PosY;
_root.McBonusOriginX = PosX;
_root.McBonusOriginY = PosY;
_root.BonusType = Type;
_root.CptBonusGiven = _root.CptBonusGiven + 1;
_root.BonusGrabbed = false;
}
}
function CreatePlayerShoot() {
NextFree = _root.cptShotPlayer;
_root.cptShotPlayer = _root.cptShotPlayer + 1;
if (_root.cptShotPlayer > 25) {
_root.cptShotPlayer = 1;
}
McSource = "McPlayerShot";
Xdiff = _root.McMouseAim._x - _root.McStation._x;
Ydiff = _root.McMouseAim._y - _root.McStation._y;
radAngle = Math.atan2(Ydiff, Xdiff);
angle = int((radAngle * 360) / (Math.PI*2));
firepower = 1.7;
dirx = Math.cos((angle * Math.PI) / 180) * firepower;
diry = Math.sin((angle * Math.PI) / 180) * firepower;
_root.VctPlayerShot_DirX[NextFree] = dirx;
_root.VctPlayerShot_DirY[NextFree] = diry;
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("Shot");
mySound.start();
}
_root.McMainChar.gotoAndPlay(2);
_root.attachMovie(McSource, "McPlayerShot" + NextFree, 720 + NextFree);
_root["McPlayerShot" + NextFree]._x = _root.McStation._x + (dirx * 5.5);
_root["McPlayerShot" + NextFree]._y = _root.McStation._y + (diry * 5.5);
_root["McPlayerShot" + NextFree]._rotation = angle - 90;
}
function UpdatePlayerShoot() {
var _local2 = 0;
while (_local2 < 31) {
_root["McPlayerShot" + _local2]._x = _root["McPlayerShot" + _local2]._x + _root.VctPlayerShot_DirX[_local2];
_root["McPlayerShot" + _local2]._y = _root["McPlayerShot" + _local2]._y + _root.VctPlayerShot_DirY[_local2];
_local2++;
}
}
function CreateEnnMissile(Type, PosX, PosY, BAngle) {
NextFree = _root.cptEnnMissile;
_root.cptEnnMissile = _root.cptEnnMissile + 1;
if (_root.cptEnnMissile > 44) {
_root.cptEnnMissile = 1;
}
if ((Type == 1) or (Type == 3)) {
McSource = "McEnShot1";
_root.VctEnnMissile_Type = 1;
}
if ((Type == 2) or (Type == 4)) {
McSource = "McEnShot2";
_root.VctEnnMissile_Type = 2;
}
_root.attachMovie(McSource, "McEnnMissile" + NextFree, _root.DepthEnnMissile + NextFree);
_root["McEnnMissile" + NextFree]._x = PosX;
_root["McEnnMissile" + NextFree]._y = PosY;
Xdiff = _root.car1._x - PosX;
Ydiff = _root.car1._y - PosY;
radAngle = Math.atan2(Ydiff, Xdiff);
_root["McEnnMissile" + NextFree]._rotation = int(((radAngle * 360) / (Math.PI*2)) + 275);
angle = int((radAngle * 360) / (Math.PI*2));
if (BAngle > 0) {
angle = BAngle;
}
firepower = 6;
dirx = Math.cos((angle * Math.PI) / 180) * firepower;
diry = Math.sin((angle * Math.PI) / 180) * firepower;
_root.VctEnnMissile_DirX[NextFree] = dirx;
_root.VctEnnMissile_DirY[NextFree] = diry;
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("Shot");
mySound.start();
}
if ((Type == 3) or (Type == 4)) {
if (Type == 3) {
McSource = "McEnShot1";
_root.VctEnnMissile_Type = 1;
}
if (Type == 4) {
McSource = "McEnShot2";
_root.VctEnnMissile_Type = 2;
}
NextFree = _root.cptEnnMissile;
_root.cptEnnMissile = _root.cptEnnMissile + 1;
if (_root.cptEnnMissile > 20) {
_root.cptEnnMissile = 1;
}
_root.attachMovie(McSource, "McEnnMissile" + NextFree, _root.DepthEnnMissile + NextFree);
_root["McEnnMissile" + NextFree]._x = PosX;
_root["McEnnMissile" + NextFree]._y = PosY;
Xdiff = _root.car1._x - PosX;
Ydiff = _root.car1._y - PosY;
radAngle = Math.atan2(Ydiff, Xdiff);
_root["McEnnMissile" + NextFree]._rotation = int(((radAngle * 360) / (Math.PI*2)) + 275);
angle = int((radAngle * 360) / (Math.PI*2)) - 10;
firepower = 6;
dirx = Math.cos((angle * Math.PI) / 180) * firepower;
diry = Math.sin((angle * Math.PI) / 180) * firepower;
_root.VctEnnMissile_DirX[NextFree] = dirx;
_root.VctEnnMissile_DirY[NextFree] = diry;
NextFree = _root.cptEnnMissile;
_root.cptEnnMissile = _root.cptEnnMissile + 1;
if (_root.cptEnnMissile > 20) {
_root.cptEnnMissile = 1;
}
_root.attachMovie(McSource, "McEnnMissile" + NextFree, _root.DepthEnnMissile + NextFree);
_root["McEnnMissile" + NextFree]._x = PosX;
_root["McEnnMissile" + NextFree]._y = PosY;
Xdiff = _root.car1._x - PosX;
Ydiff = _root.car1._y - PosY;
radAngle = Math.atan2(Ydiff, Xdiff);
_root["McEnnMissile" + NextFree]._rotation = int(((radAngle * 360) / (Math.PI*2)) + 275);
angle = int((radAngle * 360) / (Math.PI*2)) + 10;
firepower = 6;
dirx = Math.cos((angle * Math.PI) / 180) * firepower;
diry = Math.sin((angle * Math.PI) / 180) * firepower;
_root.VctEnnMissile_DirX[NextFree] = dirx;
_root.VctEnnMissile_DirY[NextFree] = diry;
}
}
function UpdateEnnMissile() {
var _local2 = 0;
while (_local2 < 45) {
_root["McEnnMissile" + _local2]._x = _root["McEnnMissile" + _local2]._x + _root.VctEnnMissile_DirX[_local2];
_root["McEnnMissile" + _local2]._y = _root["McEnnMissile" + _local2]._y + _root.VctEnnMissile_DirY[_local2];
if (_root.terrainzombies.hitTest(_root["McEnnMissile" + _local2]._x, _root["McEnnMissile" + _local2]._y, true)) {
_root.CreateFX(4 + _root.VctEnnMissile_Type, _root["McEnnMissile" + _local2]._x, _root["McEnnMissile" + _local2]._y, 0);
_root["McEnnMissile" + _local2].removeMovieClip();
}
if (_root.car1.hitTest(_root["McEnnMissile" + _local2]._x, _root["McEnnMissile" + _local2]._y, true)) {
if (_root.VctEnnMissile_Type == 1) {
DamagetoCar = 55;
t = DamagetoCar - int(_root.CarArmor * 3.5);
_root.Health = _root.Health - t;
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("hit");
mySound.start();
}
_root.McPlayerHealthBar.gotoAndStop(_root.Health);
_root.car1.Car.gotoAndPlay(2);
_root.CreateFX(5, _root["McEnnMissile" + _local2]._x, _root["McEnnMissile" + _local2]._y, 0);
}
if (_root.VctEnnMissile_Type == 2) {
DamagetoCar = 38;
if (_root.BossMode == true) {
DamagetoCar = 80;
}
t = DamagetoCar - int(_root.CarArmor * 3.5);
_root.Health = _root.Health - t;
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("hit");
mySound.start();
}
_root.McPlayerHealthBar.gotoAndStop(_root.Health);
_root.car1.Car.gotoAndPlay(7);
_root.speed = _root.speed / 9;
_root.CreateFX(6, _root["McEnnMissile" + _local2]._x, _root["McEnnMissile" + _local2]._y, 0);
}
_root["McEnnMissile" + _local2].removeMovieClip();
}
_local2++;
}
}
function CreateFX(Type, PosX, PosY, RotZombie) {
NextFree = _root.cptFx;
_root.cptFx = _root.cptFx + 1;
if (_root.cptFx > 180) {
_root.cptFx = 1;
}
McSource = "McBloodSplat1";
FXLayerTop = 0;
if (Type == 2) {
McSource = "McBloodFlaque" + (random(3) + 1);
}
if (Type == 3) {
McSource = "McOsBoom" + (random(3) + 1);
}
if (Type == 4) {
McSource = "McTireTrace";
}
if (Type == 5) {
McSource = "McFXImpactEnnShot";
FXLayerTop = 2000;
}
if (Type == 6) {
McSource = "McFXImpactEnnShot2";
FXLayerTop = 2000;
}
if (Type == 7) {
McSource = "McBoom1";
}
if (Type == 8) {
McSource = "McTireTraceNitro";
}
if (Type == 9) {
McSource = "McTeleportBoss";
}
if (Type == 10) {
McSource = "McTeleportBoss2";
FXLayerTop = 2000;
}
if (Type == 11) {
McSource = "McBloodLine";
}
_root.attachMovie(McSource, "McFX" + NextFree, (_root.DepthFx + NextFree) + FXLayerTop);
_root["McFX" + NextFree]._x = PosX;
_root["McFX" + NextFree]._y = PosY;
_root.VctFX_OriginX[NextFree] = PosX;
_root.VctFX_OriginY[NextFree] = PosY;
if ((Type == 2) or (Type == 3)) {
_root["McFX" + NextFree]._rotation = random(360);
}
if ((Type == 4) or (Type == 8)) {
_root["McFX" + NextFree]._rotation = _root.car1._rotation;
}
if (RotZombie == 0) {
} else {
_root["McFX" + NextFree]._rotation = RotZombie;
}
}
function EndRoundUpdateDifficulty() {
if (_root.LoadGame == true) {
_root.LoadData();
} else if (_root.LoadGame == false) {
_root.SaveGame();
}
MultipleEnn7 = 1;
BonusStartEnn7 = 8;
LimitStartEnn7 = 2;
LimitEndEnn7 = 8;
MultipleEnn8 = 1;
BonusStartEnn8 = 8;
LimitStartEnn8 = 2;
LimitEndEnn8 = 9;
MultipleEnn1 = 2;
BonusStartEnn1 = 9;
LimitStartEnn1 = 6;
LimitEndEnn1 = 16;
MultipleEnn9 = 1;
BonusStartEnn9 = 7;
LimitStartEnn9 = 4;
LimitEndEnn9 = 14;
MultipleEnn3 = 2;
BonusStartEnn3 = 7;
LimitStartEnn3 = 7;
LimitEndEnn3 = 22;
MultipleEnn5 = 1;
BonusStartEnn5 = 1;
LimitStartEnn5 = 11;
LimitEndEnn5 = 24;
MultipleEnn10 = 2;
BonusStartEnn10 = 2;
LimitStartEnn10 = 9;
LimitEndEnn10 = 500;
MultipleEnn2 = 2;
BonusStartEnn2 = 4;
LimitStartEnn2 = 16;
LimitEndEnn2 = 500;
MultipleEnn4 = 1;
BonusStartEnn4 = 5;
LimitStartEnn4 = 21;
LimitEndEnn4 = 500;
MultipleEnn6 = 1;
BonusStartEnn6 = 6;
LimitStartEnn6 = 24;
LimitEndEnn6 = 500;
var _local2 = 1;
while (_local2 < 500) {
if (_root.Level == LimitStartEnn1) {
_root.EnnType1Max = BonusStartEnn1;
}
if ((_root.Level > LimitStartEnn1) and (_root.Level < LimitEndEnn1)) {
if (_root.Level == (MultipleEnn1 * _local2)) {
_root.EnnType1Max = _root.EnnType1Max + 1;
}
}
if (_root.Level > LimitEndEnn1) {
_root.EnnType1Max = 0;
}
if (_root.Level == LimitStartEnn2) {
_root.EnnType2Max = BonusStartEnn2;
}
if ((_root.Level > LimitStartEnn2) and (_root.Level < LimitEndEnn2)) {
if (_root.Level == (MultipleEnn2 * _local2)) {
_root.EnnType2Max = _root.EnnType2Max + 1;
}
}
if (_root.Level > LimitEndEnn2) {
_root.EnnType2Max = 0;
}
if (_root.Level == LimitStartEnn3) {
_root.EnnType3Max = BonusStartEnn3;
}
if ((_root.Level > LimitStartEnn3) and (_root.Level < LimitEndEnn3)) {
if (_root.Level == (MultipleEnn3 * _local2)) {
_root.EnnType3Max = _root.EnnType3Max + 1;
}
}
if (_root.Level > LimitEndEnn3) {
_root.EnnType3Max = 0;
}
if (_root.Level == LimitStartEnn4) {
_root.EnnType4Max = BonusStartEnn4;
}
if ((_root.Level > LimitStartEnn4) and (_root.Level < LimitEndEnn4)) {
if (_root.Level == (MultipleEnn4 * _local2)) {
_root.EnnType4Max = _root.EnnType4Max + 1;
}
}
if (_root.Level > LimitEndEnn4) {
_root.EnnType4Max = 0;
}
if (_root.Level == LimitStartEnn5) {
_root.EnnType5Max = BonusStartEnn5;
}
if ((_root.Level > LimitStartEnn5) and (_root.Level < LimitEndEnn5)) {
if (_root.Level == (MultipleEnn5 * _local2)) {
_root.EnnType5Max = _root.EnnType5Max + 1;
}
}
if (_root.Level > LimitEndEnn5) {
_root.EnnType5Max = 0;
}
if (_root.Level == LimitStartEnn6) {
_root.EnnType6Max = BonusStartEnn6;
}
if ((_root.Level > LimitStartEnn6) and (_root.Level < LimitEndEnn6)) {
if (_root.Level == (MultipleEnn6 * _local2)) {
_root.EnnType6Max = _root.EnnType6Max + 1;
}
}
if (_root.Level > LimitEndEnn6) {
_root.EnnType6Max = 0;
}
if (_root.Level == LimitStartEnn7) {
_root.EnnType7Max = BonusStartEnn7;
}
if ((_root.Level > LimitStartEnn7) and (_root.Level < LimitEndEnn7)) {
if (_root.Level == (MultipleEnn7 * _local2)) {
_root.EnnType7Max = _root.EnnType7Max + 1;
}
}
if (_root.Level > LimitEndEnn7) {
_root.EnnType7Max = 0;
}
if (_root.Level == LimitStartEnn8) {
_root.EnnType8Max = BonusStartEnn8;
}
if ((_root.Level > LimitStartEnn8) and (_root.Level < LimitEndEnn8)) {
if (_root.Level == (MultipleEnn8 * _local2)) {
_root.EnnType8Max = _root.EnnType8Max + 1;
}
}
if (_root.Level > LimitEndEnn8) {
_root.EnnType8Max = 0;
}
if (_root.Level == LimitStartEnn9) {
_root.EnnType9Max = BonusStartEnn9;
}
if ((_root.Level > LimitStartEnn9) and (_root.Level < LimitEndEnn9)) {
if (_root.Level == (MultipleEnn9 * _local2)) {
_root.EnnType9Max = _root.EnnType9Max + 1;
}
}
if (_root.Level > LimitEndEnn9) {
_root.EnnType9Max = 0;
}
if (_root.Level == LimitStartEnn10) {
_root.EnnType10Max = BonusStartEnn10;
}
if ((_root.Level > LimitStartEnn10) and (_root.Level < LimitEndEnn10)) {
if (_root.Level == (MultipleEnn10 * _local2)) {
_root.EnnType10Max = _root.EnnType10Max + 1;
}
}
if (_root.Level > 5) {
if (_root.Level == (2 * _local2)) {
if (_root.MaxEnnRound < 23) {
_root.MaxEnnRound = _root.MaxEnnRound + 1;
}
}
}
_local2++;
}
_root.EnnTotalRound = ((((((_root.EnnType1Max + _root.EnnType2Max) + _root.EnnType3Max) + _root.EnnType4Max) + _root.EnnType5Max) + _root.EnnType6Max) + _root.EnnType7Max) + _root.EnnType8Max;
_root.Level = _root.Level + 1;
_root.EnnTotalLeft = _root.EnnTotalRound;
_root.EnnType1Left = _root.EnnType1Max;
_root.EnnType2Left = _root.EnnType2Max;
_root.EnnType3Left = _root.EnnType3Max;
_root.EnnType4Left = _root.EnnType4Max;
_root.EnnType5Left = _root.EnnType5Max;
_root.EnnType6Left = _root.EnnType6Max;
_root.EnnType7Left = _root.EnnType7Max;
_root.EnnType8Left = _root.EnnType8Max;
_root.EnnType9Left = _root.EnnType9Max;
_root.EnnType10Left = _root.EnnType10Max;
_root.CptBonusGiven = 0;
_root.McNitroBar.gotoAndPlay(999);
if (_root.Level == _root.Boss1Level) {
if (_root.BossMode == false) {
_root.McRuleLabel._visible = true;
_root.McRuleLabel.gotoAndStop(3);
_root.McNitroShield._x = -500;
_root.McBossHealth = 2;
_root.McBossHBar.In.gotoAndStop(_root.McBossHealth + 1);
_root.EnnTotalRound = 0;
_root.EnnTotalLeft = 0;
_root.EnnType1Left = 0;
_root.EnnType2Left = 0;
_root.EnnType3Left = 0;
_root.EnnType4Left = 0;
_root.EnnType5Left = 0;
_root.EnnType6Left = 0;
_root.EnnType7Left = 0;
_root.EnnType8Left = 0;
_root.EnnType9Left = 0;
_root.EnnType10Left = 0;
_root.BossMode = true;
_root.BossStatsPowerSmall = 2;
_root.BossStatsPowerBig = 5;
}
}
if (_root.Level == _root.Boss2Level) {
if (_root.BossMode == false) {
_root.McNitroShield._x = -500;
_root.McBossHealth = 2;
_root.McBossHBar.In.gotoAndStop(_root.McBossHealth + 1);
_root.EnnTotalRound = 0;
_root.EnnTotalLeft = 0;
_root.EnnType1Left = 0;
_root.EnnType2Left = 0;
_root.EnnType3Left = 0;
_root.EnnType4Left = 0;
_root.EnnType5Left = 0;
_root.EnnType6Left = 0;
_root.EnnType7Left = 0;
_root.EnnType8Left = 0;
_root.EnnType9Left = 0;
_root.EnnType10Left = 0;
_root.BossMode = true;
_root.BossStatsPowerSmall = 3;
_root.BossStatsPowerBig = 7;
}
}
if (_root.Level == _root.Boss3Level) {
if (_root.BossMode == false) {
_root.McNitroShield._x = -500;
_root.McBossHealth = 3;
_root.McBossHBar.In.gotoAndStop(_root.McBossHealth + 1);
_root.EnnTotalRound = 60;
_root.EnnTotalLeft = 60;
_root.EnnType1Left = 0;
_root.EnnType2Left = 0;
_root.EnnType3Left = 0;
_root.EnnType4Left = 0;
_root.EnnType5Left = 0;
_root.EnnType6Left = 0;
_root.EnnType7Left = 30;
_root.EnnType8Left = 30;
_root.EnnType9Left = 0;
_root.EnnType10Left = 0;
_root.BossMode = true;
_root.BossStatsPowerSmall = 4;
_root.BossStatsPowerBig = 8;
}
}
LevelMNow = _root.LevelMapNow;
_root.McLayerTop.gotoAndStop(3);
if (_root.LevelMapNow == 2) {
LevelMNow = 3;
}
if (_root.LevelMapNow == 3) {
if (((((_root.Level == _root.MinigameLevel1) or (_root.Level == _root.MinigameLevel2)) or (_root.Level == _root.MinigameLevel3)) or (_root.Level == _root.MinigameLevel4)) or (_root.Level == _root.MinigameLevel5)) {
} else {
LevelMNow = 4;
_root.McLayerTop._x = -4;
_root.McLayerTop._y = -4;
_root.McLayerTop.gotoAndStop(2);
}
}
if (_root.LevelMapNow == 4) {
if (((((_root.Level == _root.MinigameLevel1) or (_root.Level == _root.MinigameLevel2)) or (_root.Level == _root.MinigameLevel3)) or (_root.Level == _root.MinigameLevel4)) or (_root.Level == _root.MinigameLevel5)) {
} else {
LevelMNow = 5;
_root.McLayerTop._x = -4;
_root.McLayerTop._y = -4;
_root.McLayerTop.gotoAndStop(1);
}
}
_root.McRealBGRender.gotoAndStop(LevelMNow);
_root.terrain.gotoAndStop(LevelMNow);
_root.terrainzombies.gotoAndStop(LevelMNow);
if (_root.MiniGameOn == true) {
_root.ClearPlayerShot();
_root.MiniGameOn = false;
}
_root.McStation._x = -500;
_root.McMainChar._x = -500;
_root.car1._x = 230;
_root.car1._y = 200;
_root.shadow1._x = 400;
_root.shadow1._y = 200;
if ((((((_root.Level == 4) or (_root.Level == (_root.Boss1Level + 1))) or (_root.Level == (_root.MinigameLevel1 + 1))) or (_root.Level == (_root.MinigameLevel2 + 1))) or (_root.Level == (_root.MinigameLevel3 + 1))) or (_root.Level == (_root.MinigameLevel4 + 1))) {
_root.McNitroShield._x = -300;
_root.McRuleLabel._visible = false;
_root.McPlayerHealthBar.gotoAndStop(_root.Health);
}
_root.McPlayerHealthBar.gotoAndStop(_root.Health);
if (_root.Level == _root.MinigameLevel1) {
if (_root.MiniGameOn == false) {
_root.McRuleLabel._visible = true;
_root.McRuleLabel.gotoAndStop(2);
_root.McNitroShield._x = -500;
_root.EnnTotalRound = 20;
_root.EnnTotalLeft = 20;
_root.EnnType1Left = 0;
_root.EnnType2Left = 0;
_root.EnnType3Left = 0;
_root.EnnType4Left = 0;
_root.EnnType5Left = 0;
_root.EnnType6Left = 0;
_root.EnnType7Left = 10;
_root.EnnType8Left = 10;
_root.EnnType9Left = 0;
_root.EnnType10Left = 0;
_root.MiniGameOn = true;
_root.car1._x = -500;
_root.shadow1._x = -500;
_root.LevelMapNow = _root.LevelMapNow - 1;
_root.McRealBGRender.gotoAndStop(2);
_root.McStation._x = _root.GSPosX;
_root.McStation._y = _root.GSPosY;
_root.McMainChar._x = _root.GSPosX - 0.5;
_root.McMainChar._y = _root.GSPosY - 1;
_root.StationHealth = 1000;
_root.McPlayerHealthBar.gotoAndStop(_root.StationHealth + 1);
}
}
if (_root.Level == _root.MinigameLevel2) {
if (_root.MiniGameOn == false) {
_root.McNitroShield._x = -500;
_root.EnnTotalRound = 30;
_root.EnnTotalLeft = 30;
_root.EnnType1Left = 10;
_root.EnnType2Left = 0;
_root.EnnType3Left = 0;
_root.EnnType4Left = 0;
_root.EnnType5Left = 0;
_root.EnnType6Left = 0;
_root.EnnType7Left = 10;
_root.EnnType8Left = 10;
_root.EnnType9Left = 0;
_root.EnnType10Left = 0;
_root.MiniGameOn = true;
_root.car1._x = -500;
_root.shadow1._x = -500;
_root.LevelMapNow = _root.LevelMapNow - 1;
_root.McRealBGRender.gotoAndStop(2);
_root.McStation._x = _root.GSPosX;
_root.McStation._y = _root.GSPosY;
_root.McMainChar._x = _root.GSPosX - 0.5;
_root.McMainChar._y = _root.GSPosY - 1;
_root.StationHealth = 1000;
_root.McPlayerHealthBar.gotoAndStop(_root.StationHealth + 1);
}
}
if (_root.Level == _root.MinigameLevel3) {
if (_root.MiniGameOn == false) {
_root.McNitroShield._x = -500;
_root.EnnTotalRound = 25;
_root.EnnTotalLeft = 25;
_root.EnnType1Left = 10;
_root.EnnType2Left = 10;
_root.EnnType3Left = 5;
_root.EnnType4Left = 0;
_root.EnnType5Left = 0;
_root.EnnType6Left = 0;
_root.EnnType7Left = 0;
_root.EnnType8Left = 0;
_root.EnnType9Left = 0;
_root.EnnType10Left = 0;
_root.MiniGameOn = true;
_root.car1._x = -500;
_root.shadow1._x = -500;
_root.LevelMapNow = _root.LevelMapNow - 1;
_root.McRealBGRender.gotoAndStop(2);
_root.McStation._x = _root.GSPosX;
_root.McStation._y = _root.GSPosY;
_root.McMainChar._x = _root.GSPosX - 0.5;
_root.McMainChar._y = _root.GSPosY - 1;
_root.StationHealth = 1000;
_root.McPlayerHealthBar.gotoAndStop(_root.StationHealth + 1);
}
}
if (_root.Level == _root.MinigameLevel4) {
if (_root.MiniGameOn == false) {
_root.EnnTotalRound = 30;
_root.EnnTotalLeft = 30;
_root.EnnType1Left = 10;
_root.EnnType2Left = 10;
_root.EnnType3Left = 5;
_root.EnnType4Left = 5;
_root.EnnType5Left = 0;
_root.EnnType6Left = 0;
_root.EnnType7Left = 0;
_root.EnnType8Left = 0;
_root.EnnType9Left = 0;
_root.EnnType10Left = 0;
_root.MiniGameOn = true;
_root.car1._x = -500;
_root.shadow1._x = -500;
_root.LevelMapNow = _root.LevelMapNow - 1;
_root.McRealBGRender.gotoAndStop(2);
_root.McStation._x = _root.GSPosX;
_root.McStation._y = _root.GSPosY;
_root.McMainChar._x = _root.GSPosX - 0.5;
_root.McMainChar._y = _root.GSPosY - 1;
_root.StationHealth = 1000;
_root.McPlayerHealthBar.gotoAndStop(_root.StationHealth + 1);
}
}
if (_root.Level == _root.MinigameLevel5) {
if (_root.MiniGameOn == false) {
_root.EnnTotalRound = 36;
_root.EnnTotalLeft = 36;
_root.EnnType1Left = 9;
_root.EnnType2Left = 9;
_root.EnnType3Left = 9;
_root.EnnType4Left = 9;
_root.EnnType5Left = 0;
_root.EnnType6Left = 0;
_root.EnnType7Left = 0;
_root.EnnType8Left = 0;
_root.EnnType9Left = 0;
_root.EnnType10Left = 0;
_root.MiniGameOn = true;
_root.car1._x = -500;
_root.shadow1._x = -500;
_root.LevelMapNow = _root.LevelMapNow - 1;
_root.McRealBGRender.gotoAndStop(2);
_root.McStation._x = _root.GSPosX;
_root.McStation._y = _root.GSPosY;
_root.McMainChar._x = _root.GSPosX - 0.5;
_root.McMainChar._y = _root.GSPosY - 1;
_root.StationHealth = 1000;
_root.McPlayerHealthBar.gotoAndStop(_root.StationHealth + 1);
}
}
_root.LevelMapNow = _root.LevelMapNow + 1;
if (_root.LevelMapNow >= 5) {
_root.LevelMapNow = 1;
}
_root.LevelBoxTxt = "Level " + (_root.Level - 2);
_root.McLevelBoxStatus.gotoAndPlay(2);
}
function SpawnEnnemiesCheck() {
if (_root.EnnNow < _root.MaxEnnRound) {
AddNumber = _root.MaxEnnRound - _root.EnnNow;
if (_root.Level < 6) {
if (AddNumber > 4) {
AddNumber = 4;
}
}
if ((_root.Level < 14) and (_root.Level > 5)) {
if (AddNumber > 5) {
AddNumber = 5;
}
}
if (_root.Level > 13) {
if (AddNumber > 6) {
AddNumber = 6;
}
}
if ((_root.EnnTotalLeft - _root.EnnNow) < AddNumber) {
AddNumber = _root.EnnTotalLeft - _root.EnnNow;
}
var _local2 = 1;
while (_local2 < (AddNumber + 1)) {
CreateZombies();
_root.EnnNow = _root.EnnNow + 1;
_local2++;
}
}
}
function ClearFX() {
var _local2 = 0;
while (_local2 < 181) {
_root["McFX" + _local2].removeMovieClip();
_local2++;
}
_local2 = 1;
while (_local2 < 31) {
_root["McBDShit" + _local2].removeMovieClip();
_local2++;
}
_root.McNitroShield._x = -600;
_root.McNitroShield.gotoAndStop(1);
}
function BrigthColorize(t) {
aa = 40;
bb = 40;
cc = 40;
new Color(t).setTransform({rb:aa, bb:bb, gb:cc});
_root.ColorReset = true;
}
function BrigthColorize2(t) {
aa = 120;
bb = 120;
cc = 120;
new Color(t).setTransform({rb:aa, bb:bb, gb:cc});
_root.ColorReset = true;
}
function NormalColorize(t) {
aa = 0;
bb = 0;
cc = 0;
new Color(t).setTransform({rb:aa, bb:bb, gb:cc});
_root.ColorReset = false;
}
function UpdateCarShopUpg() {
if (_root.ShopShowThisCarNb == 1) {
acceleration = 0.35;
speedDecay = 0.96;
rotationStep = 9;
maxSpeed = 6.5;
backSpeed = 2.2;
_root.CarArmor = 2;
}
if (_root.ShopShowThisCarNb == 2) {
acceleration = 0.4;
speedDecay = 0.96;
rotationStep = 12.5;
maxSpeed = 8.5;
backSpeed = 3;
_root.CarArmor = 5;
}
if (_root.ShopShowThisCarNb == 3) {
acceleration = 0.55;
speedDecay = 0.96;
rotationStep = 15;
maxSpeed = 10;
backSpeed = 3.3;
_root.CarArmor = 3;
}
if (_root.ShopShowThisCarNb == 4) {
acceleration = 0.7;
speedDecay = 0.96;
rotationStep = 17.5;
maxSpeed = 11.5;
backSpeed = 3.9;
_root.CarArmor = 7;
}
if (_root.ShopShowThisCarNb == 5) {
acceleration = 0.7;
speedDecay = 0.96;
rotationStep = 19;
maxSpeed = 13.5;
backSpeed = 3.6;
_root.CarArmor = 15;
}
if (_root.CurrentCar == _root.ShopShowThisCarNb) {
acceleration = acceleration + (_root.ShopMotorUp / 50);
rotationStep = rotationStep + _root.ShopTireUp;
maxSpeed = maxSpeed + (_root.ShopMotorUp / 2);
backSpeed = backSpeed + (_root.ShopMotorUp / 10);
_root.CarArmor = _root.CarArmor + _root.ShopArmorUp;
_root.DamagedPourc = int(100 - (_root.Health / 10));
}
}
function BuySomething(Type) {
Success = false;
if (Type == 1) {
if (_root.ShopMotorUp == 0) {
if (_root.CashTotal >= _root[("PriceCar" + _root.CurrentCar) + "Eng1"]) {
_root.ShopMotorUp = 1;
_root.CashTotal = _root.CashTotal - _root[("PriceCar" + _root.CurrentCar) + "Eng1"];
Success = true;
}
} else if (_root.ShopMotorUp == 1) {
if (_root.CashTotal >= _root[("PriceCar" + _root.CurrentCar) + "Eng2"]) {
_root.ShopMotorUp = 2;
_root.CashTotal = _root.CashTotal - _root[("PriceCar" + _root.CurrentCar) + "Eng2"];
Success = true;
}
} else if (_root.ShopMotorUp == 2) {
if (_root.CashTotal >= _root[("PriceCar" + _root.CurrentCar) + "Eng3"]) {
_root.ShopMotorUp = 3;
_root.CashTotal = _root.CashTotal - _root[("PriceCar" + _root.CurrentCar) + "Eng3"];
Success = true;
}
}
_root.ShopShowThisCarNb = _root.CurrentCar;
}
if (Type == 2) {
if (_root.ShopTireUp == 0) {
if (_root.CashTotal >= _root[("PriceCar" + _root.CurrentCar) + "Tir1"]) {
_root.ShopTireUp = _root.ShopTireUp + 1;
_root.CashTotal = _root.CashTotal - _root[("PriceCar" + _root.CurrentCar) + "Tir1"];
Success = true;
}
} else if (_root.ShopTireUp == 1) {
if (_root.CashTotal >= _root[("PriceCar" + _root.CurrentCar) + "Tir2"]) {
_root.ShopTireUp = _root.ShopTireUp + 1;
_root.CashTotal = _root.CashTotal - _root[("PriceCar" + _root.CurrentCar) + "Tir2"];
Success = true;
}
} else if (_root.ShopTireUp == 2) {
if (_root.CashTotal >= _root[("PriceCar" + _root.CurrentCar) + "Tir3"]) {
_root.ShopTireUp = _root.ShopTireUp + 1;
_root.CashTotal = _root.CashTotal - _root[("PriceCar" + _root.CurrentCar) + "Tir3"];
Success = true;
}
}
_root.ShopShowThisCarNb = _root.CurrentCar;
}
if (Type == 3) {
if (_root.ShopArmorUp == 0) {
if (_root.CashTotal >= _root[("PriceCar" + _root.CurrentCar) + "Arm1"]) {
_root.ShopArmorUp = _root.ShopArmorUp + 1;
_root.CashTotal = _root.CashTotal - _root[("PriceCar" + _root.CurrentCar) + "Arm1"];
Success = true;
}
} else if (_root.ShopArmorUp == 1) {
if (_root.CashTotal >= _root[("PriceCar" + _root.CurrentCar) + "Arm2"]) {
_root.ShopArmorUp = _root.ShopArmorUp + 1;
_root.CashTotal = _root.CashTotal - _root[("PriceCar" + _root.CurrentCar) + "Arm2"];
Success = true;
}
} else if (_root.ShopArmorUp == 2) {
if (_root.CashTotal >= _root[("PriceCar" + _root.CurrentCar) + "Arm3"]) {
_root.ShopArmorUp = _root.ShopArmorUp + 1;
_root.CashTotal = _root.CashTotal - _root[("PriceCar" + _root.CurrentCar) + "Arm3"];
Success = true;
}
}
_root.ShopShowThisCarNb = _root.CurrentCar;
}
if (Type == 4) {
if (_root.CashTotal >= _root.PriceRepair) {
_root.CashTotal = _root.CashTotal - _root.PriceRepair;
_root.DamagedPourc = 0;
_root.Health = 1000;
_root.McPlayerHealthBar.gotoAndStop(_root.Health);
Success = true;
}
_root.ShopShowThisCarNb = _root.CurrentCar;
}
if (Type == 12) {
if (_root.CashTotal >= _root.PriceCar2) {
_root.CashTotal = _root.CashTotal - _root.PriceCar2;
_root.CurrentCar = 2;
Success = true;
}
}
if (Type == 13) {
if (_root.CashTotal >= _root.PriceCar3) {
_root.CashTotal = _root.CashTotal - _root.PriceCar3;
_root.CurrentCar = 3;
Success = true;
}
}
if (Type == 14) {
if (_root.CashTotal >= _root.PriceCar4) {
_root.CashTotal = _root.CashTotal - _root.PriceCar4;
_root.CurrentCar = 4;
Success = true;
}
}
if (Type == 15) {
if (_root.CashTotal >= _root.PriceCar5) {
_root.CashTotal = _root.CashTotal - _root.PriceCar5;
_root.CurrentCar = 5;
Success = true;
}
}
if (Type > 10) {
_root.ShopMotorUp = 0;
_root.ShopTireUp = 0;
_root.ShopArmorUp = 0;
_root.Health = 1000;
_root.McPlayerHealthBar.gotoAndStop(_root.Health);
_root.DamagedPourc = 0;
_root.PriceRepair = 0;
_root.UpdateCarShopUpg();
Success = true;
}
if (Success == true) {
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("ClickMenu");
mySound.start();
}
} else if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("ClickError");
mySound.start();
}
}
function UpdateFXShake(typedo) {
}
function UpdateBoss() {
if ((_root.McBoss.BType1._currentframe > 16) and (_root.McBoss.BType1._currentframe < 20)) {
Power = _root.BossStatsPowerBig;
} else {
Power = _root.BossStatsPowerSmall;
}
if (_root.McBoss.BType1._currentframe < 47) {
Xdiff = _root.car1._x - _root.McBoss._x;
Ydiff = _root.car1._y - _root.McBoss._y;
radAngle = Math.atan2(Ydiff, Xdiff);
_root.McBoss._rotation = int(((radAngle * 360) / (Math.PI*2)) + 275);
angle = int((radAngle * 360) / (Math.PI*2));
firepower = Power;
dirx = Math.cos((angle * Math.PI) / 180) * firepower;
diry = Math.sin((angle * Math.PI) / 180) * firepower;
}
_root.McBoss.pointFront = {x:0 + dirx, y:40 + diry};
_root.McBoss.localToGlobal(_root.McBoss.pointFront);
_root.McBoss.pointBack = {x:0 + dirx, y:-40 + diry};
_root.McBoss.localToGlobal(_root.McBoss.pointBack);
_root.McBoss.pointLeft = {x:-28 + dirx, y:0 + diry};
_root.McBoss.localToGlobal(_root.McBoss.pointLeft);
_root.McBoss.pointRight = {x:28 + dirx, y:0 + diry};
_root.McBoss.localToGlobal(_root.McBoss.pointRight);
Collision = false;
if (_root.car1.hitTest(_root.McBoss.pointFront.x, _root.McBoss.pointFront.y, true)) {
Collision = true;
}
if (_root.car1.hitTest(_root.McBoss.pointBack.x, _root.McBoss.pointBack.y, true)) {
Collision = true;
}
if (_root.car1.hitTest(_root.McBoss.pointLeft.x, _root.McBoss.pointLeft.y, true)) {
Collision = true;
}
if (_root.car1.hitTest(_root.McBoss.pointRight.x, _root.McBoss.pointRight.y, true)) {
Collision = true;
}
DropShit = true;
if (Collision == true) {
DropShit = false;
if ((_root.BossCptAttack == 0) and (_root.BossHitSequence == false)) {
_root.BossCptAttack = 1;
}
dirx = 0;
diry = 0;
}
if (Collision == false) {
_root.TeleportBOn = false;
}
if (_root.McBoss.BType1._currentframe > 23) {
dirx = 0;
diry = 0;
}
if (_root.BossCptAttack > 30) {
_root.BossCptAttack = 0;
_root.BossHitSequence = false;
_root.TeleportBOn = false;
}
if (_root.BossCptAttack > 0) {
_root.BossCptAttack = _root.BossCptAttack + 1;
if ((_root.BossCptAttack < 3) and (Collision == false)) {
_root.BossCptAttack = 0;
}
if (_root.BossCptAttack == 3) {
_root.McBoss.BType1.gotoAndPlay(23);
}
if (_root.BossCptAttack > 3) {
if ((((_root.McBoss.BType1._currentframe == 38) or (_root.McBoss.BType1._currentframe == 40)) or (_root.McBoss.BType1._currentframe == 42)) or (_root.McBoss.BType1._currentframe == 44)) {
if (Collision == true) {
_root.car1._rotation = _root.car1._rotation - 30;
if (_root.StopCar == false) {
_root.speed = _root.speed + 6;
}
}
}
if ((_root.McBoss.BType1._currentframe == 38) and (Collision == true)) {
_root.Health = _root.Health - 150;
_root.McPlayerHealthBar.gotoAndStop(_root.Health);
_root.car1.Car.gotoAndPlay(2);
}
if (_root.McBoss.BType1._currentframe == 46) {
_root.BossCptAttack = 0;
}
}
}
Collision = false;
if (_root.terrainzombies.hitTest(_root.McBoss.pointFront.x, _root.McBoss.pointFront.y, true)) {
Collision = true;
}
if (_root.terrainzombies.hitTest(_root.McBoss.pointBack.x, _root.McBoss.pointBack.y, true)) {
Collision = true;
}
if (_root.terrainzombies.hitTest(_root.McBoss.pointLeft.x, _root.McBoss.pointLeft.y, true)) {
Collision = true;
}
if (_root.terrainzombies.hitTest(_root.McBoss.pointRight.x, _root.McBoss.pointRight.y, true)) {
Collision = true;
}
if ((Collision == false) and (_root.TeleportBOn == false)) {
_root.McBoss._x = _root.McBoss._x + dirx;
_root.McBoss._y = _root.McBoss._y + diry;
_root.McBossHBar._x = _root.McBoss._x;
_root.McBossHBar._y = _root.McBoss._y;
_root.McBossHBar._rotation = _root.McBoss._rotation;
} else if (Collision == true) {
if (_root.McBoss.BType1._currentframe < 3) {
_root.TeleportBoss();
}
if ((_root.McBoss.BType1._currentframe > 2) and (_root.McBoss.BType1._currentframe < 23)) {
_root.TeleportBOn = true;
_root.McBoss.BType1.gotoAndPlay(23);
_root.CreateFX(9, _root.McBoss._x, _root.McBoss._y, 0);
}
}
if (((_root.McBoss.BType1._currentframe == 6) or (_root.McBoss.BType1._currentframe == 11)) or (_root.McBoss.BType1._currentframe == 18)) {
if (DropShit == true) {
_root.BossDropShit();
}
}
}
function TeleportBoss() {
PosX = random(500);
PosY = random(500);
PosX = (_root.car1._x - 250) + PosX;
PosY = (_root.car1._y - 250) + PosY;
if (_root.terrainzombies.hitTest(PosX, PosY, true)) {
_root.TeleportBoss();
}
_root.CreateFX(10, PosX, PosY, 0);
_root.TeleportBOn = false;
_root.McBoss._x = PosX;
_root.McBoss._y = PosY;
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("spawnshield");
mySound.start();
}
_root.McBossHBar._x = PosX;
_root.McBossHBar._y = PosY;
}
function BossDropShit() {
NextFree = _root.cptBossDropShit;
_root.cptBossDropShit = _root.cptBossDropShit + 1;
if (_root.cptBossDropShit > 30) {
_root.cptBossDropShit = 1;
}
rn = random(2) + 1;
_root.attachMovie("McBDropShit" + rn, "McBDShit" + NextFree, _root.LayerBDropShit + NextFree);
_root["McBDShit" + NextFree]._x = (_root.McBoss._x - 10) + random(30);
_root["McBDShit" + NextFree]._y = (_root.McBoss._y - 10) + random(30);
_root["McBDShit" + NextFree]._rotation = _root.McBoss._rotation;
}
function UpdateBShit() {
_root.car1.pointLeft = {x:-25, y:0};
_root.car1.localToGlobal(_root.car1.pointLeft);
_root.car1.pointRight = {x:25, y:0};
_root.car1.localToGlobal(_root.car1.pointRight);
_root.car1.pointFront = {x:0, y:-30};
_root.car1.localToGlobal(_root.car1.pointFront);
_root.car1.pointBack = {x:0, y:30};
_root.car1.localToGlobal(_root.car1.pointBack);
var _local2 = 1;
while (_local2 < 31) {
Collision = false;
if (_root["McBDShit" + _local2].hitTest(_root.car1.pointLeft.x, _root.car1.pointLeft.y, true)) {
Collision = true;
}
if (_root["McBDShit" + _local2].hitTest(_root.car1.pointRight.x, _root.car1.pointRight.y, true)) {
Collision = true;
}
if (_root["McBDShit" + _local2].hitTest(_root.car1.pointFront.x, _root.car1.pointFront.y, true)) {
Collision = true;
}
if (_root["McBDShit" + _local2].hitTest(_root.car1.pointBack.x, _root.car1.pointBack.y, true)) {
Collision = true;
}
if (Collision == true) {
_root.speed = _root.speed * 0.75;
_local2 = 31;
}
_local2++;
}
}
function CreateBossKiller() {
PosX = random(440) + 100;
PosY = random(329) + 70;
if (_root.terrainzombies.hitTest(PosX, PosY - 36, true)) {
_root.CreateBossKiller();
}
_root.attachMovie("McBossKiller", "McBKillerAmmo", 6513);
_root.McBKillerAmmo._x = PosX;
_root.McBKillerAmmo._y = PosY;
_root.attachMovie("McOmbreBKillerO", "McOmbreBKiller", 6512);
_root.McBKillerAmmo._x = PosX;
_root.McBKillerAmmo._y = PosY;
_root.McOmbreBKiller._x = PosX;
_root.McOmbreBKiller._y = PosY;
}
function UpdateBossKiller() {
_root.McBKillerAmmo.pointFront = {x:2, y:-37};
_root.McBKillerAmmo.localToGlobal(_root.McBKillerAmmo.pointFront);
if (_root.car1.hitTest(_root.McBKillerAmmo.pointFront.x, _root.McBKillerAmmo.pointFront.y, true) and (_root.ShootBKillerAmmo == false)) {
_root.BKillerAmmoGrab = true;
}
_root.McBKillerAmmo.pointFront = {x:-2, y:-37};
_root.McBKillerAmmo.localToGlobal(_root.McBKillerAmmo.pointFront);
if (_root.car1.hitTest(_root.McBKillerAmmo.pointFront.x, _root.McBKillerAmmo.pointFront.y, true) and (_root.ShootBKillerAmmo == false)) {
_root.BKillerAmmoGrab = true;
}
_root.McBKillerAmmo.pointFront = {x:0, y:-35};
_root.McBKillerAmmo.localToGlobal(_root.McBKillerAmmo.pointFront);
if (_root.car1.hitTest(_root.McBKillerAmmo.pointFront.x, _root.McBKillerAmmo.pointFront.y, true) and (_root.ShootBKillerAmmo == false)) {
_root.BKillerAmmoGrab = true;
}
if (_root.BKillerAmmoGrab == true) {
_root.McBKillerAmmo._x = _root.car1._x;
_root.McBKillerAmmo._y = _root.car1._y;
_root.McBKillerAmmo._rotation = _root.car1._rotation;
_root.McOmbreBKiller._x = _root.car1._x;
_root.McOmbreBKiller._y = _root.car1._y;
_root.McOmbreBKiller._rotation = _root.car1._rotation;
}
if (_root.ShootBKillerAmmo == true) {
angle = _root.McBKillerAmmo._rotation - 85;
firepower = 20;
dirx = Math.cos((angle * Math.PI) / 180) * firepower;
diry = Math.sin((angle * Math.PI) / 180) * firepower;
_root.McBKillerAmmo._x = _root.McBKillerAmmo._x + dirx;
_root.McBKillerAmmo._y = _root.McBKillerAmmo._y + diry;
_root.McOmbreBKiller._x = _root.McBKillerAmmo._x;
_root.McOmbreBKiller._y = _root.McBKillerAmmo._y;
_root.McOmbreBKiller._rotation = _root.McBKillerAmmo._rotation;
if (_root.McBoss.hitTest(_root.McBKillerAmmo.pointFront.x, _root.McBKillerAmmo.pointFront.y, true)) {
_root.McOmbreBKiller.removeMovieClip();
_root.McBossHealth = _root.McBossHealth - 1;
_root.McBossHBar.In.gotoAndPlay(_root.McBossHealth + 1);
_root.ShootBKillerAmmo = false;
_root.McBoss.gotoAndPlay(2);
_root.McBKillerAmmo.removeMovieClip();
_root.BossHitSequence = true;
_root.McBoss.BType1.gotoAndPlay(48);
}
}
if (_root.McBoss.BType1._currentframe > 53) {
if (_root.McBossHealth < 1) {
_root.McBossHBar._x = -500;
_root.McBoss._x = 700;
_root.McBoss._y = 300;
_root.BossMode = false;
_root.CashTotal = _root.CashTotal + 250;
if (PointsGive == NaN) {
PointsGive = 10;
}
if (CarnagePointAdd == NaN) {
PointsGive = 50;
}
_root.Score = (_root.Score + PointsGive) + 1000;
if (_root.Level >= 35) {
_root.EndGame = true;
}
}
}
if ((((_root.McBKillerAmmo._x > 640) or (_root.McBKillerAmmo._x < 0)) or (_root.McBKillerAmmo._y > 523)) or (_root.McBKillerAmmo._y < 0)) {
_root.ShootBKillerAmmo = false;
_root.McBKillerAmmo.removeMovieClip();
}
}
function CreateBossProjectile() {
if (_root.BossMode == true) {
var _local2 = 0;
while (_local2 < 18) {
angle = 20 * _local2;
_root.CreateEnnMissile(2, _root.McBoss._x, _root.McBoss._y, angle);
_local2++;
}
}
}
function ClearPlayerShot() {
var _local2 = 0;
while (_local2 < 31) {
_root["McPlayerShot" + _local2].removeMovieClip();
_local2++;
}
}
function LoadData() {
_root.Level = MySave.data.LevelNow;
_root.CashTotal = MySave.data.CashNow;
_root.Score = MySave.data.ScoreNow;
_root.Health = MySave.data.HealthNow;
_root.CurrentCar = MySave.data.CarNow;
_root.ShopMotorUp = MySave.data.MotorNow;
_root.ShopTireUp = MySave.data.TireNow;
_root.DamagedPourc = MySave.data.DamagedNow;
_root.ShopArmorUp = MySave.data.ArmorNow;
_root.PriceRepair = MySave.data.PriceRepairNow;
_root.LevelMapNow = MySave.data.RenderMapNow;
_root.ShopShowThisCarNb = _root.CurrentCar;
_root.EnnType1Max = MySave.data.EnnType1MaxNow;
_root.EnnType2Max = MySave.data.EnnType2MaxNow;
_root.EnnType3Max = MySave.data.EnnType3MaxNow;
_root.EnnType4Max = MySave.data.EnnType4MaxNow;
_root.EnnType5Max = MySave.data.EnnType5MaxNow;
_root.EnnType6Max = MySave.data.EnnType6MaxNow;
_root.EnnType7Max = MySave.data.EnnType7MaxNow;
_root.EnnType8Max = MySave.data.EnnType8MaxNow;
_root.EnnType9Max = MySave.data.EnnType9MaxNow;
_root.EnnType10Max = MySave.data.EnnType10MaxNow;
_root.DiffSetting = MySave.data.DifficultyNow;
_root.Achievement1Status = MySave.data.Achievement1Now;
_root.Achievement2Status = MySave.data.Achievement2Now;
_root.Achievement3Status = MySave.data.Achievement3Now;
_root.Achievement4Status = MySave.data.Achievement4Now;
_root.Achievement5Status = MySave.data.Achievement5Now;
_root.Achievement6Status = MySave.data.Achievement6Now;
_root.Achievement7Status = MySave.data.Achievement7Now;
_root.Achievement8Status = MySave.data.Achievement8Now;
_root.Achievement9Status = MySave.data.Achievement9Now;
_root.AchievementZombieCompteur = MySave.data.AchievementZombieCompteur;
_root.CarnageMaxNb = MySave.data.AchievementCarnageMaxNb;
_root.UpdateCarShopUpg();
_root.McRuleLabel._visible = false;
_root.LoadGame = false;
}
function SaveGame() {
MySave.data.LevelNow = _root.Level;
MySave.data.CashNow = _root.CashTotal;
MySave.data.ScoreNow = _root.Score;
MySave.data.HealthNow = _root.Health;
MySave.data.CarNow = _root.CurrentCar;
MySave.data.MotorNow = _root.ShopMotorUp;
MySave.data.TireNow = _root.ShopTireUp;
MySave.data.DamagedNow = _root.DamagedPourc;
MySave.data.ArmorNow = _root.ShopArmorUp;
MySave.data.PriceRepairNow = _root.PriceRepairNow;
MySave.data.RenderMapNow = _root.LevelMapNow;
MySave.data.EnnType1MaxNow = _root.EnnType1Max;
MySave.data.EnnType2MaxNow = _root.EnnType2Max;
MySave.data.EnnType3MaxNow = _root.EnnType3Max;
MySave.data.EnnType4MaxNow = _root.EnnType4Max;
MySave.data.EnnType5MaxNow = _root.EnnType5Max;
MySave.data.EnnType6MaxNow = _root.EnnType6Max;
MySave.data.EnnType7MaxNow = _root.EnnType7Max;
MySave.data.EnnType8MaxNow = _root.EnnType8Max;
MySave.data.EnnType9MaxNow = _root.EnnType9Max;
MySave.data.EnnType10MaxNow = _root.EnnType10Max;
MySave.data.DifficultyNow = _root.DiffSetting;
MySave.data.Achievement1Now = _root.Achievement1Status;
MySave.data.Achievement2Now = _root.Achievement2Status;
MySave.data.Achievement3Now = _root.Achievement3Status;
MySave.data.Achievement4Now = _root.Achievement4Status;
MySave.data.Achievement5Now = _root.Achievement5Status;
MySave.data.Achievement6Now = _root.Achievement6Status;
MySave.data.Achievement7Now = _root.Achievement7Status;
MySave.data.Achievement8Now = _root.Achievement8Status;
MySave.data.Achievement9Now = _root.Achievement9Status;
MySave.data.AchievementZombieCompteur = _root.AchievementZombieCompteur;
MySave.data.AchievementCarnageMaxNb = _root.CarnageMaxNb;
MySave.flush();
}
function AchievementCheck() {
if ((_root.AchievementZombieCompteur == 100) and (_root.Achievement1Status == 0)) {
if (_root.McAchievementBox._currentframe == 1) {
_root.Achievement1Status = 1;
_root.AchievementText = "Achievement: Kill 100 zombies!";
_root.McAchievementBox.gotoAndPlay(2);
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("Achievement");
mySound.start();
}
}
}
if ((_root.AchievementZombieCompteur == 250) and (_root.Achievement2Status == 0)) {
if (_root.McAchievementBox._currentframe == 1) {
_root.Achievement2Status = 1;
_root.AchievementText = "Achievement: Kill 250 zombies!";
_root.McAchievementBox.gotoAndPlay(2);
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("Achievement");
mySound.start();
}
}
}
if ((_root.AchievementZombieCompteur == 500) and (_root.Achievement3Status == 0)) {
if (_root.McAchievementBox._currentframe == 1) {
_root.Achievement3Status = 1;
_root.AchievementText = "Achievement: Kill 500 zombies!";
_root.McAchievementBox.gotoAndPlay(2);
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("Achievement");
mySound.start();
}
}
}
if ((_root.CarnageNb > 1) and (_root.Achievement4Status == 0)) {
if (_root.McAchievementBox._currentframe == 1) {
_root.Achievement4Status = 1;
_root.AchievementText = "Achievement: Make a Carnage!";
_root.McAchievementBox.gotoAndPlay(2);
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("Achievement");
mySound.start();
}
}
}
if ((_root.CarnageNb > 4) and (_root.Achievement5Status == 0)) {
if (_root.McAchievementBox._currentframe == 1) {
_root.Achievement5Status = 1;
_root.AchievementText = "Achievement: Make a x5 Carnage!";
_root.McAchievementBox.gotoAndPlay(2);
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("Achievement");
mySound.start();
}
}
}
if ((_root.CarnageNb > 9) and (_root.Achievement6Status == 0)) {
if (_root.McAchievementBox._currentframe == 1) {
_root.Achievement6Status = 1;
_root.AchievementText = "Achievement: Make a x10 Carnage!";
_root.McAchievementBox.gotoAndPlay(2);
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("Achievement");
mySound.start();
}
}
}
if ((_root.Score > 59999) and (_root.Achievement7Status == 0)) {
if (_root.McAchievementBox._currentframe == 1) {
_root.Achievement7Status = 1;
_root.AchievementText = "Achievement: Make 60,000 Points!";
_root.McAchievementBox.gotoAndPlay(2);
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("Achievement");
mySound.start();
}
}
}
if ((_root.Score > 149999) and (_root.Achievement8Status == 0)) {
if (_root.McAchievementBox._currentframe == 1) {
_root.Achievement8Status = 1;
_root.AchievementText = "Achievement: Make 150,000 Points!";
_root.McAchievementBox.gotoAndPlay(2);
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("Achievement");
mySound.start();
}
}
}
}
function SaveGameEndGame() {
_root.MiniGameOn = false;
Mouse.show();
if ((_root.Level > 34) and (_root.Achievement9Status == 0)) {
if (_root.McAchievementBox._currentframe == 1) {
_root.Achievement9Status = 1;
_root.AchievementText = "Achievement: Beat the Game!";
_root.McAchievementBox.gotoAndPlay(2);
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("GameOver");
mySound.start();
}
}
}
MySave.data.LevelNow = -1;
MySave.data.CashNow = _root.CashTotal;
MySave.data.ScoreNow = _root.Score;
MySave.data.HealthNow = _root.Health;
MySave.data.CarNow = _root.CurrentCar;
MySave.data.MotorNow = _root.ShopMotorUp;
MySave.data.TireNow = _root.ShopTireUp;
MySave.data.DamagedNow = _root.DamagedPourc;
MySave.data.ArmorNow = _root.ShopArmorUp;
MySave.data.PriceRepairNow = _root.PriceRepairNow;
MySave.data.RenderMapNow = _root.LevelMapNow;
MySave.data.EnnType1MaxNow = 0;
MySave.data.EnnType2MaxNow = 0;
MySave.data.EnnType3MaxNow = 0;
MySave.data.EnnType4MaxNow = 0;
MySave.data.EnnType5MaxNow = 0;
MySave.data.EnnType6MaxNow = 0;
MySave.data.EnnType7MaxNow = 0;
MySave.data.EnnType8MaxNow = 0;
MySave.data.EnnType9MaxNow = 0;
MySave.data.EnnType10MaxNow = 0;
MySave.data.DifficultyNow = _root.DiffSetting;
MySave.data.Achievement1Now = _root.Achievement1Status;
MySave.data.Achievement2Now = _root.Achievement2Status;
MySave.data.Achievement3Now = _root.Achievement3Status;
MySave.data.Achievement4Now = _root.Achievement4Status;
MySave.data.Achievement5Now = _root.Achievement5Status;
MySave.data.Achievement6Now = _root.Achievement6Status;
MySave.data.Achievement7Now = _root.Achievement7Status;
MySave.data.Achievement8Now = _root.Achievement8Status;
MySave.data.Achievement9Now = _root.Achievement9Status;
DDoneE = false;
if ((_root.Score > _root.BestScore1A) and (DDoneE == false)) {
_root.LastSentence = "You beat your Best Score!";
MySave.data.BestScore1Now = _root.Score;
DDoneE = true;
}
if ((_root.Score > _root.BestScore2A) and (DDoneE == false)) {
_root.LastSentence = "You beat your Second Best Score!";
MySave.data.BestScore2Now = _root.Score;
DDoneE = true;
}
if ((_root.Score > _root.BestScore3A) and (DDoneE == false)) {
_root.LastSentence = "You beat your Third Best Score!";
MySave.data.BestScore3Now = _root.Score;
DDoneE = true;
}
if (DDoneE == false) {
_root.LastSentence = "You didn't beat your 3 Best Scores. Try again!";
}
MySave.data.AchievementZombieCompteur = 0;
MySave.data.AchievementCarnageMaxNb = 0;
MySave.flush();
}
Instance of Symbol 395 MovieClip "McRealBGRender" in Frame 4
onClipEvent (enterFrame) {
if (_root.ScreenShake == true) {
_root.ShakeX = random(7);
_root.ShakeY = random(7);
this._x = -4 + _root.ShakeX;
this._y = -4 + _root.ShakeY;
_root.McNitroBG._x = this._x + _root.ShakeX;
_root.McNitroBG._y = this._y + _root.ShakeY;
_root.McRuleLabel._x = 100.7 + _root.ShakeX;
_root.McRuleLabel._y = 136.8 + _root.ShakeY;
_root.McBonus._x = _root.McBonusOriginX + _root.ShakeX;
_root.McBonus._y = _root.McBonusOriginY + _root.ShakeY;
_root.McLayerTop._x = this._x;
_root.McLayerTop._y = this._y;
var m = 1;
while (m < 181) {
_root["McFX" + m]._x = _root.VctFX_OriginX[m] + _root.ShakeX;
_root["McFX" + m]._y = _root.VctFX_OriginY[m] + _root.ShakeY;
m++;
}
} else if (_root.ScreenShake == false) {
if (_root.McFX1._x == _root.VctFX_OriginX[1]) {
} else {
var m = 1;
while (m < 191) {
_root["McFX" + m]._x = _root.VctFX_OriginX[m];
_root["McFX" + m]._y = _root.VctFX_OriginY[m];
m++;
}
}
_root.McRuleLabel._x = 100.7;
_root.McRuleLabel._y = 136.8;
_root.ShakeX = 0;
_root.ShakeY = 0;
_root.McNitroBG._x = 0;
_root.McNitroBG._y = this._y + 800;
_root.McBonus._x = _root.McBonusOriginX;
_root.McBonus._y = _root.McBonusOriginY;
this._x = -4;
this._y = -4;
_root.McLayerTop._x = this._x;
_root.McLayerTop._y = this._y;
}
}
onClipEvent (mouseDown) {
if (_root.MiniGameOn == true) {
_root.CreatePlayerShoot();
}
}
Instance of Symbol 469 MovieClip "stepper" in Frame 4
onClipEvent (load) {
speed1 = 0;
_root.McNitroBar.gotoAndPlay(1000);
_root.EndRoundUpdateDifficulty();
_root.McTmrEnnSpawner.gotoAndPlay(89);
}
onClipEvent (enterFrame) {
_root.car1.gotoAndStop(_root.CurrentCar);
if (_root.EndGame == false) {
_root.step(1);
_root.UpdateZombies();
_root.UpdateEnnMissile();
} else {
if (_root.Level < 35) {
_root.McGameOverBox.gotoAndPlay(1);
_root.McGameOverBox._x = 134;
_root.McGameOverBox._y = 170;
_root.SaveGameEndGame();
}
if ((_root.Level > 34) and (_root.BossMode == false)) {
_root.McGameOverBox.gotoAndPlay(2);
_root.McGameOverBox._x = 134;
_root.McGameOverBox._y = 170;
_root.SaveGameEndGame();
}
}
}
Instance of Symbol 530 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.MiniGameOn == false) {
if ((this._currentframe == _root.CptTmrBonus) and (_root.CptBonusGiven < 6)) {
a = random(4) + 1;
if (a == 1) {
_root.CreateIconBonus(1);
}
if ((a == 2) or (a == 3)) {
_root.CreateIconBonus(2);
}
if (a == 4) {
_root.CreateIconBonus(3);
}
this.gotoAndPlay(1);
}
}
}
Instance of Symbol 533 MovieClip in Frame 4
onClipEvent (enterFrame) {
if ((((this._currentframe == 100) and (_root.BossMode == true)) and (_root.BKillerAmmoGrab == false)) and (_root.ShootBKillerAmmo == false)) {
_root.CreateBossKiller();
this.gotoAndPlay(1);
}
if (this._currentframe > 110) {
this.gotoAndPlay(1);
}
}
Instance of Symbol 548 MovieClip "McMouseAim" in Frame 4
onClipEvent (enterFrame) {
if ((_root.MiniGameOn == true) and (_root.ShowShop == false)) {
this._x = _root._xmouse;
this._y = _root._ymouse;
Mouse.hide();
}
if ((_root.MiniGameOn == false) or (_root.ShowShop == true)) {
this._x = -500;
}
}
Instance of Symbol 664 MovieClip "McShop" in Frame 4
/* no clip actions */
Symbol 27 MovieClip Frame 6
_parent.removeMovieClip();
Symbol 44 MovieClip [McOsBoom1] Frame 16
stop();
Symbol 50 MovieClip [McOsBoom2] Frame 16
stop();
Symbol 54 MovieClip [McOsBoom3] Frame 14
stop();
Symbol 57 MovieClip [McBloodFlaque1] Frame 288
this.removeMovieClip();
Symbol 60 MovieClip [McBloodFlaque2] Frame 287
this.removeMovieClip();
Symbol 63 MovieClip [McBloodFlaque3] Frame 290
this.removeMovieClip();
Symbol 70 MovieClip [McBloodSplat1] Frame 8
stop();
this.removeMovieClip();
Symbol 97 MovieClip Frame 17
gotoAndPlay (1);
Symbol 97 MovieClip Frame 30
gotoAndPlay (1);
Symbol 102 MovieClip [McTireTrace] Frame 285
this.removeMovieClip();
Symbol 130 MovieClip Frame 14
gotoAndPlay (1);
Symbol 130 MovieClip Frame 25
gotoAndPlay (1);
Symbol 155 MovieClip Frame 12
gotoAndPlay (1);
Symbol 155 MovieClip Frame 22
gotoAndPlay (1);
Symbol 170 MovieClip [McWrenchIcon] Frame 15
gotoAndPlay (1);
Symbol 170 MovieClip [McWrenchIcon] Frame 23
this.removeMovieClip();
Symbol 174 MovieClip [McNitroIcon] Frame 15
gotoAndPlay (1);
Symbol 174 MovieClip [McNitroIcon] Frame 23
this.removeMovieClip();
Symbol 178 MovieClip [McMoneyIcon] Frame 15
gotoAndPlay (1);
Symbol 178 MovieClip [McMoneyIcon] Frame 23
this.removeMovieClip();
Symbol 205 MovieClip Frame 12
gotoAndPlay (1);
Symbol 205 MovieClip Frame 22
gotoAndPlay (1);
Symbol 220 MovieClip [McFXImpactEnnShot] Frame 9
this.removeMovieClip();
_parent.removeMovieClip();
Symbol 226 MovieClip [McTireTraceNitro] Frame 18
this.removeMovieClip();
Symbol 230 MovieClip [McTeleportBoss] Frame 26
this.removeMovieClip();
Symbol 240 MovieClip [McTeleportBoss2] Frame 9
this.removeMovieClip();
Symbol 257 MovieClip [McBDropShit1] Frame 164
this.removeMovieClip();
Symbol 260 MovieClip [McBDropShit2] Frame 148
this.removeMovieClip();
Symbol 267 MovieClip [McBloodLine] Frame 315
this.removeMovieClip();
Symbol 268 MovieClip [McOmbre] Frame 1
stop();
Symbol 268 MovieClip [McOmbre] Frame 8
_root.CreateEnnMissile(1, this._x, this._y, -1);
Symbol 268 MovieClip [McOmbre] Frame 16
gotoAndStop (1);
Symbol 268 MovieClip [McOmbre] Frame 23
_root.CreateEnnMissile(2, this._x, this._y, -1);
Symbol 268 MovieClip [McOmbre] Frame 31
gotoAndStop (1);
Symbol 268 MovieClip [McOmbre] Frame 38
_root.CreateEnnMissile(3, this._x, this._y, -1);
Symbol 268 MovieClip [McOmbre] Frame 46
gotoAndStop (1);
Symbol 268 MovieClip [McOmbre] Frame 53
_root.CreateEnnMissile(4, this._x, this._y, -1);
Symbol 268 MovieClip [McOmbre] Frame 61
gotoAndStop (1);
Symbol 283 Button
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 286 MovieClip Frame 1
_root.stop();
gotoAndPlay (2);
Symbol 286 MovieClip Frame 218
_root.nextFrame();
Symbol 297 MovieClip Frame 33
stop();
Symbol 305 MovieClip Frame 76
if (_root.NOGAME == false) {
_root.gotoAndPlay(3);
stop();
}
Symbol 327 MovieClip Frame 1
stop();
Symbol 327 MovieClip Frame 4
gotoAndPlay (2);
Symbol 330 MovieClip Frame 1
stop();
Symbol 330 MovieClip Frame 4
gotoAndPlay (2);
Symbol 335 MovieClip Frame 1
stop();
Symbol 335 MovieClip Frame 4
gotoAndPlay (2);
Symbol 340 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 4
gotoAndPlay (2);
Symbol 345 MovieClip Frame 1
stop();
Symbol 345 MovieClip Frame 4
gotoAndPlay (2);
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.MySave.data.Achievement1Now == 1) {
this._visible = true;
} else if (_root.MySave.data.Achievement1Now == 0) {
this._visible = false;
}
}
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.MySave.data.Achievement2Now == 1) {
this._visible = true;
} else if (_root.MySave.data.Achievement2Now == 0) {
this._visible = false;
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.MySave.data.Achievement3Now == 1) {
this._visible = true;
} else if (_root.MySave.data.Achievement3Now == 0) {
this._visible = false;
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.MySave.data.Achievement4Now == 1) {
this._visible = true;
} else if (_root.MySave.data.Achievement4Now == 0) {
this._visible = false;
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.MySave.data.Achievement5Now == 1) {
this._visible = true;
} else if (_root.MySave.data.Achievement5Now == 0) {
this._visible = false;
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.MySave.data.Achievement6Now == 1) {
this._visible = true;
} else if (_root.MySave.data.Achievement6Now == 0) {
this._visible = false;
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.MySave.data.Achievement7Now == 1) {
this._visible = true;
} else if (_root.MySave.data.Achievement7Now == 0) {
this._visible = false;
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.MySave.data.Achievement8Now == 1) {
this._visible = true;
} else if (_root.MySave.data.Achievement8Now == 0) {
this._visible = false;
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 359 MovieClip in Symbol 360 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.MySave.data.Achievement9Now == 1) {
this._visible = true;
} else if (_root.MySave.data.Achievement9Now == 0) {
this._visible = false;
}
}
onClipEvent (load) {
this._visible = false;
}
Symbol 370 MovieClip Frame 1
stop();
Symbol 370 MovieClip Frame 2
stop();
Symbol 378 MovieClip Frame 1
stop();
Symbol 378 MovieClip Frame 2
stop();
Symbol 378 MovieClip Frame 3
stop();
Symbol 378 MovieClip Frame 4
stop();
Symbol 378 MovieClip Frame 5
stop();
Symbol 384 MovieClip Frame 1
stop();
Symbol 384 MovieClip Frame 2
stop();
Symbol 384 MovieClip Frame 3
stop();
Symbol 384 MovieClip Frame 4
stop();
Symbol 384 MovieClip Frame 5
stop();
Symbol 395 MovieClip Frame 1
stop();
Symbol 395 MovieClip Frame 2
stop();
Symbol 395 MovieClip Frame 3
stop();
Symbol 395 MovieClip Frame 4
stop();
Symbol 395 MovieClip Frame 5
stop();
Symbol 400 MovieClip Frame 1
stop();
Symbol 400 MovieClip Frame 2
stop();
Symbol 400 MovieClip Frame 3
stop();
Symbol 402 MovieClip Frame 1
stop();
Symbol 402 MovieClip Frame 2
stop();
Symbol 402 MovieClip Frame 3
stop();
Symbol 402 MovieClip Frame 4
stop();
Symbol 402 MovieClip Frame 5
stop();
Symbol 443 MovieClip Frame 22
gotoAndPlay (1);
Symbol 443 MovieClip Frame 46
gotoAndPlay (1);
Symbol 443 MovieClip Frame 65
_root.CreateBossProjectile();
Symbol 443 MovieClip Frame 71
Symbol 443 MovieClip Frame 83
_root.CreateBossProjectile();
Symbol 443 MovieClip Frame 94
_root.BossHitSequence = false;
Symbol 444 MovieClip Frame 1
stop();
Symbol 446 MovieClip Frame 1
stop();
Symbol 446 MovieClip Frame 2
stop();
Symbol 446 MovieClip Frame 3
stop();
Symbol 446 MovieClip Frame 4
stop();
Symbol 451 MovieClip Frame 1
stop();
Symbol 451 MovieClip Frame 5
gotoAndStop (1);
Symbol 451 MovieClip Frame 11
gotoAndStop (1);
Symbol 455 MovieClip Frame 1
stop();
Symbol 455 MovieClip Frame 5
gotoAndStop (1);
Symbol 455 MovieClip Frame 9
gotoAndStop (1);
Symbol 459 MovieClip Frame 1
stop();
Symbol 459 MovieClip Frame 5
gotoAndStop (1);
Symbol 459 MovieClip Frame 9
gotoAndStop (1);
Symbol 463 MovieClip Frame 1
stop();
Symbol 463 MovieClip Frame 5
gotoAndStop (1);
Symbol 463 MovieClip Frame 9
gotoAndStop (1);
Symbol 467 MovieClip Frame 1
stop();
Symbol 467 MovieClip Frame 5
gotoAndStop (1);
Symbol 467 MovieClip Frame 9
gotoAndStop (1);
Symbol 468 MovieClip Frame 1
stop();
Symbol 468 MovieClip Frame 2
stop();
Symbol 468 MovieClip Frame 3
stop();
Symbol 468 MovieClip Frame 4
stop();
Symbol 468 MovieClip Frame 5
stop();
Symbol 488 MovieClip Frame 1
this._visible = false;
stop();
Symbol 488 MovieClip Frame 2
_root.CarnageNbBack = _root.CarnageNb;
_root.CarnagePointBack = _root.CarnagePoint;
this._visible = true;
Symbol 499 MovieClip Frame 1
stop();
Symbol 499 MovieClip Frame 1000
stop();
Symbol 503 MovieClip Frame 1
stop();
Symbol 503 MovieClip Frame 18
_root.TmrTraceOn = false;
_root.CarnageNb = 0;
_root.CarnagePoint = 0;
_root.car1.Car.gotoAndStop(1);
Symbol 514 MovieClip Frame 90
_root.SpawnEnnemiesCheck();
Symbol 518 MovieClip Frame 1000
stop();
_root.NitroCooldownOver = true;
Symbol 527 MovieClip Frame 9
stop();
Symbol 527 MovieClip Frame 20
this._x = -500;
Symbol 538 MovieClip Frame 1
stop();
Symbol 544 MovieClip Frame 1
stop();
Symbol 548 MovieClip Frame 1
stop();
Symbol 548 MovieClip Frame 5
stop();
Symbol 555 MovieClip Frame 1
stop();
Symbol 555 MovieClip Frame 2
stop();
Symbol 555 MovieClip Frame 3
stop();
Symbol 558 MovieClip Frame 1
stop();
Symbol 562 MovieClip Frame 1
stop();
Symbol 562 MovieClip Frame 2
stop();
Symbol 567 MovieClip Frame 1
stop();
Instance of Symbol 565 MovieClip in Symbol 567 MovieClip Frame 1
on (rollOver) {
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("rollover");
mySound.start();
}
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://armorgames.com", "_blank");
}
Symbol 567 MovieClip Frame 2
stop();
Instance of Symbol 562 MovieClip in Symbol 567 MovieClip Frame 2
on (rollOver) {
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("rollover");
mySound.start();
}
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 565 MovieClip in Symbol 567 MovieClip Frame 2
on (rollOver) {
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("rollover");
mySound.start();
}
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
getURL ("http://armorgames.com", "_blank");
}
Symbol 570 MovieClip Frame 1
stop();
Symbol 570 MovieClip Frame 2
play();
Symbol 585 MovieClip Frame 1
stop();
Symbol 585 MovieClip Frame 2
stop();
Symbol 590 MovieClip Frame 1
stop();
Instance of Symbol 585 MovieClip in Symbol 590 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ShopMotorUp > 0) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 585 MovieClip in Symbol 590 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ShopMotorUp > 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 585 MovieClip in Symbol 590 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ShopMotorUp > 2) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 589 MovieClip "McPriceEngine" in Symbol 590 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ShopMotorUp > 2) {
this._visible = false;
} else {
this._visible = true;
}
}
Symbol 590 MovieClip Frame 2
stop();
Symbol 597 MovieClip Frame 1
stop();
Instance of Symbol 585 MovieClip in Symbol 597 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ShopArmorUp > 0) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 585 MovieClip in Symbol 597 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ShopArmorUp > 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 585 MovieClip in Symbol 597 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ShopArmorUp > 2) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 595 MovieClip "McPriceArmor" in Symbol 597 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ShopArmorUp > 2) {
this._visible = false;
} else {
this._visible = true;
}
}
Symbol 597 MovieClip Frame 2
stop();
Symbol 604 MovieClip Frame 1
stop();
Symbol 604 MovieClip Frame 2
stop();
Symbol 609 MovieClip Frame 1
stop();
Symbol 609 MovieClip Frame 2
stop();
Symbol 623 MovieClip Frame 1
stop();
Instance of Symbol 585 MovieClip in Symbol 623 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ShopTireUp > 0) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 585 MovieClip in Symbol 623 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ShopTireUp > 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 585 MovieClip in Symbol 623 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ShopTireUp > 2) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 620 MovieClip "McPriceTire" in Symbol 623 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.ShopTireUp > 2) {
this._visible = false;
} else {
this._visible = true;
}
}
Symbol 623 MovieClip Frame 2
stop();
Symbol 630 MovieClip Frame 1
stop();
Symbol 630 MovieClip Frame 2
stop();
Symbol 630 MovieClip Frame 3
stop();
Symbol 633 MovieClip Frame 1
stop();
Symbol 633 MovieClip Frame 2
stop();
Symbol 633 MovieClip Frame 3
stop();
Symbol 645 MovieClip Frame 1
stop();
Symbol 645 MovieClip Frame 2
stop();
Symbol 645 MovieClip Frame 3
stop();
Symbol 645 MovieClip Frame 4
stop();
Symbol 645 MovieClip Frame 5
stop();
Symbol 649 MovieClip Frame 1
stop();
Symbol 649 MovieClip Frame 2
stop();
Symbol 653 MovieClip Frame 1
stop();
Symbol 653 MovieClip Frame 2
stop();
Symbol 662 MovieClip Frame 1
stop();
Symbol 662 MovieClip Frame 2
stop();
Symbol 662 MovieClip Frame 3
stop();
Symbol 662 MovieClip Frame 4
stop();
Instance of Symbol 590 MovieClip in Symbol 663 MovieClip Frame 1
on (rollOver) {
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("rollover");
mySound.start();
}
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_root.BuySomething(1);
}
onClipEvent (enterFrame) {
_root.CashTotal = _root.CashTotal;
if (_root.ShopMotorUp < 3) {
_root.CurrentPriceEng = _root[(("PriceCar" + _root.CurrentCar) + "Eng") + (_root.ShopMotorUp + 1)];
_parent.McPriceEngine._visible = true;
} else {
_parent.McPriceEngine._visible = false;
}
}
Instance of Symbol 597 MovieClip in Symbol 663 MovieClip Frame 1
on (rollOver) {
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("rollover");
mySound.start();
}
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_root.BuySomething(3);
}
onClipEvent (enterFrame) {
if (_root.ShopArmorUp < 3) {
_root.CurrentPriceArm = _root[(("PriceCar" + _root.CurrentCar) + "Arm") + (_root.ShopArmorUp + 1)];
_parent.McPriceArmor._visible = true;
} else {
_parent.McPriceArmor._visible = false;
}
}
Instance of Symbol 604 MovieClip in Symbol 663 MovieClip Frame 1
on (rollOver) {
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("rollover");
mySound.start();
}
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_root.BuySomething(4);
}
onClipEvent (enterFrame) {
if (_root.DamagedPourc >= 0) {
if (_root.CurrentCar == 1) {
_root.PriceRepair = int(_root.DamagedPourc);
_parent.McPriceRepair._visible = true;
} else if (_root.CurrentCar == 2) {
_root.PriceRepair = int(_root.DamagedPourc * 1.2);
_parent.McPriceRepair._visible = true;
} else if (_root.CurrentCar == 3) {
_root.PriceRepair = int(_root.DamagedPourc * 1.7);
_parent.McPriceRepair._visible = true;
} else if (_root.CurrentCar == 4) {
_root.PriceRepair = int(_root.DamagedPourc * 2.2);
_parent.McPriceRepair._visible = true;
} else if (_root.CurrentCar == 5) {
_root.PriceRepair = int(_root.DamagedPourc * 3);
_parent.McPriceRepair._visible = true;
}
} else {
_parent.McPriceRepair._visible = false;
}
}
Instance of Symbol 609 MovieClip in Symbol 663 MovieClip Frame 1
on (rollOver) {
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("rollover");
mySound.start();
}
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
this.gotoAndStop(1);
_root.ShopShowThisCarNb = _root.CurrentCar;
_root.UpdateCarShopUpg();
_root.car1.gotoAndStop(_root.CurrentCar);
_root.ShowShop = false;
_root.McShop._y = -1000;
_root.McShop._visible = false;
_root.EndRoundUpdateDifficulty();
_root.ClearFX();
_root.speed = 0;
}
Instance of Symbol 613 MovieClip "McLineStatsMax" in Symbol 663 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(-2 + (_root.maxSpeed * 2));
}
Instance of Symbol 623 MovieClip in Symbol 663 MovieClip Frame 1
on (rollOver) {
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("rollover");
mySound.start();
}
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
_root.BuySomething(2);
}
onClipEvent (enterFrame) {
if (_root.ShopTireUp < 3) {
_root.CurrentPriceTir = _root[(("PriceCar" + _root.CurrentCar) + "Tir") + (_root.ShopTireUp + 1)];
_parent.McPriceTire._visible = true;
} else {
_parent.McPriceTire._visible = false;
}
}
Instance of Symbol 630 MovieClip "McCarBuyButton" in Symbol 663 MovieClip Frame 1
on (rollOver) {
if (this._currentframe == 2) {
this.gotoAndStop(3);
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("rollover");
mySound.start();
}
}
}
on (rollOut) {
if (this._currentframe == 3) {
this.gotoAndStop(2);
}
}
on (press) {
if (this._currentframe == 3) {
if (_root.CashTotal >= _root["PriceCar" + _root.ShopShowThisCarNb]) {
this.gotoAndStop(1);
}
_root.BuySomething(10 + _root.ShopShowThisCarNb);
}
}
Instance of Symbol 633 MovieClip "McMB1" in Symbol 663 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.LevelMapNow == 1) {
this.gotoAndStop(3);
_parent.McMiniMap.gotoAndStop(1);
} else if (this._currentframe == 3) {
this.gotoAndStop(1);
}
}
Instance of Symbol 645 MovieClip "McCarPix" in Symbol 663 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.ShopShowThisCarNb);
if (_root.ShopShowThisCarNb == 2) {
_root.CarPrice = _root.PriceCar2 + "$";
}
if (_root.ShopShowThisCarNb == 3) {
_root.CarPrice = _root.PriceCar3 + "$";
}
if (_root.ShopShowThisCarNb == 4) {
_root.CarPrice = _root.PriceCar4 + "$";
}
if (_root.ShopShowThisCarNb == 5) {
_root.CarPrice = _root.PriceCar5 + "$";
}
if (_root.ShopShowThisCarNb == _root.CurrentCar) {
_parent.McCarBuyButton.gotoAndStop(1);
_root.CarPrice = "0$";
}
}
Instance of Symbol 633 MovieClip "McMB2" in Symbol 663 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.LevelMapNow == 2) {
_parent.McMiniMap.gotoAndStop(2);
this.gotoAndStop(3);
} else if (this._currentframe == 3) {
this.gotoAndStop(1);
}
}
Instance of Symbol 633 MovieClip "McMB3" in Symbol 663 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.LevelMapNow == 3) {
_parent.McMiniMap.gotoAndStop(3);
this.gotoAndStop(4);
} else if (this._currentframe == 3) {
this.gotoAndStop(1);
}
}
Instance of Symbol 633 MovieClip "McMB4" in Symbol 663 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.LevelMapNow == 4) {
_parent.McMiniMap.gotoAndStop(4);
this.gotoAndStop(5);
} else if (this._currentframe == 3) {
this.gotoAndStop(1);
}
}
Instance of Symbol 613 MovieClip "McLineStatsMax" in Symbol 663 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(-2 + (_root.maxSpeed * 2));
}
Instance of Symbol 613 MovieClip "McLineStatsTir" in Symbol 663 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(-14 + (_root.rotationStep * 2));
}
Instance of Symbol 613 MovieClip "McLineStatsArm" in Symbol 663 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.CarArmor * 2);
}
Instance of Symbol 649 MovieClip in Symbol 663 MovieClip Frame 1
on (rollOver) {
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("rollover");
mySound.start();
}
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (_root.ShopShowThisCarNb > _root.CurrentCar) {
_root.ShopShowThisCarNb = _root.ShopShowThisCarNb - 1;
_root.UpdateCarShopUpg();
}
if (_root.CurrentCar == _root.ShopShowThisCarNb) {
_parent.McCarBuyButton.gotoAndStop(1);
} else {
_parent.McCarBuyButton.gotoAndStop(2);
}
}
Instance of Symbol 653 MovieClip in Symbol 663 MovieClip Frame 1
on (rollOver) {
this.gotoAndStop(2);
if (_root.SoundOn == true) {
mySound = new Sound(_root);
mySound.attachSound("rollover");
mySound.start();
}
}
on (rollOut) {
this.gotoAndStop(1);
}
on (press) {
if (_root.ShopShowThisCarNb < 5) {
_root.ShopShowThisCarNb = _root.ShopShowThisCarNb + 1;
_root.UpdateCarShopUpg();
if (_root.CurrentCar == _root.ShopShowThisCarNb) {
_parent.McCarBuyButton.gotoAndStop(1);
} else {
_parent.McCarBuyButton.gotoAndStop(2);
}
}
}
Instance of Symbol 613 MovieClip "McLineStatsAcc" in Symbol 663 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(int(_root.acceleration * 42));
}
Symbol 664 MovieClip Frame 6
stop();