Combined Code
frame 1 {
soundFX = new Sound();
soundFX.setVolume(50);
_root.BackgroundSong = new Sound();
this.onLoad = function () {
_root.BackgroundSong.attachSound('BlackOps.mp3');
_root.BackgroundSong.start(0, 999);
};
_root.FaciZombies = SharedObject.getLocal('FaciZombies');
if (_root.FaciZombies.data.GameSaved == undefined) {
_root.FaciZombies.data.GameSaved = 'true';
_root.FaciZombies.data.SaveWallType = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 1, 2, 3, 3, 3, 3, 3];
_root.FaciZombies.data.SaveWallHP = [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100];
_root.FaciZombies.data.Savehp = 100;
_root.FaciZombies.data.SaveSpecialGrenades = 2;
_root.FaciZombies.data.SaveGrenades = 4;
_root._x = 0;
_root._y = 0;
_root.FaciZombies.data.SaveKills = 0;
_root.FaciZombies.data.SaveX = 320;
_root.FaciZombies.data.SaveY = 800;
_root.FaciZombies.data.SaveWeapon = 1;
_root.FaciZombies.data.SaveWeapons = [1, 0];
_root.FaciZombies.data.SaveWeaponSlot = 0;
_root.FaciZombies.data.SaveRifleGrenades = 2;
_root.FaciZombies.data.SaveMags = [15, 0];
_root.FaciZombies.data.SaveAmmo = [30, 0];
_root.FaciZombies.data.SaveScore = 500;
_root.FaciZombies.data.SaveLevel = 1;
_root.FaciZombies.data.SaveKills = 0;
}
if (_root.FaciZombies.data.Achievements == undefined) {
_root.FaciZombies.data.Achievements = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
if (_root.FaciZombies.data.Attachments == undefined) {
_root.FaciZombies.data.Attachments = [0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0];
}
if (_root.FaciZombies.data.Charm == undefined) {
_root.FaciZombies.data.Charm = 1;
}
if (_root.FaciZombies.data.Chest == undefined) {
_root.FaciZombies.data.Chest = 1;
}
if (_root.FaciZombies.data.Barricades == undefined) {
_root.FaciZombies.data.Barricades = 1;
}
if (_root.FaciZombies.data.Gold == undefined) {
_root.FaciZombies.data.Gold = 0;
}
if (_root.FaciZombies.data.TimesPlayed == undefined) {
_root.FaciZombies.data.TimesPlayed = 0;
}
if (_root.FaciZombies.data.ClassSlot == undefined) {
_root.FaciZombies.data.ClassSlot = 0;
}
if (_root.FaciZombies.data.Perk1 == undefined or _root.FaciZombies.data.Perk1 == 0) {
_root.FaciZombies.data.Perk1 = ['none', 'none', 'none'];
}
if (_root.FaciZombies.data.Perk2 == undefined or _root.FaciZombies.data.Perk2 == 0) {
_root.FaciZombies.data.Perk2 = ['none', 'none', 'none'];
}
if (_root.FaciZombies.data.Perk3 == undefined or _root.FaciZombies.data.Perk3 == 0) {
_root.FaciZombies.data.Perk3 = ['none', 'none', 'none'];
}
if (_root.FaciZombies.data.Runned == undefined) {
_root.FaciZombies.data.Runned = 0;
}
if (_root.FaciZombies.data.RunnedBack == undefined) {
_root.FaciZombies.data.RunnedBack = 0;
}
if (_root.FaciZombies.data.Reloaded == undefined) {
_root.FaciZombies.data.Reloaded = 0;
}
if (_root.FaciZombies.data.BulletKills == undefined) {
_root.FaciZombies.data.BulletKills = 0;
}
if (_root.FaciZombies.data.Level == undefined) {
_root.FaciZombies.data.Level = 1;
}
if (_root.FaciZombies.data.TotalScore == undefined) {
_root.FaciZombies.data.TotalScore = 0;
}
if (_root.FaciZombies.data.ExplosiveKills == undefined) {
_root.FaciZombies.data.ExplosiveKills = 0;
}
if (_root.FaciZombies.data.MultiKills == undefined) {
_root.FaciZombies.data.MultiKills = 0;
}
if (_root.FaciZombies.data.TotalScore == undefined) {
_root.FaciZombies.data.TotalScore = 0;
}
if (_root.FaciZombies.data.Rank == undefined or _root.FaciZombies.data.Rank == 1) {
_root.FaciZombies.data.Rank = 'Private';
}
if (_root.FaciZombies.data.TotalKills == undefined) {
_root.FaciZombies.data.TotalKills = 0;
}
if (_root.FaciZombies.data.WeaponKills == undefined) {
_root.FaciZombies.data.WeaponKills = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
if (_root.FaciZombies.data.WeaponKills[10] == undefined) {
_root.FaciZombies.data.WeaponKills[10] = 0;
}
_root.FaciZombies.data.TimesPlayed += 1;
_root.HelpFrame = 3;
_root.PerkFrame = 4;
_root.MenuFrame = 5;
_root.StatFrame = 6;
_root.UpgradesFrame = 7;
_root.AttachmentFrame = 8;
_root.CreditsFrame = 9;
_root.SelectClassFrame = 10;
_root.AchievementFrame = 11;
_root.GameFrame = 12;
_root.DeathFrame = 13;
}
button 8 {
on (press) {
_root.BackgroundSong.setVolume(100);
}
}
button 10 {
on (press) {
_root.BackgroundSong.setVolume(50);
}
}
button 12 {
on (press) {
_root.BackgroundSong.setVolume(0);
}
}
movieClip 13 {
}
frame 2 {
stop();
this.onEnterFrame = function () {
if (Key.isDown(13)) {
if (_root.FaciZombies.data.Class == undefined) {
gotoAndStop(SelectClassFrame);
} else {
gotoAndStop(MenuFrame);
}
}
};
}
// unknown tag 88 length 84
button 21 {
on (press) {
gotoAndStop(_root.MenuFrame);
}
}
frame 4 {
ScavengerButton._alpha = 10;
MarathonButton._alpha = 10;
SleightOfHandButton._alpha = 10;
StoppingPowerButton._alpha = 10;
LightweightButton._alpha = 10;
HardlineButton._alpha = 10;
ColdBloodedButton._alpha = 10;
DangerCloseButton._alpha = 10;
NinjaButton._alpha = 10;
SteadyAimButton._alpha = 10;
LastStandButton._alpha = 10;
if (_root.FaciZombies.data.BulletKills >= 2500) {
_root.StoppingPowerButton._alpha = 50;
}
if (_root.FaciZombies.data.TotalKills >= 2500) {
_root.HardlineButton._alpha = 50;
}
if (_root.FaciZombies.data.RunnedBack >= 100000) {
_root.LightweightButton._alpha = 50;
}
if (_root.FaciZombies.data.TotalKills >= 5000) {
_root.ColdBloodedButton._alpha = 50;
}
if (_root.FaciZombies.data.ExplosiveKills >= 2500) {
_root.DangerCloseButton._alpha = 50;
}
if (_root.FaciZombies.data.TotalScore >= 50000) {
_root.ScavengerButton._alpha = 50;
}
if (_root.FaciZombies.data.Runned >= 100000) {
_root.MarathonButton._alpha = 50;
}
if (_root.FaciZombies.data.Reloaded >= 10) {
_root.SleightOfHandButton._alpha = 50;
}
if (_root.FaciZombies.data.TotalKills - _root.FaciZombies.data.BulletKills - _root.FaciZombies.data.ExplosiveKills >= 1000) {
_root.NinjaButton._alpha = 50;
}
if (_root.FaciZombies.data.WeaponKills[3] >= 500) {
_root.SteadyAimButton._alpha = 50;
}
if (_root.FaciZombies.data.TimesPlayed >= 100) {
_root.LastStandButton._alpha = 50;
}
Perk1 = _root.FaciZombies.data.Perk1[_root.FaciZombies.data.ClassSlot];
Perk2 = _root.FaciZombies.data.Perk2[_root.FaciZombies.data.ClassSlot];
Perk3 = _root.FaciZombies.data.Perk3[_root.FaciZombies.data.ClassSlot];
if (Perk1 == 'StoppingPower') {
_root.StoppingPowerButton._alpha = 100;
}
if (Perk1 == 'Lightweight') {
_root.LightweightButton._alpha = 100;
}
if (Perk1 == 'ColdBlooded') {
_root.ColdBloodedButton._alpha = 100;
}
if (Perk1 == 'DangerClose') {
_root.DangerCloseButton._alpha = 100;
}
if (Perk1 == 'Hardline') {
_root.HardlineButton._alpha = 100;
}
if (Perk2 == 'Scavenger') {
_root.ScavengerButton._alpha = 100;
}
if (Perk2 == 'Marathon') {
_root.MarathonButton._alpha = 100;
}
if (Perk2 == 'SleightOfHand') {
_root.SleightOfHandButton._alpha = 100;
}
if (Perk3 == 'Ninja') {
_root.NinjaButton._alpha = 100;
}
if (Perk3 == 'SteadyAim') {
_root.SteadyAimButton._alpha = 100;
}
if (Perk3 == 'LastStand') {
_root.LastStandButton._alpha = 100;
}
}
button 24 {
on (press) {
if (_root.ScavengerButton._alpha == 50 or _root.ScavengerButton._alpha == 100) {
_root.FaciZombies.data.Perk2[_root.FaciZombies.data.ClassSlot] = 'Scavenger';
_root.ScavengerButton._alpha = 100;
if (_root.MarathonButton._alpha == 100) {
_root.MarathonButton._alpha = 50;
}
if (_root.SleightOfHandButton._alpha == 100) {
_root.SleightOfHandButton._alpha = 50;
}
}
}
}
// unknown tag 88 length 53
button 29 {
on (press) {
if (_root.MarathonButton._alpha == 50 or _root.MarathonButton._alpha == 100) {
_root.FaciZombies.data.Perk2[_root.FaciZombies.data.ClassSlot] = 'Marathon';
_root.MarathonButton._alpha = 100;
if (_root.ScavengerButton._alpha == 100) {
_root.ScavengerButton._alpha = 50;
}
if (_root.SleightOfHandButton._alpha == 100) {
_root.SleightOfHandButton._alpha = 50;
}
}
}
}
button 33 {
on (press) {
if (_root.StoppingPowerButton._alpha == 50 or _root.StoppingPowerButton._alpha == 100) {
_root.FaciZombies.data.Perk1[_root.FaciZombies.data.ClassSlot] = 'StoppingPower';
_root.StoppingPowerButton._alpha = 100;
if (_root.LightweightButton._alpha == 100) {
_root.LightweightButton._alpha = 50;
}
if (_root.HardlineButton._alpha == 100) {
_root.HardlineButton._alpha = 50;
}
if (_root.ColdBloodedButton._alpha == 100) {
_root.ColdBloodedButton._alpha = 50;
}
if (_root.DangerCloseButton._alpha == 100) {
_root.DangerCloseButton._alpha = 50;
}
}
}
}
button 37 {
on (press) {
if (_root.LightweightButton._alpha == 50 or _root.LightweightButton._alpha == 100) {
_root.FaciZombies.data.Perk1[_root.FaciZombies.data.ClassSlot] = 'Lightweight';
_root.LightweightButton._alpha = 100;
if (_root.StoppingPowerButton._alpha == 100) {
_root.StoppingPowerButton._alpha = 50;
}
if (_root.HardlineButton._alpha == 100) {
_root.HardlineButton._alpha = 50;
}
if (_root.ColdBloodedButton._alpha == 100) {
_root.ColdBloodedButton._alpha = 50;
}
if (_root.DangerCloseButton._alpha == 100) {
_root.DangerCloseButton._alpha = 50;
}
}
}
}
button 41 {
on (press) {
if (_root.HardlineButton._alpha == 50 or _root.HardlineButton._alpha == 50) {
_root.FaciZombies.data.Perk1[_root.FaciZombies.data.ClassSlot] = 'Hardline';
_root.HardlineButton._alpha = 100;
if (_root.StoppingPowerButton._alpha == 100) {
_root.StoppingPowerButton._alpha = 50;
}
if (_root.LightweightButton._alpha == 100) {
_root.LightweightButton._alpha = 50;
}
if (_root.ColdBloodedButton._alpha == 100) {
_root.ColdBloodedButton._alpha = 50;
}
if (_root.DangerCloseButton._alpha == 100) {
_root.DangerCloseButton._alpha = 50;
}
}
}
}
button 45 {
on (press) {
if (_root.ColdBloodedButton._alpha == 50 or _root.ColdBloodedButton._alpha == 100) {
_root.FaciZombies.data.Perk1[_root.FaciZombies.data.ClassSlot] = 'ColdBlooded';
_root.ColdBloodedButton._alpha = 100;
if (_root.StoppingPowerButton._alpha == 100) {
_root.StoppingPowerButton._alpha = 50;
}
if (_root.LightweightButton._alpha == 100) {
_root.LightweightButton._alpha = 50;
}
if (_root.HardlineButton._alpha == 100) {
_root.HardlineButton._alpha = 50;
}
if (_root.DangerCloseButton._alpha == 100) {
_root.DangerCloseButton._alpha = 50;
}
}
}
}
button 49 {
on (press) {
if (_root.DangerCloseButton._alpha == 50 or _root.DangerCloseButton._alpha == 100) {
_root.FaciZombies.data.Perk1[_root.FaciZombies.data.ClassSlot] = 'DangerClose';
_root.DangerCloseButton._alpha = 100;
if (_root.StoppingPowerButton._alpha == 100) {
_root.StoppingPowerButton._alpha = 50;
}
if (_root.LightweightButton._alpha == 100) {
_root.LightweightButton._alpha = 50;
}
if (_root.HardlineButton._alpha == 100) {
_root.HardlineButton._alpha = 50;
}
if (_root.ColdBloodedButton._alpha == 100) {
_root.ColdBloodedButton._alpha = 50;
}
}
}
}
button 53 {
on (press) {
if (_root.SleightOfHandButton._alpha == 50 or _root.SleightOfHandButton._alpha == 100) {
_root.FaciZombies.data.Perk2[_root.FaciZombies.data.ClassSlot] = 'SleightOfHand';
_root.SleightOfHandButton._alpha = 100;
if (_root.MarathonButton._alpha == 100) {
_root.MarathonButton._alpha = 50;
}
if (_root.ScavengerButton._alpha == 100) {
_root.ScavengerButton._alpha = 50;
}
}
}
}
button 57 {
on (press) {
if (_root.NinjaButton._alpha == 50 or _root.NinjaButton._alpha == 100) {
_root.FaciZombies.data.Perk3[_root.FaciZombies.data.ClassSlot] = 'Ninja';
_root.NinjaButton._alpha = 100;
if (_root.SteadyAimButton._alpha == 100) {
_root.SteadyAimButton._alpha = 50;
}
if (_root.LastStandButton._alpha == 100) {
_root.LastStandButton._alpha = 50;
}
}
}
}
button 61 {
on (press) {
if (_root.SteadyAimButton._alpha == 50 or _root.SteadyAimButton._alpha == 100) {
_root.FaciZombies.data.Perk3[_root.FaciZombies.data.ClassSlot] = 'SteadyAim';
_root.SteadyAimButton._alpha = 100;
if (_root.NinjaButton._alpha == 100) {
_root.NinjaButton._alpha = 50;
}
if (_root.LastStandButton._alpha == 100) {
_root.LastStandButton._alpha = 50;
}
}
}
}
button 65 {
on (press) {
if (_root.LastStandButton._alpha == 50 or _root.LastStandButton._alpha == 100) {
_root.FaciZombies.data.Perk3[_root.FaciZombies.data.ClassSlot] = 'LastStand';
_root.LastStandButton._alpha = 100;
if (_root.SteadyAimButton._alpha == 100) {
_root.SteadyAimButton._alpha = 50;
}
if (_root.NinjaButton._alpha == 100) {
_root.NinjaButton._alpha = 50;
}
}
}
}
frame 5 {
_root.Player.removeMovieClip();
_root.DisplayWeapon.removeMovieClip();
_root.DamageView.removeMovieClip();
_root.ShowWeapon.removeMovieClip();
for (zombie in _root._level0.Zombies) {
_root.Zombies[zombie].removeMovieClip();
}
for (claymore in _root._level0.SpecialGrenadesArray) {
_root.SpecialGrenadesArray[claymore].removeMovieClip();
}
for (grenade in _root._level0.GrenadesArray) {
_root.GrenadesArray[grenade].removeMovieClip();
}
for (corpse in _root._level0.Corpses) {
_root.Corpses[corpse].removeMovieClip();
}
if (_root.FaciZombies.data.TotalScore > 2500) {
_root.FaciZombies.data.Rank = 'Corporal';
}
if (_root.FaciZombies.data.TotalScore > 7500) {
_root.FaciZombies.data.Rank = 'Sergeant';
}
if (_root.FaciZombies.data.TotalScore > 15000) {
_root.FaciZombies.data.Rank = 'Lieuntenant';
}
if (_root.FaciZombies.data.TotalScore > 25000) {
_root.FaciZombies.data.Rank = 'Captain';
}
if (_root.FaciZombies.data.TotalScore > 50000) {
_root.FaciZombies.data.Rank = 'Major';
}
if (_root.FaciZombies.data.TotalScore > 100000) {
_root.FaciZombies.data.Rank = 'Lieutenant Colonel';
}
if (_root.FaciZombies.data.TotalScore > 125000) {
_root.FaciZombies.data.Rank = 'Colonel';
}
if (_root.FaciZombies.data.TotalScore > 175000) {
_root.FaciZombies.data.Rank = 'Brigader General';
}
if (_root.FaciZombies.data.TotalScore > 250000) {
_root.FaciZombies.data.Rank = 'Major General';
}
if (_root.FaciZombies.data.TotalScore > 500000) {
_root.FaciZombies.data.Rank = 'Lieutenant General';
}
if (_root.FaciZombies.data.TotalScore > 1000000) {
_root.FaciZombies.data.Rank = 'General';
}
}
button 70 {
on (press) {
gotoAndStop(_root.HelpFrame);
}
}
button 72 {
on (press) {
gotoAndStop(GameFrame);
}
}
button 74 {
on (press) {
gotoAndStop(_root.StatFrame);
}
}
button 76 {
on (press) {
gotoAndStop(_root.PerkFrame);
}
}
button 78 {
on (press) {
gotoAndStop(_root.AttachmentFrame);
}
}
button 80 {
on (press) {
gotoAndStop(_root.UpgradesFrame);
}
}
button 82 {
on (press) {
gotoAndStop(_root.CreditsFrame);
}
}
button 84 {
on (press) {
gotoAndStop(_root.SelectClassFrame);
}
}
button 86 {
on (press) {
gotoAndStop(_root.AchievementFrame);
}
}
frame 6 {
_root.totalkills = 'Total Kills: ' + _root.FaciZombies.data.TotalKills;
_root.bulletkills = 'Kills with bullets: ' + _root.FaciZombies.data.BulletKills;
_root.bestlevel = 'Highest level reached: ' + _root.FaciZombies.data.Level;
_root.totalscore = 'Total score: ' + _root.FaciZombies.data.TotalScore;
_root.explosivekills = 'Kills with explosives: ' + _root.FaciZombies.data.ExplosiveKills;
_root.multikills = 'Multikills: ' + _root.FaciZombies.data.MultiKills;
_root.rank = 'Rank: ' + _root.FaciZombies.data.Rank;
_root.ump = 'H&K UMP: ' + _root.FaciZombies.data.WeaponKills[1];
_root.m4 = 'M4A1 Carbine: ' + _root.FaciZombies.data.WeaponKills[2];
_root.intervention = 'Intervention M200: ' + _root.FaciZombies.data.WeaponKills[3];
_root.rpd = 'RPD: ' + _root.FaciZombies.data.WeaponKills[4];
_root.mg4 = 'H&K MG4: ' + _root.FaciZombies.data.WeaponKills[5];
_root.fal = 'FN FAL: ' + _root.FaciZombies.data.WeaponKills[6];
_root.dt10 = 'Beretta DT10: ' + _root.FaciZombies.data.WeaponKills[7];
_root.aa12 = 'AA12: ' + _root.FaciZombies.data.WeaponKills[8];
_root.p90 = 'P90: ' + _root.FaciZombies.data.WeaponKills[10];
_root.timesplayed = 'Times played: ' + _root.FaciZombies.data.TimesPlayed;
_root.gold = 'Gold: ' + _root.FaciZombies.data.Gold;
}
// unknown tag 88 length 79
frame 7 {
_root.barricadeprice = 'Price: ' + 10000 * _root.FaciZombies.data.Barricades;
_root.chestprice = 'Price: ' + 10000 * _root.FaciZombies.data.Chest;
_root.charmprice = 'Price: ' + 17500 * _root.FaciZombies.data.Charm;
_root.displaygold = 'Gold: ' + _root.FaciZombies.data.Gold;
}
button 110 {
on (press) {
if (_root.FaciZombies.data.Gold >= _root.FaciZombies.data.Barricades * 10000) {
_root.FaciZombies.data.Gold -= _root.FaciZombies.data.Barricades * 10000;
_root.FaciZombies.data.Barricades += 1;
_root.barricadeprice = 'Price: ' + 10000 * _root.FaciZombies.data.Barricades;
_root.displaygold = 'Gold: ' + _root.FaciZombies.data.Gold;
}
}
}
button 116 {
on (press) {
if (_root.FaciZombies.data.Gold >= _root.FaciZombies.data.Chest * 10000) {
_root.FaciZombies.data.Gold -= _root.FaciZombies.data.Chest * 10000;
_root.FaciZombies.data.Chest += 1;
_root.chestprice = 'Price: ' + 10000 * _root.FaciZombies.data.Chest;
_root.displaygold = 'Gold: ' + _root.FaciZombies.data.Gold;
}
}
}
button 121 {
on (press) {
if (_root.FaciZombies.data.Gold >= _root.FaciZombies.data.Charm * 17500) {
_root.FaciZombies.data.Gold -= _root.FaciZombies.data.Charm * 17500;
_root.FaciZombies.data.Charm += 1;
_root.chestprice = 'Price: ' + 17500 * _root.FaciZombies.data.Charm;
_root.displaygold = 'Gold: ' + _root.FaciZombies.data.Gold;
}
}
}
frame 8 {
Check1._x = 405.8 + (_root.FaciZombies.data.Attachments[1] - 1) * 131.1;
Check2._x = 405.8 + (_root.FaciZombies.data.Attachments[2] - 1) * 131.1;
Check3._x = 405.8 + (_root.FaciZombies.data.Attachments[3] - 1) * 131.1;
Check4._x = 405.8 + (_root.FaciZombies.data.Attachments[4] - 1) * 131.1;
Check5._x = 405.8 + (_root.FaciZombies.data.Attachments[5] - 1) * 131.1;
Check6._x = 405.8 + (_root.FaciZombies.data.Attachments[6] - 1) * 131.1;
Check7._x = 405.8 + (_root.FaciZombies.data.Attachments[7] - 1) * 131.1;
Check8._x = 405.8 + (_root.FaciZombies.data.Attachments[8] - 1) * 131.1;
}
button 127 {
on (press) {
ButtonNumber = 1;
WeaponNumber = 1;
Check1._x = 405.8 + (ButtonNumber - 1) * 131.1;
_root.FaciZombies.data.Attachments[WeaponNumber] = ButtonNumber;
}
}
button 128 {
on (rollOver) {
requiredkills = 'Required Kills: 20';
}
on (press) {
if (_root.FaciZombies.data.WeaponKills[1] >= 20) {
ButtonNumber = 2;
WeaponNumber = 1;
Check1._x = 405.8 + (ButtonNumber - 1) * 131.1;
_root.FaciZombies.data.Attachments[WeaponNumber] = ButtonNumber;
}
}
}
button 129 {
on (rollOver) {
requiredkills = 'Required Kills: NaN';
}
}
button 130 {
on (rollOver) {
requiredkills = 'Required Kills: 100';
}
on (press) {
if (_root.FaciZombies.data.WeaponKills[1] >= 100) {
ButtonNumber = 4;
WeaponNumber = 1;
Check1._x = 405.8 + (ButtonNumber - 1) * 131.1;
_root.FaciZombies.data.Attachments[WeaponNumber] = ButtonNumber;
}
}
}
button 131 {
on (rollOver) {
requiredkills = 'Required Kills: NaN';
}
}
button 132 {
on (press) {
ButtonNumber = 1;
WeaponNumber = 2;
Check2._x = 405.8 + (ButtonNumber - 1) * 131.1;
_root.FaciZombies.data.Attachments[WeaponNumber] = ButtonNumber;
}
}
button 133 {
on (rollOver) {
requiredkills = 'Required Kills: 50';
}
on (press) {
if (_root.FaciZombies.data.WeaponKills[2] >= 50) {
ButtonNumber = 2;
WeaponNumber = 2;
Check2._x = 405.8 + (ButtonNumber - 1) * 131.1;
_root.FaciZombies.data.Attachments[WeaponNumber] = ButtonNumber;
}
}
}
button 134 {
on (rollOver) {
requiredkills = 'Required Kills: NaN';
}
}
button 135 {
on (rollOver) {
requiredkills = 'Required Kills: NaN';
}
}
button 136 {
on (rollOver) {
requiredkills = 'Required Kills: 250';
}
on (press) {
if (_root.FaciZombies.data.WeaponKills[2] >= 250) {
ButtonNumber = 5;
WeaponNumber = 2;
Check2._x = 405.8 + (ButtonNumber - 1) * 131.1;
_root.FaciZombies.data.Attachments[WeaponNumber] = ButtonNumber;
}
}
}
button 137 {
on (press) {
ButtonNumber = 1;
WeaponNumber = 3;
Check3._x = 405.8 + (ButtonNumber - 1) * 131.1;
_root.FaciZombies.data.Attachments[WeaponNumber] = ButtonNumber;
}
}
button 138 {
on (rollOver) {
requiredkills = 'Required Kills: 50';
}
on (press) {
if (_root.FaciZombies.data.WeaponKills[3] >= 20) {
ButtonNumber = 2;
WeaponNumber = 3;
Check3._x = 405.8 + (ButtonNumber - 1) * 131.1;
_root.FaciZombies.data.Attachments[WeaponNumber] = ButtonNumber;
}
}
}
button 139 {
on (rollOver) {
requiredkills = 'Required Kills: 100';
}
on (press) {
if (_root.FaciZombies.data.WeaponKills[3] >= 100) {
ButtonNumber = 3;
WeaponNumber = 3;
Check3._x = 405.8 + (ButtonNumber - 1) * 131.1;
_root.FaciZombies.data.Attachments[WeaponNumber] = ButtonNumber;
}
}
}
button 140 {
on (rollOver) {
requiredkills = 'Required Kills: NaN';
}
}
button 141 {
on (rollOver) {
requiredkills = 'Required Kills: NaN';
}
}
button 142 {
on (press) {
ButtonNumber = 1;
WeaponNumber = 4;
Check4._x = 405.8 + (ButtonNumber - 1) * 131.1;
_root.FaciZombies.data.Attachments[WeaponNumber] = ButtonNumber;
}
}
button 143 {
on (rollOver) {
requiredkills = 'Required Kills: 50';
}
on (press) {
if (_root.FaciZombies.data.WeaponKills[4] >= 50) {
ButtonNumber = 2;
WeaponNumber = 4;
Check4._x = 405.8 + (ButtonNumber - 1) * 131.1;
_root.FaciZombies.data.Attachments[WeaponNumber] = ButtonNumber;
}
}
}
button 144 {
on (rollOver) {
requiredkills = 'Required Kills: 100';
}
on (press) {
if (_root.FaciZombies.data.WeaponKills[4] >= 100) {
ButtonNumber = 3;
WeaponNumber = 4;
Check4._x = 405.8 + (ButtonNumber - 1) * 131.1;
_root.FaciZombies.data.Attachments[WeaponNumber] = ButtonNumber;
}
}
}
button 145 {
on (rollOver) {
requiredkills = 'Required Kills: 250';
}
on (press) {
if (_root.FaciZombies.data.WeaponKills[4] >= 250) {
ButtonNumber = 4;
WeaponNumber = 4;
Check4._x = 405.8 + (ButtonNumber - 1) * 131.1;
_root.FaciZombies.data.Attachments[WeaponNumber] = ButtonNumber;
}
}
}
button 146 {
on (rollOver) {
requiredkills = 'Required Kills: NaN';
}
}
button 147 {
on (press) {
ButtonNumber = 1;
WeaponNumber = 5;
Check5._x = 405.8 + (ButtonNumber - 1) * 131.1;
_root.FaciZombies.data.Attachments[WeaponNumber] = ButtonNumber;
}
}
button 148 {
on (rollOver) {
requiredkills = 'Required Kills: 250';
}
on (press) {
if (_root.FaciZombies.data.WeaponKills[5] >= 250) {
ButtonNumber = 2;
WeaponNumber = 5;
Check5._x = 405.8 + (ButtonNumber - 1) * 131.1;
_root.FaciZombies.data.Attachments[WeaponNumber] = ButtonNumber;
}
}
}
button 149 {
on (rollOver) {
requiredkills = 'Required Kills: 500';
}
on (press) {
if (_root.FaciZombies.data.WeaponKills[5] >= 500) {
ButtonNumber = 3;
WeaponNumber = 5;
Check5._x = 405.8 + (ButtonNumber - 1) * 131.1;
_root.FaciZombies.data.Attachments[WeaponNumber] = ButtonNumber;
}
}
}
button 150 {
on (rollOver) {
requiredkills = 'Required Kills: NaN';
}
}
button 151 {
on (rollOver) {
requiredkills = 'Required Kills: NaN';
}
}
button 152 {
on (press) {
ButtonNumber = 1;
WeaponNumber = 6;
Check6._x = 405.8 + (ButtonNumber - 1) * 131.1;
_root.FaciZombies.data.Attachments[WeaponNumber] = ButtonNumber;
}
}
button 153 {
on (rollOver) {
requiredkills = 'Required Kills: 50';
}
on (press) {
if (_root.FaciZombies.data.WeaponKills[6] >= 50) {
ButtonNumber = 2;
WeaponNumber = 6;
Check6._x = 405.8 + (ButtonNumber - 1) * 131.1;
_root.FaciZombies.data.Attachments[WeaponNumber] = ButtonNumber;
}
}
}
button 154 {
on (rollOver) {
requiredkills = 'Required Kills: 125';
}
on (press) {
if (_root.FaciZombies.data.WeaponKills[6] >= 125) {
ButtonNumber = 3;
WeaponNumber = 6;
Check6._x = 405.8 + (ButtonNumber - 1) * 131.1;
_root.FaciZombies.data.Attachments[WeaponNumber] = ButtonNumber;
}
}
}
button 155 {
on (rollOver) {
requiredkills = 'Required Kills: 75';
}
on (press) {
if (_root.FaciZombies.data.WeaponKills[6] >= 75) {
ButtonNumber = 4;
WeaponNumber = 6;
Check6._x = 405.8 + (ButtonNumber - 1) * 131.1;
_root.FaciZombies.data.Attachments[WeaponNumber] = ButtonNumber;
}
}
}
button 156 {
on (rollOver) {
requiredkills = 'Required Kills: 250';
}
on (press) {
if (_root.FaciZombies.data.WeaponKills[6] >= 250) {
ButtonNumber = 5;
WeaponNumber = 6;
Check6._x = 405.8 + (ButtonNumber - 1) * 131.1;
_root.FaciZombies.data.Attachments[WeaponNumber] = ButtonNumber;
}
}
}
button 157 {
on (press) {
ButtonNumber = 1;
WeaponNumber = 7;
Check7._x = 405.8 + (ButtonNumber - 1) * 131.1;
_root.FaciZombies.data.Attachments[WeaponNumber] = ButtonNumber;
}
}
button 158 {
on (rollOver) {
requiredkills = 'Required Kills: NaN';
}
}
button 159 {
on (rollOver) {
requiredkills = 'Required Kills: NaN';
}
}
button 160 {
on (rollOver) {
requiredkills = 'Required Kills: NaN';
}
}
button 161 {
on (rollOver) {
requiredkills = 'Required Kills: 100';
}
on (press) {
if (_root.FaciZombies.data.WeaponKills[7] >= 100) {
ButtonNumber = 5;
WeaponNumber = 7;
Check7._x = 405.8 + (ButtonNumber - 1) * 131.1;
_root.FaciZombies.data.Attachments[WeaponNumber] = ButtonNumber;
}
}
}
button 162 {
on (press) {
ButtonNumber = 1;
WeaponNumber = 8;
Check8._x = 405.8 + (ButtonNumber - 1) * 131.1;
_root.FaciZombies.data.Attachments[WeaponNumber] = ButtonNumber;
}
}
button 163 {
on (rollOver) {
requiredkills = 'Required Kills: NaN';
}
}
button 164 {
on (rollOver) {
requiredkills = 'Required Kills: NaN';
}
}
button 165 {
on (rollOver) {
requiredkills = 'Required Kills: 125';
}
on (press) {
if (_root.FaciZombies.data.WeaponKills[8] >= 125) {
ButtonNumber = 4;
WeaponNumber = 8;
Check8._x = 405.8 + (ButtonNumber - 1) * 131.1;
_root.FaciZombies.data.Attachments[WeaponNumber] = ButtonNumber;
}
}
}
button 166 {
on (rollOver) {
requiredkills = 'Required Kills: NaN';
}
}
movieClip 168 {
}
button 170 {
on (press) {
ButtonNumber = 1;
WeaponNumber = 10;
Check8._x = 405.8 + (ButtonNumber - 1) * 131.1;
_root.FaciZombies.data.Attachments[WeaponNumber] = ButtonNumber;
}
}
button 171 {
on (rollOver) {
requiredkills = 'Required Kills: 250';
}
on (press) {
if (_root.FaciZombies.data.WeaponKills[1] >= 250) {
ButtonNumber = 2;
WeaponNumber = 8;
Check1._x = 405.8 + (ButtonNumber - 1) * 131.1;
_root.FaciZombies.data.Attachments[WeaponNumber] = ButtonNumber;
}
}
}
button 172 {
on (rollOver) {
requiredkills = 'Required Kills: NaN';
}
}
button 173 {
on (rollOver) {
requiredkills = 'Required Kills: 500';
}
on (press) {
if (_root.FaciZombies.data.WeaponKills[1] >= 500) {
ButtonNumber = 4;
WeaponNumber = 8;
Check1._x = 405.8 + (ButtonNumber - 1) * 131.1;
_root.FaciZombies.data.Attachments[WeaponNumber] = ButtonNumber;
}
}
}
button 174 {
on (rollOver) {
requiredkills = 'Required Kills: NaN';
}
}
button 179 {
on (press) {
_root.FaciZombies.data.Class = 1;
_root.gotoAndStop(_root.MenuFrame);
}
}
button 183 {
on (press) {
_root.FaciZombies.data.Class = 2;
_root.gotoAndStop(_root.MenuFrame);
}
}
button 187 {
on (press) {
_root.FaciZombies.data.Class = 3;
_root.gotoAndStop(_root.MenuFrame);
}
}
button 191 {
on (press) {
_root.FaciZombies.data.Class = 4;
_root.gotoAndStop(_root.MenuFrame);
}
}
button 195 {
on (press) {
_root.FaciZombies.data.Class = 5;
_root.gotoAndStop(_root.MenuFrame);
}
}
instance of movieClip 168 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.Achievements[0] == 1) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
}
instance of movieClip 168 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.Achievements[1] == 1) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
}
instance of movieClip 168 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.Achievements[2] == 1) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
}
instance of movieClip 168 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.Achievements[3] == 1) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
}
instance of movieClip 168 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.Achievements[4] == 1) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
}
instance of movieClip 168 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.Achievements[5] == 1) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
}
instance of movieClip 168 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.Rank == 'General') {
_root.FaciZombies.data.Achievements[6] = 1;
}
if (_root.FaciZombies.data.Achievements[6] == 1) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
}
instance of movieClip 168 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.Achievements[8] == 1) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
}
instance of movieClip 168 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.Achievements[9] == 1) {
this._alpha = 100;
} else {
this._alpha = 0;
}
}
}
frame 12 {
stop();
_root._x = 192;
_root._y = -430;
_root.DamageView._alpha = 0;
_root.DamageView._width = Stage.width;
_root.DamageView._height = Stage.height;
var SpecialGrenadesArray = new Array();
var GrenadesArray = new Array();
var PlayerShots = new Array();
var Zombies = new Array();
var Corpses = new Array();
_root.Aim.startDrag('true');
Mouse.hide();
_root.Perk1 = _root.FaciZombies.data.Perk1[_root.FaciZombies.data.ClassSlot];
_root.Perk2 = _root.FaciZombies.data.Perk2[_root.FaciZombies.data.ClassSlot];
_root.Perk3 = _root.FaciZombies.data.Perk3[_root.FaciZombies.data.ClassSlot];
_root.Player._x = _root.FaciZombies.data.SaveX;
_root.Player._y = _root.FaciZombies.data.SaveY;
_root.hitTester._x = _root.Player._x;
_root.hitTester._y = _root.Player._y + 2.1;
Level = _root.FaciZombies.data.SaveLevel;
Kills = _root.FaciZombies.data.SaveKills;
if (Kills <= 0 or Kills == undefined or Kills == NaN) {
Kills = 0;
}
LevelCap = [10, 10, 20, 30, 50, 80, 130, 210, 340, 550, 890, 1000, 1250, 1750, 2350, 2500, 3000, 3250, 3500, 4000, 5000];
GrenadeTimer = 'false';
_root.Player.LastStand = 'false';
_root.Player.hp = _root.FaciZombies.data.Savehp;
_root.Player.Score = _root.FaciZombies.data.SaveScore;
_root.Player.CamFollow = 'true';
_root.Player.SpaceTimer = 'false';
_root.Player.ArrowTimer = 'false';
_root.PauseTimer = 'false';
_root.Player.knifing = 'false';
_root.Pause = 'false';
ShotDelay = 0;
LevelTimer = 0;
_root.DeadTimer = 0;
_root.HelpTextTimer = 50;
_root.MultiKillTimer = 0;
_root.HelpTextContent = 0;
_root.Crate.timer = 20;
_root.RemovedWalls = 0;
_root.helptext = '';
PShotID = 0;
ZombieID = 0;
UniqueID = 1;
GrenadeID = 0;
CorpseID = 0;
SpecialGrenadeID = 0;
ZombieAmount = 0;
TotalWalls = 17;
TotalBarricades = 6;
TotalWalls += TotalBarricades;
_root.WallType = _root.FaciZombies.data.SaveWallType;
_root.WallHP = _root.FaciZombies.data.SaveWallHP;
_root.Player.reloading = 'false';
_root.Player.Loaded = 'true';
_root.Player.AlternateFire = 'false';
_root.Player.Weapons = _root.FaciZombies.data.SaveWeapons;
_root.Player.WeaponSlot = _root.FaciZombies.data.SaveWeaponSlot;
_root.Player.Weapon = _root.Player.Weapons[_root.Player.WeaponSlot];
_root.Player.Grenades = _root.FaciZombies.data.SaveGrenades;
_root.Player.SpecialGrenades = _root.FaciZombies.data.SaveSpecialGrenades;
_root.Player.RifleGrenades = _root.FaciZombies.data.SaveRifleGrenades;
_root.Player.DEagleAmmo = 12;
_root.Player.Mags = _root.FaciZombies.data.SaveMags;
_root.Player.Ammo = _root.FaciZombies.data.SaveAmmo;
_root.Player.MaxAmmo = [12, 30, 20, 5, 200, 100, 20, 2, 8, 499, 50];
_root.Player.MaxMags = [0, 5, 5, 10, 1, 2, 5, 40, 5, 0, 3];
_root.Player.Damage = [20, 3, 3, 10, 2, 10, 3, 5, 3, 20, 2];
_root.Player.Penetrating = [2, 1, 2, 3, 2, 1, 3, 1, 1, 2, 4];
_root.Player.LoadStyle = [3, 1, 1, 2, 1, 1, 3, 3, 4, 1, 1];
_root.Player.Range = [1000, 400, 600, 2000, 600, 1500, 1000, 600, 200, 1500, 400];
_root.Player.WeaponSpread = [0, 3, 7, 0, 10, 2, 1, 12, 15, 10];
_root.Player.AmmoType = [1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1];
_root.Player.Speed = [0, 2, 1, 1, 1, 1, 1, 1, 4, 1, 1];
_root.Player.WeaponType = [0, 1, 2, 3, 4, 4, 2, 5, 5, 4, 1];
_root.Player.WeaponNames = ['Desert Eagle', 'H&K UMP 45', 'Colt M4A1 Carbine', 'Intervention M200', 'RPD', 'H&K MG4', 'FN FAL', 'Beretta DT10', 'AA12', 'GAU17', 'P90'];
XSpawns = [-850, -850, 675, -850, 192, 1100];
YSpawns = [700, 925, 1380, -216, -685, 400];
XGoTos = [-250, -250, 665, -250, 192, 791];
YGoTos = [695, 925, 1050, -216, -292, 394];
this.onEnterFrame = function () {
if (Key.isDown(80)) {
if (PauseTimer == 'false') {
PauseTimer = 'true';
if (Pause == 'false') {
Pause = 'true';
} else {
Pause = 'false';
}
}
} else {
PauseTimer = 'false';
}
_root.Mute._x = Stage.width - 50 - _root._x;
_root.Mute._y = 42 - _root._y;
_root.MultiKillText.swapDepths(UniqueID + 110);
_root.MultiKillTimer -= 0.5;
if (_root.MultiKillTimer < 0) {
_root.MultiKillText._visible = false;
}
_root.StatBackGround._y = Stage.height - 126 - _root._y;
_root.StatBackGround._x = -_root._x;
_root.DisplayBestLevel._x = -_root._x + 20;
_root.DisplayLevel._x = -_root._x + 20;
_root.DisplayLevel._y = Stage.height - 96 - _root._y;
_root.DisplayGold._x = -_root._x + 20;
_root.DisplayGold._y = Stage.height - 115 - _root._y;
_root.DisplayBestLevel._y = Stage.height - 78 - _root._y;
_root.GrenadeText._x = Stage.width - 480 - _root._x;
_root.GrenadeText._y = Stage.height - 45 - _root._y;
_root.SpecialGrenadeText._x = Stage.width - 630 - _root._x;
_root.SpecialGrenadeText._y = Stage.height - 45 - _root._y;
_root.RifleGrenadeText._x = Stage.width - 760 - _root._x;
_root.RifleGrenadeText._y = Stage.height - 45 - _root._y;
_root.ShowWeapon._y = Stage.height - 80 - _root._y;
_root.ShowWeaponText._y = Stage.height - 63 - _root._y;
_root.ShowWeaponText._x = Stage.width - 330 - _root._x;
_root.ShowWeapon._x = Stage.width - 50 - _root._x;
_root.HPBar._x = -_root._x + 75;
_root.HPBar._y = Stage.height - 45 - _root._y;
_root.RoundText._x = Stage.width - 255 - _root._x;
_root.RoundText._y = Stage.height - 45 - _root._y;
_root.MagText._x = Stage.width - 110 - _root._x;
_root.MagText._y = Stage.height - 45 - _root._y;
_root.ScoreText._x = Stage.width - 370 - _root._x;
_root.ScoreText._y = Stage.height - 45 - _root._y;
--_root.HelpTextTimer;
if (_root.HelpTextTimer > 100) {
_root.HelpTextTimer = 100;
}
if (_root.HelpTextTimer > 0) {
_root.HelpTextGround._alpha = 100;
if (_root.HelpTextContent == 0) {
_root.helptext = 'Move with ASDW, aim and fire with your mouse, reload with R, lock the camera to it\'s current position with SPACE, use knife with SHIFT, throw grenades with control and place claymores with option.';
}
if (_root.HelpTextContent == 2) {
_root.helptext = 'Press B to rebuild the barricade.';
}
if (_root.HelpTextContent == 3) {
_root.helptext = 'Press B to remove the wall (if you have enough points).';
}
if (_root.HelpTextContent == 11) {
_root.helptext = 'Press B to buy a DT10 (costs 500 points).';
}
if (_root.HelpTextContent == 12) {
_root.helptext = 'Press B to buy a random weapon (costs 950 points).';
}
if (_root.HelpTextContent == 13) {
_root.helptext = 'Press B to buy a M4A1 Carbine (costs 850 points).';
}
if (_root.HelpTextContent == 14) {
_root.helptext = 'Press B to buy a Intervention M200 (costs 450 points).';
}
} else {
_root.helptext = '';
_root.HelpTextGround._alpha = 0;
}
_root.displaygold = 'Gold: ' + _root.FaciZombies.data.Gold;
_root.displaylevel = 'Level: ' + Level;
_root.displaybestlevel = 'Best Level: ' + _root.FaciZombies.data.Level;
_root.scoreText = 'Score: ' + _root.Player.Score;
_root.showweapontext = _root.Player.WeaponNames[_root.Player.Weapon];
if (_root.Player.AlternateFire == 'true') {
_root.showweapontext = _root.Player.WeaponNames[_root.Player.Weapon] + ' - Grenade launcher';
}
_root.grenadetext = 'Grenades: ' + _root.Player.Grenades;
_root.specialgrenadetext = 'Claymores: ' + _root.Player.SpecialGrenades;
_root.riflegrenadetext = 'Rifle Grenades: ' + _root.Player.RifleGrenades;
_root.Rounds = 'Rounds: ' + _root.Player.Ammo[_root.Player.WeaponSlot];
if (_root.Player.Weapon == 7) {
_root.Mags = 'Extra: ' + _root.Player.Mags[_root.Player.WeaponSlot];
} else {
_root.Mags = 'Mags: ' + _root.Player.Mags[_root.Player.WeaponSlot];
}
if (_root.Pause == 'true') {
_root.ShowWeapon._visible = false;
if (Key.isDown(83) and _root.DeadTimer <= 0) {
_root.DeadTimer = 10;
}
}
if (_root.Pause == 'false') {
--_root.DeadTimer;
_root.FaciZombies.data.GameSaved = undefined;
_root.ShowWeapon._visible = true;
if (Key.isDown(18)) {
if (SpecialGrenadeTimer == 'false' and _root.Player.SpecialGrenades >= 1) {
SpecialGrenadeTimer = 'true';
++SpecialGrenadeID;
--_root.Player.SpecialGrenades;
UniqueID += 1;
if (SpecialGrenadeID == 20) {
SpecialGrenadeID = 1;
}
SpecialGrenades[SpecialGrenadeID] = MakeObject('Claymore', ClaymoreT, UniqueID, Player._x, Player._y);
}
} else {
SpecialGrenadeTimer = 'false';
}
if (Key.isDown(17)) {
if (GrenadeTimer == 'false' and _root.Player.Grenades >= 1) {
GrenadeTimer = 'true';
++GrenadeID;
--_root.Player.Grenades;
UniqueID += 1;
if (GrenadeID == 20) {
GrenadeID = 1;
}
Grenades[GrenadeID] = MakeObject('Grenade', GrenadeT, UniqueID, Player._x, Player._y);
}
} else {
GrenadeTimer = 'false';
}
var v4 = false;
this.onMouseDown = function () {
_root.isMouseDown = true;
};
this.onMouseUp = function () {
_root.isMouseDown = false;
};
--ShotDelay;
if (_root.Player.LastStand == 'false') {
if (_root.isMouseDown == true and _root.Player.Ammo[_root.Player.WeaponSlot] > 0 and _root.Player.Loaded == 'true' and _root.Player.knifing == 'false' and ShotDelay <= 0 and _root.Player.AlternateFire == 'false' and _root.Player.reloading == 'false') {
_root.soundFX.attachSound('Bullet.mp3');
_root.soundFX.start();
if (_root.Player.LoadStyle[_root.Player.Weapon] == 2) {
_root.Player.Loaded = 'false';
_root.Player.reloading = 'true';
_root.Player.gotoAndPlay(27);
_root.isMouseDown = false;
}
if (_root.Player.LoadStyle[_root.Player.Weapon] == 3) {
_root.isMouseDown = false;
}
ShotDelay = _root.Player.Speed[_root.Player.Weapon];
--_root.Player.Ammo[_root.Player.WeaponSlot];
PShotID += 1;
UniqueID += 1;
PlayerShots[PShotID] = MakeObject('PShot', BulletT, UniqueID, Player._x - 7.8 * Math.cos(_root.Player._rotation / 57.2957), Player._y - 7.8 * Math.sin(_root.Player._rotation / 57.2959));
if (_root.Player.AmmoType[_root.Player.Weapon] == 2) {
temp = 0;
while (temp < 10) {
PShotID += 1;
UniqueID += 1;
if (PShotID == 50) {
PShotID = 1;
}
PlayerShots[PShotID] = MakeObject('PShot', BulletT, UniqueID, Player._x - 7.8 * Math.cos(_root.Player._rotation / 57.2957), Player._y - 7.8 * Math.sin(_root.Player._rotation / 57.2959));
++temp;
}
}
}
if (_root.FaciZombies.data.Attachments[_root.Player.Weapon] != 5) {
_root.Player.AlternateFire = 'false';
}
if (_root.isMouseDown == true and _root.Player.AlternateFire == 'true' and _root.Player.RifleGrenades > 0 and _root.Player.Loaded == 'true' and _root.Player.reloading == 'false') {
_root.Player.Loaded = 'false';
PShotID += 1;
UniqueID += 1;
if (PShotID == 50) {
PShotID = 1;
}
_root.soundFX.attachSound('Bullet.mp3');
_root.soundFX.start();
PlayerShots[PShotID] = MakeObject('RifleGrenade', RifleGrenadeT, UniqueID, Player._x - 7.8 * Math.cos(_root.Player._rotation / 57.2957), Player._y - 7.8 * Math.sin(_root.Player._rotation / 57.2959));
--_root.Player.RifleGrenades;
_root.isMouseDown = false;
_root.Player.gotoAndPlay(27);
_root.isMouseDown = false;
}
} else {
if (_root.isMouseDown == true and _root.Player.DEagleAmmo > 0) {
_root.soundFX.attachSound('Bullet.mp3');
_root.soundFX.start();
_root.isMouseDown = false;
--_root.Player.DEagleAmmo;
PShotID += 1;
UniqueID += 1;
if (PShotID == 50) {
PShotID = 1;
}
PlayerShots[PShotID] = MakeObject('PShot', BulletT, UniqueID, Player._x - 7.8 * Math.cos(_root.Player._rotation / 57.2957), Player._y - 7.8 * Math.sin(_root.Player._rotation / 57.2959));
}
}
if (_root.Crate.Weapon != 0) {
--_root.Crate.timer;
}
if (_root.Crate.timer < -2) {
_root.Crate.timer = 10;
}
if (_root.Crate.timer > 350) {
_root.Crate.timer = 350;
}
if (_root.Crate.timer < 0) {
_root.Crate.Weapon = 0;
_root.Crate.gotoAndStop(1);
_root.Crate.timer = 10;
}
if (Kills > LevelCap[Level]) {
++Level;
if (Level > _root.FaciZombies.data.Level) {
_root.FaciZombies.data.Level = Level;
}
if (_root.FaciZombies.data.Achievements[0] == 0 and Level >= 5) {
_root.FaciZombies.data.Achievements[0] = 1;
_root.helptext = 'Achievement Complete: Get to level 5';
HelpTextTimer = 100;
HelpTextContent = 15;
}
if (_root.FaciZombies.data.Achievements[4] == 0 and Level >= 10) {
_root.FaciZombies.data.Achievements[4] = 1;
_root.helptext = 'Achievement Complete: Get to level 10';
HelpTextTimer = 100;
HelpTextContent = 15;
}
if (_root.FaciZombies.data.Achievements[5] == 0 and Level >= 15) {
_root.FaciZombies.data.Achievements[5] = 1;
_root.helptext = 'Achievement Complete: Get to level 15';
HelpTextTimer = 100;
HelpTextContent = 15;
}
if (_root.FaciZombies.data.Achievements[8] == 0 and Level >= 10 and _root.Player.Weaons == [1, 0]) {
_root.FaciZombies.data.Achievements[8] = 1;
_root.helptext = 'Achievement Complete: Get to level 10 with only UMP';
HelpTextTimer = 100;
HelpTextContent = 15;
}
LevelTimer = 300;
}
if (_root.FaciZombies.data.Achievements[1] == 0 and _root.FaciZombies.data.MultiKills >= 10) {
_root.FaciZombies.data.Achievements[1] = 1;
_root.helptext = 'Achievement Complete: Get 10 Multikills';
HelpTextTimer = 100;
HelpTextContent = 15;
}
if (_root.FaciZombies.data.Achievements[2] == 0 and _root.hitTester.hitTest(_root.Tile17)) {
_root.FaciZombies.data.Achievements[2] = 1;
_root.helptext = 'Achievement Complete: Get into the last room';
HelpTextTimer = 100;
HelpTextContent = 15;
}
--LevelTimer;
if (random(110 - 10 * Level) == 0 and ZombieAmount < 50 and LevelTimer <= 0) {
++ZombieID;
++ZombieAmount;
++UniqueID;
if (ZombieID >= 60) {
ZombieID = 1;
}
Zombies[ZombieID].removeMovieClip();
if (random(10) < 5) {
Zombies[ZombieID] = MakeObject('Zombie', ZombieT, UniqueID, 666, 1133);
} else {
if (random(10) < 7 or _root.Level < 7) {
Zombies[ZombieID] = MakeObject('Zombie', Zombie2T, UniqueID, 666, 1133);
} else {
Zombies[ZombieID] = MakeObject('Zombie', Zombie3T, UniqueID, 666, 1133);
}
}
}
MakeObject = function (instname, template, id, x, y) {
var v2;
var v1 = instname + id;
v2 = template.duplicateMovieClip(v1, id);
eval(v1)._x = x;
eval(v1)._y = y;
return v2;
};
}
BuyWeapon = function (weapon) {
if (_root.FaciZombies.data.Attachments[weapon] == 5 or weapon == 0.1) {
_root.Player.RifleGrenades += 2;
}
if (weapon != 0.1) {
if (_root.Player.Weapons[1] == 0 and _root.Player.Weapon != weapon) {
_root.Player.WeaponSlot = 1;
_root.Player.WeaponSlot = 1;
}
_root.Player.Weapons[_root.Player.WeaponSlot] = weapon;
if (_root.Player.Weapon == weapon) {
_root.Player.Mags[_root.Player.WeaponSlot] += _root.Player.MaxMags[_root.Player.Weapon];
} else {
_root.Player.Weapon = weapon;
_root.Player.Mags[_root.Player.WeaponSlot] = _root.Player.MaxMags[_root.Player.Weapon];
}
_root.Player.Ammo[_root.Player.WeaponSlot] = _root.Player.MaxAmmo[_root.Player.Weapon];
} else {
_root.Player.SpecialGrenades += 2;
_root.Player.Grenades += 4;
}
};
};
}
movieClip 213 {
}
movieClip 216 {
}
movieClip 229 {
}
instance BuyM4 of movieClip 229 {
onClipEvent (load) {
gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hitTester)) {
_root.HelpTextContent = 13;
_root.HelpTextTimer = 100;
}
}
}
instance BuyShotgun of movieClip 229 {
onClipEvent (load) {
gotoAndStop(7);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hitTester)) {
_root.HelpTextContent = 11;
_root.HelpTextTimer = 100;
}
}
}
instance BuyIntervention of movieClip 229 {
onClipEvent (load) {
gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hitTester)) {
_root.HelpTextContent = 14;
_root.HelpTextTimer = 100;
}
}
}
movieClip 232 {
}
instance Wall13 of movieClip 232 {
onClipEvent (enterFrame) {
if (_root.WallHP[13] <= 0) {
_visible = false;
} else {
_visible = true;
}
}
}
instance Wall12 of movieClip 232 {
onClipEvent (enterFrame) {
if (_root.WallHP[12] <= 0) {
_visible = false;
} else {
_visible = true;
}
}
}
instance Wall16 of movieClip 232 {
onClipEvent (enterFrame) {
if (_root.WallHP[16] <= 0) {
_visible = false;
} else {
_visible = true;
}
}
}
instance Wall14 of movieClip 232 {
onClipEvent (enterFrame) {
if (_root.WallHP[14] <= 0) {
_visible = false;
} else {
_visible = true;
}
}
}
instance Wall15 of movieClip 232 {
onClipEvent (enterFrame) {
if (_root.WallHP[15] <= 0) {
_visible = false;
} else {
_visible = true;
}
}
}
instance Wall18 of movieClip 232 {
onClipEvent (enterFrame) {
if (_root.WallHP[18] <= 0) {
_visible = false;
} else {
_visible = true;
}
}
}
movieClip 235 {
}
movieClip 238 {
}
instance Wall23 of movieClip 238 {
onClipEvent (enterFrame) {
if (_root.WallType[23] == 4) {
_alpha = 0;
}
}
}
instance Wall22 of movieClip 238 {
onClipEvent (enterFrame) {
if (_root.WallType[22] == 4) {
_alpha = 0;
}
}
}
instance Wall20 of movieClip 238 {
onClipEvent (enterFrame) {
if (_root.WallType[20] == 4) {
_alpha = 0;
}
}
}
instance Wall21 of movieClip 238 {
onClipEvent (enterFrame) {
if (_root.WallType[21] == 4) {
_alpha = 0;
}
}
}
instance Wall19 of movieClip 238 {
onClipEvent (enterFrame) {
if (_root.WallType[19] == 4) {
_alpha = 0;
}
}
}
movieClip 239 {
}
instance Wall5 of movieClip 235 {
onClipEvent (enterFrame) {
Gone = 'false';
}
}
movieClip 241 {
}
movieClip 243 {
}
instance BulletT of movieClip 243 {
onClipEvent (load) {
Kills = 0;
Weapon = _root.Player.Weapon;
Penetrating = _root.Player.Penetrating[_root.Player.Weapon];
if (_root.FaciZombies.data.Attachments[_root.Player.Weapon] == 2) {
Penetrating += 1;
}
if (_root.FaciZombies.data.Attachments[_root.Player.Weapon] == 3) {
Penetrating += 2;
}
if (_root.Perk1 == 'StoppingPower') {
Penetrating += _root.FaciZombies.data.Charm;
}
if (_root.FaciZombies.data.Class == _root.WeaponType) {
Penetrating += 1;
}
Damage = _root.Player.Damage[_root.Player.Weapon];
Range = _root.Player.Range[_root.Player.Weapon];
this._rotation = Math.round(Math.atan2(_root._xmouse - _root.Player._x, _root._ymouse - _root.Player._y) * -180 / Math.PI - 1.7);
BulletRotation = random(_root.Player.WeaponSpread[_root.Player.Weapon]) - random(_root.Player.WeaponSpread[_root.Player.Weapon]);
if (_root.Perk3 == 'SteadyAim') {
BulletRotation *= 0.5;
}
if (_root.FaciZombies.data.Attachments[_root.Player.Weapon] == 1) {
BulletRotation *= 0.5;
}
this._rotation += BulletRotation;
this._alpha = 100;
Counter = 1;
while (Counter <= 5) {
if (_root.Player.LastStand == 'true') {
for (zombie in _root._level0.Zombies) {
if (this.hitTest(_root.Zombies[zombie])) {
if (_root.Zombies[zombie].hp > 0) {
_root.Zombies[zombie].hp -= Damage;
--Penetrating;
_root.Player.Score += 10;
_root.FaciZombies.data.TotalScore += 10;
if (_root.Zombies[zombie].hp <= 0) {
_root.FaciZombies.data.BulletKills += 1;
_root.FaciZombies.data.WeaponKills[Weapon] += 1;
Kills += 1;
}
}
if (Penetrating <= 0) {
if (Kills > 1) {
_root.FaciZombies.data.MultiKills += Kills;
_root.MultiKillText._visible = true;
_root.MultiKillTimer = 25;
_root.Player.Score += 50 * Kills;
_root.FaciZombies.data.TotalScore += 50 * Kills;
}
this.removeMovieClip();
}
}
}
}
this._x += 15 * Math.sin(this._rotation / -57.2957);
this._y += 15 * Math.cos(this._rotation / -57.2957);
if (Math.abs(_x - _root.Player._x) > Stage.width or Math.abs(_y - _root.Player._y) > Stage.height) {
this.removeMovieClip();
}
StartX = _x;
StartY = _y;
var wall = 1;
while (wall <= _root.TotalWalls) {
CurrentWall = '_root.Wall' + wall;
if (this.hitTest(CurrentWall) and _root.WallType[wall] == 1) {
this.removeMovieClip();
}
++wall;
}
++Counter;
}
this = _root.BulletT;
if (this) {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (Math.sqrt((StartX - _x) * (StartX - _x) + (StartY - _y) * (StartY - _y)) > Range) {
if (Kills > 1) {
_root.FaciZombies.data.MultiKills += Kills;
}
this.removeMovieClip();
}
Counter = 1;
while (Counter <= 5) {
if (_root.ZombieAmount > 0) {
for (zombie in _root._level0.Zombies) {
if (this.hitTest(_root.Zombies[zombie])) {
if (_root.Zombies[zombie].hp > 0) {
_root.Zombies[zombie].hp -= Damage;
--Penetrating;
_root.Player.Score += 10;
_root.FaciZombies.data.TotalScore += 10;
if (_root.Zombies[zombie].hp <= 0) {
_root.FaciZombies.data.BulletKills += 1;
_root.FaciZombies.data.WeaponKills[Weapon] += 1;
Kills += 1;
}
}
if (Penetrating <= 0) {
if (Kills > 1) {
_root.FaciZombies.data.MultiKills += Kills;
_root.MultiKillText._visible = true;
_root.MultiKillTimer = 25;
_root.Player.Score += 50 * Kills;
_root.FaciZombies.data.TotalScore += 50 * Kills;
}
this.removeMovieClip();
}
}
}
}
this._x += 15 * Math.sin(this._rotation / -57.2957);
this._y += 15 * Math.cos(this._rotation / -57.2957);
if (Math.abs(_x - _root.Player._x) > Stage.width or Math.abs(_y - _root.Player._y) > Stage.height) {
if (Kills > 1) {
_root.FaciZombies.data.MultiKills += Kills;
}
this.removeMovieClip();
}
var wall = 1;
while (wall <= _root.TotalWalls) {
CurrentWall = '_root.Wall' + wall;
if (this.hitTest(CurrentWall) and _root.WallType[wall] == 1) {
if (Kills > 1) {
_root.FaciZombies.data.MultiKills += Kills;
}
this.removeMovieClip();
}
++wall;
}
++Counter;
}
}
}
movieClip 245 {
}
instance ZombieT of movieClip 245 {
onClipEvent (load) {
hp = random(10) + 5 + 1 * _root.Level;
_root.TotalBarricades = 3;
if (_root.RemovedWalls >= 2) {
_root.TotalBarricades = 5;
}
if (_root.RemovedWalls >= 4) {
_root.TotalBarricades = 6;
}
StartPoint = random(_root.TotalBarricades);
_x = _root.XSpawns[StartPoint];
_y = _root.YSpawns[StartPoint];
Random = random(3);
this._rotation = Math.round(Math.atan2(_root.XGoTos[StartPoint] - this._x, _root.YGoTos[StartPoint] - this._y) * -180 / Math.PI);
this._alpha = 100;
if (this == _root.ZombieT) {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.Pause == 'false') {
if (this != _root.ZombieT) {
if (hp <= 0) {
_root.FaciZombies.data.Gold += 50;
++_root.Kills;
_root.Player.Score += 10;
_root.FaciZombies.data.TotalScore += 10;
--_root.ZombieAmount;
_root.FaciZombies.data.TotalKills += 1;
_root.CorpseID += 1;
_root.UniqueID += 1;
if (_root.CorpseID >= 50) {
_root.CorpseID = 0;
}
_root.CorpseRotation = this._rotation;
_root.Corpses[_root.CorpseID] = _root.MakeObject('Corpse', _root.CorpseT, _root.UniqueID, _x, _y);
this.removeMovieClip();
}
if (Math.sqrt((_x - _root.hitTester._x) * (_x - _root.hitTester._x) + (_y - _root.hitTester._y) * (_y - _root.hitTester._y)) < 20) {
_root.Player.hp -= 5;
_x = _x + Math.sin(this._rotation / 57.2957);
_y = _y + Math.cos(this._rotation / 57.2957);
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
scaler = Random + (_root.Level / 2) * Math.sqrt(_root.Level);
if (scaler > 40) {
scaler = 40;
}
if (Detected == 'false') {
scaler = 0;
}
if (_root.Perk3 != 'Ninja' or random(250) == 1) {
Detected = 'true';
}
if (random(1000) == 1) {
Detected = undefined;
}
if (Detected == undefined) {
TileNumber = 1;
while (TileNumber <= 17) {
if (this.hitTest('_root.Tile' + TileNumber)) {
Detected = 'false';
}
++TileNumber;
}
}
OldX1 = _x;
this._x -= scaler * Math.sin(this._rotation / 57.2957);
var wall = 1;
while (wall <= _root.TotalWalls) {
CurrentWall = '_root.Wall' + wall;
if (this.hitTest(CurrentWall)) {
if (_root.WallType[wall] == 1) {
_x = OldX1;
}
if (_root.WallType[wall] == 2) {
_x = OldX1;
_root.WallHP[wall] -= _root.Level;
if (_root.WallHP[wall] <= 0 and _root.WallType[wall] == 2) {
_root.WallType[wall] = 5;
}
}
}
++wall;
}
OldY1 = _y;
this._y += scaler * Math.cos(this._rotation / 57.2957);
var wall = 1;
while (wall <= _root.TotalWalls) {
CurrentWall = '_root.Wall' + wall;
if (this.hitTest(CurrentWall)) {
if (_root.WallType[wall] == 1) {
_y = OldY1;
}
if (_root.WallType[wall] == 2) {
_y = OldY1;
_root.WallHP[wall] -= _root.Level;
if (_root.WallHP[wall] <= 0 and _root.WallType[wall] == 2) {
_root.WallType[wall] = 5;
}
}
}
++wall;
}
if (this.hitTest(_root.Tile1)) {
if (_root.hitTester.hitTest(_root.Tile1)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile2._x - this._x, _root.Tile2._y - this._y) * -180 / Math.PI);
}
}
if (this.hitTest(_root.Tile2)) {
if (_root.hitTester.hitTest(_root.Tile2)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile1)) {
this._rotation = Math.round(Math.atan2(_root.Tile1._x - this._x, _root.Tile1._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile3._x - this._x, _root.Tile3._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile3) and this.hitTest(_root.Tile2) == false) {
if (_root.hitTester.hitTest(_root.Tile3)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile1) or _root.hitTester.hitTest(_root.Tile2)) {
this._rotation = Math.round(Math.atan2(_root.Tile2._x - this._x, _root.Tile2._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile4) or _root.hitTester.hitTest(_root.Tile5)) {
this._rotation = Math.round(Math.atan2(_root.Tile4._x - this._x, _root.Tile4._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile6._x - this._x, _root.Tile6._y - this._y) * -180 / Math.PI);
}
}
}
}
if (this.hitTest(_root.Tile4)) {
if (_root.hitTester.hitTest(_root.Tile4)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile5)) {
this._rotation = Math.round(Math.atan2(_root.Tile5._x - this._x, _root.Tile5._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile3._x - this._x, _root.Tile3._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile5)) {
if (_root.hitTester.hitTest(_root.Tile5)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile4._x - this._x, _root.Tile4._y - this._y) * -180 / Math.PI);
}
}
if (this.hitTest(_root.Tile6)) {
if (_root.hitTester.hitTest(_root.Tile6)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile5) or _root.hitTester.hitTest(_root.Tile4) or _root.hitTester.hitTest(_root.Tile3) or _root.hitTester.hitTest(_root.Tile2) or _root.hitTester.hitTest(_root.Tile1)) {
this._rotation = Math.round(Math.atan2(_root.Tile3._x - this._x, _root.Tile3._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile7._x - this._x, _root.Tile7._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile7)) {
if (_root.hitTester.hitTest(_root.Tile7)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile6) or _root.hitTester.hitTest(_root.Tile5) or _root.hitTester.hitTest(_root.Tile4) or _root.hitTester.hitTest(_root.Tile3) or _root.hitTester.hitTest(_root.Tile2) or _root.hitTester.hitTest(_root.Tile1)) {
this._rotation = Math.round(Math.atan2(_root.Tile6._x - this._x, _root.Tile6._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile8._x - this._x, _root.Tile8._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile8)) {
if (_root.hitTester.hitTest(_root.Tile8)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile7) or _root.hitTester.hitTest(_root.Tile6) or _root.hitTester.hitTest(_root.Tile5) or _root.hitTester.hitTest(_root.Tile4) or _root.hitTester.hitTest(_root.Tile3) or _root.hitTester.hitTest(_root.Tile2) or _root.hitTester.hitTest(_root.Tile1)) {
this._rotation = Math.round(Math.atan2(_root.Tile7._x - this._x, _root.Tile7._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile9._x - this._x, _root.Tile9._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile9)) {
if (_root.hitTester.hitTest(_root.Tile9)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile10) or _root.hitTester.hitTest(_root.Tile11) or _root.hitTester.hitTest(_root.Tile12) or _root.hitTester.hitTest(_root.Tile13) or _root.hitTester.hitTest(_root.Tile14) or _root.hitTester.hitTest(_root.Tile15) or _root.hitTester.hitTest(_root.Tile16) or _root.hitTester.hitTest(_root.Tile17)) {
this._rotation = Math.round(Math.atan2(_root.Tile10._x - this._x, _root.Tile10._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile8._x - this._x, _root.Tile8._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile10)) {
if (_root.hitTester.hitTest(_root.Tile10)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile11) or _root.hitTester.hitTest(_root.Tile12) or _root.hitTester.hitTest(_root.Tile13) or _root.hitTester.hitTest(_root.Tile14) or _root.hitTester.hitTest(_root.Tile15) or _root.hitTester.hitTest(_root.Tile16) or _root.hitTester.hitTest(_root.Tile17)) {
this._rotation = Math.round(Math.atan2(_root.Tile11._x - this._x, _root.Tile11._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile9._x - this._x, _root.Tile9._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile11)) {
if (_root.hitTester.hitTest(_root.Tile11)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile12) or _root.hitTester.hitTest(_root.Tile13) or _root.hitTester.hitTest(_root.Tile14) or _root.hitTester.hitTest(_root.Tile15) or _root.hitTester.hitTest(_root.Tile16) or _root.hitTester.hitTest(_root.Tile17)) {
this._rotation = Math.round(Math.atan2(_root.Tile12._x - this._x, _root.Tile12._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile10._x - this._x, _root.Tile10._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile12)) {
if (_root.hitTester.hitTest(_root.Tile12) or _root.hitTester.hitTest(_root.Tile14) or _root.hitTester.hitTest(_root.Tile15)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile16) or _root.hitTester.hitTest(_root.Tile17)) {
this._rotation = Math.round(Math.atan2(_root.Tile15._x - this._x, _root.Tile15._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile13)) {
this._rotation = Math.round(Math.atan2(_root.Tile13._x - this._x, _root.Tile13._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile11._x - this._x, _root.Tile11._y - this._y) * -180 / Math.PI);
}
}
}
}
if (this.hitTest(_root.Tile13)) {
if (_root.hitTester.hitTest(_root.Tile13) or _root.hitTester.hitTest(_root.Tile14)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile15) or _root.hitTester.hitTest(_root.Tile16) or _root.hitTester.hitTest(_root.Tile17)) {
this._rotation = Math.round(Math.atan2(_root.Tile15._x - this._x, _root.Tile15._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile12._x - this._x, _root.Tile12._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile14)) {
if (_root.hitTester.hitTest(_root.Tile12) or _root.hitTester.hitTest(_root.Tile13) or _root.hitTester.hitTest(_root.Tile14) or _root.hitTester.hitTest(_root.Tile15)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile16) or _root.hitTester.hitTest(_root.Tile17)) {
this._rotation = Math.round(Math.atan2(_root.Tile15._x - this._x, _root.Tile15._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile12._x - this._x, _root.Tile12._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile15)) {
if (_root.hitTester.hitTest(_root.Tile12) or _root.hitTester.hitTest(_root.Tile13) or _root.hitTester.hitTest(_root.Tile14) or _root.hitTester.hitTest(_root.Tile15)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile16) or _root.hitTester.hitTest(_root.Tile17)) {
this._rotation = Math.round(Math.atan2(_root.Tile16._x - this._x, _root.Tile16._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile12._x - this._x, _root.Tile12._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile16)) {
if (_root.hitTester.hitTest(_root.Tile16)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile17)) {
this._rotation = Math.round(Math.atan2(_root.Tile17._x - this._x, _root.Tile17._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile15._x - this._x, _root.Tile15._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile17)) {
if (_root.hitTester.hitTest(_root.Tile17)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile16._x - this._x, _root.Tile16._y - this._y) * -180 / Math.PI);
}
}
}
}
}
}
}
movieClip 257 {
}
movieClip 260 {
frame 1 {
stop();
Weapon = 0;
}
frame 2 {
if (random(10) == 0) {
stop();
Weapon = 8;
timer = 1000;
}
}
instance of movieClip 257 {
onClipEvent (enterFrame) {
gotoAndStop(8);
}
}
frame 6 {
if (random(5 + _root.FaciZombies.data.Chest) == 0) {
stop();
Weapon = 2;
timer = 1000;
}
}
instance of movieClip 257 {
onClipEvent (enterFrame) {
gotoAndStop(2);
}
}
frame 11 {
if (random(10) == 0) {
stop();
Weapon = 3;
timer = 1000;
}
}
instance of movieClip 257 {
onClipEvent (enterFrame) {
gotoAndStop(3);
}
}
frame 15 {
if (random(10) == 0) {
stop();
Weapon = 4;
timer = 1000;
}
}
instance of movieClip 257 {
onClipEvent (enterFrame) {
gotoAndStop(4);
}
}
frame 19 {
if (random(10) == 0) {
stop();
Weapon = 5;
timer = 1000;
}
}
instance of movieClip 257 {
onClipEvent (enterFrame) {
gotoAndStop(5);
}
}
frame 23 {
if (random(10) == 0) {
stop();
Weapon = 0.1;
timer = 1000;
}
}
frame 27 {
if (random(10) == 0) {
stop();
Weapon = 6;
timer = 1000;
}
}
instance of movieClip 257 {
onClipEvent (enterFrame) {
gotoAndStop(6);
}
}
frame 31 {
if (random(5 + _root.FaciZombies.data.Chest) == 0) {
stop();
Weapon = 7;
timer = 1000;
}
}
instance of movieClip 257 {
onClipEvent (enterFrame) {
gotoAndStop(7);
}
}
frame 35 {
if (random(5 + _root.FaciZombies.data.Chest) == 0) {
stop();
Weapon = 10;
timer = 1000;
}
}
instance of movieClip 257 {
onClipEvent (enterFrame) {
gotoAndStop(10);
}
}
frame 39 {
gotoAndPlay(2);
}
}
instance Crate of movieClip 260 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.HelpTextContent = 12;
_root.HelpTextTimer = 100;
}
}
}
movieClip 280 {
frame 1 {
stop();
knifing = 'false';
}
instance PlayerWeapon of movieClip 257 {
onClipEvent (load) {
gotoAndStop(_root.Player.Weapon);
CrateTimer = 'false';
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.Player.Weapon);
if (Key.isDown(66)) {
if (CrateTimer == 'false') {
if (_root.Player.hitTest(_root.Crate) and _root.Player.Score >= 950 and _root.Crate.Weapon == 0) {
_root.Player.Score -= 950;
_root.Crate.play();
}
if (_root.Player.hitTest(_root.Crate) and _root.Crate.Weapon != 0) {
_root.BuyWeapon(_root.Crate.Weapon);
_root.Crate.Weapon = 0;
_root.Crate.gotoAndStop(1);
}
if (_root.Player.hitTest(_root.BuyShotgun) and _root.Player.Score >= 500) {
_root.Player.Score -= 500;
_root.BuyWeapon(7);
}
if (_root.Player.hitTest(_root.BuyM4) and _root.Player.Score >= 850) {
_root.Player.Score -= 850;
_root.BuyWeapon(2);
}
if (_root.Player.hitTest(_root.BuyIntervention) and _root.Player.Score >= 450) {
_root.Player.Score -= 450;
_root.BuyWeapon(3);
}
}
CrateTimer = 'true';
} else {
CrateTimer = 'false';
}
if (Key.isDown(49)) {
gotoAndStop(_root.Player.Weapons[0]);
_root.Player.Weapon = _root.Player.Weapons[0];
_root.Player.WeaponSlot = 0;
}
if (Key.isDown(50) and _root.Player.Weapons[1] != 0) {
gotoAndStop(_root.Player.Weapons[1]);
_root.Player.Weapon = _root.Player.Weapons[1];
_root.Player.WeaponSlot = 1;
}
}
}
frame 2 {
reloading = 'true';
if (_root.Perk2 == 'SleightOfHand') {
trace('true');
this.gotoAndPlay(10);
}
}
frame 26 {
if (_root.Player.Weapon == 7) {
if (Ammo[_root.Player.WeaponSlot] < _root.Player.MaxAmmo[_root.Player.Weapon]) {
++Ammo[_root.Player.WeaponSlot];
--Mags[_root.Player.WeaponSlot];
}
} else {
Ammo[_root.Player.WeaponSlot] = MaxAmmo[_root.Player.Weapon];
if (_root.FaciZombies.data.Attachments[_root.Player.Weapon] == 4) {
Ammo[_root.Player.WeaponSlot] *= 2;
}
--Mags[_root.Player.WeaponSlot];
}
reloading = 'false';
_root.Player.Loaded = 'true';
_root.FaciZombies.data.Reloaded += 1;
gotoAndStop(1);
}
frame 27 {
gotoAndPlay(28);
}
frame 40 {
if (_root.Perk2 == 'SleightOfHand') {
this.gotoAndPlay(45);
}
}
frame 46 {
Loaded = 'true';
reloading = 'false';
_root.FaciZombies.data.Reloaded += 1;
gotoAndStop(1);
}
frame 56 {
if (_root.ZombieAmount > 0) {
for (zombie in _root._level0.Zombies) {
if (this.hitTest(_root.Zombies[zombie])) {
if (_root.Zombies[zombie].hp > 0) {
_root.Zombies[zombie].hp -= 10;
_root.Player.Score += 50;
_root.FaciZombies.data.TotalScore += 50;
if (_root.Perk3 == 'Ninja') {
_root.Zombies[zombie].hp -= 10;
}
}
}
}
}
}
frame 65 {
Loaded = 'true';
reloading = 'false';
knifing = 'false';
gotoAndStop(1);
}
frame 66 {
stop();
knifing = 'false';
}
}
instance Player of movieClip 280 {
onClipEvent (enterFrame) {
if (_root.Perk3 == 'LastStand' and hp <= 25 and LastStand == 'false') {
hp += 50;
_root.RoundText._visible = false;
_root.MagText._visible = false;
LastStand = 'true';
OldWeapon = Weapon;
Weapon = 0;
_root.ShowWeapon._visible = false;
_root.Player.gotoAndStop(66);
}
this.swapDepths(_root.UniqueID + 102);
if (_root.Pause == 'false') {
_root.DamageView._alpha = 100 - hp;
if (Key.isDown(37)) {
if (ArrowTimer == 'false') {
if (_root.Player.AlternateFire == 'true') {
_root.Player.AlternateFire = 'false';
} else {
_root.Player.AlternateFire = 'true';
}
}
ArrowTimer = 'true';
} else {
ArrowTimer = 'false';
}
if (Key.isDown(32)) {
if (SpaceTimer == 'false') {
if (CamFollow == 'true') {
CamFollow = 'false';
} else {
CamFollow = 'true';
}
}
SpaceTimer = 'true';
} else {
SpaceTimer = 'false';
}
OldX1 = _x;
OldY1 = _y;
OldX2 = _root.hitTester._x;
OldY2 = _root.hitTester._y;
OldX3 = _root._x;
OldY3 = _root._y;
xmove = 0;
ymove = 0;
if (Key.isDown(65)) {
xmove -= 7;
}
if (Key.isDown(68)) {
xmove += 7;
}
if (Key.isDown(87)) {
ymove -= 7;
}
if (Key.isDown(83)) {
ymove += 7;
}
if (xmove != 0 and ymove != 0) {
xmove /= Math.SQRT2;
ymove /= Math.SQRT2;
}
oldxmove = xmove;
oldymove = ymove;
if (xmove != 0) {
xmove += 3.5 * Math.cos((_rotation + 47) / 57.2957);
if (_root.Perk2 == 'Marathon') {
xmove += 3.5 * Math.cos((_rotation + 47) / 57.2957);
}
}
if (ymove != 0) {
ymove += 3.5 * Math.sin((_rotation + 47) / 57.2957);
if (_root.Perk2 == 'Marathon') {
ymove += 3.5 * Math.sin((_rotation + 47) / 57.2957);
}
}
if (Math.abs(oldxmove) > Math.abs(xmove)) {
if (_root.Perk1 == 'Lightweight') {
xmove = oldxmove;
} else {
xmove = oldxmove * 0.5;
}
_root.FaciZombies.data.RunnedBack += Math.abs(xmove);
}
if (Math.abs(oldymove) > Math.abs(ymove)) {
if (_root.Perk1 == 'Lightweight') {
ymove = oldymove;
} else {
ymove = oldymove * 0.5;
}
_root.FaciZombies.data.RunnedBack += Math.abs(ymove);
}
this._rotation = Math.round(Math.atan2(_root._xmouse - this._x, _root._ymouse - this._y) * -180 / Math.PI) + 47;
_root.Aim._x = _root._xmouse;
_root.Aim._y = _root._ymouse;
_root.MultiKillText._x = _x;
_root.MultiKillText._y = _y - 30;
if (LastStand == 'false') {
_root.FaciZombies.data.Runned += Math.abs(xmove) + Math.abs(ymove);
_root.Player._x += xmove;
_root.hitTester._x += xmove;
var wall = 1;
while (wall <= _root.TotalWalls) {
if (_root.hitTester.hitTest('_root.Wall' + wall) and _root.WallType[wall] != 4 or _root.hitTester.hitTest(_root.Crate)) {
_x = OldX1;
_root.hitTester._x = OldX2;
}
++wall;
}
_root.Player._y += ymove;
_root.hitTester._y += ymove;
}
this._rotation = Math.round(Math.atan2(_root._xmouse - this._x, _root._ymouse - this._y) * -180 / Math.PI) + 47;
if (LastStand == 'false') {
var wall = 1;
while (wall <= _root.TotalWalls) {
if (_root.Player.hitTest('_root.Wall' + wall) and _root.WallType[wall] != 4 or _root.Player.hitTest(_root.Crate)) {
if (_root.hitTester.hitTest('_root.Wall' + wall) and _root.WallType[wall] != 4 or _root.hitTester.hitTest(_root.Crate)) {
_y = OldY1;
_root.hitTester._y = OldY2;
}
}
++wall;
}
var wall = 1;
while (wall <= _root.TotalWalls) {
if (_root.Player.hitTest('_root.Wall' + wall)) {
if (_root.WallType[wall] == 2 or _root.WallType[wall] == 5) {
_root.HelpTextContent = 2;
_root.HelpTextTimer = 100;
}
if (_root.WallType[wall] == 3) {
_root.HelpTextContent = 3;
_root.HelpTextTimer = 100;
}
if (Key.isDown(66) and _root.Player.hitTest('_root.Wall' + wall) and _root.WallType[wall] == 3 and _root.Player.Score >= 500 * (wall - 18)) {
_root.WallType[wall] = 4;
_root.Player.Score -= 500 * (wall - 18);
_root.RemovedWalls += 1;
}
if (Key.isDown(66) and _root.Player.hitTest(_root.Crate) == false and _root.Player.hitTest(_root.Crate) == false) {
_root.WallHP[wall] = 100 + 200 * _root.FaciZombies.data.Barricades;
if (_root.WallType[wall] == 5) {
_root.WallType[wall] = 2;
}
}
}
++wall;
}
if (CamFollow == 'true') {
_root._x = Stage.width / 2 - _root.Player._x;
_root._y = Stage.height / 2 - _root.Player._y;
_root.DamageView._x = -_root._x;
_root.DamageView._y = -_root._y;
}
_root.HelpText._x = -_root._x + 10;
_root.HelpText._y = -_root._y + 5;
_root.HelpTextGround._x = -_root._x;
_root.HelpTextGround._y = -_root._y;
if (Key.isDown(82) and Mags[_root.Player.WeaponSlot] > 0 or Ammo[_root.Player.WeaponSlot] == 0 and Mags[_root.Player.WeaponSlot] > 0 and reloading == 'false') {
gotoAndPlay(2);
knifing = 'false';
_root.isMouseDown = false;
}
if (Key.isDown(16) and reloading == 'false' and knifing == 'false') {
_root.Player.gotoAndPlay(47);
_root.UniqueID += 1;
knifing = 'true';
_root.isMouseDown = false;
}
if (Key.isDown(49) or Key.isDown(50)) {
gotoAndStop(1);
reloading = 'false';
_root.Player.Loaded = 'true';
knifing = 'false';
}
}
hp += 1;
if (_root.Perk1 == 'Hardline') {
hp += 1;
}
if (hp > 100) {
hp = 100;
if (LastStand == 'true') {
hp = 51;
_root.Player.Weapon = _root.Player.OldWeapon;
_root.Player.gotoAndStop(1);
_root.ShowWeapon._visible = true;
LastStand = 'false';
_root.RoundText._visible = true;
_root.MagText._visible = true;
}
}
}
if (_root.Player.hp <= 0 or _root.DeadTimer == 10) {
_root.Crate.Weapon = 0;
_root.Crate.gotoAndStop(0);
_root.gotoAndStop(_root.DeathFrame);
}
}
}
movieClip 283 {
}
instance ClaymoreT of movieClip 283 {
onClipEvent (load) {
if (this == _root.ClaymoreT) {
_alpha = 0;
}
if (this != _root.ClaymoreT) {
_alpha = 100;
}
}
onClipEvent (enterFrame) {
if (_root.Player.hp <= 0) {
this.removeMovieClip();
}
if (_root.ZombieAmount > 0 and this != _root.ClaymoreT) {
for (zombie in _root._level0.Zombies) {
if (this.hitTest(_root.Zombies[zombie])) {
++_root.UniqueID;
++_root.ExplosionID;
_root.Explosions[_root.ExplosionID] = _root.MakeObject('Explosion', _root.ExplosionT, _root.UniqueID, _x, _y);
this.removeMovieClip();
}
}
}
}
}
movieClip 291 {
frame 1 {
Kills = 0;
for (zombie in _root._level0.Zombies) {
if (this.hitTest(_root.Zombies[zombie])) {
if (_root.Zombies[zombie].hp > 0) {
_root.Zombies[zombie].hp -= 20;
if (_root.Perk1 == 'DangerClose') {
_root.Zombies[zombie].hp -= 10;
}
_root.Player.Score += 50;
_root.FaciZombies.data.TotalScore += 50;
if (_root.Zombies[zombie].hp <= 0) {
_root.FaciZombies.data.ExplosiveKills += 1;
Kills += 1;
}
}
}
}
if (this.hitTest(_root.Player)) {
_root.Player.hp -= 20;
}
}
frame 2 {
for (zombie in _root._level0.Zombies) {
if (this.hitTest(_root.Zombies[zombie])) {
if (_root.Zombies[zombie].hp > 0) {
_root.Zombies[zombie].hp -= 20;
if (_root.Perk1 == 'DangerClose') {
_root.Zombies[zombie].hp -= 10;
}
_root.Player.Score += 50;
_root.FaciZombies.data.TotalScore += 50;
if (_root.Zombies[zombie].hp <= 0) {
_root.FaciZombies.data.ExplosiveKills += 1;
Kills += 1;
}
}
}
}
if (this.hitTest(_root.Player)) {
_root.Player.hp -= 20;
}
}
frame 3 {
for (zombie in _root._level0.Zombies) {
if (this.hitTest(_root.Zombies[zombie])) {
if (_root.Zombies[zombie].hp > 0) {
_root.Zombies[zombie].hp -= 20;
if (_root.Perk1 == 'DangerClose') {
_root.Zombies[zombie].hp -= 10;
}
_root.Player.Score += 50;
_root.FaciZombies.data.TotalScore += 50;
if (_root.Zombies[zombie].hp <= 0) {
_root.FaciZombies.data.ExplosiveKills += 1;
Kills += 1;
}
}
}
}
if (this.hitTest(_root.Player)) {
_root.Player.hp -= 20;
}
}
frame 4 {
for (zombie in _root._level0.Zombies) {
if (this.hitTest(_root.Zombies[zombie])) {
if (_root.Zombies[zombie].hp > 0) {
_root.Zombies[zombie].hp -= 20;
if (_root.Perk1 == 'DangerClose') {
_root.Zombies[zombie].hp -= 10;
}
_root.Player.Score += 50;
_root.FaciZombies.data.TotalScore += 50;
if (_root.Zombies[zombie].hp <= 0) {
_root.FaciZombies.data.ExplosiveKills += 1;
Kills += 1;
}
}
}
}
if (this.hitTest(_root.Player)) {
_root.Player.hp -= 20;
}
}
frame 5 {
for (zombie in _root._level0.Zombies) {
if (this.hitTest(_root.Zombies[zombie])) {
if (_root.Zombies[zombie].hp > 0) {
_root.Zombies[zombie].hp -= 20;
if (_root.Perk1 == 'DangerClose') {
_root.Zombies[zombie].hp -= 10;
}
_root.Player.Score += 50;
_root.FaciZombies.data.TotalScore += 50;
if (_root.Zombies[zombie].hp <= 0) {
_root.FaciZombies.data.ExplosiveKills += 1;
Kills += 1;
}
}
}
}
if (this.hitTest(_root.Player)) {
_root.Player.hp -= 20;
}
}
frame 6 {
for (zombie in _root._level0.Zombies) {
if (this.hitTest(_root.Zombies[zombie])) {
if (_root.Zombies[zombie].hp > 0) {
_root.Zombies[zombie].hp -= 20;
if (_root.Perk1 == 'DangerClose') {
_root.Zombies[zombie].hp -= 10;
}
_root.Player.Score += 50;
_root.FaciZombies.data.TotalScore += 50;
if (_root.Zombies[zombie].hp <= 0) {
_root.FaciZombies.data.ExplosiveKills += 1;
Kills += 1;
}
}
}
}
if (this.hitTest(_root.Player)) {
_root.Player.hp -= 20;
}
}
frame 7 {
for (zombie in _root._level0.Zombies) {
if (this.hitTest(_root.Zombies[zombie])) {
if (_root.Zombies[zombie].hp > 0) {
_root.Zombies[zombie].hp -= 20;
if (_root.Perk1 == 'DangerClose') {
_root.Zombies[zombie].hp -= 10;
}
_root.Player.Score += 50;
_root.FaciZombies.data.TotalScore += 50;
if (_root.Zombies[zombie].hp <= 0) {
_root.FaciZombies.data.ExplosiveKills += 1;
Kills += 1;
}
}
}
}
if (this.hitTest(_root.Player)) {
_root.Player.hp -= 20;
}
if (Kills > 1) {
_root.FaciZombies.data.MultiKills += Kills;
_root.MultiKillText._visible = true;
_root.MultiKillTimer = 25;
_root.Player.Score += 50 * Kills;
_root.FaciZombies.data.TotalScore += 50 * Kills;
}
this.removeMovieClip();
}
}
instance ExplosionT of movieClip 291 {
onClipEvent (load) {
if (this == _root.ExplosionT) {
_alpha = 0;
gotoAndStop(1);
} else {
_root.soundFX.attachSound('Explosion.mp3');
_root.soundFX.start();
_alpha = 100;
}
}
}
movieClip 293 {
}
instance GrenadeT of movieClip 293 {
onClipEvent (load) {
if (this == _root.GrenadeT) {
_alpha = 0;
}
if (this != _root.GrenadeT) {
_alpha = 100;
xmove = (Math.sqrt((_root.hitTester._x - _root._xmouse) * (_root.hitTester._x - _root._xmouse) + (_root.hitTester._y - _root._ymouse) * (_root.hitTester._y - _root._ymouse)) / 10) * Math.cos((_root.Player._rotation + 43) / 57.2957);
ymove = (Math.sqrt((_root.hitTester._x - _root._xmouse) * (_root.hitTester._x - _root._xmouse) + (_root.hitTester._y - _root._ymouse) * (_root.hitTester._y - _root._ymouse)) / 10) * Math.sin((_root.Player._rotation + 43) / 57.2957);
rotating = 36;
}
ExplosionTimer = 60;
}
onClipEvent (enterFrame) {
if (_root.Pause == 'false') {
if (this != _root.GrenadeT) {
xmove *= 0.91;
ymove *= 0.91;
rotating *= 0.97;
rotating -= 0.07000000000000001;
_x = _x + xmove;
var wall = 1;
while (wall <= _root.TotalWalls) {
if (this.hitTest('_root.Wall' + wall) and _root.WallType[wall] == 1) {
xmove *= -1;
_x = _x + xmove;
}
++wall;
}
_y = _y + ymove;
var wall = 1;
while (wall <= _root.TotalWalls) {
if (this.hitTest('_root.Wall' + wall) and _root.WallType[wall] == 1) {
ymove *= -1;
_y = _y + ymove;
}
++wall;
}
_rotation = _rotation + rotating;
--ExplosionTimer;
if (ExplosionTimer == 0) {
++_root.UniqueID;
++_root.ExplosionID;
_root.Explosions[_root.ExplosionID] = _root.MakeObject('Explosion', _root.ExplosionT, _root.UniqueID, _x, _y);
this.removeMovieClip();
}
}
}
}
}
movieClip 295 {
}
instance StatBackGround of movieClip 295 {
onClipEvent (load) {
this._width = Stage.width;
}
}
movieClip 302 {
}
// unknown tag 88 length 46
movieClip 305 {
instance of movieClip 302 {
onClipEvent (enterFrame) {
this._width = 2.55 * _root.Player.hp;
}
}
}
instance ShowWeapon of movieClip 229 {
onClipEvent (enterFrame) {
this.swapDepths(_root.UniqueID + 104);
this.gotoAndStop(_root.Player.Weapon);
if (_root.Player.LastStand == 'true') {
this._alpha = 0;
} else {
this._alpha = 100;
}
}
}
movieClip 311 {
}
instance RifleGrenadeT of movieClip 311 {
onClipEvent (load) {
if (this == _root.RifleGrenadeT) {
_alpha = 0;
}
if (this != _root.RifleGrenadeT) {
TargetX = _root._xmouse;
TagertY = _root._ymouse;
_alpha = 100;
xmove = (Math.sqrt((_root.hitTester._x - _root._xmouse) * (_root.hitTester._x - _root._xmouse) + (_root.hitTester._y - _root._ymouse) * (_root.hitTester._y - _root._ymouse)) / 10) * Math.cos((_root.Player._rotation + 43) / 57.2957);
ymove = (Math.sqrt((_root.hitTester._x - _root._xmouse) * (_root.hitTester._x - _root._xmouse) + (_root.hitTester._y - _root._ymouse) * (_root.hitTester._y - _root._ymouse)) / 10) * Math.sin((_root.Player._rotation + 43) / 57.2957);
_rotation = _root.Player._rotation - 47;
}
}
onClipEvent (enterFrame) {
if (this != _root.RifleGrenadeT) {
var wall = 1;
while (wall <= _root.TotalWalls) {
if (this.hitTest('_root.Wall' + wall) and _root.WallType[wall] == 1 or this.hitTest(_root.Crate)) {
++_root.UniqueID;
++_root.ExplosionID;
_root.Explosions[_root.ExplosionID] = _root.MakeObject('Explosion', _root.ExplosionT, _root.UniqueID, _x, _y);
this.removeMovieClip();
}
++wall;
}
xmove *= 0.98;
ymove *= 0.98;
_x = _x + xmove;
_y = _y + ymove;
if (Math.abs(_x - TargetX) < 25 and Math.abs(_y - TagertY) < 25) {
++_root.UniqueID;
++_root.ExplosionID;
_root.Explosions[_root.ExplosionID] = _root.MakeObject('Explosion', _root.ExplosionT, _root.UniqueID, _x, _y);
this.removeMovieClip();
}
}
}
}
movieClip 314 {
}
instance Zombie2T of movieClip 314 {
onClipEvent (load) {
hp = random(10) + 5 + 1 * _root.Level * 2 * Math.sqrt(_root.Level);
_root.TotalBarricades = 3;
if (_root.RemovedWalls >= 2) {
_root.TotalBarricades = 5;
}
if (_root.RemovedWalls >= 4) {
_root.TotalBarricades = 6;
}
StartPoint = random(_root.TotalBarricades);
_x = _root.XSpawns[StartPoint];
_y = _root.YSpawns[StartPoint];
Random = random(3);
this._rotation = Math.round(Math.atan2(_root.XGoTos[StartPoint] - this._x, _root.YGoTos[StartPoint] - this._y) * -180 / Math.PI);
this._alpha = 100;
if (this == _root.Zombie2T) {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.Pause == 'false') {
if (this != _root.Zombie2T) {
if (hp <= 0) {
_root.FaciZombies.data.Gold += 50;
++_root.Kills;
_root.Player.Score += 10;
_root.FaciZombies.data.TotalScore += 10;
--_root.ZombieAmount;
_root.FaciZombies.data.TotalKills += 1;
_root.CorpseID += 1;
_root.UniqueID += 1;
if (_root.CorpseID >= 50) {
_root.CorpseID = 0;
}
_root.CorpseRotation = this._rotation;
_root.Corpses[_root.CorpseID] = _root.MakeObject('Corpse', _root.CorpseT, _root.UniqueID, _x, _y);
this.removeMovieClip();
}
if (hp <= 0) {
this.removeMovieClip();
}
if (Math.sqrt((_x - _root.hitTester._x) * (_x - _root.hitTester._x) + (_y - _root.hitTester._y) * (_y - _root.hitTester._y)) < 20) {
_root.Player.hp -= 5;
_x = _x + Math.sin(this._rotation / 57.2957);
_y = _y + Math.cos(this._rotation / 57.2957);
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
scaler = Random + _root.Level / 2;
if (scaler > 25) {
scaler = 25;
}
if (Detected == 'false') {
scaler = 0;
}
if (_root.Perk3 != 'Ninja' or random(250) == 1) {
Detected = 'true';
}
if (random(1000) == 1) {
Detected = undefined;
}
if (Detected == undefined) {
TileNumber = 1;
while (TileNumber <= 17) {
if (this.hitTest('_root.Tile' + TileNumber)) {
Detected = 'false';
}
++TileNumber;
}
}
OldX1 = _x;
this._x -= scaler * Math.sin(this._rotation / 57.2957);
var wall = 1;
while (wall <= _root.TotalWalls) {
CurrentWall = '_root.Wall' + wall;
if (this.hitTest(CurrentWall)) {
if (_root.WallType[wall] == 1) {
_x = OldX1;
}
if (_root.WallType[wall] == 2) {
_x = OldX1;
_root.WallHP[wall] -= _root.Level;
if (_root.WallHP[wall] <= 0 and _root.WallType[wall] == 2) {
_root.WallType[wall] = 5;
}
}
}
++wall;
}
OldY1 = _y;
this._y += scaler * Math.cos(this._rotation / 57.2957);
var wall = 1;
while (wall <= _root.TotalWalls) {
CurrentWall = '_root.Wall' + wall;
if (this.hitTest(CurrentWall)) {
if (_root.WallType[wall] == 1) {
_y = OldY1;
}
if (_root.WallType[wall] == 2) {
_y = OldY1;
_root.WallHP[wall] -= _root.Level;
if (_root.WallHP[wall] <= 0 and _root.WallType[wall] == 2) {
_root.WallType[wall] = 5;
}
}
}
++wall;
}
if (this.hitTest(_root.Tile1)) {
if (_root.hitTester.hitTest(_root.Tile1)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile2._x - this._x, _root.Tile2._y - this._y) * -180 / Math.PI);
}
}
if (this.hitTest(_root.Tile2)) {
if (_root.hitTester.hitTest(_root.Tile2)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile1)) {
this._rotation = Math.round(Math.atan2(_root.Tile1._x - this._x, _root.Tile1._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile3._x - this._x, _root.Tile3._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile3)) {
if (_root.hitTester.hitTest(_root.Tile3) and this.hitTest(_root.Tile2) == false) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile1) or _root.hitTester.hitTest(_root.Tile2)) {
this._rotation = Math.round(Math.atan2(_root.Tile2._x - this._x, _root.Tile2._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile4) or _root.hitTester.hitTest(_root.Tile5)) {
this._rotation = Math.round(Math.atan2(_root.Tile4._x - this._x, _root.Tile4._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile6._x - this._x, _root.Tile6._y - this._y) * -180 / Math.PI);
}
}
}
}
if (this.hitTest(_root.Tile4)) {
if (_root.hitTester.hitTest(_root.Tile4)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile5)) {
this._rotation = Math.round(Math.atan2(_root.Tile5._x - this._x, _root.Tile5._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile3._x - this._x, _root.Tile3._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile5)) {
if (_root.hitTester.hitTest(_root.Tile5)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile4._x - this._x, _root.Tile4._y - this._y) * -180 / Math.PI);
}
}
if (this.hitTest(_root.Tile6)) {
if (_root.hitTester.hitTest(_root.Tile6)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile5) or _root.hitTester.hitTest(_root.Tile4) or _root.hitTester.hitTest(_root.Tile3) or _root.hitTester.hitTest(_root.Tile2) or _root.hitTester.hitTest(_root.Tile1)) {
this._rotation = Math.round(Math.atan2(_root.Tile3._x - this._x, _root.Tile3._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile7._x - this._x, _root.Tile7._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile7)) {
if (_root.hitTester.hitTest(_root.Tile7)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile6) or _root.hitTester.hitTest(_root.Tile5) or _root.hitTester.hitTest(_root.Tile4) or _root.hitTester.hitTest(_root.Tile3) or _root.hitTester.hitTest(_root.Tile2) or _root.hitTester.hitTest(_root.Tile1)) {
this._rotation = Math.round(Math.atan2(_root.Tile6._x - this._x, _root.Tile6._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile8._x - this._x, _root.Tile8._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile8)) {
if (_root.hitTester.hitTest(_root.Tile8)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile7) or _root.hitTester.hitTest(_root.Tile6) or _root.hitTester.hitTest(_root.Tile5) or _root.hitTester.hitTest(_root.Tile4) or _root.hitTester.hitTest(_root.Tile3) or _root.hitTester.hitTest(_root.Tile2) or _root.hitTester.hitTest(_root.Tile1)) {
this._rotation = Math.round(Math.atan2(_root.Tile7._x - this._x, _root.Tile7._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile9._x - this._x, _root.Tile9._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile9)) {
if (_root.hitTester.hitTest(_root.Tile9)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile10) or _root.hitTester.hitTest(_root.Tile11) or _root.hitTester.hitTest(_root.Tile12) or _root.hitTester.hitTest(_root.Tile13) or _root.hitTester.hitTest(_root.Tile14) or _root.hitTester.hitTest(_root.Tile15) or _root.hitTester.hitTest(_root.Tile16) or _root.hitTester.hitTest(_root.Tile17)) {
this._rotation = Math.round(Math.atan2(_root.Tile10._x - this._x, _root.Tile10._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile8._x - this._x, _root.Tile8._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile10)) {
if (_root.hitTester.hitTest(_root.Tile10)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile11) or _root.hitTester.hitTest(_root.Tile12) or _root.hitTester.hitTest(_root.Tile13) or _root.hitTester.hitTest(_root.Tile14) or _root.hitTester.hitTest(_root.Tile15) or _root.hitTester.hitTest(_root.Tile16) or _root.hitTester.hitTest(_root.Tile17)) {
this._rotation = Math.round(Math.atan2(_root.Tile11._x - this._x, _root.Tile11._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile9._x - this._x, _root.Tile9._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile11)) {
if (_root.hitTester.hitTest(_root.Tile11)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile12) or _root.hitTester.hitTest(_root.Tile13) or _root.hitTester.hitTest(_root.Tile14) or _root.hitTester.hitTest(_root.Tile15) or _root.hitTester.hitTest(_root.Tile16) or _root.hitTester.hitTest(_root.Tile17)) {
this._rotation = Math.round(Math.atan2(_root.Tile12._x - this._x, _root.Tile12._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile10._x - this._x, _root.Tile10._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile12)) {
if (_root.hitTester.hitTest(_root.Tile12) or _root.hitTester.hitTest(_root.Tile14) or _root.hitTester.hitTest(_root.Tile15)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile16) or _root.hitTester.hitTest(_root.Tile17)) {
this._rotation = Math.round(Math.atan2(_root.Tile15._x - this._x, _root.Tile15._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile13)) {
this._rotation = Math.round(Math.atan2(_root.Tile13._x - this._x, _root.Tile13._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile11._x - this._x, _root.Tile11._y - this._y) * -180 / Math.PI);
}
}
}
}
if (this.hitTest(_root.Tile13)) {
if (_root.hitTester.hitTest(_root.Tile13) or _root.hitTester.hitTest(_root.Tile14)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile15) or _root.hitTester.hitTest(_root.Tile16) or _root.hitTester.hitTest(_root.Tile17)) {
this._rotation = Math.round(Math.atan2(_root.Tile15._x - this._x, _root.Tile15._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile12._x - this._x, _root.Tile12._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile14)) {
if (_root.hitTester.hitTest(_root.Tile12) or _root.hitTester.hitTest(_root.Tile13) or _root.hitTester.hitTest(_root.Tile14) or _root.hitTester.hitTest(_root.Tile15)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile16) or _root.hitTester.hitTest(_root.Tile17)) {
this._rotation = Math.round(Math.atan2(_root.Tile15._x - this._x, _root.Tile15._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile12._x - this._x, _root.Tile12._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile15)) {
if (_root.hitTester.hitTest(_root.Tile12) or _root.hitTester.hitTest(_root.Tile13) or _root.hitTester.hitTest(_root.Tile14) or _root.hitTester.hitTest(_root.Tile15)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile16) or _root.hitTester.hitTest(_root.Tile17)) {
this._rotation = Math.round(Math.atan2(_root.Tile16._x - this._x, _root.Tile16._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile12._x - this._x, _root.Tile12._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile16)) {
if (_root.hitTester.hitTest(_root.Tile16)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile17)) {
this._rotation = Math.round(Math.atan2(_root.Tile17._x - this._x, _root.Tile17._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile15._x - this._x, _root.Tile15._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile17)) {
if (_root.hitTester.hitTest(_root.Tile17)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile16._x - this._x, _root.Tile16._y - this._y) * -180 / Math.PI);
}
}
}
}
}
}
}
movieClip 315 {
}
instance DamageView of movieClip 315 {
onClipEvent (enterFrame) {
this.swapDepths(_root.UniqueID + 108);
}
}
movieClip 323 {
frame 105 {
this.removeMovieClip();
}
}
instance CorpseT of movieClip 323 {
onClipEvent (load) {
this._rotation = _root.CorpseRotation;
this._alpha = 100;
if (this == _root.CorpseT) {
this._alpha = 0;
} else {
this.swapDepths(_root.CorpseID);
}
}
onClipEvent (enterFrame) {
play();
if (this.hitTest(_root.hitTester) and _root.Perk2 == 'Scavenger') {
if (looted == undefined) {
looted = 'true';
if (_root.Player.Weapon == 4 or _root.Player.Weapon == 5) {
if (random(10) == 0) {
++_root.Player.Mags[_root.Player.WeaponSlot];
}
} else {
if (random(5) == 0 and _root.Player.Weapon != 9 and _root.Player.Weapon != 0) {
_root.DEagleAmmo = 12;
++_root.Player.Mags[_root.Player.WeaponSlot];
}
}
}
}
}
}
movieClip 325 {
}
instance Aim of movieClip 325 {
onClipEvent (enterFrame) {
this.swapDepths(_root.UniqueID + 112);
}
}
movieClip 327 {
}
movieClip 329 {
}
instance Zombie3T of movieClip 329 {
onClipEvent (load) {
hp = random(10) + 5 + 1 * _root.Level * 10 * Math.sqrt(_root.Level);
Starthp = hp;
_root.TotalBarricades = 3;
if (_root.RemovedWalls >= 2) {
_root.TotalBarricades = 5;
}
if (_root.RemovedWalls >= 4) {
_root.TotalBarricades = 6;
}
StartPoint = random(_root.TotalBarricades);
_x = _root.XSpawns[StartPoint];
_y = _root.YSpawns[StartPoint];
Random = random(3);
this._rotation = Math.round(Math.atan2(_root.XGoTos[StartPoint] - this._x, _root.YGoTos[StartPoint] - this._y) * -180 / Math.PI);
this._alpha = 100;
if (this == _root.Zombie3T) {
this._alpha = 0;
}
}
onClipEvent (enterFrame) {
if (_root.Pause == 'false') {
if (this != _root.Zombie3T) {
if (hp <= 0) {
if (_root.FaciZombies.data.Achievements[3] == 0) {
_root.FaciZombies.data.Achievements[3] = 1;
_root.helptext = 'Achievement Complete: Kill an officer zombie';
HelpTextTimer = 100;
HelpTextContent = 15;
}
_root.FaciZombies.data.Gold += 250;
++_root.Kills;
_root.Player.Score += 50;
_root.FaciZombies.data.TotalScore += 50;
--_root.ZombieAmount;
_root.FaciZombies.data.TotalKills += 1;
_root.CorpseID += 1;
_root.UniqueID += 1;
if (_root.CorpseID >= 50) {
_root.CorpseID = 0;
}
_root.CorpseRotation = this._rotation;
_root.Corpses[_root.CorpseID] = _root.MakeObject('Corpse', _root.CorpseT, _root.UniqueID, _x, _y);
this.removeMovieClip();
}
if (hp <= 0) {
this.removeMovieClip();
}
hp += 2;
if (hp > Starthp) {
hp = Starthp;
}
if (Math.sqrt((_x - _root.hitTester._x) * (_x - _root.hitTester._x) + (_y - _root.hitTester._y) * (_y - _root.hitTester._y)) < 20) {
_root.Player.hp -= 15;
_x = _x + Math.sin(this._rotation / 57.2957);
_y = _y + Math.cos(this._rotation / 57.2957);
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
scaler = Random + _root.Level / 2;
if (scaler > 25) {
scaler = 25;
}
OldX1 = _x;
this._x -= scaler * Math.sin(this._rotation / 57.2957);
var wall = 1;
while (wall <= _root.TotalWalls) {
CurrentWall = '_root.Wall' + wall;
if (this.hitTest(CurrentWall)) {
if (_root.WallType[wall] == 1) {
_x = OldX1;
}
if (_root.WallType[wall] == 2) {
_x = OldX1;
_root.WallHP[wall] -= _root.Level;
if (_root.WallHP[wall] <= 0 and _root.WallType[wall] == 2) {
_root.WallType[wall] = 5;
}
}
}
++wall;
}
OldY1 = _y;
this._y += scaler * Math.cos(this._rotation / 57.2957);
var wall = 1;
while (wall <= _root.TotalWalls) {
CurrentWall = '_root.Wall' + wall;
if (this.hitTest(CurrentWall)) {
if (_root.WallType[wall] == 1) {
_y = OldY1;
}
if (_root.WallType[wall] == 2) {
_y = OldY1;
_root.WallHP[wall] -= _root.Level;
if (_root.WallHP[wall] <= 0 and _root.WallType[wall] == 2) {
_root.WallType[wall] = 5;
}
}
}
++wall;
}
if (this.hitTest(_root.Tile1)) {
if (_root.hitTester.hitTest(_root.Tile1)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile2._x - this._x, _root.Tile2._y - this._y) * -180 / Math.PI);
}
}
if (this.hitTest(_root.Tile2)) {
if (_root.hitTester.hitTest(_root.Tile2)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile1)) {
this._rotation = Math.round(Math.atan2(_root.Tile1._x - this._x, _root.Tile1._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile3._x - this._x, _root.Tile3._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile3)) {
if (_root.hitTester.hitTest(_root.Tile3) and this.hitTest(_root.Tile2) == false) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile1) or _root.hitTester.hitTest(_root.Tile2)) {
this._rotation = Math.round(Math.atan2(_root.Tile2._x - this._x, _root.Tile2._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile4) or _root.hitTester.hitTest(_root.Tile5)) {
this._rotation = Math.round(Math.atan2(_root.Tile4._x - this._x, _root.Tile4._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile6._x - this._x, _root.Tile6._y - this._y) * -180 / Math.PI);
}
}
}
}
if (this.hitTest(_root.Tile4)) {
if (_root.hitTester.hitTest(_root.Tile4)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile5)) {
this._rotation = Math.round(Math.atan2(_root.Tile5._x - this._x, _root.Tile5._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile3._x - this._x, _root.Tile3._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile5)) {
if (_root.hitTester.hitTest(_root.Tile5)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile4._x - this._x, _root.Tile4._y - this._y) * -180 / Math.PI);
}
}
if (this.hitTest(_root.Tile6)) {
if (_root.hitTester.hitTest(_root.Tile6)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile5) or _root.hitTester.hitTest(_root.Tile4) or _root.hitTester.hitTest(_root.Tile3) or _root.hitTester.hitTest(_root.Tile2) or _root.hitTester.hitTest(_root.Tile1)) {
this._rotation = Math.round(Math.atan2(_root.Tile3._x - this._x, _root.Tile3._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile7._x - this._x, _root.Tile7._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile7)) {
if (_root.hitTester.hitTest(_root.Tile7)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile6) or _root.hitTester.hitTest(_root.Tile5) or _root.hitTester.hitTest(_root.Tile4) or _root.hitTester.hitTest(_root.Tile3) or _root.hitTester.hitTest(_root.Tile2) or _root.hitTester.hitTest(_root.Tile1)) {
this._rotation = Math.round(Math.atan2(_root.Tile6._x - this._x, _root.Tile6._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile8._x - this._x, _root.Tile8._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile8)) {
if (_root.hitTester.hitTest(_root.Tile8)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile7) or _root.hitTester.hitTest(_root.Tile6) or _root.hitTester.hitTest(_root.Tile5) or _root.hitTester.hitTest(_root.Tile4) or _root.hitTester.hitTest(_root.Tile3) or _root.hitTester.hitTest(_root.Tile2) or _root.hitTester.hitTest(_root.Tile1)) {
this._rotation = Math.round(Math.atan2(_root.Tile7._x - this._x, _root.Tile7._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile9._x - this._x, _root.Tile9._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile9)) {
if (_root.hitTester.hitTest(_root.Tile9)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile10) or _root.hitTester.hitTest(_root.Tile11) or _root.hitTester.hitTest(_root.Tile12) or _root.hitTester.hitTest(_root.Tile13) or _root.hitTester.hitTest(_root.Tile14) or _root.hitTester.hitTest(_root.Tile15) or _root.hitTester.hitTest(_root.Tile16) or _root.hitTester.hitTest(_root.Tile17)) {
this._rotation = Math.round(Math.atan2(_root.Tile10._x - this._x, _root.Tile10._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile8._x - this._x, _root.Tile8._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile10)) {
if (_root.hitTester.hitTest(_root.Tile10)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile11) or _root.hitTester.hitTest(_root.Tile12) or _root.hitTester.hitTest(_root.Tile13) or _root.hitTester.hitTest(_root.Tile14) or _root.hitTester.hitTest(_root.Tile15) or _root.hitTester.hitTest(_root.Tile16) or _root.hitTester.hitTest(_root.Tile17)) {
this._rotation = Math.round(Math.atan2(_root.Tile11._x - this._x, _root.Tile11._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile9._x - this._x, _root.Tile9._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile11)) {
if (_root.hitTester.hitTest(_root.Tile11)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile12) or _root.hitTester.hitTest(_root.Tile13) or _root.hitTester.hitTest(_root.Tile14) or _root.hitTester.hitTest(_root.Tile15) or _root.hitTester.hitTest(_root.Tile16) or _root.hitTester.hitTest(_root.Tile17)) {
this._rotation = Math.round(Math.atan2(_root.Tile12._x - this._x, _root.Tile12._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile10._x - this._x, _root.Tile10._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile12)) {
if (_root.hitTester.hitTest(_root.Tile12) or _root.hitTester.hitTest(_root.Tile14) or _root.hitTester.hitTest(_root.Tile15)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile16) or _root.hitTester.hitTest(_root.Tile17)) {
this._rotation = Math.round(Math.atan2(_root.Tile15._x - this._x, _root.Tile15._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile13)) {
this._rotation = Math.round(Math.atan2(_root.Tile13._x - this._x, _root.Tile13._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile11._x - this._x, _root.Tile11._y - this._y) * -180 / Math.PI);
}
}
}
}
if (this.hitTest(_root.Tile13)) {
if (_root.hitTester.hitTest(_root.Tile13) or _root.hitTester.hitTest(_root.Tile14)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile15) or _root.hitTester.hitTest(_root.Tile16) or _root.hitTester.hitTest(_root.Tile17)) {
this._rotation = Math.round(Math.atan2(_root.Tile15._x - this._x, _root.Tile15._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile12._x - this._x, _root.Tile12._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile14)) {
if (_root.hitTester.hitTest(_root.Tile12) or _root.hitTester.hitTest(_root.Tile13) or _root.hitTester.hitTest(_root.Tile14) or _root.hitTester.hitTest(_root.Tile15)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile16) or _root.hitTester.hitTest(_root.Tile17)) {
this._rotation = Math.round(Math.atan2(_root.Tile15._x - this._x, _root.Tile15._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile12._x - this._x, _root.Tile12._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile15)) {
if (_root.hitTester.hitTest(_root.Tile12) or _root.hitTester.hitTest(_root.Tile13) or _root.hitTester.hitTest(_root.Tile14) or _root.hitTester.hitTest(_root.Tile15)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile16) or _root.hitTester.hitTest(_root.Tile17)) {
this._rotation = Math.round(Math.atan2(_root.Tile16._x - this._x, _root.Tile16._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile12._x - this._x, _root.Tile12._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile16)) {
if (_root.hitTester.hitTest(_root.Tile16)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
if (_root.hitTester.hitTest(_root.Tile17)) {
this._rotation = Math.round(Math.atan2(_root.Tile17._x - this._x, _root.Tile17._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile15._x - this._x, _root.Tile15._y - this._y) * -180 / Math.PI);
}
}
}
if (this.hitTest(_root.Tile17)) {
if (_root.hitTester.hitTest(_root.Tile17)) {
this._rotation = Math.round(Math.atan2(_root.Player._x - this._x, _root.Player._y - this._y) * -180 / Math.PI);
} else {
this._rotation = Math.round(Math.atan2(_root.Tile16._x - this._x, _root.Tile16._y - this._y) * -180 / Math.PI);
}
}
}
}
}
}
}
button 332 {
on (press) {
if (ScavengerButton._alpha == 50 or ScavengerButton._alpha == 100) {
_root.FaciZombies.data.Perk2[_root.FaciZombies.data.ClassSlot] = 'Scavenger';
ScavengerButton._alpha = 100;
if (MarathonButton._alpha == 100) {
MarathonButton._alpha = 50;
}
if (SleightOfHandButton._alpha == 100) {
SleightOfHandButton._alpha = 50;
}
}
}
}
button 335 {
on (press) {
if (MarathonButton._alpha == 50 or MarathonButton._alpha == 100) {
_root.FaciZombies.data.Perk2[_root.FaciZombies.data.ClassSlot] = 'Marathon';
MarathonButton._alpha = 100;
if (ScavengerButton._alpha == 100) {
ScavengerButton._alpha = 50;
}
if (SleightOfHandButton._alpha == 100) {
SleightOfHandButton._alpha = 50;
}
}
}
}
button 336 {
on (press) {
if (StoppingPowerButton._alpha == 50 or StoppingPowerButton._alpha == 100) {
_root.FaciZombies.data.Perk1[_root.FaciZombies.data.ClassSlot] = 'StoppingPower';
StoppingPowerButton._alpha = 100;
if (LightweightButton._alpha == 100) {
LightweightButton._alpha = 50;
}
if (HardlineButton._alpha == 100) {
HardlineButton._alpha = 50;
}
if (ColdBloodedButton._alpha == 100) {
ColdBloodedButton._alpha = 50;
}
if (DangerCloseButton._alpha == 100) {
DangerCloseButton._alpha = 50;
}
}
}
}
button 338 {
on (press) {
if (LightweightButton._alpha == 50 or LightweightButton._alpha == 100) {
_root.FaciZombies.data.Perk1[_root.FaciZombies.data.ClassSlot] = 'Lightweight';
LightweightButton._alpha = 100;
if (StoppingPowerButton._alpha == 100) {
StoppingPowerButton._alpha = 50;
}
if (HardlineButton._alpha == 100) {
HardlineButton._alpha = 50;
}
if (ColdBloodedButton._alpha == 100) {
ColdBloodedButton._alpha = 50;
}
if (DangerCloseButton._alpha == 100) {
DangerCloseButton._alpha = 50;
}
}
}
}
button 339 {
on (press) {
if (HardlineButton._alpha == 50 or HardlineButton._alpha == 50) {
_root.FaciZombies.data.Perk1[_root.FaciZombies.data.ClassSlot] = 'Hardline';
HardlineButton._alpha = 100;
if (StoppingPowerButton._alpha == 100) {
StoppingPowerButton._alpha = 50;
}
if (LightweightButton._alpha == 100) {
LightweightButton._alpha = 50;
}
if (ColdBloodedButton._alpha == 100) {
ColdBloodedButton._alpha = 50;
}
if (DangerCloseButton._alpha == 100) {
DangerCloseButton._alpha = 50;
}
}
}
}
button 340 {
on (press) {
if (ColdBloodedButton._alpha == 50 or ColdBloodedButton._alpha == 100) {
_root.FaciZombies.data.Perk1[_root.FaciZombies.data.ClassSlot] = 'ColdBlooded';
ColdBloodedButton._alpha = 100;
if (StoppingPowerButton._alpha == 100) {
StoppingPowerButton._alpha = 50;
}
if (LightweightButton._alpha == 100) {
LightweightButton._alpha = 50;
}
if (HardlineButton._alpha == 100) {
HardlineButton._alpha = 50;
}
if (DangerCloseButton._alpha == 100) {
DangerCloseButton._alpha = 50;
}
}
}
}
button 341 {
on (press) {
if (DangerCloseButton._alpha == 50 or DangerCloseButton._alpha == 100) {
_root.FaciZombies.data.Perk1[_root.FaciZombies.data.ClassSlot] = 'DangerClose';
DangerCloseButton._alpha = 100;
if (StoppingPowerButton._alpha == 100) {
StoppingPowerButton._alpha = 50;
}
if (LightweightButton._alpha == 100) {
LightweightButton._alpha = 50;
}
if (HardlineButton._alpha == 100) {
HardlineButton._alpha = 50;
}
if (ColdBloodedButton._alpha == 100) {
ColdBloodedButton._alpha = 50;
}
}
}
}
button 342 {
on (press) {
if (SleightOfHandButton._alpha == 50 or SleightOfHandButton._alpha == 100) {
_root.FaciZombies.data.Perk2[_root.FaciZombies.data.ClassSlot] = 'SleightOfHand';
SleightOfHandButton._alpha = 100;
if (MarathonButton._alpha == 100) {
MarathonButton._alpha = 50;
}
if (ScavengerButton._alpha == 100) {
ScavengerButton._alpha = 50;
}
}
}
}
button 343 {
on (press) {
if (NinjaButton._alpha == 50 or NinjaButton._alpha == 100) {
_root.FaciZombies.data.Perk3[_root.FaciZombies.data.ClassSlot] = 'Ninja';
NinjaButton._alpha = 100;
if (SteadyAimButton._alpha == 100) {
SteadyAimButton._alpha = 50;
}
if (LastStandButton._alpha == 100) {
LastStandButton._alpha = 50;
}
}
}
}
button 345 {
on (press) {
if (SteadyAimButton._alpha == 50 or SteadyAimButton._alpha == 100) {
_root.FaciZombies.data.Perk3[_root.FaciZombies.data.ClassSlot] = 'SteadyAim';
SteadyAimButton._alpha = 100;
if (NinjaButton._alpha == 100) {
NinjaButton._alpha = 50;
}
if (LastStandButton._alpha == 100) {
LastStandButton._alpha = 50;
}
}
}
}
button 346 {
on (press) {
if (LastStandButton._alpha == 50 or LastStandButton._alpha == 100) {
_root.FaciZombies.data.Perk3[_root.FaciZombies.data.ClassSlot] = 'LastStand';
LastStandButton._alpha = 100;
if (SteadyAimButton._alpha == 100) {
SteadyAimButton._alpha = 50;
}
if (NinjaButton._alpha == 100) {
NinjaButton._alpha = 50;
}
}
}
}
button 348 {
on (press) {
_root.gotoAndStop(_root.DeathFrame);
_root.Player.hp = 0;
_root.Pause = 'fasle';
}
}
button 350 {
on (press) {
gotoAndStop(2);
}
}
button 352 {
on (press) {
_root.gotoAndStop(_root.DeathFrame);
_root.Player.hp = 0;
_root.Pause = 'fasle';
_root.DeadTimer = 10;
}
}
button 354 {
on (press) {
if (_root.Player.Score >= 400) {
_root.BuyWeapon(1);
_root.Player.Score -= 400;
}
}
}
button 357 {
on (press) {
if (_root.Player.Score >= 1500) {
_root.BuyWeapon(2);
_root.Player.Score -= 1500;
}
}
}
button 360 {
on (press) {
if (_root.Player.Score >= 800) {
_root.BuyWeapon(3);
_root.Player.Score -= 800;
}
}
}
button 364 {
on (press) {
if (_root.Player.Score >= 3500) {
_root.BuyWeapon(4);
_root.Player.Score -= 3500;
}
}
}
button 367 {
on (press) {
if (_root.Player.Score >= 5000) {
_root.BuyWeapon(5);
_root.Player.Score -= 5000;
}
}
}
button 371 {
on (press) {
if (_root.Player.Score >= 1000) {
_root.BuyWeapon(6);
_root.Player.Score -= 1000;
}
}
}
button 374 {
on (press) {
if (_root.Player.Score >= 1200) {
_root.BuyWeapon(7);
_root.Player.Score -= 1200;
}
}
}
button 378 {
on (press) {
if (_root.Player.Score >= 2500) {
_root.BuyWeapon(8);
_root.Player.Score -= 2500;
}
}
}
button 382 {
on (press) {
if (_root.Player.Score >= 35000) {
_root.BuyWeapon(9);
_root.Player.Score -= 35000;
}
}
}
button 386 {
on (press) {
if (_root.Player.Score >= 3000) {
_root.BuyWeapon(10);
_root.Player.Score -= 3000;
}
}
}
button 389 {
on (press) {
gotoAndStop(1);
}
}
movieClip 390 {
frame 1 {
gotoAndStop(1);
ScavengerButton._alpha = 10;
MarathonButton._alpha = 10;
SleightOfHandButton._alpha = 10;
StoppingPowerButton._alpha = 10;
LightweightButton._alpha = 10;
HardlineButton._alpha = 10;
ColdBloodedButton._alpha = 10;
DangerCloseButton._alpha = 10;
NinjaButton._alpha = 10;
SteadyAimButton._alpha = 10;
LastStandButton._alpha = 10;
if (_root.FaciZombies.data.BulletKills >= 2500) {
StoppingPowerButton._alpha = 50;
}
if (_root.FaciZombies.data.TotalKills >= 2500) {
HardlineButton._alpha = 50;
}
if (_root.FaciZombies.data.RunnedBack >= 100000) {
LightweightButton._alpha = 50;
}
if (_root.FaciZombies.data.TotalKills >= 5000) {
ColdBloodedButton._alpha = 50;
}
if (_root.FaciZombies.data.ExplosiveKills >= 2500) {
DangerCloseButton._alpha = 50;
}
if (_root.FaciZombies.data.TotalScore >= 50000) {
ScavengerButton._alpha = 50;
}
if (_root.FaciZombies.data.Runned >= 100000) {
MarathonButton._alpha = 50;
}
if (_root.FaciZombies.data.Reloaded >= 10) {
SleightOfHandButton._alpha = 50;
}
if (_root.FaciZombies.data.TotalKills - _root.FaciZombies.data.BulletKills - _root.FaciZombies.data.ExplosiveKills >= 1000) {
NinjaButton._alpha = 50;
}
if (_root.FaciZombies.data.WeaponKills[3] >= 500) {
SteadyAimButton._alpha = 50;
}
if (_root.FaciZombies.data.TimesPlayed >= 100) {
LastStandButton._alpha = 50;
}
Perk1 = _root.FaciZombies.data.Perk1[_root.FaciZombies.data.ClassSlot];
Perk2 = _root.FaciZombies.data.Perk2[_root.FaciZombies.data.ClassSlot];
Perk3 = _root.FaciZombies.data.Perk3[_root.FaciZombies.data.ClassSlot];
if (Perk1 == 'StoppingPower') {
StoppingPowerButton._alpha = 100;
}
if (Perk1 == 'Lightweight') {
LightweightButton._alpha = 100;
}
if (Perk1 == 'ColdBlooded') {
ColdBloodedButton._alpha = 100;
}
if (Perk1 == 'DangerClose') {
DangerCloseButton._alpha = 100;
}
if (Perk1 == 'Hardline') {
HardlineButton._alpha = 100;
}
if (Perk2 == 'Scavenger') {
ScavengerButton._alpha = 100;
}
if (Perk2 == 'Marathon') {
MarathonButton._alpha = 100;
}
if (Perk2 == 'SleightOfHand') {
SleightOfHandButton._alpha = 100;
}
if (Perk3 == 'Ninja') {
NinjaButton._alpha = 100;
}
if (Perk3 == 'SteadyAim') {
SteadyAimButton._alpha = 100;
}
if (Perk3 == 'LastStand') {
LastStandButton._alpha = 100;
}
}
}
instance PerkSelect of movieClip 390 {
onClipEvent (enterFrame) {
if (_root.Player.hp <= 0 or _root.DeadTimer == 10) {
this.removeMovieClip();
}
this.swapDepths(_root.UniqueID + 110);
if (_root.Pause == 'false') {
_alpha = 0;
_height = 10;
_width = 10;
} else {
_alpha = 100;
_width = Stage.width;
_height = Stage.height;
_x = Stage.width / 2 - _root._x;
_y = Stage.height / 2 - _root._y;
_root.Perk1 = _root.FaciZombies.data.Perk1[_root.FaciZombies.data.ClassSlot];
_root.Perk2 = _root.FaciZombies.data.Perk2[_root.FaciZombies.data.ClassSlot];
_root.Perk3 = _root.FaciZombies.data.Perk3[_root.FaciZombies.data.ClassSlot];
}
}
}
instance HelpTextGround of movieClip 295 {
onClipEvent (load) {
this._width = Stage.width;
}
}
frame 13 {
_root.FaciZombies.data.GameSaved = 'true';
if (_root.DeadTimer == 10) {
_root.FaciZombies.data.SaveHP = _root.Player.hp;
_root.FaciZombies.data.SaveWeapons = _root.Player.Weapons;
_root.FaciZombies.data.SaveGrenades = _root.Player.Grenades;
_root.FaciZombies.data.SaveSpecialGrenades = _root.Player.SpecialGrenades;
_root.FaciZombies.data.SaveRifleGrenades = _root.Player.RifleGrenades;
_root.FaciZombies.data.SaveDEagleAmmo = _root.Player.DEagleAmmo;
_root.FaciZombies.data.SaveMags = _root.Player.Mags;
_root.FaciZombies.data.SaveAmmo = _root.Player.Ammo;
_root.FaciZombies.data.SaveX = _root.Player._x;
_root.FaciZombies.data.SaveY = _root.Player._y;
_root.FaciZombies.data.SaveKills = _root.Player.Kills;
_root.FaciZombies.data.SaveScore = _root.Player.Score;
_root.FaciZombies.data.SaveWallType = _root.WallType;
_root.FaciZombies.data.SaveWallHP = _root.WallHP;
_root.FaciZombies.data.SaveLevel = _root.Level;
}
Mouse.show();
_root._x = 0;
_root._y = 0;
_root.MultiKillText.removeMovieClip();
_root.Aim.removeMovieClip();
_root.DamageView.removeMovieClip();
_root.ShowWeapon.removeMovieClip();
for (zombie in _root._level0.Zombies) {
_root.Zombies[zombie].removeMovieClip();
}
for (corpse in _root._level0.Corpses) {
_root.Corpses[corpse].removeMovieClip();
}
for (claymore in _root._level0.SpecialGrenadesArray) {
_root.SpecialGrenadesArray[claymore].removeMovieClip();
}
for (grenade in _root._level0.GrenadesArray) {
_root.GrenadesArray[grenade].removeMovieClip();
}
_root.Player.reloading = 'false';
_root.Player.Loaded = 'true';
_root.Player.knifing = 'false';
if (_root.DeadTimer <= 0) {
_root.FaciZombies.data.GameSaved = 'true';
_root.FaciZombies.data.SaveWallType = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 1, 2, 3, 3, 3, 3, 3];
_root.FaciZombies.data.SaveWallHP = [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100];
_root.FaciZombies.data.Savehp = 100;
_root.FaciZombies.data.SaveSpecialGrenades = 2;
_root.FaciZombies.data.SaveGrenades = 4;
_root.FaciZombies.data.SaveKills = 0;
_root.FaciZombies.data.SaveX = 320;
_root.FaciZombies.data.SaveY = 800;
_root.FaciZombies.data.SaveWeapon = 1;
_root.FaciZombies.data.SaveWeapons = [1, 0];
_root.FaciZombies.data.SaveWeaponSlot = 0;
_root.FaciZombies.data.SaveRifleGrenades = 2;
_root.FaciZombies.data.SaveMags = [15, 0];
_root.FaciZombies.data.SaveAmmo = [30, 0];
_root.FaciZombies.data.SaveScore = 500;
_root.FaciZombies.data.SaveLevel = 1;
}
_root.gotoAndStop(_root.MenuFrame);
}