Combined Code
frame 1 {
function goToDeveloper() {
getURL('http://www.kongregate.com/accounts/ehaugw', '_blank');
}
function Forum() {
getURL('http://www.kongregate.com/forums/3-general-gaming/topics/158740-lead-for-dead-call-of-the-dead', '_blank');
}
function setHighQuality() {
_root._quality = 'high';
_root.FaciZombies.data.Quality = 'high';
}
function setMediumQuality() {
_root._quality = 'medium';
_root.FaciZombies.data.Quality = 'medium';
}
function setLowQuality() {
_root._quality = 'low';
_root.FaciZombies.data.Quality = 'low';
}
function setHighMusic() {
_root.FaciZombies.data.SongVolume = 100;
BackgroundSong.setVolume(_root.FaciZombies.data.SongVolume);
}
function setLowDetail() {
_root.FaciZombies.data.LowDetail = true;
}
function setHighDetail() {
_root.FaciZombies.data.LowDetail = false;
}
function setMediumMusic() {
_root.FaciZombies.data.SongVolume = 20;
BackgroundSong.setVolume(_root.FaciZombies.data.SongVolume);
}
function setLowMusic() {
_root.FaciZombies.data.SongVolume = 0;
BackgroundSong.setVolume(_root.FaciZombies.data.SongVolume);
}
function setHighFX() {
_root.FaciZombies.data.FXVolume = 100;
soundFX.setVolume(_root.FaciZombies.data.FXVolume);
}
function setMediumFX() {
_root.FaciZombies.data.FXVolume = 20;
soundFX.setVolume(_root.FaciZombies.data.FXVolume);
}
function setLowFX() {
_root.FaciZombies.data.FXVolume = 0;
soundFX.setVolume(_root.FaciZombies.data.FXVolume);
}
function toggleFullScreen() {
Stage.displayState = 'fullScreen';
}
function toggleNormalScreen() {
Stage.displayState = 'normal';
}
TextField.prototype.swapDepths = MovieClip.prototype.swapDepths;
this.onLoad = function () {
var v2 = _global.kongregate;
v2.services.connect();
};
gotoAndStop(1);
Loaded = 0;
_root.FaciZombies = SharedObject.getLocal('FaciZombies');
this.onEnterFrame = function () {
kills = 0;
konglevel = 0;
Progress = Math.round(100 * _root.getBytesLoaded() / _root.getBytesTotal());
Loaded += random(_root.FaciZombies.data.TimesPlayed + 1);
loaded = 'Loaded: ' + Progress + '%';
if (Progress >= 100) {
_root.gotoAndStop(2);
}
};
SoundPlaying = 'BlackOps';
soundFX = new Sound(_root.FX);
BackgroundSong = new Sound(_root.Music);
BackgroundSong.loadSound('http://eivind.netau.net/Black%20Ops.mp3', true);
BackgroundSong.start();
HackerMessage = 'Why inn hell do you guys have to decompile MY swfs? I have spent hundreds of hours on this game. Learn to program yourself. If you want to publish a hacked version of this game, why don\'t you just email me, so oyu can do it the legal way?';
_root.FaciZombies = SharedObject.getLocal('FaciZombies');
if (_root.FaciZombies.data.FXVolume == undefined) {
_root.FaciZombies.data.FXVolume = 100;
_root.FaciZombies.data.SongVolume = 100;
}
soundFX.setVolume(_root.FaciZombies.data.FXVolume);
BackgroundSong.setVolume(_root.FaciZombies.data.SongVolume);
if (_root.FaciZombies.data.PrestigeExperience == undefined) {
_root.FaciZombies.data.PrestigeExperience = 0;
_root.FaciZombies.data.PrestigeGold = 0;
_root.FaciZombies.data.PresgigeRunned = 0;
_root.FaciZombies.data.PrestigeRunnedBack = 0;
_root.FaciZombies.data.PrestigeReloaded = 0;
_root.FaciZombies.data.PrestigeBulletKills = 0;
_root.FaciZombies.data.PrestigeRevives = 0;
_root.FaciZombies.data.PrestigeTotalScore = 0;
_root.FaciZombies.data.PrestigeExplosiveKills = 0;
_root.FaciZombies.data.PrestigeMultiKills = 0;
_root.FaciZombies.data.PrestigeTotalKills = 0;
_root.FaciZombies.data.PrestigeWeaponKills = 0;
}
if (_root.FaciZombies.data.MinutesPlayed == undefined or _root.FaciZombies.data.MinutesPlayed == NaN) {
_root.FaciZombies.data.MinutesPlayed = 0;
}
if (_root.FaciZombies.data.PersonLook == undefined) {
_root.FaciZombies.data.PersonLook = 3;
}
if (_root.FaciZombies.data.UnlockedLooks == undefined) {
_root.FaciZombies.data.UnlockedLooks = [false, false, false, true];
}
if (_root.FaciZombies.data.UnlockedColors == undefined or _root.FaciZombies.data.UnlockedColors[9] == undefined) {
_root.FaciZombies.data.UnlockedColors = [true, true, false, false, true, false, false, true, false, false];
}
if (_root.FaciZombies.data.PersonColor == undefined) {
_root.FaciZombies.data.PersonColor = 1;
}
if (_root.FaciZombies.data.Quality == undefined) {
_root.FaciZombies.data.Quality = 'medium';
}
if (_root.FaciZombies.data.GraphicSettings == undefined) {
_root.FaciZombies.data.GraphicSettings = [false];
}
if (_root.FaciZombies.data.AutoGraphic == undefined) {
_root.FaciZombies.data.AutoGraphic = false;
}
if (_root.FaciZombies.data.MouseMove == undefined) {
_root.FaciZombies.data.MouseMove = false;
}
if (_root.FaciZombies.data.Intro == undefined) {
_root.FaciZombies.data.Intro = true;
}
if (_root.FaciZombies.data.Revive == undefined) {
_root.FaciZombies.data.Revive = true;
}
if (_root.FaciZombies.data.Radar == undefined) {
_root.FaciZombies.data.Radar = 1;
}
if (_root.FaciZombies.data.DAMUpgrade == undefined) {
_root.FaciZombies.data.DAMUpgrade = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.FaciZombies.data.PENUpgrade = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.FaciZombies.data.RANUpgrade = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.FaciZombies.data.DELUpgrade = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.FaciZombies.data.MAGUpgrade = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.FaciZombies.data.AMMUpgrade = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.FaciZombies.data.SPRUpgrade = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
if (_root.FaciZombies.data.PowerUps == undefined) {
_root.FaciZombies.data.PowerUps = 0;
}
if (_root.FaciZombies.data.Christmas == undefined) {
_root.FaciZombies.data.Christmas = 0;
}
_root.FaciZombies.data.Attachments[13] = 0;
if (_root.FaciZombies.data.Prestige == undefined) {
_root.FaciZombies.data.Prestige = 0;
}
if (_root.FaciZombies.data.UnlockedWeapons == undefined) {
_root.FaciZombies.data.UnlockedWeapons = [true, true, true, true, true, false, false, true, false, false, true, false, false, false, false, false, false, false, false, false, false, false];
}
if (_root.FaciZombies.data.EquipmentKills == undefined) {
_root.FaciZombies.data.EquipmentKills = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
if (_root.FaciZombies.data.TalentLevel == undefined) {
_root.FaciZombies.data.TalentLevel = 0;
_root.FaciZombies.data.TalentPoints = 0;
}
if (_root.FaciZombies.data.Grenade == undefined) {
_root.FaciZombies.data.Grenade = 0;
}
if (_root.FaciZombies.data.SpecialGrenade == undefined) {
_root.FaciZombies.data.SpecialGrenade = 0;
}
if (_root.FaciZombies.data.Flamethrower == undefined) {
_root.FaciZombies.data.Flamethrower = 1;
}
if (_root.FaciZombies.data.GhostBuster == undefined) {
_root.FaciZombies.data.GhostBuster = 1;
}
if (_root.FaciZombies.data.Saveep == undefined) {
_root.FaciZombies.data.Saveep = 100;
}
if (_root.FaciZombies.data.PlayerClass == undefined) {
_root.FaciZombies.data.PlayerClass = 1;
}
if (_root.FaciZombies.data.IronNova == undefined) {
_root.FaciZombies.data.IronNova = 0;
}
if (_root.FaciZombies.data.DeathMachine == undefined) {
_root.FaciZombies.data.DeathMachine = 0;
}
if (_root.FaciZombies.data.Bling == undefined) {
_root.FaciZombies.data.Bling = 1;
}
if (_root.FaciZombies.data.ArmUp == undefined) {
_root.FaciZombies.data.ArmUp = 1;
}
if (_root.FaciZombies.data.PartnerX == undefined) {
_root.FaciZombies.data.PartnerX = 300;
_root.FaciZombies.data.PartnerY = 690;
}
if (_root.FaciZombies.data.Achievements == undefined) {
_root.FaciZombies.data.Achievements = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
if (_root.FaciZombies.data.Achievements[8] == undefined) {
_root.FaciZombies.data.Achievements[8] = 0;
}
if (_root.FaciZombies.data.Attachments == undefined) {
_root.FaciZombies.data.Attachments = [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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.Exp == undefined or _root.FaciZombies.data.GameVersion < 1.25) {
_root.FaciZombies.data.Exp = 0;
}
if (_root.FaciZombies.data.PlayerClass == undefined) {
_root.FaciZombies.data.PlayerClasss = 0;
}
if (_root.FaciZombies.data.Experience == undefined) {
_root.FaciZombies.data.Experience = [0, 0, 0, 0, 0, 0];
}
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.LowDetail == undefined) {
_root.FaciZombies.data.LowDetail = false;
}
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.Achievements[9] == undefined) {
_root.FaciZombies.data.Achievements[9] = false;
}
if (_root.FaciZombies.data.Reloaded == undefined) {
_root.FaciZombies.data.Reloaded = 0;
}
if (_root.FaciZombies.data.PaidAchievements == undefined) {
_root.FaciZombies.data.PaidAchievements = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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.Revives == undefined) {
_root.FaciZombies.data.Revives = 0;
}
if (_root.FaciZombies.data.BarricaddeUpgrade == undefined) {
_root.FaciZombies.data.BarricaddeUpgrade = 0;
}
if (_root.FaciZombies.data.CrateUpgrade == undefined) {
_root.FaciZombies.data.CrateUpgrade = 0;
}
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.Map == undefined) {
_root.FaciZombies.data.Map = 'Estate';
}
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];
}
temp = 10;
while (temp <= 23) {
if (_root.FaciZombies.data.WeaponKills[temp] == undefined) {
_root.FaciZombies.data.WeaponKills[temp] = 0;
}
if (_root.FaciZombies.data.Attachments[temp] == undefined) {
_root.FaciZombies.data.Attachments[temp] = 0;
}
if (_root.FaciZombies.data.UnlockedWeapons[temp] == undefined) {
_root.FaciZombies.data.UnlockedWeapons[temp] = false;
}
++temp;
}
if (_root.FaciZombies.data.LevelKills == undefined) {
_root.FaciZombies.data.LevelKills = 0;
}
if (_root.FaciZombies.data.Steroides == undefined) {
_root.FaciZombies.data.Steroides = 0;
}
if (_root.FaciZombies.data.placement == undefined) {
_root.FaciZombies.data.placement = 576.15;
}
if (_root.FaciZombies.data.HighestKills == undefined) {
_root.FaciZombies.data.HighestKills = 0;
}
if (_root.FaciZombies.data.Like == undefined) {
_root.FaciZombies.data.Like = 0;
}
if (_root.FaciZombies.data.CampaignLevel == undefined) {
_root.FaciZombies.data.CampaignLevel = 1;
}
if (_root.FaciZombies.data.Chapter == undefined or _root.FaciZombies.data.Patch != 1) {
_root.FaciZombies.data.Chapter = 1;
_root.FaciZombies.data.Patch = 1;
}
if (_root.FaciZombies.data.Alive == undefined) {
_root.FaciZombies.data.Alive = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
}
var highqualityitem = new ContextMenuItem('Strong anti aliasing', setHighQuality);
var mediumqualityitem = new ContextMenuItem('Medium anti aliasing', setMediumQuality);
var lowqualityitem = new ContextMenuItem('No anti aliasing', setLowQuality);
var highmusicitem = new ContextMenuItem('High music volume', setHighMusic);
var mediummusicitem = new ContextMenuItem('Low music volume', setMediumMusic);
var lowmusicitem = new ContextMenuItem('No Music', setLowMusic);
var highfxitem = new ContextMenuItem('High FX volume', setHighFX);
var mediumfxitem = new ContextMenuItem('Low FX volume', setMediumFX);
var lowfxitem = new ContextMenuItem('No FX', setLowFX);
var credit = new ContextMenuItem('Visit the developer', goToDeveloper);
var forum = new ContextMenuItem('Report bugs', Forum);
var fullscreenitem = new ContextMenuItem('Full screen', toggleFullScreen);
var normalscreenitem = new ContextMenuItem('Normal screen', toggleNormalScreen);
var lowdetailitem = new ContextMenuItem('Undetailed zombies', setLowDetail);
var highdetailitem = new ContextMenuItem('Detailed zombies', setHighDetail);
highdetailitem.separatorBefore = true;
highqualityitem.separatorBefore = true;
highmusicitem.separatorBefore = true;
highfxitem.separatorBefore = true;
fullscreenitem.separatorBefore = true;
normalscreenitem.separatorBefore = true;
var DefaultMenu = new ContextMenu();
DefaultMenu.hideBuiltInItems();
DefaultMenu.customItems.push(credit, forum, highdetailitem, lowdetailitem, highqualityitem, mediumqualityitem, lowqualityitem, highmusicitem, mediummusicitem, lowmusicitem, highfxitem, mediumfxitem, lowfxitem);
_root.menu = DefaultMenu;
_root.FaciZombies.data.TimesPlayed += 1;
Version = '3.0';
_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.SelectMapFrame = 12;
_root.SettingsFrame = 13;
_root.NewsFrame = 14;
_root.GameFrame = 15;
_root.Map2Frame = 16;
_root.Map3Frame = 17;
_root.Map4Frame = 18;
_root.StoryModeFrame = 19;
_root.CampaignStart = 18;
_root.DeathFrame = 30;
_root.CampaingDoneFrame = 31;
}
movieClip 29 {
}
movieClip 33 {
}
// unknown tag 88 length 97
movieClip 38 {
}
frame 2 {
ehaugwPlaying = false;
gotoAndStop(2);
versiontext = 'VERSION ' + Version;
this.onEnterFrame = function () {
function sitelock(urls_allowed) {
lock = true;
domain_parts = _url.split('://');
real_domain = domain_parts[1].split('/');
domain.text = real_domain[0];
for (x in urls_allowed) {
if (urls_allowed[x] == real_domain[0]) {
lock = false;
}
}
if (lock) {
var v3 = new Date();
var v6 = v3.getDate();
var v4 = v3.getMonth() + 1;
var v5 = v3.getFullYear();
if (v5 >= 2012 and v4 > 3) {
_root._visible = false;
_root._alpha = 0;
}
}
}
urls_allowed = ['chat.kongregate.com', 'uploads.undergrounded.net', 'www.flashgamelicense.com'];
sitelock(urls_allowed);
if (!Kong._visible) {
if (!ehaugwPlaying) {
ehaugw.gotoAndPlay(1);
ehaugwPlaying = true;
}
if (!ehaugw._visible) {
if (_root.FaciZombies.data.GameVersion == undefined) {
_root.gotoAndStop(_root.HelpFrame);
} else {
if (_root.FaciZombies.data.GameVersion == _root.Version) {
gotoAndStop(MenuFrame);
} else {
gotoAndStop(_root.NewsFrame);
}
}
}
}
};
}
frame 2 {
MakeObject = function (instname, template, id, x, y, rot, input1, input2) {
var v4;
if (id == 'TopAllign') {
id = _root.getNextHighestDepth() + 2;
var v3 = instname + id;
while (_root.getInstanceAtDepth(id - 10) != undefined) {
++id;
}
_root.Aim.swapDepths(id);
_root.PerkSelect.swapDepths(id - 1);
_root.NextWaveSign.swapDepths(id - 2);
_root.Display.swapDepths(id - 3);
_root.MultiKillText.swapDepths(id - 4);
_root.DamageView.swapDepths(id - 5);
_root.Radar.swapDepths(id - 6);
_root.Vegitation.swapDepths(id - 7);
_root.Player.swapDepths(id - 8);
_root.Partner.swapDepths(id - 9);
v4 = template.duplicateMovieClip(v3, id - 10);
eval(v3)._x = x;
eval(v3)._y = y;
eval(v3)._rotation = rot;
v4.input1 = input1;
v4.input2 = input2;
return v4;
}
v3 = instname + id;
while (_root.getInstanceAtDepth(id) != undefined) {
++id;
}
v4 = template.duplicateMovieClip(v3, id);
eval(v3)._x = x;
eval(v3)._y = y;
eval(v3)._rotation = rot;
v4.input1 = input1;
v4.input2 = input2;
return v4;
};
BuyWeapon = function (weapon) {
if (weapon != 10 and weapon != 16 and weapon != 0.1) {
_root.FaciZombies.data.P90Possible = false;
_root.Player.AlternateFire = false;
}
if (_root.FaciZombies.data.Attachments[weapon] == 5 or weapon == 0.1) {
_root.Player.RifleGrenades += 2;
}
if (weapon != 0.1) {
_root.Player.WeaponSlot = _root.Player.Slot[weapon];
_root.Player.Weapon = _root.Player.Weapons[_root.Player.WeaponSlot];
if (_root.Player.PackAPunched[_root.Player.WeaponSlot]) {
_root.Player.PackAPunched[_root.Player.WeaponSlot] = false;
_root.Player.AmmoType[_root.Player.Weapon] -= _root.PAPAmmoType[_root.Player.Weapon];
_root.Player.Damage[_root.Player.Weapon] -= _root.PAPDamage[_root.Player.Weapon];
_root.Player.Penetrating[_root.Player.Weapon] -= _root.PAPPenetrating[_root.Player.Weapon];
_root.Player.Speed[_root.Player.Weapon] -= _root.PAPSpeed[_root.Player.Weapon];
_root.Player.Range[_root.Player.Weapon] -= _root.PAPRange[_root.Player.Weapon];
_root.Player.Mobility[_root.Player.Weapon] -= _root.PAPMobility[_root.Player.Weapon];
}
_root.Player.Weapons[_root.Player.WeaponSlot] = weapon;
_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;
}
};
GetTile = function (object) {
TileNumber = 0;
while (TileNumber <= _root.TotalTiles) {
FullTileName = _root['Tile' + TileNumber];
if (FullTileName.hitTest(object._x, object._y, true)) {
object.TileHit = FullTileName;
object.TileNumber = TileNumber;
return undefined;
}
TileNumber += 1;
}
};
PathFind = function (zombie, target) {
Path = target.TileNumber;
if (_root.FaciZombies.data.Map == 'Overgrown') {
Overgrownbonus = 2;
} else {
Overgrownbonus = 0;
}
tarnum = target.TileNumber;
zomnum = zombie.TileNumber;
if (tarnum > zomnum) {
Path = zomnum + 1;
}
if (tarnum < zomnum) {
Path = zomnum - 1;
}
if (Path == 5 + Overgrownbonus and zomnum != 4 + Overgrownbonus) {
Path = 3 + Overgrownbonus;
}
if (Path == 5 + Overgrownbonus and tarnum != 5 + Overgrownbonus) {
Path = 3 + Overgrownbonus;
}
if (Path == 4 + Overgrownbonus and tarnum >= 6 + Overgrownbonus) {
Path = 6 + Overgrownbonus;
}
if (zomnum == 5 + Overgrownbonus) {
Path = 4 + Overgrownbonus;
}
Path = _root['Tile' + Path];
return Math.round(Math.atan2(Path._x - zombie._x, Path._y - zombie._y) * -180 / Math.PI);
};
GetDistance = function (object, target) {
return Math.sqrt((object._x - target._x) * (object._x - target._x) + (object._y - target._y) * (object._y - target._y));
};
ToNextLevel = function () {
++_root.Level;
_root.Player.SpecialGrenades += 2;
_root.Player.Grenades += 4;
if (_root.FaciZombies.data.Map != 'Salvage' and _root.FaciZombies.data.Map != 'Sandbox') {
if (_root.Level > _root.FaciZombies.data.Level) {
_root.FaciZombies.data.Level = _root.Level;
}
if (_root.FaciZombies.data.Achievements[0] == 0 and _root.Level >= 5) {
_root.FaciZombies.data.Achievements[0] = 1;
_root.helptext = 'Achievement Complete: Get to level 5';
_root.HelpTextTimer = 100;
_root.HelpTextContent = 15;
}
if (_root.FaciZombies.data.Achievements[4] == 0 and _root.Level >= 10) {
_root.FaciZombies.data.Achievements[4] = 1;
_root.helptext = 'Achievement Complete: Get to level 10';
_root.HelpTextTimer = 100;
_root.HelpTextContent = 15;
}
if (_root.FaciZombies.data.Achievements[5] == 0 and _root.Level >= 15) {
_root.FaciZombies.data.Achievements[5] = 1;
_root.helptext = 'Achievement Complete: Get to level 15';
_root.HelpTextTimer = 100;
_root.HelpTextContent = 15;
}
if (_root.FaciZombies.data.P90Possible and _root.Level >= 20) {
_root.FaciZombies.data.Achievements[8] = 1;
trace(_root.FaciZombies.data.Achievements[8]);
_root.helptext = 'Achievement Complete: Get to level 20 with only P 90';
_root.HelpTextTimer = 100;
_root.HelpTextContent = 15;
}
if (_root.FaciZombies.data.Achievements[9] == 0 and _root.Level >= 25) {
_root.FaciZombies.data.Achievements[9] = 1;
_root.helptext = 'Achievement Complete: Beat the game';
_root.HelpTextTimer = 100;
_root.HelpTextContent = 15;
_root.Player.hp = 0;
_root.Player.LastStand = true;
}
}
_root.LevelTimer = 150;
};
SurvivalGameMode = function () {
if (_root.Kills >= _root.LevelCap[_root.Level]) {
_root.ToNextLevel();
}
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';
_root.HelpTextTimer = 100;
_root.HelpTextContent = 15;
}
--_root.LevelTimer;
if (_root.LevelTimer > 0) {
_root.NextWaveSign._visible = true;
_root.NextWaveSign._x = Stage.width / 2 - _root._x;
_root.NextWaveSign._y = Stage.height / 2 - _root._y;
} else {
_root.NextWaveSign._visible = false;
}
if (random(65 - 5 * _root.Level) == 0 and _root.ZombieAmount < 25 and _root.LevelTimer <= 0 and _root.ZombieAmount + _root.Kills < _root.LevelCap[_root.Level]) {
while (_root.Zombies[_root.ZombieID].Alive) {
++_root.ZombieID;
if (_root.ZombieID >= 25) {
_root.ZombieID = 0;
}
}
++_root.ZombieAmount;
if (_root.Level % 4 == 0) {
if (_root.FaciZombies.data.LowDetail) {
_root.Zombies[_root.ZombieID] = MakeObject('Zombie', _root.HellHound2T, 'TopAllign', 666, 1133, 0, 100);
} else {
_root.Zombies[_root.ZombieID] = MakeObject('Zombie', _root.HellHoundT, 'TopAllign', 666, 1133, 0, 100);
}
} else {
if (random(10) < 7 or _root.Level < 7) {
if (_root.FaciZombies.data.LowDetail) {
_root.Zombies[_root.ZombieID] = MakeObject('Zombie', _root.Zombie2T, 'TopAllign', 666, 1133, 0, 100);
} else {
_root.Zombies[_root.ZombieID] = MakeObject('Zombie', _root.ZombieT, 'TopAllign', 666, 1133, 0, 100);
}
} else {
if (_root.FaciZombies.data.LowDetail) {
_root.Zombies[_root.ZombieID] = MakeObject('Zombie', _root.Zombie4T, 'TopAllign', 666, 1133, 0, 100);
} else {
_root.Zombies[_root.ZombieID] = MakeObject('Zombie', _root.Zombie3T, 'TopAllign', 666, 1133, 0, 100);
}
}
}
}
};
SetupGame = function () {
_root.TempZombies = _root.FaciZombies.data.Zombies;
for (temp in TempZombies) {
Zombie = TempZombies[temp];
if (_root.FaciZombies.data.Alive[temp]) {
XCoord = _root.FaciZombies.data.XCoords[temp];
YCoord = _root.FaciZombies.data.YCoords[temp];
Rot = _root.FaciZombies.data.Rotation[temp];
Template = [_root.ZombieT, _root.Zombie3T, _root.HellHoundT][_root.FaciZombies.data.Type[temp] - 1];
while (_root.Zombies[_root.ZombieID].Alive) {
++_root.ZombieID;
if (_root.ZombieID >= 25) {
_root.ZombieID = 0;
}
}
if (_root.FaciZombies.data.Crawling[temp] == undefined) {
_root.FaciZombies.data.Crawling[temp] = false;
}
_root.Zombies[_root.ZombieID] = MakeObject('Zombie', Template, 'TopAllign', XCoord, YCoord, Rot, 0, _root.FaciZombies.data.Crawling[temp]);
_root.Zombies[_root.ZombieID].Alive = true;
++_root.ZombieAmount;
}
}
};
PossibleTarget = function (checker, target) {
tarnum = target.TileNumber;
switch (checker.TileNumber) {
case 1:
if (tarnum == 2) {
return true;
} else {
return false;
}
case 2:
if (tarnum == 1 or tarnum == 3 or tarnum == 6) {
return true;
} else {
return false;
}
case 3:
if (tarnum == 2 or tarnum == 4 or tarnum == 6 or tarnum == 7) {
return true;
} else {
return false;
}
case 4:
if (tarnum == 3 or tarnum == 5) {
return true;
} else {
return false;
}
case 5:
if (tarnum == 4) {
return true;
} else {
return false;
}
case 6:
if (tarnum == 3 or tarnum == 7 or tarnum == 2) {
return true;
} else {
return false;
}
case 7:
if (tarnum == 6 or tarnum == 8 or tarnum == 9 or tarnum == 3) {
return true;
} else {
return false;
}
case 8:
if (tarnum == 7 or tarnum == 9) {
return true;
} else {
return false;
}
case 9:
if (tarnum == 8 or tarnum == 10 or tarnum == 11) {
return true;
} else {
return false;
}
case 10:
if (tarnum == 9 or tarnum == 11) {
return true;
} else {
return false;
}
case 11:
if (tarnum == 10 or tarnum == 12 or tarnum == 13 or tarnum) {
return true;
} else {
return false;
}
case 12:
if (tarnum == 11 or tarnum == 10 or tarnum == 13) {
return true;
} else {
return false;
}
case 13:
if (tarnum == 14 or tarnum == 15 or tarnum == 12 or tarnum == 11) {
return true;
} else {
return false;
}
case 14:
if (tarnum == 15 or tarnum == 16 or tarnum == 12) {
return true;
} else {
return false;
}
case 15:
if (tarnum == 16 or tarnum == 14) {
return true;
} else {
return false;
}
}
return false;
};
sitelock = function (urls_allowed) {
lock = true;
domain_parts = _url.split('://');
real_domain = domain_parts[1].split('/');
domain.text = real_domain[0];
for (x in urls_allowed) {
if (urls_allowed[x] == real_domain[0]) {
lock = false;
}
}
if (lock) {
_root._alpha = 0;
}
};
getEnemy = function (enemy) {
if (_root.Partner.EnemyTarget == undefined or !_root.Partner.EnemyTarget.Alive) {
if (_root.GetDistance(enemy, _root.Partner) < 500) {
if (enemy.hitTest(_root.Partner.TileHit)) {
_root.Partner.EnemyTarget = enemy;
} else {
if (_root.PossibleTarget(_root.Partner, enemy)) {
_root.Partner.EnemyTarget = enemy;
}
}
}
}
};
DoT = function (object) {
if (object.Ash) {
}
if (object.Burning) {
object.hp -= 3;
}
if (object.AlphaDoT) {
object.hp -= 5;
}
if (object.AlphaDoT2) {
object.hp -= 3;
object.Ash = true;
}
};
Dying = function (object) {
if (_root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.Gold += 50;
}
++_root.Kills;
_root.Player.Score += _root.Double * _root.Bonus * 10;
if (_root.FaciZombies.data.Map != 'Salvage' and _root.FaciZombies.data.Map != 'Sandbox') {
if (_root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 10;
}
}
--_root.ZombieAmount;
if (_root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalKills += 1;
}
_root.CorpseID += 1;
if (_root.CorpseID >= 50) {
_root.CorpseID = 0;
}
if (object._currentframe < 159) {
if (Crawling) {
object.gotoAndPlay(246);
} else {
object.gotoAndPlay(237);
}
if (Object.Type == 2) {
object.gotoAndStop(159);
}
}
object.Alive = false;
if (random(100) == 1 or _root.Perk3 == 'Clover' and random(100) <= 5) {
_root.MakeObject('PowerUp', _root.PowerUpT, 'TopAllign', object._x, object._y, 0, 0, 200);
}
};
Attack = function (object, range) {
if (_root.GetDistance(object, object.WalkTo) < range) {
Random = random(2);
switch (Random) {
case 0:
_root.soundFX.attachSound('Damage1.mp3');
_root.soundFX.start();
break;
case 1:
_root.soundFX.attachSound('Damage2.mp3');
_root.soundFX.start();
break;
case 2:
_root.soundFX.attachSound('Damage2.mp3');
_root.soundFX.start();
}
if (object.WalkTo == _root.hitTester) {
_root.Player.hp -= 30;
_root.Player.evenolderxmove = 0;
object.oldxmove = 0;
} else {
object.WalkTo.hp -= 30;
_root.Partern.olderxmove = 0;
object.oldxmove = 0;
}
} else {
object.Attacking = false;
}
if (object.Crawling) {
Attacking = false;
}
};
MakePlayerShot = function () {
switch (_root.Player.LoadStyle[_root.Player.Weapon]) {
case 2:
_root.Player.Loaded = false;
_root.Player.reloading = true;
_root.Player.gotoAndPlay(19);
case 3:
_root.isMouseDown = false;
break;
case 6:
_root.Player.Loaded = false;
_root.Player.reloading = true;
_root.Player.gotoAndPlay(151);
_root.isMouseDown = false;
break;
default:
}
_root.ShotDelay = _root.Player.Speed[_root.Player.Weapon];
--_root.Player.Ammo[_root.Player.WeaponSlot];
++_root.PShotID;
if (_root.Player.AmmoType[_root.Player.Weapon] == 4) {
_root.PlayerShots[_root.PShotID] = _root.MakeObject('PShot', _root.FlameT, 'TopAllign', _root.Player._x - 7.8 * Math.cos(_root.Player._rotation / 57.2957), _root.Player._y - 7.8 * Math.sin(_root.Player._rotation / 57.2959), Math.round(Math.atan2(_root._xmouse - (_root.Player._x - 7.8 * Math.cos(_root.Player._rotation / 57.2957)), _root._ymouse - (_root.Player._y - 7.8 * Math.sin(_root.Player._rotation / 57.2959))) * -180 / Math.PI), _root.Player.Weapon);
} else {
_root.soundFX.attachSound(['SMG.mp3', 'SMG.mp3', 'Assault.mp3', 'Intervention.mp3', 'M92F.mp3', 'M92F.mp3', 'Assault.mp3', 'Shotgun.mp3', 'Shotgun.mp3', 'Assault.mp3', 'SMG.mp3', 'AT4.mp3', 'Barrett.mp3', 'M92F.mp3', 'Assault.mp3', 'M92F.mp3', 'SAA.mp3', 'Raygun.mp3', 'Pistol.mp3', 'Assault.mp3', 'SMG.mp3', 'Shotgun.mp3', 'Barrett.mp3', 'Assault.mp3'][_root.Player.Weapon]);
_root.soundFX.start();
}
if (_root.Player.AmmoType[_root.Player.Weapon] == 7 or _root.Player.AmmoType[_root.Player.Weapon] == 3) {
_root.PlayerShots[_root.PShotID] = _root.MakeObject('PShot', _root.MissileT, 'TopAllign', _root.Player._x - 7.8 * Math.cos(_root.Player._rotation / 57.2957), _root.Player._y - 7.8 * Math.sin(_root.Player._rotation / 57.2959), Math.atan2(_root._xmouse - (_root.Player._x - 7.8 * Math.cos(_root.Player._rotation / 57.2957)), _root._ymouse - (_root.Player._y - 7.8 * Math.sin(_root.Player._rotation / 57.2959))) * -180 / Math.PI, _root.Player.Weapon);
}
if (_root.Player.AmmoType[_root.Player.Weapon] == 10 or _root.Player.AmmoType[_root.Player.Weapon] == 1 or _root.Player.AmmoType[_root.Player.Weapon] == 6) {
_root.PlayerShots[_root.PShotID] = _root.MakeObject('PShot', _root.BulletT, 'TopAllign', _root.Player._x - 7.8 * Math.cos(_root.Player._rotation / 57.2957), _root.Player._y - 7.8 * Math.sin(_root.Player._rotation / 57.2959), Math.atan2(_root._xmouse - (_root.Player._x - 7.8 * Math.cos(_root.Player._rotation / 57.2957)), _root._ymouse - (_root.Player._y - 7.8 * Math.sin(_root.Player._rotation / 57.2959))) * -180 / Math.PI, _root.Player.Weapon);
}
if (_root.Player.AmmoType[_root.Player.Weapon] == 9) {
temp = 0;
while (temp < 10) {
++_root.PShotID;
if (_root.PShotID >= 50) {
_root.PShotID = 1;
}
_root.PlayerShots[_root.PShotID] = _root.MakeObject('PShot', _root.LaserT, 'TopAllign', _root.Player._x - 7.8 * Math.cos(_root.Player._rotation / 57.2957), _root.Player._y - 7.8 * Math.sin(_root.Player._rotation / 57.2959), temp, _root.Player.Weapon);
++temp;
}
}
if (_root.Player.AmmoType[_root.Player.Weapon] == 2) {
temp = 0;
while (temp < 5) {
++_root.PShotID;
if (_root.PShotID >= 50) {
_root.PShotID = 1;
}
_root.PlayerShots[_root.PShotID] = _root.MakeObject('PShot', _root.BulletT, 'TopAllign', _root.Player._x - 7.8 * Math.cos(_root.Player._rotation / 57.2957), _root.Player._y - 7.8 * Math.sin(_root.Player._rotation / 57.2959), Math.round(Math.atan2(_root._xmouse - (_root.Player._x - 7.8 * Math.cos(_root.Player._rotation / 57.2957)), _root._ymouse - (_root.Player._y - 7.8 * Math.sin(_root.Player._rotation / 57.2959))) * -180 / Math.PI), _root.Player.Weapon);
++temp;
}
}
if (_root.Player.AmmoType[_root.Player.Weapon] == 5) {
++_root.PShotID;
if (_root.PShotID >= 60) {
_root.PShotID = 1;
}
_root.soundFX.attachSound('GrenadeLaunch.mp3');
_root.soundFX.start();
_root.PlayerShots[_root.PShotID] = _root.MakeObject('RifleGrenade', _root.RifleGrenadeT, 'TopAllign', _root.Player._x - 7.8 * Math.cos(_root.Player._rotation / 57.2957), _root.Player._y - 7.8 * Math.sin(_root.Player._rotation / 57.2959), Math.round(Math.atan2(_root._xmouse - (_root.Player._x - 7.8 * Math.cos(_root.Player._rotation / 57.2957)), _root._ymouse - (_root.Player._y - 7.8 * Math.sin(_root.Player._rotation / 57.2959))) * -180 / Math.PI), _root.Player.Weapon);
}
if (_root.Player.AmmoType[_root.Player.Weapon] == 8) {
++_root.PShotID;
if (_root.PShotID >= 60) {
_root.PShotID = 1;
}
_root.soundFX.attachSound('GrenadeLaunch.mp3');
_root.soundFX.start();
_root.PlayerShots[_root.PShotID] = _root.MakeObject('Decoy', _root.DecoyT, 'TopAllign', _root.Player._x - 7.8 * Math.cos(_root.Player._rotation / 57.2957), _root.Player._y - 7.8 * Math.sin(_root.Player._rotation / 57.2959), Math.round(Math.atan2(_root._xmouse - (_root.Player._x - 7.8 * Math.cos(_root.Player._rotation / 57.2957)), _root._ymouse - (_root.Player._y - 7.8 * Math.sin(_root.Player._rotation / 57.2959))) * -180 / Math.PI), _root.Player.Weapon);
}
if (_root.FaciZombies.data.Attachments[_root.Player.Weapon] != 5) {
_root.Player.AlternateFire = false;
}
};
BackgroundSong.onSoundComplete = function () {
BackgroundSong.start();
};
CalculateAdvancedStats = function () {
_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.AdvancedMaxAmmo = _root.BasicMaxAmmo.slice();
_root.AdvancedMaxMags = _root.BasicMaxMags.slice();
_root.AdvancedDamage = _root.BasicDamage.slice();
_root.AdvancedPenetrating = _root.BasicPenetrating.slice();
_root.AdvancedLoadStyle = _root.BasicLoadStyle.slice();
_root.AdvancedRange = _root.BasicRange.slice();
_root.AdvancedWeaponSpread = _root.BasicWeaponSpread.slice();
_root.AdvancedAmmoType = _root.BasicAmmoType.slice();
_root.AdvancedSpeed = _root.BasicSpeed.slice();
_root.AdvancedWeaponType = _root.BasicWeaponType.slice();
_root.AdvancedMobility = _root.BasicMobility.slice();
_root.AdvancedSlot = _root.BasicSlot.slice();
_root.AdvancedWeaponNames = _root.BasicWeaponNames.slice();
for (temp in _root.FaciZombies.data.Attachments) {
if (_root.Perk3 == 'SteadyAim') {
_root.AdvancedWeaponSpread[temp] *= 0.5;
}
if (_root.Perk1 == 'StoppingPower') {
_root.AdvancedPenetrating[temp] += _root.FaciZombies.data.Charm;
}
if (_root.Perk2 == 'Scavenger') {
_root.AdvancedMaxMags[temp] = Math.floor(_root.AdvancedMaxMags[temp] * 1.5);
}
if (_root.AdvancedAmmoType[temp] == 4) {
_root.AdvancedDamage[temp] += Math.round(_root.FaciZombies.data.Flamethrower / 5);
if (_root.Perk1 == 'DangerClose') {
_root.AdvancedDamage[temp] *= 1.5;
}
}
switch (_root.FaciZombies.data.Attachments[temp]) {
case 2:
case 3:
case 9:
_root.AdvancedPenetrating[temp] += 1;
break;
case 7:
_root.AdvancedWeaponSpread[temp] = 0;
_root.AdvancedMobility[temp] = 0;
break;
case 1:
_root.AdvancedWeaponSpread[temp] *= 0.5;
break;
case 4:
_root.AdvancedMaxAmmo[temp] *= 2;
break;
case 10:
_root.AdvancedSlot[temp] += 1;
_root.AdvancedWeaponSpread[temp] *= 3;
break;
case 11:
_root.AdvancedAmmoType[temp] = 1;
_root.AdvancedDamage[temp] *= 5;
break;
case 9:
_root.AdvancedDamage[temp] += 2;
_root.AdvancedAmmoType[temp] = 6;
_root.PAPAmmoType[temp] = 0;
break;
default:
}
if (_root.FaciZombies.data.PlayerClass == _root.AdvancedWeaponType[temp]) {
_root.AdvancedPenetrating[temp] += 1;
_root.AdvancedDamage[temp] += Math.floor(Math.floor(Math.log(_root.FaciZombies.data.Experience[_root.AdvancedWeaponType[temp]] + 2.718281828459045)) / 2);
}
}
};
}
movieClip 42 {
}
// unknown tag 88 length 52
movieClip 45 {
frame 120 {
_visible = false;
}
}
instance ehaugw of movieClip 45 {
onClipEvent (load) {
_x = 512;
_y = 370;
_width = 1024;
_height = 740;
gotoAndPlay(1);
}
}
movieClip 46 {
}
button 48 {
on (release) {
getURL('http://kongregate.com/', '_blank');
}
}
movieClip 51 {
}
movieClip 53 {
}
movieClip 55 {
}
movieClip 57 {
}
movieClip 59 {
}
movieClip 61 {
}
movieClip 62 {
}
movieClip 65 {
}
movieClip 67 {
}
movieClip 68 {
}
movieClip 70 {
}
// unknown tag 88 length 151
movieClip 73 {
}
movieClip 74 {
}
instance Kong of movieClip 74 {
onClipEvent (load) {
_x = 510.45;
_y = 372.35;
_width = 1026.3;
_height = 742.35;
}
onClipEvent (enterFrame) {
if (_currentframe == 89) {
_visible = false;
}
}
}
frame 3 {
this.onMouseUp = function () {};
_root.FaciZombies.data.GameVersion = _root.Version;
}
movieClip 96 {
}
movieClip 100 {
}
movieClip 101 {
frame 17 {
stop();
}
}
movieClip 102 {
frame 17 {
stop();
}
}
button 104 {
on (release) {
gotoAndStop(_root.MenuFrame);
}
on (rollOver) {
_root.soundFX.attachSound('bop.mp3');
_root.soundFX.start();
}
}
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;
CommandoButton._alpha = 10;
DoctorButton._alpha = 10;
CloverButton._alpha = 10;
if (_root.FaciZombies.data.BulletKills >= 2000) {
_root.StoppingPowerButton._alpha = 50;
}
if (_root.FaciZombies.data.TotalKills >= 750) {
_root.HardlineButton._alpha = 50;
}
if (_root.FaciZombies.data.RunnedBack >= 45000) {
_root.LightweightButton._alpha = 50;
}
if (_root.FaciZombies.data.TotalKills >= 250) {
_root.ColdBloodedButton._alpha = 50;
}
if (_root.FaciZombies.data.ExplosiveKills >= 250) {
_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 >= 25) {
_root.SleightOfHandButton._alpha = 50;
}
if (_root.FaciZombies.data.TotalScore >= 100000) {
_root.CommandoButton._alpha = 50;
}
if (_root.FaciZombies.data.Revives >= 50) {
_root.DoctorButton._alpha = 50;
}
if (_root.FaciZombies.data.TotalKills >= 250) {
_root.NinjaButton._alpha = 50;
}
if (_root.FaciZombies.data.WeaponKills[3] + _root.FaciZombies.data.WeaponKills[12] >= 250) {
_root.SteadyAimButton._alpha = 50;
}
if (_root.FaciZombies.data.TimesPlayed >= 10) {
_root.LastStandButton._alpha = 50;
}
if (_root.FaciZombies.data.PowerUps >= 25) {
_root.CloverButton._alpha = 50;
}
this.onEnterFrame = function () {
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;
Perk1Light._x = 150;
}
if (Perk1 == 'Lightweight') {
_root.LightweightButton._alpha = 100;
Perk1Light._x = 297;
}
if (Perk1 == 'ColdBlooded') {
_root.ColdBloodedButton._alpha = 100;
Perk1Light._x = 591;
}
if (Perk1 == 'DangerClose') {
_root.DangerCloseButton._alpha = 100;
Perk1Light._x = 738;
}
if (Perk1 == 'Hardline') {
_root.HardlineButton._alpha = 100;
Perk1Light._x = 444;
}
if (Perk2 == 'Scavenger') {
_root.ScavengerButton._alpha = 100;
Perk2Light._x = 150;
}
if (Perk2 == 'Marathon') {
_root.MarathonButton._alpha = 100;
Perk2Light._x = 297;
}
if (Perk2 == 'SleightOfHand') {
_root.SleightOfHandButton._alpha = 100;
Perk2Light._x = 444;
}
if (Perk2 == 'Commando') {
_root.CommandoButton._alpha = 100;
Perk2Light._x = 591;
}
if (Perk2 == 'Doctor') {
_root.DoctorButton._alpha = 100;
Perk2Light._x = 738;
}
if (Perk3 == 'Ninja') {
_root.NinjaButton._alpha = 100;
}
if (Perk3 == 'SteadyAim') {
_root.SteadyAimButton._alpha = 100;
Perk3Light._x = 150;
}
if (Perk3 == 'LastStand') {
_root.LastStandButton._alpha = 100;
Perk3Light._x = 297;
}
if (Perk3 == 'Clover') {
_root.CloverButton._alpha = 100;
Perk3Light._x = 444;
}
};
}
button 108 {
on (rollOver) {
Requirements = 'Get promoted to major, you are ' + _root.FaciZombies.data.Rank;
_root.Description.Stat = 6;
}
on (rollOut) {
_root.Description.Stat = 0;
}
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;
}
if (_root.CommandoButton._alpha == 100) {
_root.CommandoButton._alpha = 50;
}
if (_root.DoctorButton._alpha == 100) {
_root.DoctorButton._alpha = 50;
}
}
}
}
// unknown tag 88 length 173
button 113 {
on (rollOver) {
Requirements = 'Run ' + Math.floor(_root.FaciZombies.data.Runned) + ' / 100,000 pixels in total';
_root.Description.Stat = 7;
}
on (rollOut) {
_root.Description.Stat = 0;
}
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;
}
if (_root.CommandoButton._alpha == 100) {
_root.CommandoButton._alpha = 50;
}
if (_root.DoctorButton._alpha == 100) {
_root.DoctorButton._alpha = 50;
}
}
}
}
button 117 {
on (rollOver) {
Requirements = _root.FaciZombies.data.BulletKills + ' / 2000 Kills with bullets';
_root.Description.Stat = 1;
}
on (rollOut) {
_root.Description.Stat = 0;
}
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 121 {
on (rollOver) {
Requirements = 'Run ' + Math.floor(_root.FaciZombies.data.RunnedBack) + ' / 45,000 pixels backwards';
_root.Description.Stat = 2;
}
on (rollOut) {
_root.Description.Stat = 0;
}
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 125 {
on (rollOver) {
Requirements = _root.FaciZombies.data.TotalKills + ' / 750 Kills';
_root.Description.Stat = 3;
}
on (rollOut) {
_root.Description.Stat = 0;
}
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 129 {
on (rollOver) {
Requirements = _root.FaciZombies.data.TotalKills + ' / 250 Kills';
_root.Description.Stat = 4;
}
on (rollOut) {
_root.Description.Stat = 0;
}
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 133 {
on (rollOver) {
Requirements = _root.FaciZombies.data.ExplosiveKills + ' / 250 Kills with explosives';
_root.Description.Stat = 5;
}
on (rollOut) {
_root.Description.Stat = 0;
}
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 137 {
on (rollOver) {
Requirements = 'Reload ' + _root.FaciZombies.data.Reloaded + ' / 25 times';
_root.Description.Stat = 8;
}
on (rollOut) {
_root.Description.Stat = 0;
}
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;
}
if (_root.CommandoButton._alpha == 100) {
_root.CommandoButton._alpha = 50;
}
if (_root.DoctorButton._alpha == 100) {
_root.DoctorButton._alpha = 50;
}
}
}
}
button 141 {
on (rollOver) {
Requirements = _root.FaciZombies.data.WeaponKills[3] + _root.FaciZombies.data.WeaponKills[12] + ' / 250 Kills with Snipers';
_root.Description.Stat = 11;
}
on (rollOut) {
_root.Description.Stat = 0;
}
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;
}
if (_root.CloverButton._alpha == 100) {
_root.CloverButton._alpha = 50;
}
}
}
}
button 145 {
on (rollOver) {
Requirements = 'Play the game ' + _root.FaciZombies.data.TimesPlayed + ' / 10 times';
_root.Description.Stat = 12;
}
on (rollOut) {
_root.Description.Stat = 0;
}
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;
}
if (_root.CloverButton._alpha == 100) {
_root.CloverButton._alpha = 50;
}
}
}
}
button 151 {
on (rollOver) {
Requirements = 'Get promoted to colonel, you are ' + _root.FaciZombies.data.Rank;
_root.Description.Stat = 9;
}
on (rollOut) {
_root.Description.Stat = 0;
}
on (press) {
if (_root.CommandoButton._alpha == 50 or _root.CommandoButton._alpha == 100) {
_root.FaciZombies.data.Perk2[_root.FaciZombies.data.ClassSlot] = 'Commando';
_root.CommandoButton._alpha = 100;
if (_root.MarathonButton._alpha == 100) {
_root.MarathonButton._alpha = 50;
}
if (_root.SleightOfHandButton._alpha == 100) {
_root.SleightOfHandButton._alpha = 50;
}
if (_root.ScavengerButton._alpha == 100) {
_root.ScavengerButton._alpha = 50;
}
if (_root.DoctorButton._alpha == 100) {
_root.DoctorButton._alpha = 50;
}
}
}
}
button 155 {
on (rollOver) {
Requirements = 'Revive your teammate ' + _root.FaciZombies.data.Revives + ' / 50 times';
_root.Description.Stat = 13;
}
on (rollOut) {
_root.Description.Stat = 0;
}
on (press) {
if (_root.DoctorButton._alpha == 50 or _root.DoctorButton._alpha == 100) {
_root.FaciZombies.data.Perk2[_root.FaciZombies.data.ClassSlot] = 'Doctor';
_root.DoctorButton._alpha = 100;
if (_root.MarathonButton._alpha == 100) {
_root.MarathonButton._alpha = 50;
}
if (_root.SleightOfHandButton._alpha == 100) {
_root.SleightOfHandButton._alpha = 50;
}
if (_root.ScavengerButton._alpha == 100) {
_root.ScavengerButton._alpha = 50;
}
if (_root.CommandoButton._alpha == 100) {
_root.CommandoButton._alpha = 50;
}
}
}
}
button 159 {
on (rollOver) {
Requirements = 'Pick up ' + _root.FaciZombies.data.PowerUps + ' / 25 PowerUps ';
_root.Description.Stat = 14;
}
on (rollOut) {
_root.Description.Stat = 0;
}
on (press) {
if (_root.CloverButton._alpha == 50 or _root.Clover._alpha == 100) {
_root.FaciZombies.data.Perk3[_root.FaciZombies.data.ClassSlot] = 'Clover';
_root.CloverButton._alpha = 100;
if (_root.SteadyAimButton._alpha == 100) {
_root.SteadyAimButton._alpha = 50;
}
if (_root.LastStandButton._alpha == 100) {
_root.LastStandButton._alpha = 50;
}
if (_root.NinjaButton._alpha == 100) {
_root.NinjaButton._alpha = 50;
}
}
}
}
movieClip 164 {
}
button 167 {
on (release) {
gotoAndStop(_root.MenuFrame);
}
on (rollOver) {
_root.soundFX.attachSound('bop.mp3');
_root.soundFX.start();
}
}
movieClip 169 {
}
instance of movieClip 169 {
onClipEvent (load) {
if (_root.FaciZombies.data.BulletKills >= 2000) {
_visible = false;
_y = -200;
}
}
}
instance of movieClip 169 {
onClipEvent (load) {
if (_root.FaciZombies.data.RunnedBack >= 45000) {
_visible = false;
_y = -200;
}
}
}
instance of movieClip 169 {
onClipEvent (load) {
if (_root.FaciZombies.data.TotalKills >= 750) {
_visible = false;
_y = -200;
}
}
}
instance of movieClip 169 {
onClipEvent (load) {
if (_root.FaciZombies.data.TotalKills >= 250) {
_visible = false;
_y = -200;
}
}
}
instance of movieClip 169 {
onClipEvent (load) {
if (_root.FaciZombies.data.ExplosiveKills >= 250) {
_visible = false;
_y = -200;
}
}
}
instance of movieClip 169 {
onClipEvent (load) {
if (_root.FaciZombies.data.TotalScore >= 50000) {
_visible = false;
_y = -200;
}
}
}
instance of movieClip 169 {
onClipEvent (load) {
if (_root.FaciZombies.data.Runned >= 100000) {
_visible = false;
_y = -200;
}
}
}
instance of movieClip 169 {
onClipEvent (load) {
if (_root.FaciZombies.data.Reloaded >= 25) {
_visible = false;
_y = -200;
}
}
}
instance of movieClip 169 {
onClipEvent (load) {
if (_root.FaciZombies.data.TotalScore >= 100000) {
_visible = false;
_y = -200;
}
}
}
instance of movieClip 169 {
onClipEvent (load) {
if (_root.FaciZombies.data.Revives >= 50) {
_visible = false;
_y = -200;
}
}
}
instance of movieClip 169 {
onClipEvent (load) {
if (_root.FaciZombies.data.WeaponKills[3] + _root.FaciZombies.data.WeaponKills[12] >= 250) {
_visible = false;
_y = -200;
}
}
}
instance of movieClip 169 {
onClipEvent (load) {
if (_root.FaciZombies.data.TimesPlayed >= 10) {
_visible = false;
_y = -200;
}
}
}
instance of movieClip 169 {
onClipEvent (load) {
if (_root.FaciZombies.data.PowerUps >= 25) {
_visible = false;
_y = -200;
}
}
}
// unknown tag 88 length 42
movieClip 173 {
}
instance Description of movieClip 173 {
onClipEvent (load) {
Stat = 0;
}
onClipEvent (enterFrame) {
this._x = _root._xmouse + 10;
if (this._x > 841.85) {
this._x = _root._xmouse - 10 - this._width;
}
this._y = _root._ymouse + 10;
if (Stat == 0) {
_visible = false;
} else {
_visible = true;
}
if (Stat == 1) {
StatText = 'Gives your bullets more penetration.';
}
if (Stat == 2) {
StatText = 'Makes you walk faster backward.';
}
if (Stat == 3) {
StatText = 'Makes you recover faster.';
}
if (Stat == 4) {
StatText = 'Gives you more experience in the selected talent.';
}
if (Stat == 5) {
StatText = 'Makes you deal more damage with explosives and flames.';
}
if (Stat == 6) {
StatText = 'Lets you carry more magazines.';
}
if (Stat == 7) {
StatText = 'Makes you run faster forward.';
}
if (Stat == 8) {
StatText = 'Makes you reload faster.';
}
if (Stat == 9) {
StatText = 'Makes you able to command your partner, without paying energy.If you set the rallypoint to you, the partner will keep following you.';
}
if (Stat == 10) {
StatText = 'Makes your bullet hit the ghosts harder';
}
if (Stat == 11) {
StatText = 'Reduces your weapon spread.';
}
if (Stat == 12) {
StatText = 'Makes you hit harder with the combat knife';
}
if (Stat == 13) {
StatText = 'Makes you revive your teammate faster.';
}
if (Stat == 14) {
StatText = 'Increases the PowerUp drop rate to 5%.';
}
}
}
frame 5 {
this.onMouseUp = function () {
_root.isMouseDown = false;
};
this.onMouseDown = function () {
_root.isMouseDown = true;
};
Volume = _root.FaciZombies.data.SongVolume;
Playing = false;
_root._y = 0;
_root.Overlay._y = 0;
_root.Background._y = 0;
_root.FaciZombies.data.GameVersion = _root.Version;
if (_root.Debug == undefined) {
_root.Debug = false;
}
if (_root.FaciZombies.data.PackAPunched == undefined) {
_root.FaciZombies.data.PackAPunched = [false, false];
}
if (_root.FaciZombies.data.PackAPunchReady == undefined) {
_root.FaciZombies.data.PackAPunchReady = false;
}
_root.DamageUpgrades = [0, 1, 0, 3, 2, 0, 2, 3, 0, 0, 1, 10, 0, 0, 2, 0, 0, 5, 5, 2, 1, 2, 3, 0];
_root.PenetrationUpgrades = [0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 3, 0];
_root.MagUpgrades = [0, 1, 0, 2, 1, 0, 1, 10, 0, 0, 1, 1, 1, 1, 0, 0, 6, 1, 0, 0, 0, 10, 1, 0];
_root.AmmoUpgrades = [0, 0, 7, 0, 0, 15, 5, 0, 0, 100, 0, 1, 3, 10, 0, 0, 0, 0, 0, 0, 10, 0, 0, 10];
_root.SpreadUpgrades = [0, 0.3, 0.75, 0, 1, 0.2, 0, 0.5, 0, 3, 0, 0, 0, 1, 1.5, 0, 1, 1, 0, 0.5, 0, 0, 0, 1];
_root.DelayUpgrades = [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0.3333333333333333, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.RangeUpgrades = [0, 0, 200, 0, 0, 0, 0, 0, 50, 0, 0, 0, 0, 0, 0, 0, 200, 0, 150, 0, 0, 0, 0, 150];
BasicMaxAmmo = [12, 30, 30, 5, 200, 100, 20, 2, 8, 499, 50, 1, 10, 100, 30, 100, 6, 12, 12, 30, 20, 6, 5, 30];
BasicMaxMags = [0, 5, 6, 10, 1, 2, 5, 40, 10, 0, 5, 5, 5, 2, 5, 2, 12, 2, 3, 5, 5, 50, 6, 5];
BasicDamage = [20, 7, 6, 20, 2, 15, 5, 15, 18, 20, 2, 20, 20, 1, 10, 10, 20, 20, 20, 10, 5, 20, 20, 5];
BasicPenetrating = [2, 1, 2, 3, 2, 1, 3, 1, 1, 2, 1, 1, 4, 250, 1, 2, 2, 4, 3, 2, 1, 1, 20, 2];
BasicLoadStyle = [3, 1, 1, 2, 1, 1, 3, 3, 4, 1, 1, 3, 3, 5, 1, 5, 3, 3, 3, 1, 1, 6, 1, 1];
BasicReloadStyle = [1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1];
BasicRange = [1000, 600, 600, 2500, 600, 1500, 1000, 700, 200, 2500, 600, 400, 2500, 100, 750, 2500, 700, 1000, 850, 1000, 500, 400, 1000, 700];
BasicWeaponSpread = [0, 3, 7, 1, 10, 2, 1, 12, 15, 20, 3, 1, 1, 5, 13, 2, 4, 8, 1, 2, 3, 12, 2, 3];
BasicAmmoType = [1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 3, 1, 4, 1, 1, 1, 6, 1, 1, 1, 2, 10, 1];
BasicSpeed = [1, 1, 1, 1, 1, 2, 1, 1, 4, 1, 1, 20, 2, 1, 2, 1, 2, 1, 1, 2, 1, 1, 3, 1];
BasicWeaponType = [0, 1, 2, 3, 4, 4, 2, 5, 5, 9, 1, 6, 3, 7, 2, 4, 1, 1, 1, 2, 1, 5, 3, 2];
BasicMobility = [1, 1, 0.9, 0.8, 0.7, 0.7, 0.9, 0.9, 1, 0.5, 1, 0.5, 0.8, 0.7, 0.9, 0, 1, 1, 1, 1, 1, 0.9, 0.8, 1];
BasicSlot = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0];
BasicWeaponNames = ['Desert Eagle', 'H&K UMP 45', 'Colt M4A1 Carbine', 'Intervention M200', 'RPD', 'H&K MG4', 'FN FAL', 'Beretta DT10', 'Auto-Assault 12', 'GAU17', 'P90', 'M136 AT4', 'Barrett 50 cal', 'Flame Thrower', 'AK 47', 'Mounted H&K MG4', 'Colt 45 Cal.', 'Raygun', 'Beretta M92F', 'H&K G36K', 'H&K MP5K', 'SPAS 12', 'PTRS', 'Steyr AUG'];
if (_root.FaciZombies.data.PersonLook == 4) {
for (temp in BasicMobility) {
BasicMobility[temp] = Math.round(10 * Math.sqrt(BasicMobility[temp])) / 10;
}
}
BasicWeaponSpread[9] += _root.FaciZombies.data.DeathMachine * 15;
BasicDamage[9] += _root.FaciZombies.data.DeathMachine * 20;
BasicPenetrating[9] += _root.FaciZombies.data.DeathMachine;
BasicSpeed[5] -= _root.FaciZombies.data.IronNova;
BasicPenetrating[5] += _root.FaciZombies.data.IronNova;
_root.PAPAmmoType = [0, 0, 0, 5, 0, 0, 0, 6, 3, 0, 8, 4, 5, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.PAPDamage = [0, 10, 5, 30, 10, 50, 10, 0, 0, 50, 0, 0, 50, 2, 0, 0, 30, 10, 50, 10, 20, 30, 30, 10];
_root.PAPSpeed = [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0];
_root.PAPMobility = [0, 0.2, 0.1, 0, -0.1, 0, 0.1, 0, 0, 0, 0, 0, 0, 0, 0.1, 0, 0, 0, 0.2, 0.05, 0, 0, 0];
_root.PAPPenetrating = [0, 2, 3, 0, 7, 10, 5, 0, 0, 10, 0, 0, 10, 0, 0, 0, 5, 20, 12, 4, 5, 9, 30, 3];
_root.PAPRange = [0, 100, 0, 0, 100, 0, 250, 0, 0, 0, -500, 0, 0, 0, 500, 0, 400, 500, 250, 1000, 500, 200, 0, 200];
_root.CalculateAdvancedStats();
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';
}
_root.FaciZombies.data.UnlockedLooks[1] = false;
if (_root.FaciZombies.data.Prestige >= 1) {
_root.FaciZombies.data.UnlockedLooks[1] = true;
}
if (_root.FaciZombies.data.Rank == 'General') {
_root.FaciZombies.data.UnlockedLooks[2] = true;
}
if (_root.FaciZombies.data.Steroides >= 100 and _root.FaciZombies.data.Prestige >= 3) {
_root.FaciZombies.data.Achievements[9] = 1;
}
if (_root.FaciZombies.data.GameSaved == undefined or _root.FaciZombies.data.SaveScore == NaN or _root.FaciZombies.data.SaveScore == undefined) {
for (temp in _root.FaciZombies.data.Alive) {
_root.FaciZombies.data.Alive[temp] = false;
}
_root.FaciZombies.data.LevelKills = 0;
_root.FaciZombies.data.P90Possible = true;
_root.FaciZombies.data.DAMUpgrade = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.FaciZombies.data.PENUpgrade = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.FaciZombies.data.RANUpgrade = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.FaciZombies.data.DELUpgrade = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.FaciZombies.data.MAGUpgrade = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.FaciZombies.data.AMMUpgrade = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.FaciZombies.data.SPRUpgrade = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.FaciZombies.data.PackAPunched = [false, false];
_root.FaciZombies.data.PackAPunchReady = false;
_root.FaciZombies.data.CampaignLevel = 1 + 3 * (_root.FaciZombies.data.Chapter - 1);
_root.FaciZombies.data.PartnerX = 330;
_root.FaciZombies.data.PartnerY = 700;
_root.FaciZombies.data.PartnerHP = 99;
_root.FaciZombies.data.PartnerLastStand = false;
_root.FaciZombies.data.PlayerLastStand = false;
_root.FaciZombies.data.RemovedWalls = 0;
_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 = 500;
_root.FaciZombies.data.Saveep = 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;
switch (_root.FaciZombies.data.PersonLook) {
case 1:
_root.FaciZombies.data.SaveWeapon = 2;
_root.FaciZombies.data.SaveWeapons = [2, 18, 15];
_root.FaciZombies.data.SaveMags = [10, 2, 0];
_root.FaciZombies.data.SaveAmmo = [30, 6, 0];
break;
case 2:
_root.FaciZombies.data.SaveWeapon = 14;
_root.FaciZombies.data.SaveWeapons = [14, 16, 15];
_root.FaciZombies.data.SaveMags = [10, 20, 0];
_root.FaciZombies.data.SaveAmmo = [30, 6, 0];
break;
case 3:
_root.FaciZombies.data.SaveWeapon = 10;
_root.FaciZombies.data.SaveWeapons = [10, 16, 15];
_root.FaciZombies.data.SaveMags = [20, 20, 0];
_root.FaciZombies.data.SaveAmmo = [50, 6, 0];
if (_root.FaciZombies.data.Attachments[10] == 4) {
_root.FaciZombies.data.SaveAmmo = [100, 6, 0];
}
break;
case 4:
_root.FaciZombies.data.SaveWeapon = 5;
_root.FaciZombies.data.SaveWeapons = [5, 16, 15];
_root.FaciZombies.data.SaveMags = [3, 20, 0];
_root.FaciZombies.data.SaveAmmo = [100, 6, 0];
}
_root.FaciZombies.data.SaveWeaponSlot = 0;
_root.FaciZombies.data.SaveRifleGrenades = 0;
_root.FaciZombies.data.NewMap = true;
_root.FaciZombies.data.SaveScore = 100 * Math.pow(4, _root.FaciZombies.data.Bling);
_root.FaciZombies.data.SaveLevel = 1;
_root.FaciZombies.data.SaveKills = 0;
}
if (SoundPlaying != 'BlackOps') {
stopAllSounds();
BackgroundSong.loadSound('http://eivind.netau.net/Black%20Ops.mp3', true);
BackgroundSong.start(0, 999);
SoundPlaying = 'BlackOps';
BackgroundSong.setVolume(_root.FaciZombies.data.SongVolume);
}
this.onEnterFrame = function () {
kongregate.services.connect();
if (_root.FaciZombies.data.HighestKills > 0) {
_root.kongregateScores.submit(kills);
_root.kongregateStats.submit('plays', _root.FaciZombies.data.TimesPlayed);
_root.kongregateStats.submit('kills', _root.FaciZombies.data.HighestKills);
_root.kongregateStats.submit('level', _root.FaciZombies.data.Level);
_root.kongregateStats.submit('totalscore', _root.FaciZombies.data.TotalScore);
_root.kongregateStats.submit('playtime', _root.FaciZombies.data.MinutesPlayed);
}
if (_root.FaciZombies.data.Prestige > 0) {
_root.kongregateStats.submit('prestige', _root.FaciZombies.data.Prestige);
}
if (_root.FaciZombies.data.Like > 0) {
_root.kongregateStats.submit('fan', _root.FaciZombies.data.Like);
}
_root.kongregateStats.submit('badge1', _root.FaciZombies.data.Achievements[1]);
_root.kongregateStats.submit('badge2', _root.FaciZombies.data.Achievements[4]);
_root.kongregateStats.submit('badge3', _root.FaciZombies.data.Achievements[6]);
if (_root.FaciZombies.data.Achievements[8] == 1 and _root.FaciZombies.data.Level >= 12) {
_root.kongregateStats.submit('badge4', _root.FaciZombies.data.Achievements[8]);
}
};
}
button 176 {
on (press) {
getURL('http://www.facebook.com/pages/Lead-for-Dead/184847964873481?ref=ts', '_blank');
_root.FaciZombies.data.Like = 1;
}
}
button 180 {
on (release) {
_root.gotoAndStop(32);
}
on (rollOver) {
_root.soundFX.attachSound('bop.mp3');
_root.soundFX.start();
}
}
button 183 {
on (release) {
_root.gotoAndStop(_root.AttachmentFrame);
}
on (rollOver) {
_root.soundFX.attachSound('bop.mp3');
_root.soundFX.start();
}
}
button 186 {
on (release) {
gotoAndStop(2);
}
on (rollOver) {
_root.soundFX.attachSound('bop.mp3');
_root.soundFX.start();
}
}
button 189 {
on (release) {
gotoAndStop(3);
}
on (rollOver) {
_root.soundFX.attachSound('bop.mp3');
_root.soundFX.start();
}
}
button 191 {
on (release) {
if (_root.FaciZombies.data.NewMap) {
_root.gotoAndStop(_root.SelectMapFrame);
} else {
_root.gotoAndStop(_root.GameFrame);
}
}
on (rollOver) {
_root.soundFX.attachSound('bop.mp3');
_root.soundFX.start();
}
}
button 193 {
on (release) {
gotoAndStop(2);
}
on (rollOver) {
_root.soundFX.attachSound('bop.mp3');
_root.soundFX.start();
}
}
button 196 {
on (release) {
_root.gotoAndStop(_root.SelectClassFrame);
}
on (rollOver) {
_root.soundFX.attachSound('bop.mp3');
_root.soundFX.start();
}
}
button 198 {
on (release) {
_root.gotoAndStop(_root.PerkFrame);
}
on (rollOver) {
_root.soundFX.attachSound('bop.mp3');
_root.soundFX.start();
}
}
button 200 {
on (release) {
_root.gotoAndStop(_root.UpgradesFrame);
}
on (rollOver) {
_root.soundFX.attachSound('bop.mp3');
_root.soundFX.start();
}
}
button 202 {
on (release) {
_root.gotoAndStop(_root.SettingsFrame);
}
on (rollOver) {
_root.soundFX.attachSound('bop.mp3');
_root.soundFX.start();
}
}
button 203 {
on (rollOver) {
_root.soundFX.attachSound('bop.mp3');
_root.soundFX.start();
}
}
button 205 {
on (release) {
_root.gotoAndStop(_root.HelpFrame);
}
on (rollOver) {
_root.soundFX.attachSound('bop.mp3');
_root.soundFX.start();
}
}
button 207 {
on (release) {
_root.gotoAndStop(_root.StatFrame);
}
on (rollOver) {
_root.soundFX.attachSound('bop.mp3');
_root.soundFX.start();
}
}
button 209 {
on (release) {
_root.gotoAndStop(_root.AchievementFrame);
}
on (rollOver) {
_root.soundFX.attachSound('bop.mp3');
_root.soundFX.start();
}
}
button 211 {
on (release) {
_root.gotoAndStop(_root.CreditsFrame);
}
on (rollOver) {
_root.soundFX.attachSound('bop.mp3');
_root.soundFX.start();
}
}
button 213 {
on (release) {
getURL('http://www.kongregate.com/forums/1-kongregate/topics/158740-lead-for-dead-call-of-the-dead', '_blank');
}
on (rollOver) {
_root.soundFX.attachSound('bop.mp3');
_root.soundFX.start();
}
}
movieClip 214 {
}
instance of movieClip 214 {
onClipEvent (load) {
gotoAndStop(1);
}
}
button 217 {
on (press) {
getURL('http://www.kongregate.com/accounts/ehaugw', '_blank');
}
}
button 220 {
on (press) {
getURL('http://arch-angel.newgrounds.com/', '_blank');
}
}
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.barrett = 'Barrett 50 Cal: ' + _root.FaciZombies.data.WeaponKills[12];
_root.flamethrower = 'Flamethrower: ' + _root.FaciZombies.data.WeaponKills[13];
_root.gau = 'GAU 17: ' + _root.FaciZombies.data.WeaponKills[9];
_root.timesplayed = 'Times played: ' + _root.FaciZombies.data.TimesPlayed;
_root.gold = 'Gold: ' + _root.FaciZombies.data.Gold;
_root.revives = 'Revives: ' + _root.FaciZombies.data.Revives;
_root.at4 = 'AT4: ' + _root.FaciZombies.data.WeaponKills[11];
_root.frag = 'Frag Grenade: ' + _root.FaciZombies.data.EquipmentKills[0];
_root.pulse = 'Anti Ghost Pulse: ' + _root.FaciZombies.data.EquipmentKills[1];
_root.claymore = 'Claymore: ' + _root.FaciZombies.data.EquipmentKills[10];
_root.rcxd = 'RCXD: ' + _root.FaciZombies.data.EquipmentKills[11];
_root.molotov = 'Molotov: ' + _root.FaciZombies.data.EquipmentKills[2];
_root.prestige = 'Prestige: ' + _root.FaciZombies.data.Prestige;
_root.minute = 'Play time: ' + Math.floor(_root.FaciZombies.data.MinutesPlayed + 1.0e-005) + ' minutes';
_root.steroides = 'Steroides taken: ' + _root.FaciZombies.data.Steroides;
}
movieClip 221 {
}
button 240 {
on (press) {
if (_root.FaciZombies.data.TotalScore >= 1000000) {
_root.FaciZombies.data.PrestigeExperience += _root.FaciZombies.data.Experience;
_root.FaciZombies.data.PrestigeGold += _root.FaciZombies.data.Gold;
_root.FaciZombies.data.PresgigeRunned += _root.FaciZombies.data.Runned;
_root.FaciZombies.data.PrestigeRunnedBack += _root.FaciZombies.data.RunnedBack;
_root.FaciZombies.data.PrestigeReloaded += _root.FaciZombies.data.Reloaded;
_root.FaciZombies.data.PrestigeBulletKills += _root.FaciZombies.data.BulletKills;
_root.FaciZombies.data.PrestigeRevives += _root.FaciZombies.data.Revives;
_root.FaciZombies.data.PrestigeTotalScore += _root.FaciZombies.data.TotalScore;
_root.FaciZombies.data.PrestigeExplosiveKills += _root.FaciZombies.data.ExplosiveKills;
_root.FaciZombies.data.PrestigeMultiKills += _root.FaciZombies.data.MultiKills;
_root.FaciZombies.data.PrestigeTotalKills += _root.FaciZombies.data.TotalKills;
_root.FaciZombies.data.PrestigeWeaponKills += _root.FaciZombies.data.WeaponKills;
if (_root.FaciZombies.data.PrestigeHighestKills < _root.FaciZombies.data.HighestKills) {
_root.FaciZombies.data.HighestKills = 0;
_root.FaciZombies.data.PrestigeHighestKills = 0;
}
++_root.FaciZombies.data.Prestige;
_root.FaciZombies.data.UnlockedWeapons = [true, true, true, true, true, false, false, true, false, false, true, false, false, false, false, false, false, false, false, false, false, false, false, false];
_root.FaciZombies.data.EquipmentKills = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.FaciZombies.data.Grenade = 0;
_root.FaciZombies.data.SpecialGrenade = 0;
_root.FaciZombies.data.Flamethrower = 1;
_root.FaciZombies.data.GhostBuster = 1;
_root.FaciZombies.data.Saveep = 100;
_root.FaciZombies.data.PlayerClass = 1;
_root.FaciZombies.data.IronNova = 0;
_root.FaciZombies.data.DeathMachine = 0;
_root.FaciZombies.data.Bling = 1;
_root.FaciZombies.data.ArmUp = 1;
_root.FaciZombies.data.PartnerX = 300;
_root.FaciZombies.data.PartnerY = 690;
_root.FaciZombies.data.Attachments = [2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.FaciZombies.data.Charm = 1;
_root.FaciZombies.data.Chest = 1;
_root.FaciZombies.data.Exp = 0;
_root.FaciZombies.data.PlayerClasss = 0;
_root.FaciZombies.data.Experience = [0, 0, 0, 0, 0, 0];
_root.FaciZombies.data.Barricades = 1;
_root.FaciZombies.data.Gold = 0;
_root.FaciZombies.data.ClassSlot = 0;
_root.FaciZombies.data.Perk1 = ['none', 'none', 'none'];
_root.FaciZombies.data.Perk2 = ['none', 'none', 'none'];
_root.FaciZombies.data.Perk3 = ['none', 'none', 'none'];
_root.FaciZombies.data.Runned = 0;
_root.FaciZombies.data.RunnedBack = 0;
_root.FaciZombies.data.Reloaded = 0;
_root.FaciZombies.data.BulletKills = 0;
_root.FaciZombies.data.Level = 1;
_root.FaciZombies.data.Revives = 0;
_root.FaciZombies.data.BarricaddeUpgrade = 0;
_root.FaciZombies.data.CrateUpgrade = 0;
_root.FaciZombies.data.TotalScore = 0;
_root.FaciZombies.data.ExplosiveKills = 0;
_root.FaciZombies.data.MultiKills = 0;
_root.FaciZombies.data.Rank = 'Private';
_root.FaciZombies.data.TotalKills = 0;
_root.FaciZombies.data.Map = 'Estate';
_root.FaciZombies.data.WeaponKills = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.FaciZombies.data.placement = 576.15;
_root.FaciZombies.data.HighestKills = 0;
_root.FaciZombies.data.CampaignLevel = 1;
_root.FaciZombies.data.Chapter = 1;
_root.FaciZombies.data.TalentLevel = 0;
_root.FaciZombies.data.TalentPoints = 0;
_root.gotoAndStop(1);
_root.FaciZombies.data.GameSaved = undefined;
}
}
}
button 244 {
on (release) {
gotoAndStop(_root.MenuFrame);
}
on (rollOver) {
_root.soundFX.attachSound('bop.mp3');
_root.soundFX.start();
}
}
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.armupprice = 'Price: ' + 25000 * _root.FaciZombies.data.ArmUp;
_root.blingprice = 'Price: ' + 25000 * _root.FaciZombies.data.Bling;
_root.radarprice = 'Price: ' + 50000 * _root.FaciZombies.data.Radar;
_root.bustprice = 'Price: ' + Math.round(10000 * Math.pow(_root.FaciZombies.data.GhostBuster, 1.5));
_root.pyreprice = 'Price: ' + 10000 * _root.FaciZombies.data.Flamethrower;
if (_root.FaciZombies.data.Flamethrower > 5) {
_root.pyreprice = 'Price: ' + 25000 * _root.FaciZombies.data.Flamethrower;
}
if (_root.FaciZombies.data.Flamethrower == 8) {
_root.pyreprice = 'Maxed out';
}
if (_root.FaciZombies.data.GhostBuster == 5) {
_root.bustprice = 'Maxed out';
}
if (_root.FaciZombies.data.DeathMachine == 1) {
_root.deathmachineprice = 'Maxed out';
}
if (_root.FaciZombies.data.IronNova == 1) {
_root.ironnovaprice = 'Maxed out';
}
if (_root.FaciZombies.data.Bling == 5) {
_root.blingprice = 'Maxed out';
}
if (_root.FaciZombies.data.Radar == 3) {
_root.radarprice = 'Maxed out';
}
if (_root.FaciZombies.data.ArmUp == 4) {
_root.armupprice = 'Maxed out';
}
if (_root.FaciZombies.data.Charm == 2) {
_root.charmprice = 'Maxed out';
}
_root.displaygold = 'Gold: ' + _root.FaciZombies.data.Gold;
}
button 249 {
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 255 {
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 260 {
on (press) {
if (_root.FaciZombies.data.Gold >= _root.FaciZombies.data.Charm * 17500 and _root.FaciZombies.data.Charm < 2) {
_root.FaciZombies.data.Gold -= _root.FaciZombies.data.Charm * 17500;
_root.FaciZombies.data.Charm += 1;
_root.charmprice = 'Price: ' + 17500 * _root.FaciZombies.data.Charm;
if (_root.FaciZombies.data.Charm == 2) {
_root.charmprice = 'Maxed out';
}
_root.displaygold = 'Gold: ' + _root.FaciZombies.data.Gold;
}
}
}
button 265 {
on (press) {
if (_root.FaciZombies.data.Gold >= _root.FaciZombies.data.ArmUp * 25000 and _root.FaciZombies.data.ArmUp < 4) {
_root.FaciZombies.data.Gold -= _root.FaciZombies.data.ArmUp * 25000;
_root.FaciZombies.data.ArmUp += 1;
_root.armupprice = 'Price: ' + 25000 * _root.FaciZombies.data.ArmUp;
if (_root.FaciZombies.data.ArmUp == 4) {
_root.armupprice = 'Maxed out';
}
_root.displaygold = 'Gold: ' + _root.FaciZombies.data.Gold;
}
}
}
button 270 {
on (press) {
if (_root.FaciZombies.data.Gold >= _root.FaciZombies.data.Bling * 25000 and _root.FaciZombies.data.Bling < 5) {
_root.FaciZombies.data.Gold -= _root.FaciZombies.data.Bling * 25000;
_root.FaciZombies.data.Bling += 1;
_root.blingprice = 'Price: ' + 25000 * _root.FaciZombies.data.Bling;
if (_root.FaciZombies.data.Bling == 5) {
_root.blingprice = 'Maxed out';
}
_root.displaygold = 'Gold: ' + _root.FaciZombies.data.Gold;
}
}
}
button 275 {
on (press) {
if (_root.FaciZombies.data.Gold >= 1000000 and _root.FaciZombies.data.DeathMachine == 0) {
_root.FaciZombies.data.Gold -= 1000000;
_root.FaciZombies.data.DeathMachine = 1;
_root.deathmachineprice = 'Maxed out!';
_root.displaygold = 'Gold: ' + _root.FaciZombies.data.Gold;
}
}
}
button 280 {
on (press) {
if (_root.FaciZombies.data.Gold >= 500000 and _root.FaciZombies.data.IronNova == 0) {
_root.FaciZombies.data.Gold -= 500000;
_root.FaciZombies.data.IronNova = 1;
_root.ironnovaprice = 'Maxed out!';
_root.displaygold = 'Gold: ' + _root.FaciZombies.data.Gold;
}
}
}
button 285 {
on (press) {
if (_root.FaciZombies.data.Gold >= Math.round(10000 * Math.pow(_root.FaciZombies.data.GhostBuster, 1.5)) and _root.FaciZombies.data.GhostBuster < 5) {
_root.FaciZombies.data.Gold -= Math.round(10000 * Math.pow(_root.FaciZombies.data.GhostBuster, 1.5));
_root.FaciZombies.data.GhostBuster += 1;
_root.bustprice = 'Price: ' + Math.round(10000 * Math.pow(_root.FaciZombies.data.GhostBuster, 1.5));
if (_root.FaciZombies.data.GhostBuster == 5) {
_root.bustprice = 'Maxed out';
}
_root.displaygold = 'Gold: ' + _root.FaciZombies.data.Gold;
}
}
}
button 290 {
on (press) {
if (_root.FaciZombies.data.Gold >= _root.FaciZombies.data.Flamethrower * 10000 and _root.FaciZombies.data.Flamethrower <= 5 or _root.FaciZombies.data.Gold >= _root.FaciZombies.data.Flamethrower * 25000 and _root.FaciZombies.data.Flamethrower < 8) {
_root.FaciZombies.data.Gold -= _root.FaciZombies.data.Flamethrower * 10000;
_root.FaciZombies.data.Flamethrower += 1;
if (_root.FaciZombies.data.Flamethrower > 5) {
_root.pyreprice = 'Price: ' + 25000 * _root.FaciZombies.data.Flamethrower;
} else {
_root.pyreprice = 'Price: ' + 10000 * _root.FaciZombies.data.Flamethrower;
}
if (_root.FaciZombies.data.Flamethrower == 8) {
_root.pyreprice = 'Maxed out';
}
_root.displaygold = 'Gold: ' + _root.FaciZombies.data.Gold;
}
}
}
movieClip 296 {
}
button 297 {
on (press) {
if (_root.FaciZombies.data.Gold >= _root.FaciZombies.data.Radar * 50000 and _root.FaciZombies.data.Radar < 3) {
_root.FaciZombies.data.Gold -= _root.FaciZombies.data.Radar * 50000;
_root.FaciZombies.data.Radar += 1;
_root.radarprice = 'Price: ' + 50000 * _root.FaciZombies.data.Radar;
if (_root.FaciZombies.data.Radar == 3) {
_root.radarprice = 'Maxed out';
}
_root.displaygold = 'Gold: ' + _root.FaciZombies.data.Gold;
}
}
}
// unknown tag 88 length 46
// unknown tag 88 length 43
button 308 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 22) {
req = 500;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 22) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 22) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 2;
}
}
}
}
button 310 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 22) {
req = 1000;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 22) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 22) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 3;
}
}
}
}
movieClip 311 {
}
button 315 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 23) {
req = 350;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 23) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 23) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 2;
}
}
}
}
button 317 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 23) {
req = 750;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 23) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 23) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 4;
}
}
}
}
movieClip 318 {
}
button 323 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 21) {
req = 500;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 21) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 21) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 11;
}
}
}
}
movieClip 324 {
}
button 328 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 19) {
req = 350;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 19) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 19) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 2;
}
}
}
}
button 329 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 19) {
req = 750;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 19) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 19) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 3;
}
}
}
}
button 331 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 19) {
req = 1000;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 19) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 19) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 5;
}
}
}
}
movieClip 332 {
}
movieClip 336 {
}
button 339 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 14) {
req = 250;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 14) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 14) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 2;
}
}
}
}
button 341 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 14) {
req = 50;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 14) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 14) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 1;
}
}
}
}
button 342 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 14) {
req = 125;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 14) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 14) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 5;
}
}
}
}
movieClip 343 {
}
movieClip 346 {
}
movieClip 350 {
}
button 353 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 11) {
req = 50;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 11) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 11) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 1;
}
}
}
}
movieClip 355 {
}
button 358 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 9) {
req = 250;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 9) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 9) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 1;
}
}
}
}
button 360 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 9) {
req = 1000;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 9) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 9) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 7;
}
}
}
}
movieClip 362 {
}
movieClip 365 {
}
button 369 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 8) {
req = 50;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 8) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 8) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 1;
}
}
}
}
button 370 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 8) {
req = 250;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 8) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 8) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 4;
}
}
}
}
button 371 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 8) {
req = 1000;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 8) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 8) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 11;
}
}
}
}
movieClip 372 {
}
button 376 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 7) {
req = 50;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 7) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 7) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 1;
}
}
}
}
button 377 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 7) {
req = 500;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 7) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 7) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 5;
}
}
}
}
button 378 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 7) {
req = 1000;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 7) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 7) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 11;
}
}
}
}
movieClip 379 {
}
movieClip 382 {
}
button 386 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 5) {
req = 500;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 5) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 5) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 2;
}
}
}
}
button 387 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 5) {
req = 150;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 5) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 5) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 1;
}
}
}
}
button 388 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 5) {
req = 1000;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 5) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 5) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 3;
}
}
}
}
movieClip 389 {
}
button 393 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 4) {
req = 125;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 4) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 4) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 1;
}
}
}
}
button 394 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 4) {
req = 500;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 4) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 4) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 4;
}
}
}
}
button 395 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 4) {
req = 750;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 4) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 4) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 3;
}
}
}
}
movieClip 396 {
}
movieClip 399 {
}
button 403 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 12) {
req = 250;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 12) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 12) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 2;
}
}
}
}
button 405 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 12) {
req = 125;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 12) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 12) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 6;
}
}
}
}
button 406 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 12) {
req = 500;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 12) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 12) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 3;
}
}
}
}
movieClip 407 {
}
button 411 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 3) {
req = 125;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 3) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 3) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 2;
}
}
}
}
button 412 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 3) {
req = 100;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 3) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 3) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 6;
}
}
}
}
button 413 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 3) {
req = 250;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 3) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 3) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 3;
}
}
}
}
movieClip 414 {
}
movieClip 417 {
}
button 421 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 6) {
req = 100;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 6) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 6) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 6;
}
}
}
}
button 422 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 6) {
req = 500;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 6) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 6) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 5;
}
}
}
}
button 423 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 6) {
req = 375;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 6) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 6) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 3;
}
}
}
}
movieClip 424 {
}
button 428 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 2) {
req = 250;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 2) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 2) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 2;
}
}
}
}
button 429 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 2) {
req = 100;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 2) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 2) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 1;
}
}
}
}
button 430 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 2) {
req = 375;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 2) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 2) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 5;
}
}
}
}
movieClip 431 {
}
movieClip 434 {
}
button 438 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 20) {
req = 250;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 20) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 20) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 1;
}
}
}
}
button 439 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 20) {
req = 500;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 20) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 20) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 2;
}
}
}
}
button 440 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 20) {
req = 1000;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 20) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 20) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 3;
}
}
}
}
movieClip 441 {
}
button 444 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 18) {
req = 250;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 18) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 18) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 2;
}
}
}
}
button 445 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 18) {
req = 500;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 18) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 18) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 3;
}
}
}
}
button 447 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 18) {
req = 1000;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 18) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 18) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 9;
}
}
}
}
movieClip 448 {
}
button 451 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 16) {
req = 100;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 16) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 16) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 2;
}
}
}
}
button 452 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 16) {
req = 125;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 16) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 16) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 3;
}
}
}
}
movieClip 453 {
}
button 457 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 10) {
req = 125;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 10) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 10) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 2;
}
}
}
}
button 458 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 10) {
req = 50;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 10) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 10) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 1;
}
}
}
}
button 459 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 10) {
req = 250;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 10) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 10) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 4;
}
}
}
}
movieClip 460 {
}
button 465 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 1) {
req = 1000;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 1) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 1) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 10;
}
}
}
}
button 466 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 1) {
req = 50;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 1) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 1) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 1;
}
}
}
}
button 467 {
on (rollOver) {
if (_root.AttachmentScreen.Weapon == 1) {
req = 125;
_root.AttachmentScreen.req = req;
}
}
on (rollOut) {
if (_root.AttachmentScreen.Weapon == 1) {
_root.AttachmentScreen.req = 0;
}
}
on (press) {
if (_root.AttachmentScreen.Weapon == 1) {
if (req <= _root.FaciZombies.data.WeaponKills[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] = 4;
}
}
}
}
movieClip 469 {
}
movieClip 488 {
}
movieClip 489 {
}
// unknown tag 88 length 67
movieClip 500 {
frame 15 {
gotoAndStop(_root.MapWeapon);
}
}
movieClip 503 {
}
movieClip 514 {
}
movieClip 519 {
}
movieClip 522 {
frame 1 {
Pos = [0, 0, 1, 0, 2, 0];
gotoAndStop(1);
WeaponSheetType = 1;
}
instance ptrs of movieClip 311 {
onClipEvent (mouseDown) {
if (_root.AttachmentScreen.WeaponSheetType == 3 and this.hitTest(_root._xmouse, _root._ymouse, true) and _root._ymouse < 200 and _root._ymouse > 170) {
_root.AttachmentScreen.Pos = [0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 2, 2, 2];
_root.AttachmentScreen.Weapon = 22;
this.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DispWeapon.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AttachmentText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DamageText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.PenetrationText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DelayText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.MagText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AmmoText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.SpreadText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.RangeText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Unlock.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.HighLight.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.CostText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.GoldText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Req.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
}
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.Attachments[1] == 10) {
SlotType = 'Side Arm';
} else {
SlotType = 'Primary Weapon';
}
}
}
instance aug of movieClip 318 {
onClipEvent (mouseDown) {
if (_root.AttachmentScreen.WeaponSheetType == 2 and this.hitTest(_root._xmouse, _root._ymouse, true) and _root._ymouse < 200 and _root._ymouse > 170) {
_root.AttachmentScreen.Pos = [0, 0, 0, 1, 1, 1, 1, 1, 1, 1];
_root.AttachmentScreen.Weapon = 23;
this.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DispWeapon.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AttachmentText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DamageText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.PenetrationText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DelayText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.MagText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AmmoText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.SpreadText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.RangeText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Unlock.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.HighLight.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.CostText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.GoldText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Req.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
}
}
instance spas of movieClip 324 {
onClipEvent (mouseDown) {
if (_root.AttachmentScreen.WeaponSheetType == 5 and this.hitTest(_root._xmouse, _root._ymouse, true) and _root._ymouse < 200 and _root._ymouse > 170) {
_root.AttachmentScreen.Pos = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.AttachmentScreen.Weapon = 21;
this.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DispWeapon.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AttachmentText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DamageText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.PenetrationText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DelayText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.MagText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AmmoText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.SpreadText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.RangeText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Unlock.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.HighLight.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.CostText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.GoldText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Req.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
}
}
instance g36k of movieClip 332 {
onClipEvent (mouseDown) {
if (_root.AttachmentScreen.WeaponSheetType == 2 and this.hitTest(_root._xmouse, _root._ymouse, true) and _root._ymouse < 200 and _root._ymouse > 170) {
_root.AttachmentScreen.Pos = [0, 0, 0, 1, 0, 2, 0, 0, 0, 0];
_root.AttachmentScreen.Weapon = 19;
this.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DispWeapon.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AttachmentText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DamageText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.PenetrationText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DelayText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.MagText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AmmoText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.SpreadText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.RangeText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Unlock.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.HighLight.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.CostText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.GoldText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Req.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
}
}
instance raygun of movieClip 336 {
onClipEvent (mouseDown) {
if (_root.AttachmentScreen.WeaponSheetType == 6 and this.hitTest(_root._xmouse, _root._ymouse, true) and _root._ymouse < 200 and _root._ymouse > 170) {
_root.AttachmentScreen.Pos = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.AttachmentScreen.Weapon = 17;
this.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DispWeapon.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AttachmentText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DamageText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.PenetrationText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DelayText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.MagText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AmmoText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.SpreadText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.RangeText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Unlock.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.HighLight.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.CostText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.GoldText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Req.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
}
}
instance ak47 of movieClip 343 {
onClipEvent (mouseDown) {
if (_root.AttachmentScreen.WeaponSheetType == 2 and this.hitTest(_root._xmouse, _root._ymouse, true) and _root._ymouse < 200 and _root._ymouse > 170) {
_root.AttachmentScreen.Pos = [0, 0, 1, 0, 0, 2, 0, 0, 0, 0];
_root.AttachmentScreen.Weapon = 14;
this.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DispWeapon.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AttachmentText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DamageText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.PenetrationText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DelayText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.MagText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AmmoText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.SpreadText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.RangeText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Unlock.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.HighLight.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.CostText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.GoldText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Req.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
}
}
instance of movieClip 346 {
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true) and _root._ymouse < 150) {
_root.AttachmentScreen.Pos = [0, 0, 0, 2, 0, 0, 0, 1, 0, 0];
_root.AttachmentScreen.Weapon = 9;
_root.AttachmentScreen.WeaponSheetType = 6;
this.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.raygun.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.flamethrower.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.at4.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.gau.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DispWeapon.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AttachmentText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DamageText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.PenetrationText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DelayText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.MagText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AmmoText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.SpreadText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.RangeText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Unlock.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.HighLight.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.CostText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.GoldText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Req.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
}
}
instance flamethrower of movieClip 350 {
onClipEvent (mouseDown) {
if (_root.AttachmentScreen.WeaponSheetType == 6 and this.hitTest(_root._xmouse, _root._ymouse, true) and _root._ymouse < 200 and _root._ymouse > 170) {
_root.AttachmentScreen.Pos = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.AttachmentScreen.Weapon = 13;
this.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DispWeapon.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AttachmentText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DamageText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.PenetrationText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DelayText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.MagText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AmmoText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.SpreadText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.RangeText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Unlock.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.HighLight.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.CostText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.GoldText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Req.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
}
}
instance at4 of movieClip 355 {
onClipEvent (mouseDown) {
if (_root.AttachmentScreen.WeaponSheetType == 6 and this.hitTest(_root._xmouse, _root._ymouse, true) and _root._ymouse < 200 and _root._ymouse > 170) {
_root.AttachmentScreen.Pos = [0, 0, 1, 2, 0, 0, 0, 0, 0, 0];
_root.AttachmentScreen.Weapon = 11;
this.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DispWeapon.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AttachmentText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DamageText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.PenetrationText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DelayText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.MagText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AmmoText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.SpreadText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.RangeText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Unlock.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.HighLight.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.CostText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.GoldText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Req.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
}
}
instance gau of movieClip 362 {
onClipEvent (mouseDown) {
if (_root.AttachmentScreen.WeaponSheetType == 6 and this.hitTest(_root._xmouse, _root._ymouse, true) and _root._ymouse < 200 and _root._ymouse > 170) {
_root.AttachmentScreen.Pos = [0, 0, 0, 2, 0, 0, 0, 1, 0, 0];
_root.AttachmentScreen.Weapon = 9;
this.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DispWeapon.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AttachmentText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DamageText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.PenetrationText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DelayText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.MagText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AmmoText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.SpreadText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.RangeText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Unlock.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.HighLight.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.CostText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.GoldText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Req.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
}
}
instance of movieClip 365 {
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true) and _root._ymouse < 150) {
_root.AttachmentScreen.Pos = [0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 2];
_root.AttachmentScreen.Weapon = 7;
_root.AttachmentScreen.WeaponSheetType = 5;
this.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.spas.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.aa12.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.dt10.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DispWeapon.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AttachmentText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DamageText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.PenetrationText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DelayText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.MagText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AmmoText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.SpreadText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.RangeText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Unlock.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.HighLight.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.CostText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.GoldText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Req.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
}
}
instance aa12 of movieClip 372 {
onClipEvent (mouseDown) {
if (_root.AttachmentScreen.WeaponSheetType == 5 and this.hitTest(_root._xmouse, _root._ymouse, true) and _root._ymouse < 200 and _root._ymouse > 170) {
_root.AttachmentScreen.Pos = [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 2];
_root.AttachmentScreen.Weapon = 8;
this.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DispWeapon.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AttachmentText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DamageText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.PenetrationText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DelayText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.MagText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AmmoText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.SpreadText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.RangeText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Unlock.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.HighLight.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.CostText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.GoldText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Req.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
}
}
instance dt10 of movieClip 379 {
onClipEvent (mouseDown) {
if (_root.AttachmentScreen.WeaponSheetType == 5 and this.hitTest(_root._xmouse, _root._ymouse, true) and _root._ymouse < 200 and _root._ymouse > 170) {
_root.AttachmentScreen.Pos = [0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 2];
_root.AttachmentScreen.Weapon = 7;
this.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DispWeapon.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AttachmentText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DamageText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.PenetrationText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DelayText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.MagText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AmmoText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.SpreadText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.RangeText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Unlock.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.HighLight.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.CostText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.GoldText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Req.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
}
}
instance of movieClip 382 {
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true) and _root._ymouse < 150) {
_root.AttachmentScreen.Pos = [0, 0, 0, 2, 1, 0, 0, 0, 0, 0];
_root.AttachmentScreen.Weapon = 4;
_root.AttachmentScreen.WeaponSheetType = 4;
this.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.mg4.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.rpd.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DispWeapon.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AttachmentText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DamageText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.PenetrationText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DelayText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.MagText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AmmoText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.SpreadText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.RangeText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Unlock.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.HighLight.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.CostText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.GoldText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Req.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
}
}
instance mg4 of movieClip 389 {
onClipEvent (mouseDown) {
if (_root.AttachmentScreen.WeaponSheetType == 4 and this.hitTest(_root._xmouse, _root._ymouse, true) and _root._ymouse < 200 and _root._ymouse > 170) {
_root.AttachmentScreen.Pos = [0, 0, 1, 2, 0, 0, 0, 0, 0, 0];
_root.AttachmentScreen.Weapon = 5;
this.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DispWeapon.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AttachmentText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DamageText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.PenetrationText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DelayText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.MagText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AmmoText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.SpreadText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.RangeText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Unlock.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.HighLight.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.CostText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.GoldText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Req.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
}
}
instance rpd of movieClip 396 {
onClipEvent (mouseDown) {
if (_root.AttachmentScreen.WeaponSheetType == 4 and this.hitTest(_root._xmouse, _root._ymouse, true) and _root._ymouse < 200 and _root._ymouse > 170) {
_root.AttachmentScreen.Pos = [0, 0, 0, 2, 1, 0, 0, 0, 0, 0];
_root.AttachmentScreen.Weapon = 4;
this.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DispWeapon.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AttachmentText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DamageText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.PenetrationText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DelayText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.MagText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AmmoText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.SpreadText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.RangeText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Unlock.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.HighLight.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.CostText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.GoldText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Req.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
}
}
instance of movieClip 399 {
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true) and _root._ymouse < 150) {
_root.AttachmentScreen.Pos = [0, 0, 1, 2, 0, 0, 0, 0, 0, 0];
_root.AttachmentScreen.Weapon = 3;
_root.AttachmentScreen.WeaponSheetType = 3;
this.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.ptrs.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.cal50.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.m200.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DispWeapon.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AttachmentText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DamageText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.PenetrationText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DelayText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.MagText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AmmoText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.SpreadText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.RangeText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Unlock.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.HighLight.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.CostText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.GoldText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Req.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
}
}
instance cal50 of movieClip 407 {
onClipEvent (mouseDown) {
if (_root.AttachmentScreen.WeaponSheetType == 3 and this.hitTest(_root._xmouse, _root._ymouse, true) and _root._ymouse < 200 and _root._ymouse > 170) {
_root.AttachmentScreen.Pos = [0, 0, 1, 2, 0, 0, 0, 0, 0, 0];
_root.AttachmentScreen.Weapon = 12;
this.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DispWeapon.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AttachmentText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DamageText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.PenetrationText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DelayText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.MagText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AmmoText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.SpreadText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.RangeText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Unlock.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.HighLight.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.CostText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.GoldText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Req.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
}
}
instance m200 of movieClip 414 {
onClipEvent (mouseDown) {
if (_root.AttachmentScreen.WeaponSheetType == 3 and this.hitTest(_root._xmouse, _root._ymouse, true) and _root._ymouse < 200 and _root._ymouse > 170) {
_root.AttachmentScreen.Pos = [0, 0, 1, 2, 0, 0, 0, 0, 0, 0];
_root.AttachmentScreen.Weapon = 3;
this.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DispWeapon.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AttachmentText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DamageText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.PenetrationText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DelayText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.MagText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AmmoText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.SpreadText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.RangeText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Unlock.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.HighLight.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.CostText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.GoldText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Req.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
}
}
instance of movieClip 417 {
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true) and _root._ymouse < 150) {
_root.AttachmentScreen.Pos = [0, 0, 1, 0, 0, 2, 0];
_root.AttachmentScreen.Weapon = 2;
_root.AttachmentScreen.WeaponSheetType = 2;
this.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.aug.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.g36k.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.ak47.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.fal.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.m4.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DispWeapon.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AttachmentText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DamageText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.PenetrationText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DelayText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.MagText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AmmoText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.SpreadText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.RangeText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Unlock.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.HighLight.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.CostText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.GoldText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Req.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
}
}
instance fal of movieClip 424 {
onClipEvent (mouseDown) {
if (_root.AttachmentScreen.WeaponSheetType == 2 and this.hitTest(_root._xmouse, _root._ymouse, true) and _root._ymouse < 200 and _root._ymouse > 170) {
_root.AttachmentScreen.Pos = [0, 0, 0, 2, 0, 1, 0, 0, 0, 0];
_root.AttachmentScreen.Weapon = 6;
this.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DispWeapon.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AttachmentText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DamageText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.PenetrationText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DelayText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.MagText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AmmoText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.SpreadText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.RangeText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Unlock.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.HighLight.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.CostText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.GoldText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Req.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
}
}
instance m4 of movieClip 431 {
onClipEvent (mouseDown) {
if (_root.AttachmentScreen.WeaponSheetType == 2 and this.hitTest(_root._xmouse, _root._ymouse, true) and _root._ymouse < 200 and _root._ymouse > 170) {
_root.AttachmentScreen.Pos = [0, 0, 1, 0, 0, 2, 0];
_root.AttachmentScreen.Weapon = 2;
this.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DispWeapon.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AttachmentText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DamageText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.PenetrationText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DelayText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.MagText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AmmoText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.SpreadText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.RangeText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Unlock.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.HighLight.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.CostText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.GoldText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Req.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
}
}
instance of movieClip 434 {
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true) and _root._ymouse < 150) {
_root.AttachmentScreen.Pos = [0, 0, 1, 0, 2, 0];
_root.AttachmentScreen.Weapon = 1;
_root.AttachmentScreen.WeaponSheetType = 1;
this.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.mp5k.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.m92f.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.colt.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.p90.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.ump.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DispWeapon.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AttachmentText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DamageText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.PenetrationText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DelayText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.MagText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AmmoText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.SpreadText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.RangeText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Unlock.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.HighLight.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.CostText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.GoldText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Req.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
}
}
instance mp5k of movieClip 441 {
onClipEvent (mouseDown) {
if (_root.AttachmentScreen.WeaponSheetType == 1 and this.hitTest(_root._xmouse, _root._ymouse, true) and _root._ymouse < 200 and _root._ymouse > 170) {
_root.AttachmentScreen.Pos = [0, 0, 1, 2, 2, 2, 2, 0, 0, 2, 2, 2];
_root.AttachmentScreen.Weapon = 20;
this.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DispWeapon.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AttachmentText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DamageText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.PenetrationText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DelayText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.MagText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AmmoText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.SpreadText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.RangeText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Unlock.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.HighLight.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.CostText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.GoldText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Req.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
}
}
instance m92f of movieClip 448 {
onClipEvent (mouseDown) {
if (_root.AttachmentScreen.WeaponSheetType == 1 and this.hitTest(_root._xmouse, _root._ymouse, true) and _root._ymouse < 200 and _root._ymouse > 170) {
_root.AttachmentScreen.Pos = [0, 0, 0, 1, 0, 0, 0, 0, 0, 2];
_root.AttachmentScreen.Weapon = 18;
this.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DispWeapon.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AttachmentText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DamageText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.PenetrationText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DelayText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.MagText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AmmoText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.SpreadText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.RangeText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Unlock.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.HighLight.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.CostText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.GoldText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Req.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
}
}
instance colt of movieClip 453 {
onClipEvent (mouseDown) {
if (_root.AttachmentScreen.WeaponSheetType == 1 and this.hitTest(_root._xmouse, _root._ymouse, true) and _root._ymouse < 200 and _root._ymouse > 170) {
_root.AttachmentScreen.Pos = [0, 0, 0, 1, 0, 0, 0, 0, 0, 0];
_root.AttachmentScreen.Weapon = 16;
this.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DispWeapon.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AttachmentText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DamageText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.PenetrationText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DelayText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.MagText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AmmoText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.SpreadText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.RangeText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Unlock.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.HighLight.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.CostText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.GoldText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Req.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
}
}
instance p90 of movieClip 460 {
onClipEvent (mouseDown) {
if (_root.AttachmentScreen.WeaponSheetType == 1 and this.hitTest(_root._xmouse, _root._ymouse, true) and _root._ymouse < 200 and _root._ymouse > 170) {
_root.AttachmentScreen.Pos = [0, 0, 1, 0, 2, 0, 0, 0, 0, 0];
_root.AttachmentScreen.Weapon = 10;
this.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DispWeapon.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AttachmentText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DamageText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.PenetrationText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DelayText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.MagText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AmmoText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.SpreadText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.RangeText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Unlock.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.HighLight.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.CostText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.GoldText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Req.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
}
}
instance ump of movieClip 469 {
onClipEvent (load) {
_root.AttachmentScreen.Pos = [0, 0, 0, 0, 1, 0, 0, 0, 0, 2, 2, 2];
_root.AttachmentScreen.Weapon = 1;
this.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DispWeapon.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AttachmentText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DamageText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.PenetrationText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DelayText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.MagText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AmmoText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.SpreadText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.RangeText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Unlock.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.HighLight.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.CostText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.GoldText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Req.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
onClipEvent (mouseDown) {
if (_root.AttachmentScreen.WeaponSheetType == 1 and this.hitTest(_root._xmouse, _root._ymouse, true) and _root._ymouse < 200 and _root._ymouse > 170) {
_root.AttachmentScreen.Pos = [0, 0, 1, 0, 0, 0, 0, 0, 0, 2, 2, 2];
_root.AttachmentScreen.Weapon = 1;
this.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DispWeapon.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AttachmentText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DamageText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.PenetrationText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.DelayText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.MagText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.AmmoText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.SpreadText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.RangeText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Unlock.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.HighLight.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.CostText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.GoldText.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
_root.AttachmentScreen.Req.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
}
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.Attachments[1] == 10) {
SlotType = 'Side Arm';
} else {
SlotType = 'Primary Weapon';
}
}
}
instance DispWeapon of movieClip 500 {
onClipEvent (enterFrame) {
gotoAndStop(_root.AttachmentScreen.Weapon);
Scale = 165 / _height;
if (475 / _width < Scale) {
Scale = 475 / _width;
}
_height = Math.round(_height * Scale);
_width = Math.round(_width * Scale);
}
}
instance HighLight of movieClip 503 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.Attachments[_root.AttachmentScreen.Weapon] == 0) {
_visible = false;
} else {
_visible = true;
}
}
}
instance Unlock of movieClip 514 {
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, false) and _root.FaciZombies.data.Gold >= _root.AttachmentScreen.Cost and !_root.FaciZombies.data.UnlockedWeapons[_root.AttachmentScreen.Weapon]) {
_root.FaciZombies.data.Gold -= _root.AttachmentScreen.Cost;
_root.FaciZombies.data.UnlockedWeapons[_root.AttachmentScreen.Weapon] = true;
}
}
}
instance Req of movieClip 519 {
onClipEvent (enterFrame) {
_x = _root._xmouse - 820;
_y = _root._ymouse - 270;
Req = _root.AttachmentScreen.req;
current = _root.AttachmentScreen.current;
req = current + ' / ' + Req;
if (Req == 0 or Req == undefined) {
_visible = false;
} else {
_visible = true;
}
}
}
}
instance AttachmentScreen of movieClip 522 {
onClipEvent (load) {
gotoAndStop(1);
Weapon = 1;
}
onClipEvent (enterFrame) {
Cost = [0, 5000, 5000, 1250, 5000, 25000, 2500, 5000, 7500, 25000, 1000, 10000, 5000, 50000, 5000, 0, 500, 50000, 12500, 17500, 10000, 12500, 50000, 12500][Weapon];
if (_root.FaciZombies.data.UnlockedWeapons[Weapon]) {
Cost = 0;
Unlock._visible = false;
CostText._visible = false;
GoldText._visible = false;
} else {
Unlock._visible = true;
CostText._visible = true;
GoldText._visible = true;
}
current = _root.FaciZombies.data.WeaponKills[Weapon];
HighLight._y = Pos[_root.FaciZombies.data.Attachments[Weapon]] * 60;
_root.CalculateAdvancedStats();
damage = 'Damage: ' + _root.AdvancedDamage[Weapon];
penetration = 'Penetration: ' + _root.AdvancedPenetrating[Weapon];
range = 'Range :' + _root.AdvancedRange[Weapon];
spread = 'Spread: ' + _root.AdvancedWeaponSpread[Weapon];
magsize = 'Mag Size: ' + _root.AdvancedMaxAmmo[Weapon];
delay = 'Fire Delay: ' + _root.AdvancedSpeed[Weapon];
mags = 'Max Mags: ' + _root.AdvancedMaxMags[Weapon];
cost = 'Unlock Price: ' + Cost + ' Gold';
gold = 'You got: ' + _root.FaciZombies.data.Gold;
weaponkills = 'Kills: ' + _root.FaciZombies.data.WeaponKills[Weapon];
WeaponKills.swapDepths(_root.AttachmentScreen.getNextHighestDepth());
}
}
button 526 {
on (release) {
gotoAndStop(_root.MenuFrame);
}
on (rollOver) {
_root.soundFX.attachSound('bop.mp3');
_root.soundFX.start();
}
}
// unknown tag 88 length 68
// unknown tag 88 length 63
frame 10 {
PlayerLevel = Math.floor(Math.log(_root.FaciZombies.data.Experience[_root.FaciZombies.data.PlayerClass] + 2.718281828459045));
talentlevel = 'Level: ' + PlayerLevel;
experience = 'Experience: ' + _root.FaciZombies.data.Experience[_root.FaciZombies.data.PlayerClass];
nextlevel = 'Next level: ' + Math.floor(Math.pow(2.718281828459045, PlayerLevel) * 2.718281828459045 - 2.718281828459045 + 0.9999);
}
button 543 {
on (press) {
_root.FaciZombies.data.PlayerClass = 1;
PlayerLevel = Math.floor(Math.log(_root.FaciZombies.data.Experience[_root.FaciZombies.data.PlayerClass] + 2.718281828459045));
talentlevel = 'Level: ' + PlayerLevel;
experience = 'Experience: ' + _root.FaciZombies.data.Experience[_root.FaciZombies.data.PlayerClass];
nextlevel = 'Next level: ' + Math.floor(Math.pow(2.718281828459045, PlayerLevel) * 2.718281828459045 - 2.718281828459045 + 0.9999);
}
}
button 547 {
on (press) {
_root.FaciZombies.data.PlayerClass = 2;
PlayerLevel = Math.floor(Math.log(_root.FaciZombies.data.Experience[_root.FaciZombies.data.PlayerClass] + 2.718281828459045));
talentlevel = 'Level: ' + PlayerLevel;
experience = 'Experience: ' + _root.FaciZombies.data.Experience[_root.FaciZombies.data.PlayerClass];
nextlevel = 'Next level: ' + Math.floor(Math.pow(2.718281828459045, PlayerLevel) * 2.718281828459045 - 2.718281828459045 + 0.9999);
}
}
button 551 {
on (press) {
_root.FaciZombies.data.PlayerClass = 3;
PlayerLevel = Math.floor(Math.log(_root.FaciZombies.data.Experience[_root.FaciZombies.data.PlayerClass] + 2.718281828459045));
talentlevel = 'Level: ' + PlayerLevel;
experience = 'Experience: ' + _root.FaciZombies.data.Experience[_root.FaciZombies.data.PlayerClass];
nextlevel = 'Next level: ' + Math.floor(Math.pow(2.718281828459045, PlayerLevel) * 2.718281828459045 - 2.718281828459045 + 0.9999);
}
}
button 555 {
on (press) {
_root.FaciZombies.data.PlayerClass = 4;
PlayerLevel = Math.floor(Math.log(_root.FaciZombies.data.Experience[_root.FaciZombies.data.PlayerClass] + 2.718281828459045));
talentlevel = 'Level: ' + PlayerLevel;
experience = 'Experience: ' + _root.FaciZombies.data.Experience[_root.FaciZombies.data.PlayerClass];
nextlevel = 'Next level: ' + Math.floor(Math.pow(2.718281828459045, PlayerLevel) * 2.718281828459045 - 2.718281828459045 + 0.9999);
}
}
button 559 {
on (press) {
_root.FaciZombies.data.PlayerClass = 5;
PlayerLevel = Math.floor(Math.log(_root.FaciZombies.data.Experience[_root.FaciZombies.data.PlayerClass] + 2.718281828459045));
talentlevel = 'Level: ' + PlayerLevel;
experience = 'Experience: ' + _root.FaciZombies.data.Experience[_root.FaciZombies.data.PlayerClass];
nextlevel = 'Next level: ' + Math.floor(Math.pow(2.718281828459045, PlayerLevel) * 2.718281828459045 - 2.718281828459045 + 0.9999);
}
}
movieClip 567 {
frame 1 {
stop();
}
}
movieClip 568 {
instance of movieClip 567 {
onClipEvent (enterFrame) {
if (!_root.FaciZombies.data.UnlockedLooks[1]) {
gotoAndStop(2);
}
}
}
}
movieClip 573 {
frame 1 {
stop();
}
}
movieClip 574 {
instance of movieClip 573 {
onClipEvent (enterFrame) {
if (!_root.FaciZombies.data.UnlockedLooks[2]) {
gotoAndStop(2);
}
}
}
}
movieClip 580 {
frame 1 {
stop();
}
}
movieClip 581 {
instance of movieClip 580 {
onClipEvent (enterFrame) {
if (!_root.FaciZombies.data.UnlockedLooks[3]) {
gotoAndStop(2);
}
}
}
}
movieClip 585 {
frame 1 {
stop();
}
}
movieClip 591 {
}
movieClip 593 {
instance of movieClip 585 {
onClipEvent (enterFrame) {
gotoAndStop(_root.FaciZombies.data.PersonLook * 3 - 3 + _root.FaciZombies.data.PersonColor);
}
}
}
instance of movieClip 593 {
onClipEvent (enterFrame) {
if (_root.isMouseDown and this.hitTest(_root._xmouse, _root._ymouse, false)) {
_root.isMouseDown = false;
_root.gotoAndStop(32);
}
}
}
instance Underliner of movieClip 164 {
onClipEvent (enterFrame) {
this._x = 41 + _root.FaciZombies.data.PlayerClass * 142.5 - 70;
}
}
movieClip 616 {
}
instance of movieClip 616 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.Achievements[0] == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 616 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.Achievements[1] == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 616 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.Achievements[2] == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 616 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.Achievements[3] == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 616 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.Achievements[4] == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 616 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.Achievements[5] == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 616 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.Rank == 'General') {
_root.FaciZombies.data.Achievements[6] = 1;
}
if (_root.FaciZombies.data.Achievements[6] == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 616 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.Achievements[8] == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 616 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.Achievements[9] == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
frame 12 {
this.onEnterFrame = function () {
if (_root.FaciZombies.data.Map == 'Campaign') {
_root.Campaign._alpha = 100;
_root.Estate._alpha = 35;
_root.Overgrown._alpha = 35;
_root.Salvage._alpha = 35;
_root.Sandbox._alpha = 35;
}
if (_root.FaciZombies.data.Map == 'Estate') {
_root.Estate._alpha = 100;
_root.Campaign._alpha = 35;
_root.Overgrown._alpha = 35;
_root.Salvage._alpha = 35;
_root.Sandbox._alpha = 35;
}
if (_root.FaciZombies.data.Map == 'Overgrown') {
_root.Campaign._alpha = 35;
_root.Estate._alpha = 35;
_root.Overgrown._alpha = 100;
_root.Salvage._alpha = 35;
_root.Sandbox._alpha = 35;
}
if (_root.FaciZombies.data.Map == 'Salvage') {
_root.Campaign._alpha = 35;
_root.Estate._alpha = 35;
_root.Overgrown._alpha = 35;
_root.Salvage._alpha = 100;
_root.Sandbox._alpha = 35;
}
if (_root.FaciZombies.data.Map == 'Sandbox') {
_root.Campaign._alpha = 35;
_root.Estate._alpha = 35;
_root.Overgrown._alpha = 35;
_root.Salvage._alpha = 35;
_root.Sandbox._alpha = 100;
}
placement = _root._xmouse;
if (placement < 352.1) {
placement = 352.1;
}
if (placement > 576.1) {
placement = 576.1;
}
_root.FaciZombies.data.placement = placement;
};
}
button 631 {
on (press) {
if (_root.FaciZombies.data.NewMap) {
_root.FaciZombies.data.Map = 'Estate';
}
}
}
button 634 {
on (press) {
if (_root.FaciZombies.data.NewMap) {
_root.FaciZombies.data.Map = 'Overgrown';
}
}
}
button 639 {
on (press) {
if (_root.FaciZombies.data.NewMap) {
_root.FaciZombies.data.Map = 'Salvage';
}
}
}
button 644 {
on (press) {
if (_root.FaciZombies.data.NewMap) {
_root.FaciZombies.data.Map = 'Sandbox';
}
}
}
button 647 {
on (release) {
gotoAndStop(_root.GameFrame);
}
on (rollOver) {
_root.soundFX.attachSound('bop.mp3');
_root.soundFX.start();
}
}
frame 13 {
this.onLoad = function () {
if (_root.FaciZombies.data.Quality == 'low') {
_root.QualitySlider._x = 352.1;
}
if (_root.FaciZombies.data.Quality == 'medium') {
_root.QualitySlider._x = 463;
}
if (_root.FaciZombies.data.Quality == 'high') {
_root.QualitySlider._x = 576.15;
}
_root.MusicSlider._x = (_root.FaciZombies.data.SongVolume / 100) * 224 + 352.1;
_root.FXSlider._x = (_root.FaciZombies.data.FXVolume / 100) * 224 + -352.1;
};
this.onEnterFrame = function () {
SoundVolume = Math.round(((placement - 352.1) / 224) * 100);
this.onMouseUp = function () {
MusicJustify = false;
QualityJustify = false;
FXJustify = false;
};
if (MusicJustify) {
placement = _root._xmouse;
if (placement > 576.15) {
placement = 576.15;
}
if (placement < 352.1) {
placement = 352.1;
}
_root.MusicSlider._x = placement;
BackgroundSong.setVolume(SoundVolume);
_root.FaciZombies.data.SongVolume = SoundVolume;
}
if (FXJustify) {
placement = _root._xmouse;
if (placement > 576.15) {
placement = 576.15;
}
if (placement < 352.1) {
placement = 352.1;
}
_root.FXSlider._x = placement;
soundFX.setVolume(SoundVolume);
_root.FaciZombies.data.FXVolume = SoundVolume;
}
if (QualityJustify) {
placement = _root._xmouse;
if (placement > 520) {
placement = 576.15;
_root.FaciZombies.data.Quality = 'high';
}
if (placement < 420) {
placement = 352.1;
_root.FaciZombies.data.Quality = 'low';
}
if (placement >= 420 and placement <= 520) {
placement = 463;
_root.FaciZombies.data.Quality = 'medium';
}
_root.QualitySlider._x = placement;
}
};
}
button 652 {
on (press) {
_root.MusicJustify = true;
}
}
button 654 {
on (press) {
_root.FXJustify = true;
}
}
button 657 {
on (press) {
Check._visible = !Check._visible;
_root.FaciZombies.data.Intro = !_root.FaciZombies.data.Intro;
}
}
instance Check of movieClip 616 {
onClipEvent (load) {
_visible = _root.FaciZombies.data.Intro;
}
}
button 659 {
on (press) {
_root.QualityJustify = true;
}
}
button 661 {
on (press) {
RCheck._visible = !RCheck._visible;
_root.FaciZombies.data.Revive = !_root.FaciZombies.data.Revive;
}
}
instance RCheck of movieClip 616 {
onClipEvent (load) {
_visible = _root.FaciZombies.data.Revive;
}
}
button 663 {
on (press) {
ACheck._visible = !ACheck._visible;
_root.FaciZombies.data.AutoGraphic = !_root.FaciZombies.data.AutoGraphic;
}
}
instance ACheck of movieClip 616 {
onClipEvent (load) {
_visible = _root.FaciZombies.data.AutoGraphic;
}
}
button 666 {
on (press) {
RCheck._visible = !RCheck._visible;
_root.FaciZombies.data.LowDetail = !_root.FaciZombies.data.LowDetail;
}
}
instance ZCheck of movieClip 616 {
onClipEvent (load) {
_visible = !_root.FaciZombies.data.LowDetail;
}
}
frame 14 {
_root.FaciZombies.data.GameVersion = Version;
this.onMouseUp = function () {};
this.onLoad = function () {
_root.ScrollingSpeed = 0;
};
this.onEnterFrame = function () {
if (_root.Scrolling == 'up') {
_root.ScrollingSpeed -= 1;
}
if (_root.Scrolling == 'down') {
_root.ScrollingSpeed += 1;
}
_root._y += _root.ScrollingSpeed;
_root.ArrowUp._y -= _root.ScrollingSpeed;
_root.ArrowDown._y -= _root.ScrollingSpeed;
_root.MenuButton._y -= _root.ScrollingSpeed;
_root.Background._y -= _root.ScrollingSpeed;
_root.Overlay._y -= _root.ScrollingSpeed;
if (_root._y < -2636 and _root.FaciZombies.data.UpdateLogGoldReward == undefined) {
_root.FaciZombies.data.Gold += 25000;
_root.FaciZombies.data.UpdateLogGoldReward = true;
}
};
}
movieClip 668 {
}
instance ArrowUp of movieClip 668 {
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.Scrolling = 'up';
_root.ScrollingSpeed = -8;
}
}
onClipEvent (mouseUp) {
_root.Scrolling = 'none';
_root.ScrollingSpeed = 0;
}
}
instance ArrowDown of movieClip 668 {
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.Scrolling = 'down';
_root.ScrollingSpeed = 8;
}
}
onClipEvent (mouseUp) {
_root.Scrolling = 'none';
_root.ScrollingSpeed = 0;
}
}
movieClip 671 {
}
instance MenuButton of movieClip 671 {
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.gotoAndStop(_root.MenuFrame);
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
onClipEvent (rollOver) {
_root.soundFX.attachSound('bop.mp3');
_root.soundFX.start();
}
}
frame 15 {
stop();
_quality = _root.FaciZombies.data.Quality;
Bonus = 100;
if (_root.FaciZombies.data.Achievements[0] == 1) {
Bonus += 5;
}
if (_root.FaciZombies.data.Achievements[1] == 1) {
MultiBonus = 1.1;
} else {
MultiBonus = 1;
}
if (_root.FaciZombies.data.Achievements[4] == 1) {
Bonus += 7.5;
}
if (_root.FaciZombies.data.Achievements[5] == 1) {
Bonus += 12.5;
}
if (_root.FaciZombies.data.Achievements[6] == 1) {
Bonus += 25;
}
if (_root.FaciZombies.data.Achievements[8] == 1) {
Bonus += 125;
}
Bonus /= 100;
_root.CockroachAmount = 0;
_root.FaciZombies.data.Look = _root.FaciZombies.data.PersonLook * 3 - 3 + _root.FaciZombies.data.PersonColor;
stopAllSounds();
BackgroundSong.loadSound('http://eivind.netau.net/ambience_2.mp3', true);
BackgroundSong.start(0, 999);
BackgroundSong.setVolume(_root.FaciZombies.data.SongVolume);
SoundPlaying = '115';
this.onMouseDown = function () {
_root.isMouseDown = true;
};
this.onMouseUp = function () {
_root.isMouseDown = false;
};
MainBackground.cacheAsBitmap = true;
Vegitation.cacheAsBitmap = true;
recentNumFrames = 0;
recentStartTime = getTimer();
_root.isMouseDown = false;
_root.Night = false;
_root.RadarActive = false;
_root.ThrowGrenade = false;
_root.CamLock = false;
_root.Player.CamFollow = true;
_root.Bite = false;
_root.Player.Walking = true;
_root.Ready = true;
_root.Playing = true;
_root.Pause = false;
_root.Player.PlacingClaymore = false;
_root.MouseMove = _root.FaciZombies.data.MouseMove or true;
_root._x = 192;
_root._y = -430;
_root.Player.Friction = 1;
switch (_root.FaciZombies.data.Map) {
case 'Overgrown':
gotoAndStop(Map2Frame);
break;
case 'Estate':
gotoAndStop(GameFrame);
break;
case 'Salvage':
gotoAndStop(Map3Frame);
break;
case 'Sandbox':
gotoAndStop(Map4Frame);
break;
case 'Campaign':
_root.Player.Friction = 1;
gotoAndStop(_root.FaciZombies.data.CampaignLevel + CampaignStart);
_root.CamLock = true;
_root.Player.CamFollow = false;
_root._x = 0;
_root._y = 0;
default:
}
_root.GameStartTimer = 10;
_root.PulseTimer = 10;
_root.Player.KnifeTimer = 0;
_root.GrenadeTimer = false;
_root.BusterTimer = false;
_root.Player.SpaceTimer = false;
_root.Player.ArrowTimer = false;
_root.PauseTimer = false;
_root.LevelTimer = 500;
if (_root.FaciZombies.data.Map != 'Sandbox') {
LevelTimer = 0;
}
_root.DeadTimer = 0;
_root.HelpTextTimer = 50;
_root.MultiKillTimer = 0;
_root.Crate.timer = 20;
_root.NightTimer = 0;
_root.InstaKillTimer = 0;
_root.DoublePointTimer = 0;
_root.InstaKill = 1;
_root.Double = 1;
var SpecialGrenadesArray = new Array();
var GrenadesArray = new Array();
var PlayerShots = new Array();
var PartnerShots = new Array();
var Zombies = new Array();
var Corpses = new Array();
_root.Aim.startDrag('true');
Mouse.hide();
_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;
Level = _root.FaciZombies.data.SaveLevel;
Kills = _root.FaciZombies.data.SaveKills;
if (Kills <= 0 or Kills == undefined or Kills == NaN) {
Kills = 0;
}
LevelCap = [0, 10, 20, 30, 50, 80, 130, 210, 340, 550, 890, 1000, 1250, 1750, 2350, 2500, 3000, 3250, 3500, 4000, 5000, 7500, 12500, 25000, 50000, 100000, 250000];
Kills = _root.FaciZombies.data.LevelKills;
if (Kills < LevelCap[Level - 1]) {
Kills = LevelCap[Level - 1];
}
if (Kills <= 0 or Kills == undefined or Kills == NaN) {
Kills = 0;
}
_root.PackAPunch.ReadyUp = _root.FaciZombies.data.PackAPunchReady;
_root.Player.PackAPunched = _root.FaciZombies.data.PackAPunched;
_root.Player.LastStand = _root.FaciZombies.data.PlayerLastStand;
_root.Player.hp = _root.FaciZombies.data.Savehp;
_root.Player.ep = _root.FaciZombies.data.Saveep;
_root.Player.Score = _root.FaciZombies.data.SaveScore;
_root.Player.knifing = false;
ShotDelay = 0;
_root.HelpTextContent = 0;
_root.RemovedWalls = _root.FaciZombies.data.RemovedWalls;
_root.helptext = '';
Volume = 100;
MuteTimer = false;
CorpseID = 0;
SpecialGrenadeID = 0;
GrenadeID = 0;
PShotID = 0;
PartnerShotID = 0;
ZombieID = 0;
ExplosionID = 0;
UniqueID = 500;
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.Mags = _root.FaciZombies.data.SaveMags;
_root.Player.Ammo = _root.FaciZombies.data.SaveAmmo;
_root.Player.EquipmentPenetrating = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0];
_root.Player.EquipmentDamage = [20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0];
_root.Player.EquipmentRange = [200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 200, 0];
_root.CalculateAdvancedStats();
_root.Player.MaxAmmo = _root.AdvancedMaxAmmo.slice();
_root.Player.MaxMags = _root.AdvancedMaxMags.slice();
_root.Player.Damage = _root.AdvancedDamage.slice();
_root.Player.Penetrating = _root.AdvancedPenetrating.slice();
_root.Player.LoadStyle = _root.AdvancedLoadStyle.slice();
_root.Player.ReloadStyle = _root.BasicReloadStyle.slice();
_root.Player.Range = _root.AdvancedRange.slice();
_root.Player.WeaponSpread = _root.AdvancedWeaponSpread.slice();
_root.Player.AmmoType = _root.AdvancedAmmoType.slice();
_root.Player.Speed = _root.AdvancedSpeed.slice();
_root.Player.WeaponType = _root.AdvancedWeaponType.slice();
_root.Player.Mobility = _root.AdvancedMobility.slice();
_root.Player.Slot = _root.AdvancedSlot.slice();
_root.Player.WeaponNames = _root.AdvancedWeaponNames.slice();
_root.Player.AmmoType[3] += _root.FaciZombies.data.Christmas * 5;
_root.PAPAmmoType[3] -= _root.FaciZombies.data.Christmas * 5;
_root.PAPWeaponNames = ['Desert Eagle', 'H&K UMP 45', 'Colt MA-D4 Carnage', 'Divine Intervention', 'RaPiD', 'Annihilator', 'FN Phail', 'Drone Gun', 'Auto-Armed Explosives', 'Nanogun', 'Blaster', 'Dead ATM', 'Thunderfury', 'The Crematoruim', 'AFK 24/7', 'Tank', 'Colt 50 Cal.', 'Gammagun', 'Beretta M92F-U', 'Heckler & Coke G36K', 'H&K.mp3', 'No Pass', 'Mobile Cannon', 'Steyr OUCH'];
for (temp in _root.Player.Weapons) {
if (_root.Player.PackAPunched[temp]) {
_root.Player.Mobility[_root.Player.Weapons[temp]] += _root.PAPMobility[_root.Player.Weapons[temp]];
_root.Player.AmmoType[_root.Player.Weapons[temp]] += _root.PAPAmmoType[_root.Player.Weapons[temp]];
_root.Player.Damage[_root.Player.Weapons[temp]] += _root.PAPDamage[_root.Player.Weapons[temp]];
_root.Player.Penetrating[_root.Player.Weapons[temp]] += _root.PAPPenetrating[_root.Player.Weapons[temp]];
_root.Player.Speed[_root.Player.Weapons[temp]] += _root.PAPSpeed[_root.Player.Weapons[temp]];
_root.Player.Range[_root.Player.Weapons[temp]] += _root.PAPRange[_root.Player.Weapons[temp]];
}
}
for (temp in _root.FaciZombies.data.DAMUpgrade) {
_root.Player.Damage[temp] += _root.FaciZombies.data.DAMUpgrade[temp] * DamageUpgrades[temp];
_root.Player.Penetrating[temp] += _root.FaciZombies.data.PENUpgrade[temp] * PenetrationUpgrades[temp];
_root.Player.Range[temp] += _root.FaciZombies.data.RANUpgrade[temp] * RangeUpgrades[temp];
_root.Player.Speed[temp] -= _root.FaciZombies.data.DELUpgrade[temp] * DelayUpgrades[temp];
_root.Player.MaxMags[temp] += _root.FaciZombies.data.MAGUpgrade[temp] * MagUpgrades[temp];
_root.Player.MaxAmmo[temp] += _root.FaciZombies.data.AMMUpgrade[temp] * AmmoUpgrades[temp];
_root.Player.WeaponSpread[temp] -= _root.FaciZombies.data.SPRUpgrade[temp] * SpreadUpgrades[temp];
}
XSpawns = [-950, -925, 675, -950, 192, 1250];
YSpawns = [700, 925, 1550, -216, -850, 400];
XGoTos = [-250, -250, 665, -250, 192, 791];
YGoTos = [695, 925, 1050, -216, -292, 394];
SpawnTarget = [14, 15, 16, 13, 12, 18];
_root.RemovedWalls = 0;
var wall = 1;
while (wall <= TotalWalls) {
if (_root.WallType[wall] == 4) {
++_root.RemovedWalls;
}
++wall;
}
_root.Partner.swapDepths(601);
_root.Player.swapDepths(602);
_root.Vegitation.swapDepths(603);
_root.DamageView.swapDepths(604);
_root.MultiKillText.swapDepths(605);
_root.Display.swapDepths(606);
_root.NextWaveSign.swapDepths(607);
_root.PerkSelect.swapDepths(608);
_root.Intro.swapDepths(609);
_root.Aim.swapDepths(610);
++SpecialGrenadeID;
if (SpecialGrenadeID == 20) {
SpecialGrenadeID = 1;
}
if (_root.FaciZombies.data.SpecialGrenade == 0) {
SpecialGrenades[SpecialGrenadeID] = MakeObject('Claymore', _root.ClaymoreT, SpecialGrenadeID + 60, Player._x, Player._y, 0, 90);
}
Claymore61.removeMovieClip();
RunSpeed = [0, 1.5, 1.25, 1.35, 1.5][_root.FaciZombies.data.PersonLook];
MaxEP = [0, 125, 100, 150, 100][_root.FaciZombies.data.PersonLook];
MaxHP = [0, 125, 175, 100, 200][_root.FaciZombies.data.PersonLook];
Strength = [0, 125, 150, 100, 200][_root.FaciZombies.data.PersonLook];
_root.SetupGame();
this.onEnterFrame = function () {
Aim.gotoAndStop(1);
if (Player.WeaponType[Player.Weapon] == 3 or Player.WeaponType[Player.Weapon] == 4) {
Aim.gotoAndStop(3);
}
if (_root.FaciZombies.data.Attachments[Player.Weapon] == 1) {
Aim.gotoAndStop(2);
}
if (Key.isDown(70)) {
_root.HelpTextTimer = 0;
}
if (Kills > _root.FaciZombies.data.HighestKills and _root.FaciZombies.data.Map != 'Salvage' and _root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.HighestKills = Kills;
}
if (Key.isDown(77)) {
if (MuteTimer == false) {
MuteTimer = true;
if (Volume == 0) {
_root.BackgroundSong.setVolume(_root.FaciZombies.data.SongVolume);
_root.soundFX.setVolume(_root.FaciZombies.data.FXVolume);
Volume = 100;
} else {
_root.BackgroundSong.setVolume(0);
_root.soundFX.setVolume(0);
Volume = 0;
}
}
} else {
MuteTimer = false;
}
if (Key.isDown(80)) {
_root.PerkSelect.Stat = 0;
if (!PauseTimer) {
PauseTimer = true;
Pause = !Pause;
}
} else {
PauseTimer = false;
}
_root.MultiKillTimer -= 0.5;
if (_root.MultiKillTimer < 0) {
_root.MultiKillText._visible = false;
}
--_root.HelpTextTimer;
if (_root.HelpTextTimer > 100) {
_root.HelpTextTimer = 100;
}
if (_root.HelpTextTimer > 0) {
switch (HelpTextContent) {
case 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.';
break;
case 2:
_root.helptext = 'Press F to rebuild the barricade.';
break;
case 3:
if (_root.FaciZombies.data.Map != 'Campaign') {
if (_root.FaciZombies.data.Achievements[2] == 1) {
_root.helptext = 'Press F to remove the wall (' + (1 + _root.RemovedWalls) * 400 + ' points).';
} else {
_root.helptext = 'Press F to remove the wall (' + (1 + _root.RemovedWalls) * 500 + ' points).';
}
} else {
_root.helptext = 'You need something to remove this';
}
break;
case 17:
if (_root.PackAPunch.ReadyUp) {
_root.helptext = 'Press F to Pack-A-Punch: ' + _root.PackAPunch.Required + ' points.';
} else {
_root.helptext = 'Press F to turn on the Pack-A-Punch Machine (100,000 points).';
}
break;
case 18:
_root.helptext = 'Press F to turn on the electricity (7500 points).';
break;
case 19:
_root.helptext = 'Press F to turn on the electric trap (turns off the light and the Pack-A-Punch Machine).';
break;
case 20:
_root.helptext = 'Press F to turn on the light (7500 points).';
break;
case 21:
_root.helptext = 'Press F to use ' + _root.Player.WeaponNames[15] + ' (5000 points).';
break;
default:
}
if (_root.FaciZombies.data.Map != 'Sandbox') {
switch (HelpTextContent) {
case 11:
_root.helptext = 'Press F to buy a DT10 (costs 500 points).';
break;
case 12:
_root.helptext = 'Press F to buy a random weapon (costs 950 points).';
break;
case 13:
_root.helptext = 'Press F to buy a M4A1 Carbine (costs 850 points).';
break;
case 14:
_root.helptext = 'Press F to buy an Intervention M200 (costs 450 points).';
break;
default:
}
}
} else {
_root.helptext = 'FPS: ' + FPS;
_root.HelpTextContent = 16;
}
++recentNumFrames;
if (recentNumFrames == 25) {
FPS = recentNumFrames / ((getTimer() - recentStartTime) / 1000);
_root.FaciZombies.data.MinutesPlayed += (getTimer() - recentStartTime) / 60000;
recentStartTime = getTimer();
recentNumFrames = 0;
FPS = Math.floor(FPS);
if (_root.FaciZombies.data.AutoGraphic) {
if (FPS < 20) {
if (_root.FaciZombies.data.Quality == 'medium') {
_root.FaciZombies.data.Quality = 'low';
}
if (_root.FaciZombies.data.Quality == 'high') {
_root.FaciZombies.data.Quality = 'medium';
}
}
if (FPS > 28) {
if (_root.FaciZombies.data.Quality == 'medium') {
_root.FaciZombies.data.Quality = 'high';
}
if (_root.FaciZombies.data.Quality == 'low') {
_root.FaciZombies.data.Quality = 'medium';
}
}
_quality = _root.FaciZombies.data.Quality;
}
}
if (_root.Pause) {
if (Key.isDown(83) and _root.DeadTimer <= 0) {
_root.DeadTimer = 10;
}
}
if (ExplosionID > 40) {
ExplosionID = 0;
}
if (!_root.Pause and Ready) {
--GameStartTimer;
--_root.DeadTimer;
_root.FaciZombies.data.GameSaved = undefined;
--PulseTimer;
if (Key.isDown(69)) {
switch (_root.FaciZombies.data.PersonLook) {
case 1:
if (_root.Player.ep >= 125) {
_root.Player.LastStand = false;
_root.Player.ep -= 125;
}
break;
case 2:
if (_root.Player.ep >= 2) {
_root.Player.hp += 1;
_root.Player.ep -= 2;
}
break;
case 3:
if (!BusterTimer and _root.Player.ep >= 20) {
BusterTimer = true;
++SpecialGrenadeID;
_root.Player.ep -= 20;
if (SpecialGrenadeID == 20) {
SpecialGrenadeID = 1;
}
SpecialGrenades[SpecialGrenadeID] = MakeObject('Shockwave', ShockwaveT, SpecialGrenadeID + 60, Player._x, Player._y, 0, 81);
}
}
} else {
BusterTimer = false;
}
if (Key.isDown(67)) {
if (!SpecialGrenadeTimer and _root.Player.SpecialGrenades >= 1) {
_root.Player.PlacingClaymore = true;
_root.Player.gotoAndPlay(195);
SpecialGrenadeTimer = true;
}
} else {
SpecialGrenadeTimer = false;
}
if (_root.Player.Weapon != 10) {
_root.FaciZombies.data.P90Possible = false;
}
if (Key.isDown(71)) {
if (!GrenadeTimer and _root.Player.Grenades >= 1) {
GrenadeTimer = true;
_root.FaciZombies.data.P90Possible = false;
_root.Player.PlacingClaymore = true;
_root.Player.gotoAndPlay(131);
}
} else {
GrenadeTimer = false;
}
if (GameStartTimer > 0) {
_root.isMouseDown = false;
}
--ShotDelay;
_root.Player.PlayerWeapon.MuzzleFlash._visible = false;
if (_root.isMouseDown and _root.Player.Ammo[_root.Player.WeaponSlot] > 0 and _root.Player.Loaded and !_root.Player.knifing and _root.ShotDelay <= 0 and !_root.Player.AlternateFire and !_root.Player.reloading) {
_root.Player.PlayerWeapon.MuzzleFlash._visible = true;
_root.MakePlayerShot();
}
if (_root.isMouseDown and _root.Player.AlternateFire and _root.Player.RifleGrenades > 0 and _root.Player.Loaded and !_root.Player.reloading) {
_root.Player.Loaded = false;
++_root.PShotID;
if (_root.PShotID >= 60) {
_root.PShotID = 1;
}
_root.soundFX.attachSound('Bullet.mp3');
_root.soundFX.start();
_root.PlayerShots[_root.PShotID] = _root.MakeObject('RifleGrenade', _root.RifleGrenadeT, 'TopAllign', _root.Player._x - 7.8 * Math.cos(_root.Player._rotation / 57.2957), _root.Player._y - 7.8 * Math.sin(_root.Player._rotation / 57.2959), Math.round(Math.atan2(_root._xmouse - (_root.Player._x - 7.8 * Math.cos(_root.Player._rotation / 57.2957)), _root._ymouse - (_root.Player._y - 7.8 * Math.sin(_root.Player._rotation / 57.2959))) * -180 / Math.PI), _root.Player.Weapon);
--_root.Player.RifleGrenades;
_root.isMouseDown = false;
_root.Player.reloading = true;
_root.Player.gotoAndPlay(27);
_root.isMouseDown = false;
}
--InstaKillTimer;
if (InstaKillTimer <= 0) {
InstaKill = 1;
}
--DoublePointTimer;
if (DoublePointTimer <= 0) {
Double = 1;
}
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 (_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';
_root.HelpTextTimer = 100;
_root.HelpTextContent = 15;
}
if (_root.FaciZombies.data.Map != 'Campaign') {
_root.SurvivalGameMode();
}
}
};
}
frame 15 {
_root.Player.Friction = 0.7;
_root.MapWeapon = 5;
_root.FaciZombies.data.Attachments[15] = 7;
MainBackground.cacheAsBitmap = true;
Vegitation.cacheAsBitmap = true;
TotalTiles = 16;
}
movieClip 673 {
}
instance Tile16 of movieClip 673 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.hitTester._x, _root.hitTester._y, true)) {
_root.FaciZombies.data.Achievements[2] = 1;
}
}
}
movieClip 676 {
}
movieClip 680 {
}
movieClip 682 {
}
movieClip 686 {
}
movieClip 689 {
}
movieClip 690 {
instance Wall5 of movieClip 680 {
onClipEvent (enterFrame) {
Gone = false;
}
}
instance of movieClip 686 {
onClipEvent (load) {
gotoAndStop(1);
}
}
instance of movieClip 686 {
onClipEvent (load) {
gotoAndStop(2);
}
}
instance of movieClip 686 {
onClipEvent (load) {
gotoAndStop(1);
}
}
instance of movieClip 686 {
onClipEvent (load) {
gotoAndStop(3);
}
}
instance of movieClip 686 {
onClipEvent (load) {
gotoAndStop(3);
}
}
instance of movieClip 686 {
onClipEvent (load) {
gotoAndStop(2);
}
}
instance of movieClip 686 {
onClipEvent (load) {
gotoAndStop(2);
}
}
instance of movieClip 689 {
onClipEvent (enterFrame) {
if (!_root.Night) {
gotoAndStop(2);
} else {
gotoAndStop(1);
if (this.hitTest(_root.Player) and _root.Night) {
_root.HelpTextContent = 20;
_root.HelpTextTimer = 100;
if (_root.Player.Score >= 7500 and Key.isDown(70)) {
_root.Night = false;
_root.Player.Score -= 7500;
}
}
}
}
}
instance of movieClip 689 {
onClipEvent (load) {
_root.Lightning = false;
_root.LightningTimer = 0;
}
onClipEvent (enterFrame) {
if (_root.Lightning) {
gotoAndStop(1);
} else {
gotoAndStop(2);
if (this.hitTest(_root.Player) and !_root.Lightning and !_root.Night) {
_root.HelpTextContent = 19;
_root.HelpTextTimer = 100;
if (Key.isDown(70)) {
_root.Lightning = true;
_root.Night = true;
_root.PackAPunch.ReadyUp = false;
_root.PackAPunch.gotoAndStop(1);
_root.LightningTimer = 500;
}
}
}
}
}
instance Wall5 of movieClip 680 {
onClipEvent (enterFrame) {
Gone = false;
}
}
}
movieClip 695 {
frame 2 {
frame = 1;
if (_parent.Ash or _parent.Burning) {
frame = 3;
}
if (_parent.AlphaDoT) {
frame = 4;
}
if (frame == 1) {
gotoAndPlay(1);
} else {
gotoAndStop(frame);
}
}
}
movieClip 699 {
frame 2 {
frame = 1;
if (_parent.Ash or _parent.Burning) {
frame = 3;
}
if (_parent.AlphaDoT) {
frame = 4;
}
if (frame == 1) {
gotoAndPlay(1);
} else {
gotoAndStop(frame);
}
}
}
movieClip 704 {
frame 2 {
frame = 1;
if (_parent.Ash or _parent.Burning) {
frame = 3;
}
if (_parent.AlphaDoT) {
frame = 4;
}
if (frame == 1) {
gotoAndPlay(1);
} else {
gotoAndStop(frame);
}
}
}
movieClip 708 {
frame 2 {
frame = 1;
if (_parent.Ash or _parent.Burning) {
frame = 3;
}
if (_parent.AlphaDoT) {
frame = 4;
}
if (frame == 1) {
gotoAndPlay(1);
} else {
gotoAndStop(frame);
}
}
}
movieClip 713 {
frame 2 {
frame = 1;
if (_parent.Ash or _parent.Burning) {
frame = 3;
}
if (_parent.AlphaDoT) {
frame = 4;
}
if (frame == 1) {
gotoAndPlay(1);
} else {
gotoAndStop(frame);
}
}
}
movieClip 718 {
frame 2 {
frame = 1;
if (_parent.Ash or _parent.Burning) {
frame = 3;
}
if (_parent.AlphaDoT) {
frame = 4;
}
if (frame == 1) {
gotoAndPlay(1);
} else {
gotoAndStop(frame);
}
}
}
movieClip 730 {
frame 2 {
frame = 1;
if (_parent.Ash or _parent.Burning) {
frame = 3;
}
if (_parent.AlphaDoT) {
frame = 4;
}
if (frame == 1) {
gotoAndPlay(1);
} else {
gotoAndStop(frame);
}
}
}
movieClip 732 {
}
movieClip 739 {
frame 2 {
frame = 1;
if (_parent.Ash or _parent.Burning) {
frame = 3;
}
if (_parent.AlphaDoT) {
frame = 4;
}
if (frame == 1) {
gotoAndPlay(1);
} else {
gotoAndStop(frame);
}
}
}
movieClip 744 {
frame 2 {
frame = 1;
if (_parent.Ash or _parent.Burning) {
frame = 3;
}
if (_parent.AlphaDoT) {
frame = 4;
}
if (frame == 1) {
gotoAndPlay(1);
} else {
gotoAndStop(frame);
}
}
}
movieClip 745 {
frame 1 {
if (Crawling) {
gotoAndPlay(54);
}
}
frame 2 {
if (Crawling) {
gotoAndPlay(54);
}
}
frame 24 {
if (!Alive and _currentframe < 159) {
gotoAndPlay(237);
}
}
frame 25 {
if (Crawling) {
gotoAndPlay(67);
}
}
frame 31 {
}
frame 32 {
if (Crawling) {
gotoAndPlay(67);
}
}
frame 39 {
}
frame 44 {
gotoAndPlay(1);
Attacking = false;
}
frame 45 {
}
frame 54 {
Attacking = false;
}
frame 66 {
gotoAndPlay(54);
Attacking = false;
if (hp <= 0) {
gotoAndPlay(246);
}
}
frame 81 {
}
frame 99 {
if (!Destroying) {
gotoAndPlay(1);
}
}
frame 100 {
_root.WallHP[Wall] -= 10;
}
frame 121 {
if (!Destroying) {
gotoAndPlay(1);
}
}
frame 134 {
if (!Destroying) {
gotoAndPlay(1);
}
}
frame 135 {
_root.WallHP[Wall] -= 10;
}
frame 158 {
Destroying = false;
gotoAndPlay(1);
}
frame 159 {
}
frame 236 {
this.removeMovieClip();
}
frame 237 {
}
frame 320 {
this.removeMovieClip();
}
}
instance ZombieT of movieClip 745 {
onClipEvent (load) {
Attacking = false;
Destroying = false;
Crawling = input2;
Burning = false;
AlphaDoT = false;
AlphaDoT2 = false;
Ash = false;
Scrambled = false;
oldymove = 0;
oldxmove = 0;
PathFindTimer = 0;
Alive = true;
Type = 1;
WalkTo = _root.hitTester;
hp = 8 * (random(10) + 5 + 1 * _root.Level);
if (_root.Level > 15) {
hp *= Math.sqrt(_root.Level);
}
Random = random(3);
if (random(10) == 1) {
Explosive = true;
} else {
Explosive = false;
}
_root.TotalBarricades = 3;
if (_root.RemovedWalls >= 2) {
_root.TotalBarricades = 5;
}
if (_root.RemovedWalls >= 4) {
_root.TotalBarricades = 6;
}
StartPoint = random(_root.TotalBarricades);
Wall = _root.SpawnTarget[StartPoint];
if (input1 == 100) {
_alpha = 0;
_x = _root.XSpawns[StartPoint];
_y = _root.YSpawns[StartPoint];
_rotation = Math.round(Math.atan2(_root['Wall' + Wall]._x - _x, _root['Wall' + Wall]._y - _y) * -180 / Math.PI);
_x = _x + 0.4 * (_root['Wall' + Wall]._width - 20) * (random(19) - 9) / 10;
_y = _y + 0.4 * (_root['Wall' + Wall]._height - 20) * (random(19) - 9) / 10;
}
gotoAndPlay(1);
_visible = true;
if (this == _root.ZombieT) {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (!_root.Playing) {
this.removeMovieClip();
}
if (!_root.Pause) {
_alpha = _alpha + 5;
play();
if (this != _root.ZombieT) {
if (Math.abs(_x - _root.Player._x) > Stage.width / 2 + 20 or Math.abs(_y - _root.Player._y) > Stage.height / 2 + 20) {
_visible = false;
} else {
_visible = true;
}
if (Alive) {
_root.getEnemy(this);
_root.DoT(this);
if (hp <= 0) {
Destroying = true;
_root.Dying(this);
}
if (Alive) {
switch (_currentframe) {
case 24:
case 66:
if (!Crawling) {
gotoAndPlay(1);
} else {
gotoAndPlay(54);
}
Attacking = false;
Destroying = false;
break;
case 31:
case 39:
case 81:
_root.Attack(this, 50);
break;
default:
}
if (!Attacking and _currentframe == 34 or _currentframe == 44 or _currentframe == 86) {
if (!Crawling) {
gotoAndPlay(1);
} else {
gotoAndPlay(54);
}
Attacking = false;
}
if (_root.GetDistance(this, this.WalkTo) < 46) {
if (Explosive) {
}
this._rotation = Math.round(Math.atan2(WalkTo._x - this._x, WalkTo._y - this._y) * -180 / Math.PI);
if (!Attacking) {
if (Crawling) {
gotoAndPlay(67);
} else {
gotoAndPlay(26);
}
}
Attacking = true;
} else {
scaler = (3 + Random + (_root.Level / 2) * Math.sqrt(Math.sqrt(_root.Level))) / 4;
if (scaler > 40) {
scaler = 40;
}
if (Crawling) {
scaler /= 2;
}
if (Scrambled) {
scaler *= 0.8;
}
if (!Destroying or Crawling) {
OldX1 = _x;
OldY1 = _y;
xmove = scaler * Math.sin(this._rotation / 57.2957);
ymove = scaler * Math.cos(this._rotation / 57.2957);
xmove = xmove * _root.Player.Friction + oldxmove * (1 - _root.Player.Friction);
ymove = ymove * _root.Player.Friction + oldymove * (1 - _root.Player.Friction);
this._x -= xmove;
this._y += ymove;
oldxmove = xmove;
oldymove = ymove;
if (_root.AbsoluteWalls.hitTest(_x, _y, true)) {
_y = OldY1;
_x = OldX1;
PathFindTimer = 0;
}
}
if (_root.WallHP[Wall] <= 0) {
Destroying = false;
}
if (TileHit == undefined) {
if (this.hitTest(_root['Wall' + Wall])) {
if (_root.WallType[Wall] == 2) {
if (!Destroying) {
gotoAndPlay(87);
}
Destroying = true;
}
if (_root.WallHP[Wall] <= 0 and _root.WallType[Wall] == 2) {
_root.WallType[Wall] = 5;
Destroying = false;
}
}
}
}
if (_root.Partner.LastStand) {
WalkTo = _root.hitTester;
}
if (PathFindTimer <= 0) {
_root.GetTile(this);
if (TileHit != undefined) {
if (!_root.Bite) {
if (_root.GetDistance(this, _root.hitTester) > _root.GetDistance(this, _root.Partner)) {
WalkTo = _root.Partner;
}
if (_root.GetDistance(this, _root.hitTester) <= _root.GetDistance(this, _root.Partner)) {
WalkTo = _root.hitTester;
}
if (_root.Player.LastStand) {
WalkTo = _root.Partner;
}
if (_root.Partner.LastStand) {
WalkTo = _root.hitTester;
}
}
if (WalkTo == undefined) {
WalkTo = _root.hitTester;
}
if (WalkTo.TileHit == undefined) {
WalkTo.TileHit = WalkTo.OldTileHit;
}
if (WalkTo.TileHit.hitTest(_x, _y, true)) {
this._rotation = Math.round(Math.atan2(WalkTo._x - this._x, WalkTo._y - this._y) * -180 / Math.PI);
} else {
this._rotation = _root.PathFind(this, this.WalkTo);
}
PathFindTimer = 5;
}
}
--PathFindTimer;
}
}
}
} else {
stop();
}
}
}
movieClip 750 {
frame 2 {
frame = 1;
if (_parent.Ash or _parent.Burning) {
frame = 3;
}
if (_parent.AlphaDoT) {
frame = 4;
}
if (frame == 1) {
gotoAndPlay(1);
} else {
gotoAndStop(frame);
}
}
}
movieClip 755 {
frame 2 {
frame = 1;
if (_parent.Ash or _parent.Burning) {
frame = 3;
}
if (_parent.AlphaDoT) {
frame = 4;
}
if (frame == 1) {
gotoAndPlay(1);
} else {
gotoAndStop(frame);
}
}
}
movieClip 760 {
frame 2 {
frame = 1;
if (_parent.Ash or _parent.Burning) {
frame = 3;
}
if (_parent.AlphaDoT) {
frame = 4;
}
if (frame == 1) {
gotoAndPlay(1);
} else {
gotoAndStop(frame);
}
}
}
movieClip 765 {
frame 2 {
frame = 1;
if (_parent.Ash or _parent.Burning) {
frame = 3;
}
if (_parent.AlphaDoT) {
frame = 4;
}
if (frame == 1) {
gotoAndPlay(1);
} else {
gotoAndStop(frame);
}
}
}
movieClip 770 {
frame 2 {
frame = 1;
if (_parent.Ash or _parent.Burning) {
frame = 3;
}
if (_parent.AlphaDoT) {
frame = 4;
}
if (frame == 1) {
gotoAndPlay(1);
} else {
gotoAndStop(frame);
}
}
}
movieClip 774 {
frame 2 {
frame = 1;
if (_parent.Ash or _parent.Burning) {
frame = 3;
}
if (_parent.AlphaDoT) {
frame = 4;
}
if (frame == 1) {
gotoAndPlay(1);
} else {
gotoAndStop(frame);
}
}
}
movieClip 779 {
frame 2 {
frame = 1;
if (_parent.Ash or _parent.Burning) {
frame = 3;
}
if (_parent.AlphaDoT) {
frame = 4;
}
if (frame == 1) {
gotoAndPlay(1);
} else {
gotoAndStop(frame);
}
}
}
movieClip 781 {
}
movieClip 783 {
}
movieClip 784 {
}
movieClip 786 {
}
movieClip 797 {
frame 2 {
frame = 1;
if (_parent.Ash or _parent.Burning) {
frame = 3;
}
if (_parent.AlphaDoT) {
frame = 4;
}
if (frame == 1) {
gotoAndPlay(1);
} else {
gotoAndStop(frame);
}
}
}
movieClip 802 {
frame 2 {
frame = 1;
if (_parent.Ash or _parent.Burning) {
frame = 3;
}
if (_parent.AlphaDoT) {
frame = 4;
}
if (frame == 1) {
gotoAndPlay(1);
} else {
gotoAndStop(frame);
}
}
}
movieClip 807 {
frame 2 {
frame = 1;
if (_parent.Ash or _parent.Burning) {
frame = 3;
}
if (_parent.AlphaDoT) {
frame = 4;
}
if (frame == 1) {
gotoAndPlay(1);
} else {
gotoAndStop(frame);
}
}
}
movieClip 809 {
}
movieClip 810 {
frame 1 {
}
frame 24 {
if (!Alive and _currentframe < 159) {
gotoAndPlay(159);
}
}
frame 39 {
}
frame 45 {
gotoAndPlay(1);
}
frame 131 {
if (!Destroying) {
gotoAndPlay(1);
}
}
frame 132 {
_root.WallHP[Wall] -= 30;
}
frame 158 {
Destroying = false;
gotoAndPlay(1);
}
frame 159 {
}
frame 236 {
this.removeMovieClip();
}
}
instance Zombie3T of movieClip 810 {
onClipEvent (load) {
Attacking = false;
Destroying = false;
Crawling = false;
Burning = false;
AlphaDoT = false;
AlphaDoT2 = false;
Ash = false;
Scrambled = false;
oldymove = 0;
oldxmove = 0;
PathFindTimer = 0;
Alive = true;
Type = 2;
WalkTo = _root.hitTester;
hp = 25 * (random(10) + 5 + 1 * _root.Level);
if (_root.Level > 20) {
hp *= Math.sqrt(_root.Level);
}
MaxHP = hp;
Random = random(3);
_root.TotalBarricades = 3;
if (_root.RemovedWalls >= 2) {
_root.TotalBarricades = 5;
}
if (_root.RemovedWalls >= 4) {
_root.TotalBarricades = 6;
}
StartPoint = random(_root.TotalBarricades);
Wall = _root.SpawnTarget[StartPoint];
if (input1 == 100) {
_alpha = 0;
_x = _root.XSpawns[StartPoint];
_y = _root.YSpawns[StartPoint];
_rotation = Math.round(Math.atan2(_root['Wall' + Wall]._x - _x, _root['Wall' + Wall]._y - _y) * -180 / Math.PI);
_x = _x + 0.4 * (_root['Wall' + Wall]._width - 20) * (random(19) - 9) / 10;
_y = _y + 0.4 * (_root['Wall' + Wall]._height - 20) * (random(19) - 9) / 10;
}
gotoAndPlay(1);
_visible = true;
if (this == _root.Zombie3T) {
_visible = false;
} else {
_root.soundFX.attachSound('OfficerSpawn');
_root.soundFX.start();
}
}
onClipEvent (enterFrame) {
if (!_root.Playing) {
this.removeMovieClip();
}
if (!_root.Pause) {
_alpha = _alpha + 5;
play();
if (this != _root.Zombie3T) {
if (Math.abs(_x - _root.Player._x) > Stage.width / 2 + 20 or Math.abs(_y - _root.Player._y) > Stage.height / 2 + 20) {
_visible = false;
} else {
_visible = true;
}
if (Alive) {
_root.getEnemy(this);
Crawling = false;
_root.DoT(this);
if (hp <= 0) {
Destroying = true;
_root.Dying(this);
}
++hp;
if (hp > MaxHP) {
hp = MaxHP;
}
switch (_currentframe) {
case 24:
case 66:
gotoAndPlay(1);
Attacking = false;
Destroying = false;
break;
case 39:
_root.Attack(this, 60);
break;
case 44:
gotoAndPlay(1);
Attacking = false;
break;
default:
}
if (_root.GetDistance(this, this.WalkTo) < 50) {
this._rotation = Math.round(Math.atan2(WalkTo._x - this._x, WalkTo._y - this._y) * -180 / Math.PI);
if (!Attacking) {
gotoAndPlay(25);
}
Attacking = true;
} else {
scaler = (Random + (_root.Level / 2) * Math.sqrt(Math.sqrt(_root.Level))) / 3;
if (scaler > 40) {
scaler = 40;
}
if (Scrambled) {
scaler *= 0.7;
}
if (!Destroying) {
OldX1 = _x;
OldY1 = _y;
xmove = scaler * Math.sin(this._rotation / 57.2957);
ymove = scaler * Math.cos(this._rotation / 57.2957);
xmove = xmove * _root.Player.Friction + oldxmove * (1 - _root.Player.Friction);
ymove = ymove * _root.Player.Friction + oldymove * (1 - _root.Player.Friction);
this._x -= xmove;
this._y += ymove;
oldxmove = xmove;
oldymove = ymove;
if (_root.AbsoluteWalls.hitTest(_x, _y, true)) {
_y = OldY1;
_x = OldX1;
PathFindTimer = 0;
}
}
if (_root.WallHP[Wall] <= 0) {
Destroying = false;
}
if (TileHit == undefined) {
if (this.hitTest(_root['Wall' + Wall])) {
if (_root.WallType[Wall] == 2) {
if (!Destroying) {
gotoAndPlay(87);
}
Destroying = true;
}
if (_root.WallHP[Wall] <= 0 and _root.WallType[Wall] == 2) {
_root.WallType[Wall] = 5;
Destroying = false;
}
}
}
}
if (_root.Partner.LastStand) {
WalkTo = _root.hitTester;
}
if (PathFindTimer <= 0) {
_root.GetTile(this);
if (TileHit != undefined) {
if (!_root.Bite) {
if (_root.GetDistance(this, _root.hitTester) > _root.GetDistance(this, _root.Partner)) {
WalkTo = _root.Partner;
}
if (_root.GetDistance(this, _root.hitTester) <= _root.GetDistance(this, _root.Partner)) {
WalkTo = _root.hitTester;
}
if (_root.Player.LastStand) {
WalkTo = _root.Partner;
}
if (_root.Partner.LastStand) {
WalkTo = _root.hitTester;
}
}
if (WalkTo == undefined) {
WalkTo = _root.hitTester;
}
if (WalkTo.TileHit == undefined) {
WalkTo.TileHit = WalkTo.OldTileHit;
}
if (WalkTo.TileHit.hitTest(_x, _y, true)) {
this._rotation = Math.round(Math.atan2(WalkTo._x - this._x, WalkTo._y - this._y) * -180 / Math.PI);
} else {
this._rotation = _root.PathFind(this, this.WalkTo);
}
PathFindTimer = 5;
}
}
--PathFindTimer;
}
}
} else {
stop();
}
}
}
movieClip 820 {
frame 1 {
gotoAndStop(_root.FaciZombies.data.Look);
}
}
movieClip 821 {
frame 1 {
if (!_root.Player.move) {
gotoAndStop(8);
}
}
frame 8 {
if (!_root.Player.move) {
gotoAndStop(8);
}
}
}
movieClip 823 {
}
movieClip 824 {
frame 1 {
if (!_root.Player.move) {
gotoAndStop(8);
}
}
frame 8 {
if (!_root.Player.move) {
gotoAndStop(8);
}
}
}
movieClip 826 {
}
movieClip 828 {
}
movieClip 830 {
}
movieClip 832 {
}
movieClip 834 {
}
movieClip 839 {
}
movieClip 845 {
}
movieClip 856 {
}
movieClip 866 {
instance BiPod of movieClip 845 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.Attachments[_root.Player.Weapon] == 7) {
_visible = false;
} else {
_visible = true;
}
}
}
}
movieClip 868 {
}
movieClip 870 {
}
movieClip 872 {
}
movieClip 874 {
}
movieClip 877 {
}
movieClip 878 {
instance Legs of movieClip 821 {
onClipEvent (enterFrame) {
if (_parent._x != _parent.OldX1 or _parent._y != _root.parent.OldY1) {
this._rotation = Math.round(Math.atan2(_parent._x - _parent.OldX1, _parent._y - _parent.OldY1) * -180 / Math.PI) - _parent._rotation;
_visible = true;
_parent.move = true;
} else {
_parent.move = false;
if (_parent.LastStand) {
_visible = false;
}
}
}
}
frame 2 {
Ammo = -1;
}
frame 21 {
_root.soundFX.attachSound('Reload.mp3');
_root.soundFX.start();
}
frame 52 {
Ammo = Math.round(20 * Math.sqrt(_root.FaciZombies.data.ArmUp));
_root.PartnerShots = new Array();
gotoAndStop(1);
}
frame 92 {
_root.soundFX.attachSound('Reload.mp3');
_root.soundFX.start();
}
}
instance Partner of movieClip 878 {
onClipEvent (load) {
oldxmove = 0;
oldymove = 0;
LastStand = _root.FaciZombies.data.PartnerLastStand;
if (LastStand) {
gotoAndStop(71);
}
PartnerShotTimer = 0;
Ammo = 30;
hp = _root.FaciZombies.data.PartnerHP;
PathFindTimer = 0;
WalkTo = _root.RallyPoint;
EnemyTarget = undefined;
Direction = 0;
this._x = _root.FaciZombies.data.PartnerX;
this._y = _root.FaciZombies.data.PartnerY;
xmove = 20 * Math.sin(Direction / 57.2957);
ymove = 20 * Math.cos(Direction / 57.2957);
}
onClipEvent (enterFrame) {
if (_root.Partner.LastStand) {
Weapon.gotoAndStop(16);
} else {
Weapon.gotoAndStop(2);
}
if (!_root.Pause) {
--PartnerShotTimer;
if (hp > 100) {
hp = 100;
if (LastStand) {
_root.FaciZombies.data.Revives += 1;
}
LastStand = false;
gotoAndStop(1);
}
if (hp < 0) {
hp = 0;
}
if (hp < 25 and LastStand == false) {
LastStand = true;
_root.helptext = 'Your team mate needs to be revived!';
_root.HelpTextTimer = 100;
_root.HelpTextContent = 15;
Ammo = 12;
gotoAndStop(71);
hp += 50;
}
if (this.hitTest(_root.hitTester) and !_root.Player.LastStand and LastStand) {
hp += 1;
if (_root.Perk2 == 'Doctor') {
hp += 1;
}
}
if (EnemyTarget.Alive == undefined) {
EnemyTarget = undefined;
}
if (_root.Player.LastStand) {
WalkTo = _root.hitTester;
if (this.hitTest(_root.hitTester)) {
_root.Player.hp += 1;
}
} else {
WalkTo = _root.RallyPoint;
}
OldX1 = _x;
OldY1 = _y;
if (!LastStand) {
if (_root.GetDistance(this, WalkTo) > 7) {
xmove = 8 * Math.sin(Direction / 57.2957);
ymove = 8 * Math.cos(Direction / 57.2957);
xmove = xmove * _root.Player.Friction + oldxmove * (1 - _root.Player.Friction);
oldxmove = xmove;
this._x -= xmove;
ymove = ymove * _root.Player.Friction + oldymove * (1 - _root.Player.Friction);
oldymove = ymove;
this._y += ymove;
}
}
XMoveBack = 0;
YMoveBack = 0;
if (_root.FaciZombies.data.Map != 'Overgrown') {
if (this._x >= Stage.width) {
XMoveBack = (this._x - Stage.width) / 10;
}
if (this._x <= -700) {
XMoveBack = (this._x + 700) / 10;
}
if (this._y >= Stage.height + 400) {
YMoveBack = (this._y - (Stage.height + 400)) / 10;
}
if (this._y <= -500) {
YMoveBack = (this._y + 500) / 10;
}
}
this._x -= XMoveBack;
this._y -= YMoveBack;
--PathFindTimer;
if (PathFindTimer <= 0) {
_root.GetTile(_root.RallyPoint);
OldDirection = Direction;
if (WalkTo == undefined) {
WalkTo = _root.RallyPoint;
}
_root.GetTile(this);
if (this.hitTest(WalkTo.TileHit)) {
Direction = Math.round(Math.atan2(WalkTo._x - this._x, WalkTo._y - this._y) * -180 / Math.PI);
} else {
Direction = _root.PathFind(this, WalkTo);
PathFindTimer = 5;
}
if (Direction == undefined) {
Direction = OldDirection;
}
}
if (Ammo == 0 and !LastStand) {
gotoAndPlay(2);
}
Weapon.MuzzleFlash._visible = false;
if (EnemyTarget != undefined and EnemyTarget.Alive) {
this._rotation = Math.round(Math.atan2(EnemyTarget._x - this._x, EnemyTarget._y - this._y) * -180 / Math.PI);
if (Ammo > 0 and PartnerShotTimer <= 0) {
if (LastStand) {
_root.soundFX.attachSound('Bullet.mp3');
} else {
_root.soundFX.attachSound('M92F.mp3');
}
_root.soundFX.start();
--Ammo;
Weapon.MuzzleFlash._visible = true;
PartnerShotTimer = 3;
if (LastStand) {
PartnerShotTimer = 7;
}
++_root.PartnerShotID;
if (_root.PartnerShotID >= 40) {
_root.PartnerShotID = 1;
}
_root.PartnerShots[_root.PartnerShotID] = _root.MakeObject('PShot', _root.Bullet2T, 'TopAllign', _root.Partner._x - 10 * Math.cos(_root.Partner._rotation / 57.2957), _root.Partner._y - 10 * Math.sin(_root.Partner._rotation / 57.2959), 0, 100);
}
} else {
this._rotation = Direction;
}
}
}
}
movieClip 884 {
}
instance of movieClip 884 {
onClipEvent (enterFrame) {
if (!_root.Pause) {
--_root.LightningTimer;
if (_root.LightningTimer > 0) {
_visible = true;
for (zombie in _root.Zombies) {
if (this.hitTest(_root.Zombies[zombie])) {
_root.Zombies[zombie].AlphaDoT2 = true;
} else {
_root.Zombies[zombie].AlphaDoT2 = false;
}
}
if (this.hitTest(_root.hitTester)) {
_root.Player.hp -= 13;
}
} else {
_visible = false;
_root.Lightning = false;
}
}
}
}
instance BuyM4 of movieClip 500 {
onClipEvent (load) {
gotoAndStop(2);
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hitTester)) {
_root.HelpTextContent = 13;
_root.HelpTextTimer = 100;
}
}
}
instance BuyShotgun of movieClip 500 {
onClipEvent (load) {
gotoAndStop(7);
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hitTester)) {
_root.HelpTextContent = 11;
_root.HelpTextTimer = 100;
}
}
}
instance BuyIntervention of movieClip 500 {
onClipEvent (load) {
gotoAndStop(3);
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hitTester)) {
_root.HelpTextContent = 14;
_root.HelpTextTimer = 100;
}
}
}
movieClip 886 {
}
instance Wall13 of movieClip 886 {
onClipEvent (enterFrame) {
if (_root.WallHP[13] <= 0) {
_visible = false;
} else {
_visible = true;
}
frame = Math.floor(_root.WallHP[13] / 10);
if (frame > 20) {
frame = 20;
}
gotoAndStop(frame);
this.cacheAsBitmap = true;
}
}
instance Wall12 of movieClip 886 {
onClipEvent (enterFrame) {
if (_root.WallHP[12] <= 0) {
_visible = false;
} else {
_visible = true;
}
frame = Math.floor(_root.WallHP[12] / 10);
if (frame > 20) {
frame = 20;
}
gotoAndStop(frame);
this.cacheAsBitmap = true;
}
}
instance Wall16 of movieClip 886 {
onClipEvent (enterFrame) {
if (_root.WallHP[16] <= 0) {
_visible = false;
} else {
_visible = true;
}
frame = Math.floor(_root.WallHP[16] / 10);
if (frame > 20) {
frame = 20;
}
gotoAndStop(frame);
this.cacheAsBitmap = true;
}
}
instance Wall14 of movieClip 886 {
onClipEvent (enterFrame) {
if (_root.WallHP[14] <= 0) {
_visible = false;
} else {
_visible = true;
}
frame = Math.floor(_root.WallHP[14] / 10);
if (frame > 20) {
frame = 20;
}
gotoAndStop(frame);
this.cacheAsBitmap = true;
}
}
instance Wall15 of movieClip 886 {
onClipEvent (enterFrame) {
if (_root.WallHP[15] <= 0) {
_visible = false;
} else {
_visible = true;
}
frame = Math.floor(_root.WallHP[15] / 10);
if (frame > 20) {
frame = 20;
}
gotoAndStop(frame);
this.cacheAsBitmap = true;
}
}
instance Wall18 of movieClip 886 {
onClipEvent (enterFrame) {
if (_root.WallHP[18] <= 0) {
_visible = false;
} else {
_visible = true;
}
frame = Math.floor(_root.WallHP[18] / 10);
if (frame > 20) {
frame = 20;
}
gotoAndStop(frame);
this.cacheAsBitmap = true;
}
}
movieClip 888 {
}
instance Wall23 of movieClip 888 {
onClipEvent (enterFrame) {
if (_root.WallType[23] == 4) {
_visible = false;
}
this.cacheAsBitmap = true;
}
}
instance Wall22 of movieClip 888 {
onClipEvent (enterFrame) {
if (_root.WallType[22] == 4) {
_visible = false;
}
this.cacheAsBitmap = true;
}
}
instance Wall20 of movieClip 888 {
onClipEvent (enterFrame) {
if (_root.WallType[20] == 4) {
_visible = false;
}
this.cacheAsBitmap = true;
}
}
instance Wall21 of movieClip 888 {
onClipEvent (enterFrame) {
if (_root.WallType[21] == 4) {
_visible = false;
}
this.cacheAsBitmap = true;
}
}
instance Wall19 of movieClip 888 {
onClipEvent (enterFrame) {
if (_root.WallType[19] == 4) {
_visible = false;
}
this.cacheAsBitmap = true;
}
}
movieClip 890 {
frame 1 {
stop();
Weapon = 0;
}
frame 2 {
gotoAndStop(2);
_root.soundFX.attachSound('MysteryBox.mp3');
_root.soundFX.start();
}
instance Weapon of movieClip 500 {
onClipEvent (load) {
FirstTimer = getTimer();
NextTimer = getTimer();
do {
weapon = random(23) + 1;
} while (!_root.FaciZombies.data.UnlockedWeapons[weapon]);
gotoAndStop(weapon);
Changed = 0;
}
onClipEvent (enterFrame) {
TimeCap = [60, 60, 60, 60, 60, 60, 60, 60, 60, 90, 90, 90, 90, 90, 120, 120, 120, 120, 120, 120, 120, 150, 150, 150, 150, 150, 180, 180, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 240, 240, 240, 240, 240, 240, 240, 240, 240, 270, 270, 270, 270, 270, 300, 300, 300, 300][Changed];
if (_parent.Weapon == 0) {
if (getTimer() - NextTimer > TimeCap) {
do {
weapon = random(23) + 1;
} while (!_root.FaciZombies.data.UnlockedWeapons[weapon] or (weapon == 9 or weapon == 13 or weapon == 22 or weapon == 17) and random(_root.FaciZombies.data.Chest) == 0);
gotoAndStop(weapon);
NextTimer = getTimer();
++Changed;
}
if (getTimer() - FirstTimer > 5700) {
_parent.Weapon = weapon;
_parent.timer = 200;
}
}
}
}
}
instance Crate of movieClip 890 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.HelpTextContent = 12;
_root.HelpTextTimer = 100;
}
}
}
movieClip 893 {
}
instance PackAPunch of movieClip 893 {
onClipEvent (load) {
gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (ReadyUp) {
gotoAndStop(2);
}
if (_root.Player.hitTest(_root.PackAPunch) and (Possible or !ReadyUp)) {
_root.HelpTextContent = 17;
_root.HelpTextTimer = 100;
}
if (_root.Player.hitTest(this)) {
Possible = false;
Required = [0, 25, 20, 15, 25, 250, 17.5, 100, 100, 5000, 50, 10, 25, 125, 50, 100, 50, 125, 50, 35, 50, 100, 250, 100][_root.Player.Weapon];
Required *= 1000;
if (!_root.Player.PackAPunched[_root.Player.WeaponSlot]) {
Possible = true;
}
if (Required == 0) {
Possible = false;
}
if (!ReadyUp and this.hitTest(_root.Player) and Key.isDown(70) and _root.Player.Score >= 100000) {
ReadyUp = true;
_root.FaciZombies.data.PackAPunchReady = true;
_root.Player.Score -= 100000;
Possible = false;
}
if (Possible and ReadyUp and Key.isDown(70) and _root.Player.Score >= Required) {
_root.Player.Score -= Required;
_root.Player.PackAPunched[_root.Player.WeaponSlot] = true;
_root.Player.AmmoType[_root.Player.Weapon] += _root.PAPAmmoType[_root.Player.Weapon];
_root.Player.Damage[_root.Player.Weapon] += _root.PAPDamage[_root.Player.Weapon];
_root.Player.Penetrating[_root.Player.Weapon] += _root.PAPPenetrating[_root.Player.Weapon];
_root.Player.Speed[_root.Player.Weapon] += _root.PAPSpeed[_root.Player.Weapon];
_root.Player.Range[_root.Player.Weapon] += _root.PAPRange[_root.Player.Weapon];
_root.Player.Mobility[_root.Player.Weapon] += _root.PAPMobility[_root.Player.Weapon];
}
}
}
}
movieClip 895 {
}
instance of movieClip 895 {
onClipEvent (enterFrame) {
_alpha = 100;
if (this.hitTest(_root.hitTester)) {
_root.HelpTextContent = 21;
_root.HelpTextTimer = 200;
}
if (Key.isDown(70)) {
if (FTimer) {
FTimer = false;
Change = true;
if (_root.Player.Weapon != 15) {
if (Change2 and Key.isDown(70) and this.hitTest(_root.hitTester) and _root.Player.Score >= 5000) {
_root.Player.WeaponSlot = 2;
_root.Player.Score -= 5000;
_root.hitTester._x = _x;
_root.hitTester._y = _y;
_root.Player.Weapon = 15;
Change = false;
}
}
Change2 = true;
if (Change and _root.Player.Weapon == 15 and Key.isDown(70) and this.hitTest(_root.hitTester)) {
_root.Player.WeaponSlot = 0;
_root.Player.Weapon = _root.Player.Weapons[0];
Change2 = false;
}
}
} else {
FTimer = true;
}
}
}
instance of movieClip 866 {
onClipEvent (enterFrame) {
MuzzleFlash._visible = false;
gotoAndStop(5);
BiPod._visible = false;
if (_root.Player.WeaponSlot == 2) {
_visible = false;
} else {
_visible = true;
}
}
}
movieClip 898 {
}
instance Vegitation of movieClip 898 {
onClipEvent (load) {
if (_root.FaciZombies.data.Map != 'Estate') {
_visible = false;
}
_width = 2494.75;
_height = 2298.25;
_x = 269.05;
_y = 377.65;
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
if (!_root.Playing) {
this.removeMovieClip();
}
if (_root.Night) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
movieClip 899 {
}
instance PossibleRally of movieClip 899 {
onClipEvent (load) {
_x = 0;
_y = 0;
_xscale = 100;
_yscale = 100;
_visible = false;
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
gotoAndStop(_root.RemovedWalls + 1);
}
}
instance hitTester of movieClip 895 {
onClipEvent (enterFrame) {
if (_root.Player.Mobility[_root.Player.Weapon] == 0) {
_visible = true;
} else {
_visible = false;
}
_root.GetTile(this);
}
}
movieClip 901 {
}
instance BulletT of movieClip 901 {
onClipEvent (load) {
Weapon = input1;
Shockwave = false;
Remove = false;
Breaking = false;
if (Weapon < 80) {
if (_root.Player.AmmoType[Weapon] == 6) {
Shockwave = true;
}
if (_root.Player.AmmoType[Weapon] == 10) {
Breaking = true;
}
Kills = 0;
Penetrating = _root.Player.Penetrating[Weapon];
Damage = _root.Player.Damage[Weapon];
Range = _root.Player.Range[Weapon];
} else {
if (_root.Player.EquipmentAmmoType[Weapon - 80] == 6) {
Shockwave = true;
}
Kills = 0;
Penetrating = _root.Player.EquipmentPenetrating[Weapon - 80];
Damage = _root.Player.EquipmentDamage[Weapon - 80];
Range = _root.Player.EquipmentRange[Weapon - 80];
}
BulletRotation = random(_root.Player.WeaponSpread[Weapon]) - random(_root.Player.WeaponSpread[Weapon]);
if (Key.isDown(16)) {
BulletRotation *= 1.5;
}
_rotation = _rotation + BulletRotation;
StartCount = 3;
if (_root.Player.LastStand) {
StartCount = 1;
}
StartX = _x;
StartY = _y;
_visible = false;
}
onClipEvent (enterFrame) {
if (!_root.Playing) {
this.removeMovieClip();
}
if (this != _root.BulletT) {
Counter = 1;
while (Counter <= 15) {
if (_root.ZombieAmount > 0) {
for (zombie in _root._level0.Zombies) {
Zombie = _root.Zombies[zombie];
if (Zombie.hitTest(_x, _y, false)) {
if (Zombie.hp > 0) {
if (_root.FaciZombies.data.Attachments[Weapon] == 9 and Weapon < 80) {
Zombie.AlphaDoT = true;
}
if (!Key.isDown(16) and Math.floor(random(_root.Player.WeaponSpread[Weapon] * 15)) == 1 and Zombie.Type != 'Ghost') {
Crit = true;
if (Breaking) {
Zombie.Crawling = true;
}
Damage *= 5;
_root.MakeObject('Blood', _root.BloodT, 'TopAllign', _x, _y, _rotation + 180);
} else {
Crit = false;
}
if (_root.FaciZombies.data.Attachments[Weapon] == 3 and _root.InstaKill == 1) {
BulletHit = Math.floor(Zombie.hp / Damage + 0.999);
} else {
BulletHit = 1;
}
if (BulletHit > Penetrating) {
BulletHit = Penetrating;
}
_root.Player.Score += _root.Double * _root.Bonus * 10 * BulletHit;
if (_root.FaciZombies.data.Map != 'Salvage' and _root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 10 * BulletHit;
}
if (Zombie.Type != 'Ghost') {
Zombie.hp -= Damage * _root.InstaKill * BulletHit;
_root.MakeObject('Blood', _root.SomeBloodT, 'TopAllign', _x, _y, _rotation);
} else {
if (_root.Perk3 == 'Ninja') {
Zombie.hp -= Damage * _root.InstaKill * BulletHit / 2;
} else {
Zombie.hp -= Damage * _root.InstaKill * BulletHit / 4;
}
}
Penetrating -= BulletHit;
if (Zombie.hp <= 0) {
if (Zombie.Crawling) {
Zombie.gotoAndPlay(246);
} else {
Zombie.gotoAndPlay(159);
}
if (_root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.BulletKills += 1;
if (Weapon < 80) {
_root.FaciZombies.data.WeaponKills[Weapon] += 1;
} else {
_root.FaciZombies.data.EquipmentKills[Weapon - 80] += 1;
}
Kills += 1;
if (_root.FaciZombies.data.PlayerClass == _root.Player.WeaponType[Weapon]) {
_root.FaciZombies.data.Experience[_root.Player.WeaponType[Weapon]] += 1;
if (_root.Perk1 == 'ColdBlooded') {
_root.FaciZombies.data.Experience[_root.Player.WeaponType[Weapon]] += 1;
}
}
}
}
}
if (Crit) {
Damage /= 5;
}
Crit = false;
if (Penetrating <= 0) {
Remove = true;
}
}
}
}
if (Penetrating <= 0) {
Remove = true;
}
if (Shockwave) {
++_root.ExplosionID;
_root.Explosions[_root.ExplosionID] = _root.MakeObject('Shockwave', _root.Shockwave2T, 'TopAllign', _x, _y, this.Counter, Weapon);
}
this._x += 13 * Math.sin(this._rotation / -57.2957);
this._y += 13 * Math.cos(this._rotation / -57.2957);
if (Math.sqrt(Math.pow(StartX - _x, 2) + Math.pow(StartY - _y, 2)) > Range) {
Remove = true;
_root.MakeObject('Dust', _root.DustT, 'TopAllign', _x, _y, _rotation + 180);
}
if (_root.AbsoluteWalls.hitTest(_x, _y, true)) {
if (!Shockwave) {
_root.MakeObject('Dust', _root.DustT, 'TopAllign', _x, _y, _rotation);
}
Penetrating -= 5;
}
if (Remove) {
if (Kills > 1) {
_root.FaciZombies.data.MultiKills += Kills;
_root.MultiKillText._visible = true;
_root.MultiKillTimer = 25;
_root.Player.Score += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
if (_root.FaciZombies.data.Map != 'Salvage' and _root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
}
}
this.removeMovieClip();
}
++Counter;
}
if (!Shockwave) {
_visible = true;
}
}
}
}
movieClip 912 {
frame 1 {
gotoAndStop(_root.FaciZombies.data.Look);
}
}
movieClip 917 {
frame 1 {
stop();
}
}
movieClip 928 {
frame 1 {
gotoAndStop(_root.FaciZombies.data.Look);
}
}
movieClip 929 {
}
movieClip 939 {
frame 1 {
gotoAndStop(_root.FaciZombies.data.Look);
}
}
movieClip 950 {
frame 1 {
gotoAndStop(_root.FaciZombies.data.Look);
}
}
movieClip 955 {
frame 1 {
gotoAndStop(_root.FaciZombies.data.PersonLook);
}
}
movieClip 966 {
frame 1 {
gotoAndStop(_root.FaciZombies.data.Look);
}
}
movieClip 968 {
}
movieClip 969 {
instance of movieClip 968 {
onClipEvent (enterFrame) {
if (_root.Player.WeaponType[_root.Player.Weapons[0]] == 7 or _root.Player.WeaponType[_root.Player.Weapons[1]] == 7) {
_visible = true;
} else {
_visible = false;
}
}
}
}
movieClip 979 {
frame 1 {
gotoAndStop(_root.FaciZombies.data.Look);
}
}
movieClip 981 {
}
movieClip 986 {
frame 1 {
gotoAndStop(_root.FaciZombies.data.PersonLook);
}
}
movieClip 988 {
}
movieClip 989 {
}
movieClip 990 {
}
movieClip 991 {
}
movieClip 993 {
}
movieClip 994 {
}
movieClip 1005 {
frame 1 {
gotoAndStop(_root.FaciZombies.data.Look);
}
}
movieClip 1006 {
}
movieClip 1007 {
instance of movieClip 968 {
onClipEvent (enterFrame) {
if (_root.Player.WeaponType[_root.Player.Weapons[0]] == 7 or _root.Player.WeaponType[_root.Player.Weapons[1]] == 7) {
_alpha = 100;
} else {
_alpha = 0;
}
}
}
}
movieClip 1008 {
}
movieClip 1010 {
}
movieClip 1011 {
frame 1 {
stop();
knifing = false;
}
instance Legs of movieClip 821 {
onClipEvent (enterFrame) {
if (_root.hitTester._x != _root.Player.OldX2 or _root.hitTester._y != _root.Player.OldY2) {
this._rotation = Math.round(Math.atan2(_root.hitTester._x - _root.Player.OldX2, _root.hitTester._y - _root.Player.OldY2) * -180 / Math.PI) - _root.Player._rotation;
_visible = true;
} else {
_visible = false;
}
if (_parent.LastStand) {
_visible = false;
}
}
}
instance PlayerWeapon of movieClip 866 {
onClipEvent (load) {
gotoAndStop(_root.Player.Weapon);
CrateTimer = false;
}
onClipEvent (enterFrame) {
if (_root.Player.Weapon != 15) {
this.gotoAndStop(_root.Player.Weapon);
} else {
gotoAndStop(_root.MapWeapon);
}
if (Key.isDown(70)) {
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.BuyUMP) and _root.Player.Score >= 850) {
_root.Player.Score -= 850;
_root.BuyWeapon(1);
}
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);
}
if (_root.Player.hitTest(_root.BuyRPD) and _root.Player.Score >= 4000) {
_root.Player.Score -= 4000;
_root.BuyWeapon(4);
}
if (_root.Player.hitTest(_root.BuyMG4) and _root.Player.Score >= 8500) {
_root.Player.Score -= 8500;
_root.BuyWeapon(5);
}
if (_root.Player.hitTest(_root.BuyFAL) and _root.Player.Score >= 500) {
_root.Player.Score -= 500;
_root.BuyWeapon(6);
}
if (_root.Player.hitTest(_root.BuyShotgun) and _root.Player.Score >= 500) {
_root.Player.Score -= 500;
_root.BuyWeapon(7);
}
if (_root.Player.hitTest(_root.BuyAA) and _root.Player.Score >= 4000) {
_root.Player.Score -= 4000;
_root.BuyWeapon(8);
}
if (_root.Player.hitTest(_root.BuyGAU) and _root.Player.Score >= 30000) {
_root.Player.Score -= 30000;
_root.BuyWeapon(9);
}
if (_root.Player.hitTest(_root.BuyP90) and _root.Player.Score >= 500) {
_root.Player.Score -= 500;
_root.BuyWeapon(10);
}
if (_root.Player.hitTest(_root.BuyAT4) and _root.Player.Score >= 8000) {
_root.Player.Score -= 8000;
_root.BuyWeapon(11);
}
if (_root.Player.hitTest(_root.BuyBarrett) and _root.Player.Score >= 5000) {
_root.Player.Score -= 5000;
_root.BuyWeapon(12);
}
if (_root.Player.hitTest(_root.BuyFlame) and _root.Player.Score >= 25000) {
_root.Player.Score -= 25000;
_root.BuyWeapon(13);
}
if (_root.Player.hitTest(_root.BuyAK) and _root.Player.Score >= 500) {
_root.Player.Score -= 500;
_root.BuyWeapon(14);
}
}
CrateTimer = true;
} else {
CrateTimer = false;
}
if ((Key.isDown(49) or _root.Player.Weapon == undefined) and _root.Player.Weapons[0] != 0) {
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') {
this.gotoAndPlay(5);
} else {
gotoAndPlay(3);
}
}
frame 10 {
_root.soundFX.attachSound('Reload.mp3');
_root.soundFX.start();
if (ReloadStyle[Weapon] == 2) {
if (Ammo[WeaponSlot] < MaxAmmo[Weapon]) {
--Mags[WeaponSlot];
++Ammo[WeaponSlot];
}
if (Ammo[WeaponSlot] == MaxAmmo[Weapon] or Mags[WeaponSlot] < 1) {
reloading = false;
Loaded = true;
_root.FaciZombies.data.Reloaded += 1;
} else {
gotoAndPlay(2);
}
}
}
frame 18 {
if (ReloadStyle[Weapon] == 1) {
if (Ammo[WeaponSlot] <= MaxAmmo[Weapon]) {
Ammo[WeaponSlot] = MaxAmmo[Weapon];
--Mags[WeaponSlot];
}
}
}
frame 19 {
gotoAndPlay(20);
}
frame 31 {
gotoAndPlay(32);
}
frame 40 {
if (_root.Perk2 == 'SleightOfHand') {
this.gotoAndPlay(45);
}
}
frame 46 {
Loaded = true;
reloading = false;
_root.FaciZombies.data.Reloaded += 1;
gotoAndStop(1);
}
frame 47 {
}
frame 57 {
if (_root.ZombieAmount > 0) {
KnifeDamage = _root.Strength * 3;
if (_root.Perk3 == 'LastStand') {
KnifeDamage *= 2;
}
for (zombie in _root._level0.Zombies) {
Zombie = _root.Zombies[zombie];
if (Math.sqrt(Math.pow(_x + Math.cos(((_rotation + 45) / 180) * Math.PI) * 30 - Zombie._x, 2) + Math.pow(_y + Math.sin(((_rotation + 45) / 180) * Math.PI) * 30 - Zombie._y, 2)) < 35) {
if (Zombie.hp > 0 and KnifeDamage != 0) {
Zombie.hp -= KnifeDamage * _root.InstaKill;
_root.Player.Score += _root.Double * _root.Bonus * 50;
if (_root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 50;
}
break;
}
}
}
}
}
frame 58 {
}
frame 65 {
Loaded = true;
reloading = false;
knifing = false;
gotoAndStop(1);
}
frame 66 {
stop();
knifing = false;
}
frame 67 {
reloading = true;
}
frame 77 {
_root.soundFX.attachSound('Reload.mp3');
_root.soundFX.start();
}
frame 81 {
if (ReloadStyle[Weapon] == 2) {
if (Ammo[WeaponSlot] < MaxAmmo[Weapon]) {
--Mags[WeaponSlot];
++Ammo[WeaponSlot];
}
} else {
if (Ammo[WeaponSlot] <= MaxAmmo[Weapon]) {
Ammo[WeaponSlot] = MaxAmmo[Weapon];
--Mags[WeaponSlot];
}
}
if (Ammo[WeaponSlot] == MaxAmmo[Weapon] or Mags[WeaponSlot] < 1) {
reloading = false;
Loaded = true;
_root.FaciZombies.data.Reloaded += 1;
gotoAndStop(66);
} else {
gotoAndPlay(67);
}
}
frame 82 {
if (_root.Perk2 == 'SleightOfHand') {
this.gotoAndPlay(Slot[Weapon] * 65 + 25);
}
}
frame 91 {
if (_root.Player.Weapon == 7) {
if (Ammo[_root.Player.WeaponSlot] < _root.Player.MaxAmmo[_root.Player.Weapon]) {
Mags[_root.Player.WeaponSlot] -= _root.Player.MaxAmmo[_root.Player.Weapon] - Ammo[_root.Player.WeaponSlot];
Ammo[_root.Player.WeaponSlot] = _root.Player.MaxAmmo[_root.Player.Weapon];
}
} 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(Slot[Weapon] * 65 + 1);
}
frame 92 {
gotoAndPlay(Slot[Weapon] * 65 + 28);
}
frame 105 {
if (_root.Perk2 == 'SleightOfHand') {
this.gotoAndPlay(Slot[Weapon] * 65 + 45);
}
}
frame 111 {
Loaded = true;
reloading = false;
_root.FaciZombies.data.Reloaded += 1;
gotoAndStop(Slot[Weapon] * 65 + 1);
}
frame 112 {
}
frame 120 {
if (_root.ZombieAmount > 0) {
KnifeDamage = _root.Strength * 3;
if (_root.Perk3 == 'LastStand') {
KnifeDamage *= 2;
}
for (zombie in _root._level0.Zombies) {
Zombie = _root.Zombies[zombie];
if (Math.sqrt(Math.pow(_x + Math.cos(((_rotation + 45) / 180) * Math.PI) * 30 - Zombie._x, 2) + Math.pow(_y + Math.sin(((_rotation + 45) / 180) * Math.PI) * 30 - Zombie._y, 2)) < 35) {
if (Zombie.hp > 0 and KnifeDamage != 0) {
Zombie.hp -= KnifeDamage * _root.InstaKill;
_root.Player.Score += _root.Double * _root.Bonus * 50;
if (_root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 50;
}
break;
}
}
}
}
}
frame 121 {
}
frame 127 {
gotoAndStop(130);
}
frame 130 {
Loaded = true;
reloading = false;
knifing = false;
gotoAndStop(Slot[Weapon] * 65 + 1);
}
frame 131 {
}
frame 145 {
++_root.GrenadeID;
PlacingClaymore = false;
--_root.Player.Grenades;
if (_root.GrenadeID == 20) {
_root.GrenadeID = 1;
}
if (_root.FaciZombies.data.Grenade == 0) {
_root.Grenades[_root.GrenadeID] = _root.MakeObject('Grenade', _root.GrenadeT, _root.GrenadeID + 90, _root.Player._x, _root.Player._y, 0, 80);
}
if (_root.FaciZombies.data.Grenade == 2) {
_root.Grenades[_root.GrenadeID] = _root.MakeObject('Molotov', _root.MolotovT, 'TopAllign', _root.Player._x, _root.Player._y, 0, 82);
}
if (_root.FaciZombies.data.Grenade == 1) {
_root.Grenades[_root.GrenadeID] = _root.MakeObject('Meat', _root.MeatT, _root.GrenadeID + 90, _root.Player._x, _root.Player._y, 0, 100);
}
}
frame 151 {
gotoAndPlay(151);
}
frame 157 {
Loaded = true;
reloading = false;
_root.FaciZombies.data.Reloaded += 1;
gotoAndStop(1);
}
frame 158 {
}
frame 168 {
_root.soundFX.attachSound('Reload.mp3');
_root.soundFX.start();
}
frame 185 {
if (_root.Player.Weapon == 7) {
if (Ammo[_root.Player.WeaponSlot] < _root.Player.MaxAmmo[_root.Player.Weapon]) {
Mags[_root.Player.WeaponSlot] -= _root.Player.MaxAmmo[_root.Player.Weapon] - Ammo[_root.Player.WeaponSlot];
Ammo[_root.Player.WeaponSlot] = _root.Player.MaxAmmo[_root.Player.Weapon];
if (Mags[_root.Player.WeaponSlot] < 0) {
Ammo[_root.Player.WeaponSlot] -= Mags[_root.Player.WeaponSlot];
Mags[_root.Player.WeaponSlot] = 0;
}
}
} else {
if (Ammo[_root.Player.WeaponSlot] <= MaxAmmo[_root.Player.Weapon]) {
Ammo[_root.Player.WeaponSlot] = MaxAmmo[_root.Player.Weapon];
--Mags[_root.Player.WeaponSlot];
}
}
reloading = false;
_root.Player.Loaded = true;
_root.FaciZombies.data.Reloaded += 1;
gotoAndStop(158);
}
frame 206 {
_root.FaciZombies.data.P90Possible = false;
++_root.SpecialGrenadeID;
--_root.Player.SpecialGrenades;
if (_root.SpecialGrenadeID == 20) {
_root.SpecialGrenadeID = 1;
}
if (_root.FaciZombies.data.SpecialGrenade == 0) {
_root.SpecialGrenades[_root.SpecialGrenadeID] = _root.MakeObject('Claymore', _root.ClaymoreT, _root.SpecialGrenadeID + 60, _root.Player._x + Math.cos((_rotation + 20) * Math.PI / 180) * 30, _root.Player._y + Math.sin((_rotation + 20) * Math.PI / 180) * 30, 0, 90);
}
if (_root.FaciZombies.data.SpecialGrenade == 1) {
_root.SpecialGrenades[_root.SpecialGrenadeID] = _root.MakeObject('RCXD', _root.RCXDT, _root.SpecialGrenadeID + 60, _root.Player._x, _root.Player._y, 0, 91);
}
}
frame 214 {
PlacingClaymore = false;
}
}
instance Player of movieClip 1011 {
onClipEvent (load) {
xmove = 0;
ymove = 0;
xbackmove = 0;
ybackmove = 0;
if (LastStand) {
WeaponSlot = 1;
Weapon = Weapons[1];
}
gotoAndStop(Slot[Weapon] * 65 + 1);
}
onClipEvent (enterFrame) {
if (WeaponSpread[Weapon] < 0) {
WeaponSpread[Weapon] = 0;
}
if (LastStand) {
WeaponSlot = 1;
Weapon = Weapons[1];
} else {
if (!knifing and !reloading and !PlacingClaymore) {
gotoAndStop(Slot[Weapon] * 65 + 1);
}
}
_root.GetTile(_root.hitTester);
if (_root.Jug) {
hp = _root.Player.JugHP;
}
if (hp <= 25 and !LastStand) {
hp += 50;
LastStand = true;
PlacingClaymore = false;
WeaponSlot = 1;
AlternateFire = false;
Weapon = Weapons[1];
gotoAndStop(158);
knifing = false;
reloading = false;
Loaded = true;
}
if (LastStand and !reloading and !PlacingClaymore) {
gotoAndStop(158);
}
_root.DamageView.gotoAndStop(10 - Math.floor(hp * 10 / 1.1 / _root.MaxHP));
if (!_root.Pause and _root.Ready) {
if (Key.isDown(88)) {
if (ArrowTimer == false) {
_root.Player.AlternateFire = !_root.Player.AlternateFire;
if (_root.FaciZombies.data.Attachments[Weapon] != 5) {
_root.Player.AlternateFire = false;
}
}
ArrowTimer = true;
} else {
ArrowTimer = false;
}
if (Key.isDown(32)) {
if (!SpaceTimer) {
if (!CamFollow) {
CamFollow = true;
} else {
_root.RadarActive = !_root.RadarActive;
}
}
SpaceTimer = true;
} else {
SpaceTimer = false;
}
OldX1 = _x;
OldY1 = _y;
OldX2 = _root.hitTester._x;
OldY2 = _root.hitTester._y;
OldX3 = _root._x;
OldY3 = _root._y;
evenolderxmove = xmove;
evenolderymove = ymove;
xmove = 0;
ymove = 0;
move = false;
if (Key.isDown(65) or Key.isDown(37)) {
xmove -= 7;
xbackmove = 3;
move = true;
}
if (Key.isDown(68) or Key.isDown(39)) {
xmove += 7;
xbackmove = -3;
move = true;
}
if (Key.isDown(87) or Key.isDown(38)) {
ymove -= 7;
ybackmove = 3;
move = true;
}
if (Key.isDown(83) or Key.isDown(40)) {
ymove += 7;
move = true;
ybackmove = -3;
}
if (move) {
Legs.gotoAndPlay(Legs._currentframe);
}
if (xmove != 0 and ymove != 0) {
xmove /= Math.SQRT2;
ymove /= Math.SQRT2;
}
if (xmove == 0 and Math.abs(evenolderxmove) < 1) {
evenolderxmove = 0;
}
if (ymove == 0 and Math.abs(evenolderymove) < 1) {
evenolderymove = 0;
}
oldxmove = xmove;
oldymove = ymove;
if (xmove != 0) {
xmove += 3.5 * Math.cos((_rotation + 47) * Math.PI / 180);
if (_root.Perk2 == 'Marathon') {
xmove += 3.5 * Math.cos((_rotation + 47) * Math.PI / 180);
}
}
if (ymove != 0) {
ymove += 3.5 * Math.sin((_rotation + 47) * Math.PI / 180);
if (_root.Perk2 == 'Marathon') {
ymove += 3.5 * Math.sin((_rotation + 47) * Math.PI / 180);
}
}
if (Math.abs(oldxmove) > Math.abs(xmove)) {
if (_root.Perk1 == 'Lightweight') {
xmove = oldxmove;
} else {
xmove = oldxmove * 0.75;
}
_root.FaciZombies.data.RunnedBack += Math.abs(xmove);
}
if (Math.abs(oldymove) > Math.abs(ymove)) {
if (_root.Perk1 == 'Lightweight') {
ymove = oldymove;
} else {
ymove = oldymove * 0.75;
}
_root.FaciZombies.data.RunnedBack += Math.abs(ymove);
}
if (LastStand) {
xmove /= 4;
ymove /= 4;
} else {
if (Key.isDown(16) and ep > 3) {
xmove *= _root.RunSpeed;
ymove *= _root.RunSpeed;
ep -= 3;
}
}
xmove = xmove * Friction + evenolderxmove * (1 - Friction);
ymove = ymove * Friction + evenolderymove * (1 - Friction);
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) {
_root.FaciZombies.data.Runned += Math.abs(xmove) + Math.abs(ymove);
_root.hitTester._x += xmove * Mobility[Weapon];
if (_root.AllWalls.hitTest(_root.hitTester._x + 19.11, _root.hitTester._y, true) or _root.AllWalls.hitTest(_root.hitTester._x + 19.11, _root.hitTester._y + 19.11, true) or _root.AllWalls.hitTest(_root.hitTester._x + 19.11, _root.hitTester._y - 19.11, true) or (_root.AllWalls.hitTest(_root.hitTester._x - 19.11, _root.hitTester._y, true) or _root.AllWalls.hitTest(_root.hitTester._x - 19.11, _root.hitTester._y + 19.11, true) or _root.AllWalls.hitTest(_root.hitTester._x - 19.11, _root.hitTester._y - 19.11, true))) {
if (_root.WalkWalls.hitTest(_root.hitTester._x + 19.11, _root.hitTester._y, true) or _root.WalkWalls.hitTest(_root.hitTester._x + 19.11, _root.hitTester._y + 19.11, true) or _root.WalkWalls.hitTest(_root.hitTester._x + 19.11, _root.hitTester._y - 19.11, true) or (_root.WalkWalls.hitTest(_root.hitTester._x - 19.11, _root.hitTester._y, true) or _root.WalkWalls.hitTest(_root.hitTester._x - 19.11, _root.hitTester._y + 19.11, true) or _root.WalkWalls.hitTest(_root.hitTester._x - 19.11, _root.hitTester._y - 19.11, true))) {
_root.hitTester._x = OldX2;
} else {
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) or _root.hitTester.hitTest(_root.PackAPunch)) {
_root.hitTester._x = OldX2;
}
++wall;
}
}
}
_root.hitTester._y += ymove * Mobility[Weapon];
if (_root.AllWalls.hitTest(_root.hitTester._x + 19.11, _root.hitTester._y - 1.47, true) or _root.AllWalls.hitTest(_root.hitTester._x - 19.11, _root.hitTester._y - 19.11, true) or _root.AllWalls.hitTest(_root.hitTester._x, _root.hitTester._y - 19.11, true) or (_root.AllWalls.hitTest(_root.hitTester._x + 19.11, _root.hitTester._y + 1.47, true) or _root.AllWalls.hitTest(_root.hitTester._x - 19.11, _root.hitTester._y + 19.11, true) or _root.AllWalls.hitTest(_root.hitTester._x, _root.hitTester._y + 19.11, true))) {
if (_root.WalkWalls.hitTest(_root.hitTester._x + 19.11, _root.hitTester._y - 1.47, true) or _root.WalkWalls.hitTest(_root.hitTester._x - 19.11, _root.hitTester._y - 19.11, true) or _root.WalkWalls.hitTest(_root.hitTester._x, _root.hitTester._y - 19.11, true) or (_root.WalkWalls.hitTest(_root.hitTester._x + 19.11, _root.hitTester._y + 1.47, true) or _root.WalkWalls.hitTest(_root.hitTester._x - 19.11, _root.hitTester._y + 19.11, true) or _root.WalkWalls.hitTest(_root.hitTester._x, _root.hitTester._y + 19.11, true))) {
_root.hitTester._y = OldY2;
} else {
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) or _root.hitTester.hitTest(_root.PackAPunch)) {
_root.hitTester._y = OldY2;
}
++wall;
}
}
}
XMoveBack = 0;
YMoveBack = 0;
if (_root.FaciZombies.data.Map == 'Salvage' or _root.FaciZombies.data.Map == 'Sandbox') {
if (_root.hitTester._x >= Stage.width) {
XMoveBack = (_root.hitTester._x - Stage.width) / 10;
}
if (_root.hitTester._x <= -700) {
XMoveBack = (_root.hitTester._x + 700) / 10;
}
if (_root.hitTester._y >= Stage.height + 400) {
YMoveBack = (_root.hitTester._y - (Stage.height + 400)) / 10;
}
if (_root.hitTester._y <= -500) {
YMoveBack = (_root.hitTester._y + 500) / 10;
}
_root.hitTester._x -= XMoveBack;
_root.hitTester._y -= YMoveBack;
}
if (_root.FaciZombies.data.Attachments[Weapon] != 7) {
_x = _root.hitTester._x;
_y = _root.hitTester._y;
} else {
_x = _root.hitTester._x - 20 * Math.cos((_rotation + 60) * Math.PI / 180);
_y = _root.hitTester._y - 20 * Math.sin((_rotation + 60) * Math.PI / 180);
}
var wall = 1;
while (wall <= _root.TotalWalls) {
if (_root.Player.hitTest('_root.Wall' + wall)) {
if (_root.HelpTextContent == 16) {
if (_root.WallType[wall] == 2 or _root.WallType[wall] == 5) {
_root.HelpTextContent = 2;
_root.HelpTextTimer = 100;
}
if (_root.WallType[wall] == 7 or _root.WallType[wall] == 3) {
_root.HelpTextContent = 3;
_root.HelpTextTimer = 100;
}
}
if (_root.FaciZombies.data.Achievements[2] == 1) {
temp = 400 * (wall - 18);
} else {
temp = 500 * (wall - 18);
}
if (Key.isDown(70) and _root.Player.hitTest('_root.Wall' + wall) and _root.WallType[wall] == 3 and _root.Player.Score >= temp) {
_root.WallType[wall] = 4;
Score -= temp;
_root.RemovedWalls += 1;
_root.PossibleTiles = _root.GetPossibleTiles(_root.RemovedWalls);
}
if (Key.isDown(70) and !_root.Player.hitTest(_root.Crate) and !_root.Player.hitTest(_root.Crate)) {
if (_root.WallType[wall] == 5 or _root.WallType[wall] == 2) {
if (_root.WallHP[wall] < 100 + 200 * _root.FaciZombies.data.Barricades) {
_root.WallHP[wall] += 10;
_root.Player.Score += _root.Double * _root.Bonus * 5;
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 5;
_root.WallType[wall] = 2;
}
}
}
}
++wall;
}
}
if (CamFollow) {
_root._x = Stage.width / 2 - _root.Player._x;
_root._y = Stage.height / 2 - _root.Player._y;
}
if (!_root.RadarActive and (_root.FaciZombies.data.Map == 'Salvage' or _root.FaciZombies.data.Map == 'Sandbox')) {
if (_root._x >= Stage.width - 100) {
_root._x = Stage.width - 100;
}
if (_root._x <= -300) {
_root._x = -300;
}
if (_root._y >= Stage.height) {
_root._y = Stage.height;
}
if (_root._y <= -700) {
_root._y = -700;
}
}
_root.DamageView._x = -_root._x;
_root.DamageView._y = -_root._y;
_root.Display._x = -_root._x;
_root.Display._y = -_root._y;
if (!LastStand and (Key.isDown(49) or Key.isDown(50))) {
if (ChangeTimer < 0) {
if (WeaponSlot2 == 0 and Key.isDown(50)) {
_root.soundFX.attachSound('SecondaryWeapon.mp3');
_root.soundFX.start();
}
if (WeaponSlot2 == 1 and Key.isDown(49)) {
_root.soundFX.attachSound('PrimaryWeapon.mp3');
_root.soundFX.start();
}
}
ChangeTimer = 10;
gotoAndStop(Slot[Weapon] * 65 + 1);
reloading = false;
Loaded = true;
knifing = false;
AlternateFire = false;
}
--ChangeTimer;
WeaponSlot2 = WeaponSlot;
if (!reloading and !knifing and !PlacingClaymore) {
if (!LastStand) {
if (Key.isDown(81) and ep >= 50) {
_root.Player.gotoAndPlay(Slot[Weapon] * 65 + 47);
ep -= 50;
knifing = true;
PlacingClaymore = false;
_root.isMouseDown = false;
}
}
if (Key.isDown(82) and Mags[_root.Player.WeaponSlot] > 0 or Ammo[_root.Player.WeaponSlot] == 0 and Mags[_root.Player.WeaponSlot] > 0) {
if (LastStand) {
gotoAndPlay(158);
} else {
gotoAndPlay(Slot[Weapon] * 65 + 2);
}
knifing = false;
reloading = true;
PlacingClaymore = false;
_root.isMouseDown = false;
}
}
if (LoadStyle[Weapons[1]] == 5 and (_root.Player.WeaponSlot != 1 or !_root.isMouseDown) and Ammo[1] > 0) {
Ammo[1] += 0.25;
if (WeaponType[Weapon[1]] == 7) {
Ammo[1] += _root.FaciZombies.data.Flamethrower / 10;
}
if (Ammo[1] > MaxAmmo[Weapons[1]]) {
Ammo[1] = MaxAmmo[Weapons[1]];
}
}
if (LoadStyle[Weapons[0]] == 5 and (_root.Player.WeaponSlot or !_root.isMouseDown) != 0 and Ammo[0] > 0) {
Ammo[0] += 0.25;
if (WeaponType[Weapon[0]] == 7) {
Ammo[1] += _root.FaciZombies.data.Flamethrower / 10;
}
if (Ammo[0] > MaxAmmo[Weapons[0]]) {
Ammo[0] = MaxAmmo[Weapons[0]];
}
}
if (LoadStyle[Weapons[2]] == 5 and (_root.Player.WeaponSlot != 2 or !_root.isMouseDown)) {
Ammo[2] += 0.25;
if (WeaponType[Weapon[2]] == 7) {
Ammo[2] += _root.FaciZombies.data.Flamethrower / 10;
}
if (Ammo[2] > MaxAmmo[Weapons[2]]) {
Ammo[2] = MaxAmmo[Weapons[2]];
}
}
ep += 0.5;
if (_root.Perk2 == 'Marathon') {
ep += 0.25;
}
if (ep > _root.MaxEP) {
ep = _root.MaxEP;
}
if (_root.Jug) {
hp = _root.Player.JugHP;
}
--_root.MedicTimer;
if (_root.MedicTimer < 0) {
_root.Jug = false;
_root.Recover = false;
}
hp += 0.1;
if (_root.FaciZombies.data.PersonLook == 3 or _root.FaciZombies.data.PersonLook == 4) {
hp += 0.1;
}
if (!LastStand or _root.FaciZombies.data.Map == 'Campaign') {
hp += 0.1;
if (_root.Perk1 == 'Hardline') {
hp += 0.1;
}
if (_root.Recover) {
hp += 0.1;
}
}
if (hp > _root.MaxHP) {
hp = _root.MaxHP;
if (LastStand and !PlacingClaymore) {
_root.Player.gotoAndStop(Slot[Weapon] * 65 + 1);
LastStand = false;
}
}
if (Grenades > 4) {
Grenades = 4;
}
if (SpecialGrenades > 2) {
SpecialGrenades = 2;
}
if (RifleGrenades > 4) {
RifleGrenades = 4;
}
}
if (_root.Player.hp <= 0 or _root.DeadTimer == 10) {
_root.Crate.Weapon = 0;
_root.Crate.gotoAndStop(0);
_root.gotoAndStop(_root.DeathFrame);
}
}
}
movieClip 1014 {
}
instance ClaymoreT of movieClip 1014 {
onClipEvent (load) {
ExplosionTimer = 10;
Exploding = false;
this._rotation = _root.Player._rotation + 133;
if (this == _root.ClaymoreT) {
_visible = false;
}
if (this != _root.ClaymoreT) {
Frame = _root._currentframe;
_visible = true;
}
}
onClipEvent (enterFrame) {
if (this != _root.ClaymoreT) {
if (Frame != _root._currentframe) {
this.removeMovieClip();
}
if (!_root.Playing) {
this.removeMovieClip();
}
if (_root.ZombieAmount > 0) {
for (zombie in _root._level0.Zombies) {
if (this.hitTest(_root.Zombies[zombie]) and _root.Zombies[zombie].hp > 0 and _root.Zombies[zombie].Type != 'Ghost') {
Exploding = true;
}
}
}
if (Exploding) {
--ExplosionTimer;
}
if (ExplosionTimer <= 0) {
++_root.ExplosionID;
_root.Explosions[_root.ExplosionID] = _root.MakeObject('Explosion', _root.ClayExplosionT, 'TopAllign', _x, _y, _rotation - 90, 80);
this.removeMovieClip();
}
}
}
}
instance GrenadeT of movieClip 993 {
onClipEvent (load) {
if (this == _root.GrenadeT) {
_visible = false;
}
if (this != _root.GrenadeT) {
_visible = true;
xmove = (Math.sqrt(Math.pow(_root.hitTester._x - _root._xmouse, 2) + Math.pow(_root.hitTester._y - _root._ymouse, 2)) / 10) * Math.cos(((_root.Player._rotation + 43) / 180) * Math.PI);
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;
}
if (_root.RadarActive) {
xmove *= 1.5;
ymove *= 1.5;
}
ExplosionTimer = 60;
}
onClipEvent (enterFrame) {
if (!_root.Pause) {
if (this != _root.GrenadeT) {
xmove *= 0.91;
ymove *= 0.91;
rotating *= 0.97;
rotating -= 0.07000000000000001;
temp = 1;
while (temp <= 4) {
_x = _x + xmove / 4;
if (_root.AbsoluteWalls.hitTest(_x, _y, true)) {
xmove *= -1;
_x = _x + xmove / 4;
}
_y = _y + ymove / 4;
if (_root.AbsoluteWalls.hitTest(_x, _y, true)) {
ymove *= -1;
_y = _y + ymove / 4;
}
_rotation = _rotation + rotating / 4;
++temp;
}
--ExplosionTimer;
if (ExplosionTimer <= 0) {
++_root.ExplosionID;
_root.Explosions[_root.ExplosionID] = _root.MakeObject('Explosion', _root.ExplosionT, 'TopAllign', _x, _y, random(360), 80);
this.removeMovieClip();
}
}
}
}
}
movieClip 1016 {
}
instance RifleGrenadeT of movieClip 1016 {
onClipEvent (load) {
Weapon = input1;
if (this == _root.RifleGrenadeT) {
_visible = false;
}
if (this != _root.RifleGrenadeT) {
TargetX = _root._xmouse;
TagertY = _root._ymouse;
_visible = true;
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);
if (_root.RadarActive) {
TargetX += 0.5 * (_root.hitTester._x - _root._xmouse);
TargetY += 0.5 * (_root.hitTester._y - _root._ymouse);
xmove *= 1.5;
ymove *= 1.5;
}
_rotation = _root.Player._rotation - 47;
}
}
onClipEvent (enterFrame) {
if (this != _root.RifleGrenadeT) {
var wall = 1;
while (wall <= _root.TotalWalls) {
if (_root.AbsoluteWalls.hitTest(_x, _y, true)) {
++_root.ExplosionID;
_root.Explosions[_root.ExplosionID] = _root.MakeObject('Explosion', _root.ExplosionT, 'TopAllign', _x, _y, random(360), Weapon);
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.ExplosionID;
_root.Explosions[_root.ExplosionID] = _root.MakeObject('Explosion', _root.ExplosionT, 'TopAllign', _x, _y, random(360), Weapon);
this.removeMovieClip();
}
}
}
}
movieClip 1018 {
}
movieClip 1019 {
frame 1 {
stop();
}
frame 2 {
_root.soundFX.attachSound('Injured.mp3');
_root.soundFX.start();
}
frame 26 {
}
}
movieClip 1029 {
instance of movieClip 1019 {
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (_root.Player.hp >= 75) {
gotoAndStop(1);
} else {
play();
}
}
if (_currentframe == 26) {
if (_root.Player.hp < 75) {
gotoAndPlay(3);
}
}
}
}
}
instance DamageView of movieClip 1029 {
onClipEvent (load) {
_visible = false;
gotoAndStop(10);
_root.DamageView._x = -_root._x;
_root.DamageView._y = -_root._y;
_height = Stage.height;
_width = Stage.width;
_alpha = 100;
_visible = true;
}
}
movieClip 1033 {
}
movieClip 1035 {
}
button 1040 {
on (rollOver) {
_root.Description.Stat = 0;
}
on (press) {
_root.gotoAndStop(_root.DeathFrame);
_root.Player.hp = 0;
_root.Pause = true;
_root.FaciZombies.data.CampaignLevel = 1 + 3 * (_root.FaciZombies.data.Chapter - 1);
}
}
button 1042 {
on (rollOver) {
_root.Description.Stat = 0;
}
on (press) {
_root.gotoAndStop(_root.DeathFrame);
_root.DeadTimer = 10;
}
}
button 1044 {
on (rollOver) {
_root.Description.Stat = 0;
}
on (press) {
if (_root.Level < _root.FaciZombies.data.Level) {
_root.Level += 1;
}
}
}
button 1046 {
on (press) {
_root.Pause = false;
}
}
button 1049 {
on (rollOver) {
Stat = 10;
}
on (press) {
if (_root.FaciZombies.data.UnlockedWeapons[Stat] and _root.Player.Score > WeaponCost) {
_root.BuyWeapon(Stat);
_root.Player.Score -= WeaponCost;
}
}
}
button 1052 {
on (rollOver) {
Stat = 5;
}
on (press) {
if (_root.FaciZombies.data.UnlockedWeapons[Stat] and _root.Player.Score > WeaponCost) {
_root.BuyWeapon(Stat);
_root.Player.Score -= WeaponCost;
}
}
}
button 1056 {
on (rollOver) {
Stat = 6;
}
on (press) {
if (_root.FaciZombies.data.UnlockedWeapons[Stat] and _root.Player.Score > WeaponCost) {
_root.BuyWeapon(Stat);
_root.Player.Score -= WeaponCost;
}
}
}
button 1058 {
on (rollOver) {
Stat = 7;
}
on (press) {
if (_root.FaciZombies.data.UnlockedWeapons[Stat] and _root.Player.Score > WeaponCost) {
_root.BuyWeapon(Stat);
_root.Player.Score -= WeaponCost;
}
}
}
button 1062 {
on (rollOver) {
Stat = 9;
}
on (press) {
if (_root.FaciZombies.data.UnlockedWeapons[Stat] and _root.Player.Score > WeaponCost) {
_root.BuyWeapon(Stat);
_root.Player.Score -= WeaponCost;
}
}
}
button 1066 {
on (rollOver) {
Stat = 12;
}
on (press) {
if (_root.FaciZombies.data.UnlockedWeapons[Stat] and _root.Player.Score > WeaponCost) {
_root.BuyWeapon(Stat);
_root.Player.Score -= WeaponCost;
}
}
}
movieClip 1078 {
}
button 1079 {
on (rollOver) {
Stat = 2;
}
on (press) {
if (_root.FaciZombies.data.UnlockedWeapons[Stat] and _root.Player.Score > WeaponCost) {
_root.BuyWeapon(Stat);
_root.Player.Score -= WeaponCost;
}
}
}
button 1083 {
on (rollOver) {
Stat = 8;
}
on (press) {
if (_root.FaciZombies.data.UnlockedWeapons[Stat] and _root.Player.Score > WeaponCost) {
_root.BuyWeapon(Stat);
_root.Player.Score -= WeaponCost;
}
}
}
button 1087 {
on (rollOver) {
Stat = 3;
}
on (press) {
if (_root.FaciZombies.data.UnlockedWeapons[Stat] and _root.Player.Score > WeaponCost) {
_root.BuyWeapon(Stat);
_root.Player.Score -= WeaponCost;
}
}
}
button 1090 {
on (rollOver) {
Stat = 1;
}
on (press) {
if (_root.FaciZombies.data.UnlockedWeapons[Stat] and _root.Player.Score > WeaponCost) {
_root.BuyWeapon(Stat);
_root.Player.Score -= WeaponCost;
}
}
}
button 1094 {
on (rollOver) {
Stat = 14;
}
on (press) {
if (_root.FaciZombies.data.UnlockedWeapons[Stat] and _root.Player.Score > WeaponCost) {
_root.BuyWeapon(Stat);
_root.Player.Score -= WeaponCost;
}
}
}
button 1098 {
on (rollOver) {
Stat = 16;
}
on (press) {
if (_root.FaciZombies.data.UnlockedWeapons[Stat] and _root.Player.Score > WeaponCost) {
_root.BuyWeapon(Stat);
_root.Player.Score -= WeaponCost;
}
}
}
button 1101 {
on (rollOver) {
Stat = 17;
}
on (press) {
if (_root.FaciZombies.data.UnlockedWeapons[Stat] and _root.Player.Score > WeaponCost) {
_root.BuyWeapon(Stat);
_root.Player.Score -= WeaponCost;
}
}
}
button 1105 {
on (rollOver) {
Stat = 13;
}
on (press) {
if (_root.FaciZombies.data.UnlockedWeapons[Stat] and _root.Player.Score > WeaponCost) {
_root.BuyWeapon(Stat);
_root.Player.Score -= WeaponCost;
}
}
}
button 1109 {
on (rollOver) {
Stat = 18;
}
on (press) {
if (_root.FaciZombies.data.UnlockedWeapons[Stat] and _root.Player.Score > WeaponCost) {
_root.BuyWeapon(Stat);
_root.Player.Score -= WeaponCost;
}
}
}
button 1112 {
on (press) {
UpgradeWeapon = 3;
gotoAndStop(3);
}
}
button 1113 {
on (press) {
UpgradeWeapon = 10;
gotoAndStop(3);
}
}
button 1114 {
on (press) {
UpgradeWeapon = 6;
gotoAndStop(3);
}
}
button 1115 {
on (press) {
UpgradeWeapon = 7;
gotoAndStop(3);
}
}
button 1116 {
on (press) {
UpgradeWeapon = 2;
gotoAndStop(3);
}
}
button 1117 {
on (press) {
UpgradeWeapon = 8;
gotoAndStop(3);
}
}
button 1118 {
on (press) {
UpgradeWeapon = 16;
gotoAndStop(3);
}
}
button 1119 {
on (press) {
UpgradeWeapon = 1;
gotoAndStop(3);
}
}
button 1120 {
on (press) {
UpgradeWeapon = 12;
gotoAndStop(3);
}
}
button 1121 {
on (press) {
UpgradeWeapon = 14;
gotoAndStop(3);
}
}
button 1122 {
on (press) {
UpgradeWeapon = 18;
gotoAndStop(3);
}
}
button 1123 {
on (press) {
UpgradeWeapon = 5;
gotoAndStop(3);
}
}
button 1124 {
on (press) {
UpgradeWeapon = 9;
gotoAndStop(3);
}
}
button 1125 {
on (press) {
UpgradeWeapon = 17;
gotoAndStop(3);
}
}
button 1126 {
on (press) {
UpgradeWeapon = 13;
gotoAndStop(3);
}
}
button 1128 {
on (rollOver) {
Stat = 11;
}
on (press) {
if (_root.FaciZombies.data.UnlockedWeapons[Stat] and _root.Player.Score > WeaponCost) {
_root.BuyWeapon(Stat);
_root.Player.Score -= WeaponCost;
}
}
}
button 1130 {
on (press) {
UpgradeWeapon = 11;
gotoAndStop(3);
}
}
button 1132 {
on (rollOver) {
Stat = 20;
}
on (press) {
if (_root.FaciZombies.data.UnlockedWeapons[Stat] and _root.Player.Score > WeaponCost) {
_root.BuyWeapon(Stat);
_root.Player.Score -= WeaponCost;
}
}
}
button 1134 {
on (press) {
UpgradeWeapon = 20;
gotoAndStop(3);
}
}
button 1136 {
on (rollOver) {
Stat = 21;
}
on (press) {
if (_root.FaciZombies.data.UnlockedWeapons[Stat] and _root.Player.Score > WeaponCost) {
_root.BuyWeapon(Stat);
_root.Player.Score -= WeaponCost;
}
}
}
button 1138 {
on (press) {
UpgradeWeapon = 21;
gotoAndStop(3);
}
}
button 1140 {
on (rollOver) {
Stat = 4;
}
on (press) {
if (_root.FaciZombies.data.UnlockedWeapons[Stat] and _root.Player.Score > WeaponCost) {
_root.BuyWeapon(Stat);
_root.Player.Score -= WeaponCost;
}
}
}
button 1143 {
on (press) {
UpgradeWeapon = 4;
gotoAndStop(3);
}
}
button 1145 {
on (rollOver) {
Stat = 22;
}
on (press) {
if (_root.FaciZombies.data.UnlockedWeapons[Stat] and _root.Player.Score > WeaponCost) {
_root.BuyWeapon(Stat);
_root.Player.Score -= WeaponCost;
}
}
}
button 1147 {
on (press) {
UpgradeWeapon = 22;
gotoAndStop(3);
}
}
button 1149 {
on (rollOver) {
Stat = 19;
}
on (press) {
if (_root.FaciZombies.data.UnlockedWeapons[Stat] and _root.Player.Score > WeaponCost) {
_root.BuyWeapon(Stat);
_root.Player.Score -= WeaponCost;
}
}
}
button 1151 {
on (press) {
UpgradeWeapon = 19;
gotoAndStop(3);
}
}
button 1153 {
on (rollOver) {
Stat = 23;
}
on (press) {
if (_root.FaciZombies.data.UnlockedWeapons[Stat] and _root.Player.Score > WeaponCost) {
_root.BuyWeapon(Stat);
_root.Player.Score -= WeaponCost;
}
}
}
button 1155 {
on (press) {
UpgradeWeapon = 23;
gotoAndStop(3);
}
}
button 1158 {
on (rollOver) {
Stat = 31;
}
on (press) {
if (_root.Player.Score >= 7500) {
_root.Player.Score -= 7500;
_root.Player.LastStand = false;
_root.Player.Weapon = _root.Player.OldWeapon;
_root.Player.gotoAndStop(1);
_root.ShowWeapon._visible = true;
_root.RoundText._visible = true;
_root.MagText._visible = true;
}
}
}
button 1161 {
on (rollOver) {
Stat = 32;
}
on (press) {
if (_root.Player.Score >= 5000) {
_root.Player.hp += (100 - _root.Player.hp) / 2;
_root.Player.Score -= 5000;
}
}
}
button 1164 {
on (rollOver) {
Stat = 33;
}
on (press) {
if (_root.Player.Score >= 2500) {
_root.Player.Score -= 2500;
_root.Recover = true;
_root.MedicTimer = 200;
}
}
}
button 1168 {
on (rollOver) {
Stat = 35;
}
on (press) {
if (_root.Player.Score >= 10000) {
_root.Player.Score -= 10000;
_root.Player.hp = 100;
_root.Player.LastStand = false;
_root.Player.Weapon = _root.Player.OldWeapon;
_root.Player.gotoAndStop(1);
_root.ShowWeapon._visible = true;
_root.RoundText._visible = true;
_root.MagText._visible = true;
}
}
}
button 1172 {
on (rollOver) {
Stat = 34;
}
on (press) {
if (_root.Player.Score >= 10000) {
_root.Player.Score -= 10000;
_root.Jug = true;
_root.Player.JugHP = _root.Player.hp;
_root.MedicTimer = 200;
}
}
}
button 1179 {
on (rollOver) {
DamageOver = true;
}
on (press) {
DamagePress = true;
DamageOver = true;
}
}
button 1182 {
on (rollOver) {
MagOver = true;
}
on (press) {
MagPress = true;
MagOver = true;
}
}
button 1185 {
on (rollOver) {
SpreadOver = true;
}
on (press) {
SpreadPress = true;
SpreadOver = true;
}
}
movieClip 1190 {
}
button 1194 {
on (rollOver) {
AmmoOver = true;
}
on (press) {
AmmoPress = true;
AmmoOver = true;
}
}
button 1197 {
on (rollOver) {
RangeOver = true;
}
on (press) {
RangePress = true;
RangeOver = true;
}
}
button 1198 {
on (rollOver) {
DamageOver = true;
}
on (press) {
DamageOver = true;
DamagePress = true;
}
}
button 1199 {
on (rollOver) {
MagOver = true;
}
on (press) {
MagOver = true;
MagPress = true;
}
}
button 1202 {
on (rollOver) {
PenetrationOver = true;
}
on (press) {
PenetrationOver = true;
PenetrationPress = true;
}
}
button 1203 {
on (rollOver) {
SpreadOver = true;
}
on (press) {
SpreadOver = true;
SpreadPress = true;
}
}
button 1204 {
on (rollOver) {
AmmoOver = true;
}
on (press) {
AmmoOver = true;
AmmoPress = true;
}
}
button 1205 {
on (rollOver) {
DamageOver = true;
}
on (press) {
DamageOver = true;
DamagePress = true;
}
}
button 1206 {
on (rollOver) {
AmmoOver = true;
}
on (press) {
AmmoOver = true;
AmmoPress = true;
}
}
button 1209 {
on (rollOver) {
DelayOver = true;
}
on (press) {
DelayOver = true;
DelayPress = true;
}
}
button 1210 {
on (rollOver) {
RangeOver = true;
}
on (press) {
RangeOver = true;
RangePress = true;
}
}
movieClip 1211 {
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.MAGUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.SPRUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
this.gotoAndStop(_root.FaciZombies.data.DAMUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.SPRUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.AMMUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.RANUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.MAGUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
this.gotoAndStop(_root.FaciZombies.data.DAMUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.PENUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.DAMUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.SPRUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.MAGUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.AMMUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.PENUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.SPRUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.DAMUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.AMMUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.MAGUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.MAGUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.SPRUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.DAMUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.DELUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.PENUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.RANUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.PENUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.SPRUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.AMMUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.DAMUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.PENUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.MAGUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.MAGUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.DAMUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.AMMUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.DELUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.AMMUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.MAGUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.AMMUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.SPRUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.DAMUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.PENUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.SPRUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.SPRUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.RANUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.MAGUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.DAMUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.SPRUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.PENUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.RANUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.SPRUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.AMMUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.MAGUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.SPRUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.AMMUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1190 {
onClipEvent (enterFrame) {
if (_root.PerkSelect.UpgradeWeapon != undefined) {
gotoAndStop(_root.FaciZombies.data.RANUpgrade[_root.PerkSelect.UpgradeWeapon] + 1);
_visible = true;
} else {
_visible = false;
}
}
}
}
movieClip 1212 {
instance of movieClip 1078 {
onClipEvent (press) {
_root.PerkSelect.gotoAndStop(2);
}
}
instance of movieClip 1078 {
onClipEvent (press) {
_root.PerkSelect.gotoAndStop(1);
}
}
instance of movieClip 500 {
onClipEvent (enterFrame) {
gotoAndStop(_root.PerkSelect.UpgradeWeapon);
_height = 211.6;
_xscale = _yscale;
}
}
instance of movieClip 1211 {
onClipEvent (enterFrame) {
UpgradeWeapon = _root.PerkSelect.UpgradeWeapon;
gotoAndStop(_root.PerkSelect.UpgradeWeapon);
if (!this.hitTest(_root._xmouse, _root._ymouse, true)) {
DamageOver = false;
PenetrationOver = false;
MagOver = false;
AmmoOver = false;
SpreadOver = false;
DelayOver = false;
RangeOver = false;
}
UpgradeType = '';
if (DamageOver) {
cost = [0, 20000, 0, 20000, 25000, 0, 17500, 15000, 0, 0, 20000, 5000, 0, 0, 12500, 0, 0, 20000, 20000, 17500, 15000, 20000, 25000, 0][UpgradeWeapon];
effect = _root.DamageUpgrades[UpgradeWeapon];
UpgradeType = '+ ' + effect + ' Damage / ' + cost + ' points.';
}
if (PenetrationOver) {
cost = [0, 0, 0, 15000, 20000, 20000, 0, 0, 15000, 30000, 15000, 0, 0, 0, 20000, 0, 0, 0, 20000, 15000, 10000, 20000, 25000, 0][UpgradeWeapon];
effect = _root.PenetrationUpgrades[UpgradeWeapon];
UpgradeType = '+ ' + effect + ' Penetration / ' + cost + ' points.';
}
if (MagOver) {
cost = [0, 10000, 0, 6000, 25000, 0, 7500, 8000, 0, 0, 10000, 10000, 10000, 20000, 0, 0, 10000, 20000, 0, 0, 0, 12500, 25000, 0][UpgradeWeapon];
effect = _root.MagUpgrades[UpgradeWeapon];
UpgradeType = '+ ' + effect + ' Max Mags / ' + cost + ' points.';
}
if (AmmoOver) {
cost = [0, 0, 15000, 0, 0, 7500, 10000, 0, 0, 30000, 0, 35000, 12500, 20000, 0, 0, 0, 0, 0, 0, 10000, 0, 0, 15000][UpgradeWeapon];
effect = _root.AmmoUpgrades[UpgradeWeapon];
UpgradeType = '+ ' + effect + ' Clip size / ' + cost + ' points.';
}
if (SpreadOver) {
cost = [0, 5000, 10000, 0, 10000, 13000, 0, 5000, 0, 15000, 0, 0, 0, 12500, 8000, 0, 15000, 13500, 0, 10000, 0, 0, 0, 10000][UpgradeWeapon];
effect = _root.SpreadUpgrades[UpgradeWeapon];
UpgradeType = '- ' + effect + ' Spread / ' + cost + ' points.';
}
if (DelayOver) {
cost = [0, 0, 0, 0, 0, 0, 0, 0, 50000, 0, 0, 0, 10000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0][UpgradeWeapon];
effect = _root.DelayUpgrades[UpgradeWeapon];
UpgradeType = '- ' + effect + ' Fire Delay / ' + cost + ' points.';
}
if (RangeOver) {
cost = [0, 0, 7500, 0, 0, 0, 0, 0, 10000, 0, 0, 0, 0, 0, 0, 0, 5000, 0, 5000, 0, 0, 0, 0, 7500][UpgradeWeapon];
effect = _root.RangeUpgrades[UpgradeWeapon];
UpgradeType = '+ ' + effect + ' Range / ' + cost + ' points.';
}
values = UpgradeType;
if (_root.Player.Score >= cost) {
if (DamagePress) {
DamagePress = false;
effect = _root.DamageUpgrades[UpgradeWeapon];
if (_root.FaciZombies.data.DAMUpgrade[UpgradeWeapon] < 3) {
_root.FaciZombies.data.DAMUpgrade[UpgradeWeapon] += 1;
_root.Player.Score -= cost;
_root.Player.Damage[UpgradeWeapon] += effect;
}
}
if (PenetrationPress) {
PenetrationPress = false;
if (_root.FaciZombies.data.PENUpgrade[UpgradeWeapon] < 3) {
effect = _root.PenetrationUpgrades[UpgradeWeapon];
_root.FaciZombies.data.PENUpgrade[UpgradeWeapon] += 1;
_root.Player.Score -= cost;
_root.Player.Penetrating[UpgradeWeapon] += effect;
}
}
if (RangePress) {
RangePress = false;
if (_root.FaciZombies.data.RANUpgrade[UpgradeWeapon] < 3) {
effect = _root.RangeUpgrades[UpgradeWeapon];
_root.FaciZombies.data.RANUpgrade[UpgradeWeapon] += 1;
_root.Player.Score -= cost;
_root.Player.Range[UpgradeWeapon] += effect;
}
}
if (SpreadPress) {
SpreadPress = false;
if (_root.FaciZombies.data.SPRUpgrade[UpgradeWeapon] < 3) {
effect = _root.SpreadUpgrades[UpgradeWeapon];
_root.FaciZombies.data.SPRUpgrade[UpgradeWeapon] += 1;
_root.Player.Score -= cost;
_root.Player.WeaponSpread[UpgradeWeapon] -= effect;
}
}
if (DelayPress) {
DelayPress = false;
if (_root.FaciZombies.data.DELUpgrade[UpgradeWeapon] < 3) {
_root.FaciZombies.data.DELUpgrade[UpgradeWeapon] += 1;
effect = _root.DelayUpgrades[UpgradeWeapon];
_root.Player.Score -= cost;
_root.Player.Speed[UpgradeWeapon] -= effect;
}
}
if (AmmoPress) {
AmmoPress = false;
if (_root.FaciZombies.data.AMMUpgrade[UpgradeWeapon] < 3) {
_root.FaciZombies.data.AMMUpgrade[UpgradeWeapon] += 1;
effect = _root.AmmoUpgrades[UpgradeWeapon];
_root.Player.Score -= cost;
_root.Player.MaxAmmo[UpgradeWeapon] += effect;
}
}
if (MagPress) {
MagPress = false;
if (_root.FaciZombies.data.MAGUpgrade[UpgradeWeapon] < 3) {
effect = _root.MagUpgrades[UpgradeWeapon];
_root.FaciZombies.data.MAGUpgrade[UpgradeWeapon] += 1;
_root.Player.Score -= cost;
_root.Player.MaxMags[UpgradeWeapon] += effect;
}
}
}
}
}
}
instance PerkSelect of movieClip 1212 {
onClipEvent (load) {
this.cacheAsBitmap = true;
Stat = 0;
gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (!_root.Pause) {
_visible = false;
_height = 1;
_width = 1;
} else {
if (!_root.Intro._visible) {
_visible = true;
}
_width = Stage.width;
_height = Stage.height;
_x = Stage.width / 2 - _root._x;
_y = Stage.height / 2 - _root._y;
Effect = '';
Effect2 = '';
Effect3 = '';
WeaponCost = [0, 30, 8, 15, 75, 100, 10, 12, 25, 350 + 650 * _root.FaciZombies.data.DeathMachine, 10, 100, 35, 350, 50, 0, 25, 500, 50, 75, 25, 50, 350, 50][Stat];
WeaponCost *= 100;
if (Stat <= 23) {
gauprice = 'Price: ' + (35000 + 65000 * _root.FaciZombies.data.DeathMachine);
StatText = '';
switch (_root.Player.WeaponType[Stat]) {
case 1:
StatText = 'Light Weapon';
break;
case 2:
StatText = 'Assault Rifle';
break;
case 3:
StatText = 'Sniper Rifle';
break;
case 4:
StatText = 'Light Machine Gun';
break;
case 5:
StatText = 'Shotgun';
break;
case 6:
StatText = 'Rocket Launcher';
break;
case 7:
StatText = 'Flamethrower';
break;
case 9:
StatText = 'Heavy weapon';
break;
default:
}
AmmoText = '';
MagText = '';
DamageText = '';
PenetratingText = '';
AutoText = '';
SpreadText = '';
DelayText = '';
if (Stat != 0) {
if (_root.Player.WeaponType[Stat] != 7) {
AmmoText = 'Mag size: ';
} else {
AmmoText = 'Max Heat: ';
}
AmmoText += _root.Player.MaxAmmo[Stat];
if (_root.Player.WeaponType[Stat] != 7) {
MagText = 'Mags: ';
} else {
MagText = 'Pipes: ';
}
MagText += _root.Player.MaxMags[Stat];
DamageText = 'Damage: ' + _root.BasicDamage[Stat] + ' + ' + (_root.Player.Damage[Stat] - _root.BasicDamage[Stat]);
PenetratingText = 'Penetrating: ' + _root.BasicPenetrating[Stat] + ' + ' + (_root.Player.Penetrating[Stat] - _root.BasicPenetrating[Stat]);
switch (_root.Player.LoadStyle[Stat]) {
case 1:
AutoText = 'Full Auto';
break;
case 2:
AutoText = 'Bold Action';
break;
case 3:
AutoText = 'Semi Automatic';
break;
case 4:
AutoText = 'Full Auto';
break;
case 6:
AutoText = 'Pump Action';
break;
default:
}
SpreadText = 'Spread: ' + _root.Player.WeaponSpread[Stat];
DelayText = 'Fire Delay: ' + _root.Player.Speed[Stat];
}
} else {
switch (Stat) {
case 31:
Effect = 'Revives you from last';
Effect2 = 'stand.';
break;
case 32:
Effect = 'Recovers 50% of your';
Effect2 = 'lost healt.';
break;
case 33:
Effect = 'Makes you recover';
Effect2 = 'health faster.';
break;
case 34:
Effect = 'Makes you almost';
Effect2 = 'invulnerable for some';
Effect3 = 'time.';
break;
case 35:
Effect = 'Restores all your';
Effect2 = 'wounds.';
break;
default:
}
}
}
}
}
movieClip 1214 {
}
instance MissileT of movieClip 1214 {
onClipEvent (load) {
Weapon = input1;
SmokeTimer = 5;
Shockwave = false;
StartX = _x;
StartY = _y;
if (_root.Player.AmmoType[Weapon] == 7) {
Shockwave = true;
}
if (Weapon > 0) {
this._rotation = Math.round(Math.atan2(_root._xmouse - _x, _root._ymouse - _y) * -180 / Math.PI) + random(_root.Player.WeaponSpread[Weapon]) - random(_root.Player.WeaponSpread[Weapon]);
}
Hit = false;
if (this == _root.MissileT) {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.Playing) {
if (!_root.Pause) {
if (this != _root.MissileT) {
Counter = 1;
while (Counter <= 8) {
if (_root.ZombieAmount > 0 and Weapon > 0) {
for (zombie in _root._level0.Zombies) {
if (this.hitTest(_root.Zombies[zombie]) and _root.Zombies[zombie].Type != 'Ghost') {
if (_root.Zombies[zombie].hp > 0) {
Hit = true;
}
}
}
}
var wall = 1;
while (wall <= _root.TotalWalls) {
if (this.hitTest('_root.Wall' + wall) and _root.WallType[wall] == 1) {
Hit = true;
}
++wall;
}
if (this.hitTest(_root.Tank)) {
Hit = true;
}
if (Math.sqrt(Math.pow(_x - StartX, 2) + Math.pow(_y - StartY, 2)) > 5000) {
Hit = true;
}
--SmokeTimer;
if (SmokeTimer <= 0) {
SmokeTimer = 3;
++_root.ExplosionID;
_root.Explosions[_root.ExplosionID] = _root.MakeObject('Smoke', _root.SmokeT, 'TopAllign', _x, _y, _rotation, 0);
}
if (Shockwave) {
++_root.ExplosionID;
_root.Explosions[_root.ExplosionID] = _root.MakeObject('Shockwave', _root.Shockwave2T, 'TopAllign', _x, _y, this.Counter, Weapon);
}
this._x += 32 * Math.sin(this._rotation / -57.2957);
this._y += 32 * Math.cos(this._rotation / -57.2957);
if (Hit) {
if (Shockwave) {
temp = 1;
while (temp <= 15) {
++_root.ExplosionID;
_root.Explosions[_root.ExplosionID] = _root.MakeObject('Explosion', _root.Flame2T, 'TopAllign', _x, _y, 24 * temp, Weapon);
++temp;
}
this.removeMovieClip();
} else {
++_root.ExplosionID;
_root.Explosions[_root.ExplosionID] = _root.MakeObject('Explosion', _root.ExplosionT, 'TopAllign', _x, _y, _rotation, Weapon);
}
this.removeMovieClip();
}
++Counter;
}
}
}
} else {
this.removeMovieClip();
}
}
}
movieClip 1216 {
}
instance ShockwaveT of movieClip 1216 {
onClipEvent (load) {
Weapon = input1;
_width = 5;
_height = 5;
MaxSize = _root.FaciZombies.data.GhostBuster * 75;
if (this == _root.ShockwaveT) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
if (this != _root.ShockwaveT) {
if (_width <= MaxSize) {
_width = _width + 30;
_height = _height + 30;
for (zombie in _root.Zombies) {
if (_root.GetDistance(this, _root.Zombies[zombie]) < _height / 2) {
if (_root.Zombies[zombie].hp > 0) {
if (_root.Zombies[zombie].Type == 'Ghost') {
_root.Zombies[zombie].hp -= 50;
} else {
_root.Zombies[zombie].Scrambled = true;
_root.Zombies[zombie].hp -= 1 * _root.InstaKill;
}
if (_root.Zombies[zombie].hp <= 0 and _root.FaciZombies.data.Map != 'Sandbox') {
if (Weapon < 80) {
++_root.FaciZombies.data.WeaponKills[Weapon];
} else {
++_root.FaciZombies.data.EquipmentKills[Weapon - 80];
}
}
}
}
}
} else {
this.removeMovieClip();
}
}
}
}
movieClip 1218 {
}
instance Shockwave2T of movieClip 1218 {
onClipEvent (load) {
Weapon = input1;
Delete = false;
_width = 5;
_height = 5;
MaxSize = 20;
if (this == _root.Shockwave2T) {
_visible = false;
_rotation = 0;
} else {
_visible = true;
_width = _width + (10 - _rotation);
_height = _height + (10 - _rotation);
}
}
onClipEvent (enterFrame) {
if (this != _root.Shockwave2T) {
if (!Delete1 and !Delete2) {
if (Delete1) {
Delete2 = true;
}
Delete1 = true;
_width = _width + 10;
_height = _height + 10;
for (zombie in _root.Zombies) {
if (this.hitTest(_root.Zombies[zombie])) {
if (_root.Zombies[zombie].Type != undefined) {
_root.Zombies[zombie].hp -= 50;
if (_root.Zombies[zombie].hp <= 0 and _root.FaciZombies.data.Map != 'Sandbox') {
if (Weapon < 80) {
++_root.FaciZombies.data.WeaponKills[Weapon];
} else {
++_root.FaciZombies.data.EquipmentKills[Weapon - 80];
}
}
} else {
_root.Zombies[zombie].Random *= 0.9;
}
}
}
} else {
this.removeMovieClip();
}
}
}
}
movieClip 1220 {
}
instance DecoyT of movieClip 1220 {
onClipEvent (load) {
Weapon = input1;
if (this == _root.DecoyT) {
_visible = false;
}
if (this != _root.DecoyT) {
_visible = true;
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);
TargetX = _root._xmouse;
TargetY = _root._ymouse;
if (_root.RadarActive) {
TargetX += 0.5 * (_root.hitTester._x - _root._xmouse);
TargetY += 0.5 * (_root.hitTester._y - _root._ymouse);
xmove *= 1.5;
ymove *= 1.5;
}
rotating = 36;
}
ExplosionTimer = 180;
}
onClipEvent (enterFrame) {
if (!_root.Playing) {
this.removeMovieClip();
}
if (!_root.Pause) {
if (this != _root.DecoyT) {
xmove *= 0.98;
ymove *= 0.98;
if (Math.abs(xmove) > 0 or Math.abs(ymove) > 0) {
Counter = 1;
while (Counter <= 5) {
_x = _x + xmove / 5;
_y = _y + ymove / 5;
if (Math.abs(_x - TargetX) < 10 and Math.abs(_y - TargetY) < 10) {
xmove = 0;
ymove = 0;
}
if (_root.AbsoluteWalls.hitTest(_x, _y, true)) {
xmove = 0;
ymove = 0;
}
++Counter;
}
}
if (Math.abs(xmove) < 1 and Math.abs(ymove) < 1) {
--ExplosionTimer;
if (ExplosionTimer / Math.round(ExplosionTimer / 10) == Math.round(ExplosionTimer / Math.round(ExplosionTimer / 10))) {
++_root.ExplosionID;
_root.Explosions[_root.ExplosionID] = _root.MakeObject('Shockwave', _root.ShockwaveT, 'TopAllign', _x, _y, this.Counter, Weapon);
}
}
_rotation = _rotation + rotating;
if (ExplosionTimer <= 0) {
++_root.ExplosionID;
_root.Explosions[_root.ExplosionID] = _root.MakeObject('Explosion', _root.ExplosionT, 'TopAllign', _x, _y, _rotation, Weapon);
this.removeMovieClip();
}
}
}
}
}
movieClip 1222 {
}
instance LaserT of movieClip 1222 {
onClipEvent (load) {
temp = _rotation;
Kills = 0;
Weapon = input1;
Penetrating = 1 + 0 * _root.Player.Penetrating[Weapon];
Damage = _root.Player.Damage[Weapon];
Range = _root.Player.Range[Weapon];
this._rotation = Math.round(Math.atan2(_root._xmouse - _x, _root._ymouse - _y) * -180 / Math.PI);
temp2 = 1;
while (temp2 <= temp) {
this._x += 15 * Math.sin(this._rotation / -57.2957);
this._y += 15 * Math.cos(this._rotation / -57.2957);
if (_root.AbsoluteWalls.hitTest(_x, _y, true)) {
if (Kills > 1) {
_root.FaciZombies.data.MultiKills += Kills;
_root.MultiKillText._visible = true;
_root.MultiKillTimer = 25;
_root.Player.Score += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
if (_root.FaciZombies.data.Map != 'Salvage' and _root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
}
}
this.removeMovieClip();
}
for (zombie in _root._level0.Zombies) {
if (this.hitTest(_root.Zombies[zombie]) and _root.Zombies[zombie].Type == undefined) {
if (_root.Zombies[zombie].hp > 0) {
_root.Zombies[zombie].hp -= Damage * _root.InstaKill * _root.InstaKill;
--Penetrating;
_root.Player.Score += _root.Double * _root.Bonus * 10;
if (_root.FaciZombies.data.Map != 'Salvage' and _root.FaciZombies.data.Map != 'Sandbox') {
if (_root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 10;
}
}
if (_root.Zombies[zombie].hp <= 0 and _root.FaciZombies.data.Map != 'Sandbox') {
_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 += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
if (_root.FaciZombies.data.Map != 'Salvage' and _root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
}
}
this.removeMovieClip();
}
}
}
++temp2;
}
this._visible = true;
StartCount = 3;
if (_root.Player.LastStand) {
StartCount = 1;
}
Counter = StartCount;
while (Counter <= 5) {
if (_root.Player.LastStand) {
if (Damage != 0) {
for (zombie in _root._level0.Zombies) {
if (this.hitTest(_root.Zombies[zombie])) {
if (_root.Zombies[zombie].hp > 0) {
_root.Zombies[zombie].hp -= Damage * _root.InstaKill;
--Penetrating;
_root.Player.Score += _root.Double * _root.Bonus * 10;
if (_root.FaciZombies.data.Map != 'Salvage' and _root.FaciZombies.data.Map != 'Sandbox') {
if (_root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 10;
}
}
if (_root.Zombies[zombie].hp <= 0 and _root.FaciZombies.data.Map != 'Sandbox') {
_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 += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
if (_root.FaciZombies.data.Map != 'Salvage' and _root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
}
}
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;
if (_root.AbsoluteWalls.hitTest(_x, _y, true)) {
this.removeMovieClip();
}
++Counter;
}
if (this == _root.LaserT) {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (!_root.Playing) {
this.removeMovieClip();
}
if (this != _root.LaserT) {
Counter = 1;
while (Counter <= 10) {
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 * _root.InstaKill;
--Penetrating;
_root.Player.Score += _root.Double * _root.Bonus * 10;
if (_root.FaciZombies.data.Map != 'Salvage' and _root.FaciZombies.data.Map != 'Sandbox') {
if (_root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 10;
}
}
if (_root.Zombies[zombie].hp <= 0 and _root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.BulletKills += 1;
_root.FaciZombies.data.WeaponKills[Weapon] += 1;
Kills += 1;
if (_root.FaciZombies.data.PlayerClass == _root.Player.WeaponType[Weapon]) {
_root.FaciZombies.data.Experience[_root.Player.WeaponType[Weapon]] += 1;
if (_root.Perk1 == 'ColdBlooded') {
_root.FaciZombies.data.Experience[_root.Player.WeaponType[Weapon]] += 1;
}
}
}
}
if (Penetrating <= 0) {
if (Kills > 1) {
_root.FaciZombies.data.MultiKills += Kills;
_root.MultiKillText._visible = true;
_root.MultiKillTimer = 25;
_root.Player.Score += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
if (_root.FaciZombies.data.Map != 'Salvage' and _root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
}
}
this.removeMovieClip();
}
}
}
}
this._x += 15 * Math.sin(this._rotation / -57.2957);
this._y += 15 * Math.cos(this._rotation / -57.2957);
if (Math.sqrt((StartX - _x) * (StartX - _x) + (StartY - _y) * (StartY - _y)) > Range) {
if (Kills > 1) {
_root.FaciZombies.data.MultiKills += Kills;
_root.MultiKillText._visible = true;
_root.MultiKillTimer = 25;
_root.Player.Score += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
if (_root.FaciZombies.data.Map != 'Salvage' and _root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
}
}
this.removeMovieClip();
}
var wall = 1;
while (wall <= _root.TotalWalls) {
CurrentWall = '_root.Wall' + wall;
if (this.hitTest(CurrentWall) and (_root.WallType[wall] == 1 or _root.WallType[wall] == 8 and !_root.Player.hitTest(CurrentWall))) {
if (Kills > 1) {
_root.FaciZombies.data.MultiKills += Kills;
_root.MultiKillText._visible = true;
_root.MultiKillTimer = 25;
_root.Player.Score += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
if (_root.FaciZombies.data.Map != 'Salvage' and _root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
}
}
this.removeMovieClip();
}
++wall;
}
++Counter;
}
}
}
}
movieClip 1225 {
frame 8 {
this.removeMovieClip();
}
}
instance SmokeT of movieClip 1225 {
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (!_root.Playing) {
this.removeMovieClip();
}
if (this != _root.SmokeT) {
_alpha = 100 - 13 * _currentframe;
}
}
}
movieClip 1227 {
}
instance MeatT of movieClip 1227 {
onClipEvent (load) {
hp = 100 * _root.Level;
if (this == _root.MeatT) {
_visible = false;
}
if (this != _root.MeatT) {
TargetX = _root._xmouse;
TagertY = _root._ymouse;
_visible = true;
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);
if (_root.RadarActive) {
TargetX += 0.5 * (_root.hitTester._x - _root._xmouse);
TargetY += 0.5 * (_root.hitTester._y - _root._ymouse);
xmove *= 1.5;
ymove *= 1.5;
}
_rotation = _root.Player._rotation - 47;
}
}
onClipEvent (enterFrame) {
if (!_root.Playing or hp <= 0) {
_root.Bite = false;
this.removeMovieClip();
}
if (this != _root.MeatT) {
_root.Bite = true;
_root.GetTile(this);
var wall = 1;
while (wall <= _root.TotalWalls) {
if (this.hitTest('_root.Wall' + wall) and _root.WallType[wall] == 1 or this.hitTest(_root.Crate)) {
xmove = 0;
ymove = 0;
}
++wall;
}
xmove *= 0.98;
ymove *= 0.98;
_x = _x + xmove;
_y = _y + ymove;
if (Math.abs(_x - TargetX) < 25 and Math.abs(_y - TagertY) < 30) {
xmove = 0;
ymove = 0;
}
for (zombie in _root.Zombies) {
if (_root.GetDistance(this, _root.Zombies[zombie]) < 25) {
--hp;
_root.Zombies[zombie].AlphaDoT = true;
}
if (_root.GetDistance(this, _root.Zombies[zombie]) < _root.GetDistance(_root.Zombies[zombie], _root.Zombies[zombie].WalkTo)) {
_root.Zombies[zombie].WalkTo = this;
}
}
}
}
}
movieClip 1229 {
}
instance RCXDT of movieClip 1229 {
onClipEvent (load) {
Control = true;
Explode = false;
if (this == _root.RCXDT) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
if (this != _root.RCXDT) {
if (!_root.Pause) {
_x = _x - Math.round(15 * Math.cos(_rotation * Math.PI / 180));
_y = _y - Math.round(15 * Math.sin(_rotation * Math.PI / 180));
var wall = 1;
while (wall <= _root.TotalWalls) {
if (this.hitTest('_root.Wall' + wall) and _root.WallType[wall] == 1 or this.hitTest(_root.Crate)) {
Explode = true;
}
++wall;
}
if (Control) {
this._rotation = Math.round(Math.atan2(_root._xmouse - this._x, _root._ymouse - this._y) * -180 / Math.PI) - 90;
}
if (Math.abs(_x - _root._xmouse) < 10 and Math.abs(_y - _root._ymouse) < 10) {
Control = false;
}
if (_root.isMouseDown or Explode) {
temp = 0;
while (temp < 360) {
++_root.ExplosionID;
if (_root.ExplosionID == 40) {
_root.ExplosionID = 0;
}
_root.Explosions[_root.ExplosionID] = _root.MakeObject('Explosion', _root.ClayExplosionT, 'TopAllign', _x, _y, _rotation - 90 + temp, 91);
temp += 60;
}
this.removeMovieClip();
}
}
}
}
}
movieClip 1231 {
}
instance MolotovT of movieClip 1231 {
onClipEvent (load) {
Weapon = input1;
Exploding = false;
if (this == _root.MolotovT) {
_visible = false;
} else {
TargetX = _root._xmouse;
TagertY = _root._ymouse;
_visible = true;
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);
if (_root.RadarActive) {
TargetX += 0.5 * (_root.hitTester._x - _root._xmouse);
TargetY += 0.5 * (_root.hitTester._y - _root._ymouse);
xmove *= 1.5;
ymove *= 1.5;
}
temp = 1;
while (temp <= 60) {
_x = _x + xmove / 30;
_y = _y + ymove / 30;
if (Math.abs(_x - TargetX) < 25 and Math.abs(_y - TagertY) < 25 or Exploding) {
temp = 1;
while (temp <= 15) {
++_root.ExplosionID;
_root.Explosions[_root.ExplosionID] = _root.MakeObject('Explosion', _root.Flame2T, 'TopAllign', _x, _y, 24 * temp, 82);
++temp;
}
this.removeMovieClip();
}
++temp;
}
Rotation = 50;
}
}
onClipEvent (enterFrame) {
if (!_root.Playing) {
this.removeMovieClip();
}
if (this != _root.MolotovT and !_root.Pause) {
xmove *= 0.98;
ymove *= 0.98;
_rotation = _rotation + Rotation;
temp = 1;
while (temp <= 30) {
_x = _x + xmove / 30;
_y = _y + ymove / 30;
var wall = 1;
while (wall <= _root.TotalWalls) {
if (this.hitTest('_root.Wall' + wall) and _root.WallType[wall] == 1 or this.hitTest(_root.Crate)) {
Exploding = true;
}
++wall;
}
if (Math.abs(_x - TargetX) < 25 and Math.abs(_y - TagertY) < 25 or Exploding) {
temp = 1;
while (temp <= 15) {
++_root.ExplosionID;
_root.Explosions[_root.ExplosionID] = _root.MakeObject('Explosion', _root.Flame2T, 'TopAllign', _x, _y, 24 * temp, 82);
++temp;
}
this.removeMovieClip();
}
++temp;
}
}
}
}
instance Bullet2T of movieClip 901 {
onClipEvent (load) {
Penetrating = 1;
Damage = 5;
Range = 1000;
if (_root.Partner.LastStand) {
Damage = 20;
Penetrating = 2;
}
Damage *= _root.FaciZombies.data.ArmUp;
this._rotation = _root.Partner._rotation;
this._rotation += random(6) - random(6);
this._alpha = 100;
StartX = _x;
StartY = _y;
this._x += 40 * Math.sin(this._rotation / -57.2957);
this._y += 40 * Math.cos(this._rotation / -57.2957);
if (this == _root.Bullet2T) {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (!_root.Pause) {
if (this != _root.Bullet2T) {
_visible = true;
if (Math.sqrt(Math.pow(StartX - _x, 2) + Math.pow(StartY - _y, 2)) > Range) {
this.removeMovieClip();
}
Counter = 1;
while (Counter <= 10) {
if (_root.ZombieAmount > 0) {
for (zombie in _root.Zombies) {
Zombie = _root.Zombies[zombie];
if (Zombie.hitTest(_x, _y, false)) {
if (Zombie.hp > 0) {
if (Zombie.Type == 'Ghost') {
Zombie.hp -= (Damage / 2) * _root.InstaKill;
} else {
Zombie.hp -= Damage * _root.InstaKill;
}
--Penetrating;
if (Zombie.hp <= 0) {
if (Zombie.Crawling) {
Zombie.gotoAndPlay(246);
} else {
Zombie.gotoAndPlay(159);
}
}
}
if (Penetrating <= 0) {
this.removeMovieClip();
}
}
}
}
this._x += 15 * Math.sin(this._rotation / -57.2957);
this._y += 15 * Math.cos(this._rotation / -57.2957);
if (_root.AbsoluteWalls.hitTest(_x, _y, true)) {
_root.MakeObject('Dust', _root.DustT, 'TopAllign', _x, _y, _rotation);
this.removeMovieClip();
}
++Counter;
}
}
}
}
}
movieClip 1246 {
}
instance PowerUpT of movieClip 1246 {
onClipEvent (load) {
_root.PowerUpTypes = 7;
Type = random(_root.PowerUpTypes) + 1;
DisappearTimer = input2;
_visible = false;
Droped = false;
if (this != _root.PowerUpT) {
_visible = true;
Droped = true;
gotoAndStop(Type);
}
}
onClipEvent (enterFrame) {
if (!_root.Playing or DisappearTimer <= 0) {
this.removeMovieClip();
}
if (!_root.Paused and this != _root.PowerUpT) {
--DisappearTimer;
if (this.hitTest(_root.Player)) {
if (_root.FaciZombies.data.Map != 'Sandbox') {
++_root.FaciZombies.data.PowerUps;
}
switch (Type) {
case 1:
_root.Player.Ammo[0] = _root.Player.MaxAmmo[_root.Player.Weapons[0]];
_root.Player.Ammo[1] = _root.Player.MaxAmmo[_root.Player.Weapons[1]];
if (_root.Player.Mags[0] < _root.Player.MaxMags[_root.Player.Weapons[0]]) {
_root.Player.Mags[0] = _root.Player.MaxMags[_root.Player.Weapons[0]];
}
if (_root.Player.Mags[1] < _root.Player.MaxMags[_root.Player.Weapons[1]]) {
_root.Player.Mags[1] = _root.Player.MaxMags[_root.Player.Weapons[1]];
}
break;
case 2:
_root.InstaKill = 100000;
_root.InstaKillTimer = 500;
break;
case 3:
_root.Double = 2;
_root.DoublePointTimer = 500;
break;
case 4:
for (temp in _root.WallHP) {
_root.WallHP[temp] = 100;
if (_root.WallType[temp] == 5) {
_root.WallType[temp] = 2;
}
}
break;
case 5:
_root.Jug = true;
_root.Player.JugHP = _root.Player.hp;
_root.MedicTimer = 350;
break;
case 6:
_root.MakeObject('Nuke', _root.NukeT, 'TopAllign', _x, _y, 0, 83);
break;
case 7:
++_root.FaciZombies.data.Steroides;
_root.Player.ep = _root.MaxEP;
}
this.removeMovieClip();
}
}
}
}
movieClip 1248 {
}
instance NukeT of movieClip 1248 {
onClipEvent (load) {
Weapon = input1;
MaxSize = 4000;
_width = _width + 10;
_height = _height + 10;
Test = true;
if (this == _root.NukeT) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
if (this != _root.NukeT) {
_width = _width + 50;
_height = _height + 50;
if (Test) {
for (zombie in _root.Zombies) {
if (_root.GetDistance(this, _root.Zombies[zombie]) < _width / 2) {
_root.Zombies[zombie].hp -= 75;
_root.Zombies[zombie].Burning = true;
if (_root.Zombies[zombie].hp <= 0 and _root.FaciZombies.data.Map != 'Sandbox') {
if (Weapon < 80) {
++_root.FaciZombies.data.WeaponKills[Weapon];
} else {
++_root.FaciZombies.data.EquipmentKills[Weapon - 80];
}
}
}
}
Test = false;
} else {
Test = true;
}
if (_height > 3500) {
_alpha = _alpha - 10;
}
if (_height > MaxSize or !_root.Playing) {
this.removeMovieClip();
}
}
}
}
movieClip 1251 {
frame 5 {
this.removeMovieClip();
}
}
instance BloodT of movieClip 1251 {
onClipEvent (load) {
if (this == _root.BloodT) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
if (!_root.Playing) {
this.removeMovieClip();
}
}
}
movieClip 1254 {
frame 2 {
this.removeMovieClip();
}
}
instance DustT of movieClip 1254 {
onClipEvent (load) {
if (this == _root.DustT) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
if (!_root.Playing) {
this.removeMovieClip();
}
}
}
movieClip 1259 {
}
instance AllWalls of movieClip 1259 {
onClipEvent (enterFrame) {
gotoAndStop(_root._currentframe - 14);
_visible = false;
_xscale = 100;
_yscale = 100;
_x = 0;
_y = 0;
}
}
movieClip 1262 {
}
instance AbsoluteWalls of movieClip 1262 {
onClipEvent (enterFrame) {
gotoAndStop(_root._currentframe - 14);
_visible = false;
_xscale = 100;
_yscale = 100;
_x = 0;
_y = 0;
}
}
movieClip 1266 {
}
instance WalkWalls of movieClip 1266 {
onClipEvent (enterFrame) {
gotoAndStop(_root._currentframe - 14);
_visible = false;
_xscale = 100;
_yscale = 100;
_x = 0;
_y = 0;
}
}
movieClip 1269 {
frame 2 {
this.removeMovieClip();
}
}
instance SomeBloodT of movieClip 1269 {
onClipEvent (load) {
if (this == _root.SomeBloodT) {
_visible = false;
} else {
_visible = true;
}
if (random(1) == 1) {
_xscale = _xscale * -1;
}
}
onClipEvent (enterFrame) {
if (!_root.Playing) {
this.removeMovieClip();
}
}
}
button 1274 {
on (press) {
gotoAndStop(_currentframe + 1);
}
}
button 1276 {
on (press) {
gotoAndStop(15);
}
}
movieClip 1285 {
frame 10 {
gotoAndStop(11);
}
}
instance Intro of movieClip 1285 {
onClipEvent (load) {
_height = Stage.height - 100;
_xscale = _yscale;
if (!_root.FaciZombies.data.Intro or _root.Level != 1) {
gotoAndStop(16);
_root.Pause = false;
}
}
onClipEvent (enterFrame) {
_x = Stage.width / 2 - _root._x;
_y = Stage.height / 2 - _root._y;
if (_currentframe < 26) {
_root.GameStartTimer = 10;
_root.Pause = true;
}
if (_currentframe == 16 or !_root.Playing) {
_visible = false;
_root.Pause = false;
this.removeMovieClip();
}
if (_visible) {
_root.PerkSelect._visible = false;
_root.FaciZombies.data.Intro = false;
}
}
}
movieClip 1287 {
}
instance Revive of movieClip 1287 {
onClipEvent (enterFrame) {
if (_root.Partner.LastStand and _root.FaciZombies.data.Revive and Math.sqrt(Math.pow(_root.hitTester._x - _root.Partner._x, 2) + Math.pow(_root.hitTester._y - _root.Partner._y, 2)) > 40) {
_visible = true;
_root.ReviveArrow._visible = true;
} else {
_visible = false;
_root.ReviveArrow._visible = false;
}
Direction = 90 + Math.round(Math.atan2(_root.Partner._x - _root.hitTester._x, _root.Partner._y - _root.hitTester._y) * -180 / Math.PI);
_x = _root.hitTester._x + 60 * Math.cos(Direction * Math.PI / 180);
_y = _root.hitTester._y + 60 * Math.sin(Direction * Math.PI / 180);
_root.ReviveArrow._x = _root.hitTester._x + 75 * Math.cos(Direction * Math.PI / 180);
_root.ReviveArrow._y = _root.hitTester._y + 75 * Math.sin(Direction * Math.PI / 180);
_root.ReviveArrow._rotation = Direction + 90;
}
}
movieClip 1289 {
}
movieClip 1290 {
}
instance NextWaveSign of movieClip 1290 {
onClipEvent (load) {
gotoAndStop(1);
_width = 637.5;
_height = 207.9;
}
}
movieClip 1295 {
frame 15 {
gotoAndStop(20);
}
}
instance FlameT of movieClip 1295 {
onClipEvent (load) {
var wall = 1;
while (wall <= _root.TotalWalls) {
CurrentWall = '_root.MainBackground.Wall' + wall;
if (this.hitTest(CurrentWall) and (_root.WallType[wall] == 1 or _root.WallType[wall] == 8 and !_root.Player.hitTest(CurrentWall))) {
if (Kills > 1) {
_root.FaciZombies.data.MultiKills += Kills;
_root.MultiKillText._visible = true;
_root.MultiKillTimer = 25;
_root.Player.Score += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
if (_root.FaciZombies.data.Map != 'Salvage' and _root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
}
}
this.removeMovieClip();
}
++wall;
}
Weapon = input1;
if (this == _root.FlameT) {
_visible = false;
} else {
_visible = true;
if (random(2) == 0) {
_xscale = _xscale * -1;
}
}
Packed = false;
if (Weapon < 80 and _root.Player.PackAPunched[_root.Player.WeaponSlot]) {
Packed = true;
}
Kills = 0;
FlameTimer = 0;
Penetrating = _root.Player.Penetrating[Weapon];
Damage = _root.Player.Damage[Weapon];
Range = _root.Player.Range[Weapon];
BulletRotation = random(_root.Player.WeaponSpread[Weapon]) - random(_root.Player.WeaponSpread[Weapon]);
if (Key.isDown(16)) {
BulletRotation *= 0.5;
}
BulletRotation *= 3;
Counter = 1;
while (Counter <= 3) {
this._x += 17 * Math.sin(this._rotation / -57.2957);
this._y += 17 * Math.cos(this._rotation / -57.2957);
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._rotation += BulletRotation;
}
onClipEvent (enterFrame) {
if (!_root.Playing) {
this.removeMovieClip();
}
if (this != _root.FlameT and !_root.Pause) {
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 * _root.InstaKill;
if (Packed) {
_root.Zombies[zombie].Burning = true;
}
_root.Zombies[zombie].Ash = true;
--Penetrating;
_root.Player.Score += _root.Double * _root.Bonus * 10;
if (_root.FaciZombies.data.Map != 'Salvage' and _root.FaciZombies.data.Map != 'Sandbox') {
if (_root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 10;
}
}
if (_root.Zombies[zombie].hp <= 0 and _root.FaciZombies.data.Map != 'Sandbox') {
if (Weapon < 80) {
_root.FaciZombies.data.WeaponKills[Weapon] += 1;
} else {
_root.FaciZombies.data.EquipmentKills[Weapon - 80] += 1;
}
Kills += 1;
}
}
if (Penetrating <= 0) {
if (Kills > 1) {
_root.FaciZombies.data.MultiKills += Kills;
_root.MultiKillText._visible = true;
_root.MultiKillTimer = 25;
_root.Player.Score += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
if (_root.FaciZombies.data.Map != 'Salvage' and _root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
}
}
this.removeMovieClip();
}
}
}
}
this._x += 10 * Math.sin(this._rotation / -57.2957);
this._y += 10 * Math.cos(this._rotation / -57.2957);
FlameTimer += 1;
if (FlameTimer > 6 + _root.FaciZombies.data.Flamethrower) {
if (Kills > 1) {
_root.FaciZombies.data.MultiKills += Kills;
_root.MultiKillText._visible = true;
_root.MultiKillTimer = 25;
_root.Player.Score += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
if (_root.FaciZombies.data.Map != 'Salvage' and _root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
}
}
this.removeMovieClip();
}
var wall = 1;
while (wall <= _root.TotalWalls) {
CurrentWall = '_root.MainBackground.Wall' + wall;
if (this.hitTest(CurrentWall) and (_root.WallType[wall] == 1 or _root.WallType[wall] == 8 and !_root.Player.hitTest(CurrentWall))) {
if (Kills > 1) {
_root.FaciZombies.data.MultiKills += Kills;
_root.MultiKillText._visible = true;
_root.MultiKillTimer = 25;
_root.Player.Score += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
if (_root.FaciZombies.data.Map != 'Salvage' and _root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
}
}
this.removeMovieClip();
}
++wall;
}
}
}
}
instance Flame2T of movieClip 1295 {
onClipEvent (load) {
var wall = 1;
while (wall <= _root.TotalWalls) {
CurrentWall = '_root.MainBackground.Wall' + wall;
if (this.hitTest(CurrentWall) and (_root.WallType[wall] == 1 or _root.WallType[wall] == 8 and !_root.Player.hitTest(CurrentWall))) {
if (Kills > 1) {
_root.FaciZombies.data.MultiKills += Kills;
_root.MultiKillText._visible = true;
_root.MultiKillTimer = 25;
_root.Player.Score += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
if (_root.FaciZombies.data.Map != 'Salvage' and _root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
}
}
this.removeMovieClip();
}
++wall;
}
Weapon = input1;
if (this == _root.Flame2T) {
_visible = false;
} else {
_visible = true;
if (random(2) == 0) {
_xscale = _xscale * -1;
}
}
Packed = false;
FlameTimer = 0;
Kills = 0;
FlameTimer = 0;
Penetrating = 250;
Damage = 25;
}
onClipEvent (enterFrame) {
if (!_root.Playing) {
this.removeMovieClip();
}
if (this != _root.Flame2T and !_root.Pause) {
play();
if (this.hitTest(_root.hitTester)) {
_root.Player.hp -= 10;
}
if (this.hitTest(_root.Partner)) {
_root.Partner.hp -= 10;
}
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 * _root.InstaKill;
_root.Zombies[zombie].Burning = true;
_root.Zombies[zombie].Ash = true;
--Penetrating;
_root.Player.Score += _root.Double * _root.Bonus * 10;
if (_root.FaciZombies.data.Map != 'Salvage' and _root.FaciZombies.data.Map != 'Sandbox') {
if (_root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 10;
}
}
if (_root.Zombies[zombie].hp <= 0 and _root.FaciZombies.data.Map != 'Sandbox') {
if (Weapon < 80) {
_root.FaciZombies.data.WeaponKills[Weapon] += 1;
} else {
_root.FaciZombies.data.EquipmentKills[Weapon - 80] += 1;
}
Kills += 1;
}
}
if (Penetrating <= 0) {
if (Kills > 1) {
_root.FaciZombies.data.MultiKills += Kills;
_root.MultiKillText._visible = true;
_root.MultiKillTimer = 25;
_root.Player.Score += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
if (_root.FaciZombies.data.Map != 'Salvage' and _root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
}
}
this.removeMovieClip();
}
}
}
}
this._x += 10 * Math.sin(this._rotation / -57.2957);
this._y += 10 * Math.cos(this._rotation / -57.2957);
FlameTimer += 1;
if (FlameTimer > 5) {
if (Kills > 1) {
_root.FaciZombies.data.MultiKills += Kills;
_root.MultiKillText._visible = true;
_root.MultiKillTimer = 25;
_root.Player.Score += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
if (_root.FaciZombies.data.Map != 'Salvage' and _root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
}
}
this.removeMovieClip();
}
var wall = 1;
while (wall <= _root.TotalWalls) {
CurrentWall = '_root.MainBackground.Wall' + wall;
if (this.hitTest(CurrentWall) and (_root.WallType[wall] == 1 or _root.WallType[wall] == 8 and !_root.Player.hitTest(CurrentWall))) {
if (Kills > 1) {
_root.FaciZombies.data.MultiKills += Kills;
_root.MultiKillText._visible = true;
_root.MultiKillTimer = 25;
_root.Player.Score += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
if (_root.FaciZombies.data.Map != 'Salvage' and _root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
}
}
this.removeMovieClip();
}
++wall;
}
} else {
stop();
}
}
}
movieClip 1306 {
}
instance RallyPoint of movieClip 1306 {
onClipEvent (load) {
_root.GetTile(this);
this._x = _root.FaciZombies.data.PartnerX;
this._y = _root.FaciZombies.data.PartnerY;
Follow = false;
}
onClipEvent (enterFrame) {
_rotation = _rotation + 7;
if (Follow) {
_x = _root.hitTester._x;
_y = _root.hitTester._y;
_root.GetTile(this);
}
if (Key.isDown(51)) {
if (CommandTimer) {
if ((_root.PossibleRally.hitTest(_root._xmouse, _root._ymouse, true) or _root.FaciZombies.data.Map == 'Salvage' or _root.FaciZombies.data.Map == 'Sandbox') and (_root.Player.ep >= 50 or _root.Perk2 == 'Commando')) {
_x = _root._xmouse;
_y = _root._ymouse;
CommandTimer = false;
_root.GetTile(this);
if (_root.Perk2 != 'Commando') {
_root.Player.ep -= 50;
} else {
if (_root.hitTester.hitTest(_root._xmouse, _root._ymouse, false)) {
Follow = true;
} else {
Follow = false;
}
}
}
}
} else {
CommandTimer = true;
}
}
}
movieClip 1310 {
frame 1 {
stop();
}
}
movieClip 1314 {
frame 1 {
stop();
}
}
movieClip 1318 {
frame 1 {
stop();
}
}
movieClip 1322 {
frame 1 {
stop();
}
}
movieClip 1326 {
frame 1 {
stop();
}
}
movieClip 1330 {
frame 1 {
stop();
}
}
movieClip 1334 {
frame 1 {
stop();
}
}
movieClip 1335 {
frame 25 {
if (!Alive) {
gotoAndPlay(70);
} else {
gotoAndPlay(1);
}
}
frame 187 {
this.removeMovieClip();
}
}
instance HellHoundT of movieClip 1335 {
onClipEvent (load) {
_alpha = 0;
Attacking = false;
Burning = false;
AlphaDoT = false;
AlphaDoT2 = false;
Jumping = true;
Ash = false;
oldymove = 0;
oldxmove = 0;
PathFindTimer = 0;
Alive = true;
Type = 3;
WalkTo = _root.hitTester;
hp = 3 * (random(10) + 5 + 1 * _root.Level);
if (_root.Level > 20) {
hp *= Math.sqrt(_root.Level);
}
Random = random(3);
_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];
Wall = _root.SpawnTarget[StartPoint];
_rotation = 180 + Math.round(Math.atan2(_root['Wall' + Wall]._x - _x, _root['Wall' + Wall]._y - _y) * -180 / Math.PI);
_x = _x + 0.4 * (_root['Wall' + Wall]._width - 20) * (random(19) - 9) / 10;
_y = _y + 0.4 * (_root['Wall' + Wall]._height - 20) * (random(19) - 9) / 10;
gotoAndPlay(1);
_visible = true;
if (this == _root.HellHoundT) {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (!_root.Playing) {
this.removeMovieClip();
}
if (!_root.Pause) {
play();
_alpha = _alpha + 15;
if (this != _root.HellHoundT) {
if (Alive) {
if (Math.abs(_x - _root.Player._x) > Stage.width / 2 + 20 or Math.abs(_y - _root.Player._y) > Stage.height / 2 + 20) {
_visible = false;
} else {
_visible = true;
}
_root.getEnemy(this);
_root.DoT(this);
if (hp <= 0) {
_root.Dying(this);
gotoAndPlay(70);
}
switch (_currentframe) {
case 12:
case 24:
case 34:
case 44:
case 69:
Attacking = false;
Jumping = false;
gotoAndPlay(1);
break;
case 52:
if (_root.GetDistance(this, WalkTo) < 50) {
if (WalkTo == _root.hitTester) {
_root.Player.hp -= 30;
_root.Player.evenolderxmove = 0;
oldxmove = 0;
} else {
WalkTo.hp -= 30;
_root.Partern.olderxmove = 0;
oldxmove = 0;
}
}
break;
case 19:
if (_root.GetDistance(this, WalkTo) < 60) {
if (WalkTo == _root.hitTester) {
_root.Player.hp -= 30;
_root.Player.evenolderxmove = 0;
oldxmove = 0;
} else {
WalkTo.hp -= 30;
_root.Partern.olderxmove = 0;
oldxmove = 0;
}
}
break;
default:
}
if (_root.GetDistance(this, this.WalkTo) < 50 and !Jumping) {
this._rotation = 180 + Math.round(Math.atan2(WalkTo._x - this._x, WalkTo._y - this._y) * -180 / Math.PI);
if (!Attacking) {
gotoAndPlay(45);
Attacking = true;
}
} else {
if (_root.GetDistance(this, this.WalkTo) < 150 and _root.GetDistance(this, this.WalkTo) > 90) {
if (!Attacking) {
this._rotation = 180 + Math.round(Math.atan2(WalkTo._x - this._x, WalkTo._y - this._y) * -180 / Math.PI);
gotoAndPlay(13);
Jumping = true;
Attacking = true;
}
}
scaler = 12;
if (Attacking) {
scaler = 0;
}
if (Jumping) {
scaler = 15;
}
OldX1 = _x;
OldY1 = _y;
xmove = scaler * Math.sin((this._rotation + 180) / 57.2957);
ymove = scaler * Math.cos((this._rotation + 180) / 57.2957);
xmove = xmove * _root.Player.Friction + oldxmove * (1 - _root.Player.Friction);
ymove = ymove * _root.Player.Friction + oldymove * (1 - _root.Player.Friction);
this._x -= xmove;
this._y += ymove;
oldxmove = xmove;
oldymove = ymove;
if (_root.AbsoluteWalls.hitTest(_x, _y, true)) {
_y = OldY1;
_x = OldX1;
PathFindTimer = 0;
}
if (_root.Partner.LastStand) {
WalkTo = _root.hitTester;
}
if (PathFindTimer <= 0) {
_root.GetTile(this);
if (TileHit != undefined) {
if (!_root.Bite) {
if (_root.GetDistance(this, _root.hitTester) > _root.GetDistance(this, _root.Partner)) {
WalkTo = _root.Partner;
}
if (_root.GetDistance(this, _root.hitTester) <= _root.GetDistance(this, _root.Partner)) {
WalkTo = _root.hitTester;
}
if (_root.Player.LastStand) {
WalkTo = _root.Partner;
}
if (_root.Partner.LastStand) {
WalkTo = _root.hitTester;
}
}
if (WalkTo == undefined) {
WalkTo = _root.hitTester;
}
if (WalkTo.TileHit == undefined) {
WalkTo.TileHit = WalkTo.OldTileHit;
}
if (WalkTo.TileHit.hitTest(_x, _y, true)) {
this._rotation = 180 + Math.round(Math.atan2(WalkTo._x - this._x, WalkTo._y - this._y) * -180 / Math.PI);
} else {
this._rotation = 180 + _root.PathFind(this, this.WalkTo);
}
PathFindTimer = 3;
}
}
--PathFindTimer;
}
}
}
} else {
stop();
}
}
}
movieClip 1344 {
}
movieClip 1368 {
}
movieClip 1370 {
}
movieClip 1372 {
}
movieClip 1376 {
instance BuyM4 of movieClip 1368 {
onClipEvent (load) {
gotoAndStop(2);
}
}
instance of movieClip 1368 {
onClipEvent (load) {
gotoAndStop(7);
}
}
instance of movieClip 1368 {
onClipEvent (load) {
gotoAndStop(3);
}
}
instance of movieClip 1370 {
onClipEvent (enterFrame) {
if (_root.WallHP[13] <= 0) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 1370 {
onClipEvent (enterFrame) {
if (_root.WallHP[12] <= 0) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 1370 {
onClipEvent (enterFrame) {
if (_root.WallHP[16] <= 0) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 1370 {
onClipEvent (enterFrame) {
if (_root.WallHP[14] <= 0) {
_visible = false;
} else {
_visible = true;
}
}
}
instance Wall15 of movieClip 1370 {
onClipEvent (enterFrame) {
if (_root.WallHP[15] <= 0) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 1370 {
onClipEvent (enterFrame) {
if (_root.WallHP[18] <= 0) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 1372 {
onClipEvent (enterFrame) {
if (_root.WallType[23] == 4) {
_visible = false;
}
}
}
instance of movieClip 1372 {
onClipEvent (enterFrame) {
if (_root.WallType[22] == 4) {
_visible = false;
}
}
}
instance of movieClip 1372 {
onClipEvent (enterFrame) {
if (_root.WallType[21] == 4) {
_visible = false;
}
}
}
instance of movieClip 1372 {
onClipEvent (enterFrame) {
if (_root.WallType[19] == 4) {
_visible = false;
}
}
}
instance of movieClip 1372 {
onClipEvent (enterFrame) {
if (_root.WallType[20] == 4) {
_visible = false;
}
}
}
instance of movieClip 1368 {
onClipEvent (load) {
gotoAndStop(3);
}
}
instance of movieClip 1370 {
onClipEvent (enterFrame) {
if (_root.WallHP[13] <= 0) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 1370 {
onClipEvent (enterFrame) {
if (_root.WallHP[12] <= 0) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 1370 {
onClipEvent (enterFrame) {
if (_root.WallHP[16] <= 0) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 1370 {
onClipEvent (enterFrame) {
if (_root.WallHP[14] <= 0) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 1370 {
onClipEvent (enterFrame) {
if (_root.WallHP[15] <= 0) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 1370 {
onClipEvent (enterFrame) {
if (_root.WallHP[18] <= 0) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 1372 {
onClipEvent (enterFrame) {
if (_root.WallType[23] == 4) {
_visible = false;
}
}
}
instance of movieClip 1372 {
onClipEvent (enterFrame) {
if (_root.WallType[22] == 4) {
_visible = false;
}
}
}
instance of movieClip 1372 {
onClipEvent (enterFrame) {
if (_root.WallType[20] == 4) {
_visible = false;
}
}
}
instance of movieClip 1372 {
onClipEvent (enterFrame) {
if (_root.WallType[21] == 4) {
_visible = false;
}
}
}
instance of movieClip 1372 {
onClipEvent (enterFrame) {
if (_root.WallType[19] == 4) {
_visible = false;
}
}
}
instance of movieClip 1368 {
onClipEvent (load) {
gotoAndStop(7);
}
}
instance of movieClip 1368 {
onClipEvent (load) {
gotoAndStop(7);
}
}
instance of movieClip 1368 {
onClipEvent (load) {
gotoAndStop(3);
}
}
instance of movieClip 1368 {
onClipEvent (load) {
gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hitTester)) {
_root.HelpTextContent = 14;
_root.HelpTextTimer = 100;
}
}
}
instance of movieClip 1368 {
onClipEvent (load) {
gotoAndStop(1);
}
}
instance of movieClip 1368 {
onClipEvent (load) {
gotoAndStop(4);
}
}
instance of movieClip 1368 {
onClipEvent (load) {
gotoAndStop(5);
}
}
instance of movieClip 1368 {
onClipEvent (load) {
gotoAndStop(6);
}
}
instance of movieClip 1368 {
onClipEvent (load) {
gotoAndStop(7);
}
}
instance of movieClip 1368 {
onClipEvent (load) {
gotoAndStop(8);
}
}
instance of movieClip 1368 {
onClipEvent (load) {
gotoAndStop(9);
}
}
instance of movieClip 1368 {
onClipEvent (load) {
gotoAndStop(10);
}
}
instance of movieClip 1368 {
onClipEvent (load) {
gotoAndStop(11);
}
}
instance of movieClip 1368 {
onClipEvent (load) {
gotoAndStop(12);
}
}
instance of movieClip 1368 {
onClipEvent (load) {
gotoAndStop(13);
}
}
instance of movieClip 1368 {
onClipEvent (load) {
gotoAndStop(14);
}
}
}
movieClip 1378 {
}
movieClip 1380 {
instance MiniMap of movieClip 1376 {
onClipEvent (load) {
if (_root.FaciZombies.data.Map == 'Overgrown') {
gotoAndStop(_root.Map2Frame - 14);
}
if (_root.FaciZombies.data.Map == 'Estate') {
gotoAndStop(_root.GameFrame - 14);
}
if (_root.FaciZombies.data.Map == 'Salvage') {
gotoAndStop(_root.Map3Frame - 14);
}
if (_root.FaciZombies.data.Map == 'Sandbox') {
gotoAndStop(_root.Map4Frame - 14);
}
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
XDif = _x + _root.Player._x - Stage.width / 2;
YDif = _y + _root.Player._y - Stage.height / 2;
temp = 1;
while (temp <= 50) {
_root.Radar['Dot' + temp]._x -= XDif;
_root.Radar['Dot' + temp]._y -= YDif;
++temp;
}
_root.Radar.PartnerDot._x -= XDif;
_root.Radar.PartnerDot._y -= YDif;
_x = -_root.Player._x + Stage.width / 2;
_y = -_root.Player._y + Stage.height / 2;
}
}
instance Dot1 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot2 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot3 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot4 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot5 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot6 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot7 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot8 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot9 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot10 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot11 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot12 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot13 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot14 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot15 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot16 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot17 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot18 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot19 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot20 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot21 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot22 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot23 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot24 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot25 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Sweeper of movieClip 296 {
onClipEvent (load) {
Round = 0;
_rotation = 0;
Dot = 1;
}
onClipEvent (enterFrame) {
if (!_root.Pause) {
_rotation = _rotation + 12 * _root.FaciZombies.data.Radar;
if (_rotation == 0) {
++Round;
}
temp = 1;
while (temp <= 50) {
Rotation = Math.round(Math.atan2(_root.Display.Radar['Dot' + temp]._x - _x, _root.Display.Radar['Dot' + temp]._y - _y) * -180 / Math.PI + 90);
_root.Display.Radar.Tester._rotation = _rotation - Rotation + 80;
if (_root.Display.Radar.Tester._rotation <= 12 * _root.FaciZombies.data.Radar and _root.Display.Radar.Tester._rotation >= -5 and _root.Display.Radar['Dot' + temp].Round != Round) {
_root.Display.Radar['Dot' + temp]._visible = false;
}
++temp;
}
for (zombie in _root.Zombies) {
Rotation = Math.round(Math.atan2(_root.Zombies[zombie]._x - _root.Player._x, _root.Zombies[zombie]._y - _root.Player._y) * -180 / Math.PI + 90);
Distance = Math.sqrt(Math.pow(_root.Zombies[zombie]._x - _root.Player._x, 2) + Math.pow(_root.Zombies[zombie]._y - _root.Player._y, 2));
if (Distance > 900) {
Distance = 900;
}
_root.Display.Radar.Tester._rotation = _rotation - Rotation + 80;
if (_root.Display.Radar.Tester._rotation <= 12 * _root.FaciZombies.data.Radar and _root.Display.Radar.Tester._rotation >= -5 and _root.Zombies[zombie].Round != Round and _root.Zombies[zombie].Alive) {
_root.Display.Radar['Dot' + Dot]._visible = true;
_root.Display.Radar['Dot' + Dot]._x = Math.cos(Rotation * Math.PI / 180) * Distance;
_root.Display.Radar['Dot' + Dot]._y = Math.sin(Rotation * Math.PI / 180) * Distance;
_root.Display.Radar['Dot' + Dot].Round = Round;
_root.Zombies[zombie].Round = Round;
if (_root.Zombies[zombie].Type == 'Ghost') {
_root.Display.Radar['Dot' + Dot]._alpha = 50;
} else {
_root.Display.Radar['Dot' + Dot]._alpha = 100;
}
Terminate = 0;
while (_root.Display.Radar['Dot' + Dot]._visible and Terminate < 5) {
++Dot;
if (Dot > 50) {
Dot = 1;
++Terminate;
}
}
}
}
Rotation = Math.round(Math.atan2(_root.Partner._x - _root.Player._x, _root.Partner._y - _root.Player._y) * -180 / Math.PI + 90);
Distance = Math.sqrt(Math.pow(_root.Partner._x - _root.Player._x, 2) + Math.pow(_root.Partner._y - _root.Player._y, 2));
if (Distance > 900) {
Distance = 900;
}
_root.Display.Radar.Tester._rotation = _rotation - Rotation + 80;
if (_root.Display.Radar.Tester._rotation <= 12 * _root.FaciZombies.data.Radar and _root.Display.Radar.Tester._rotation >= -5) {
_root.Display.Radar.PartnerDot._x = Math.cos(Rotation * Math.PI / 180) * Distance;
_root.Display.Radar.PartnerDot._y = Math.sin(Rotation * Math.PI / 180) * Distance;
_root.Display.Radar.PartnerDot._rotation = _root.Partner._rotation + 43;
}
}
}
}
instance Tester of movieClip 29 {
onClipEvent (load) {
_visible = true;
}
}
instance Dot26 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot27 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot28 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot29 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot30 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot31 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot32 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot33 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot34 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot35 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot36 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot37 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot38 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot39 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot40 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot40 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot41 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot42 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot43 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot44 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot45 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot46 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot47 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot48 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot49 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance Dot50 of movieClip 29 {
onClipEvent (load) {
_visible = false;
}
}
instance of movieClip 1378 {
onClipEvent (enterFrame) {
_rotation = _root.Player._rotation + 43;
}
}
}
movieClip 1385 {
}
movieClip 1392 {
frame 1 {
stop();
}
}
movieClip 1400 {
}
movieClip 1401 {
}
movieClip 1410 {
}
movieClip 1411 {
instance Radar of movieClip 1380 {
onClipEvent (load) {
_alpha = 75;
}
onClipEvent (enterFrame) {
if (!_root.Playing) {
this.removeMovieClip();
}
if (_root.RadarActive) {
_xscale = 66.66666666666667;
_yscale = 66.66666666666667;
_root.CamFollow = true;
_x = 511.95;
_y = 369.6;
_alpha = 100;
} else {
_x = 914.6;
_y = 111.45;
_xscale = 6.666666666666667;
_yscale = 6.666666666666667;
_alpha = 75;
}
}
}
instance of movieClip 1385 {
onClipEvent (enterFrame) {
gotoAndStop(_root.FaciZombies.data.Grenade + 1);
}
}
instance ShowWeapon of movieClip 500 {
onClipEvent (load) {
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
if (_root.Player.Weapon != 15) {
this.gotoAndStop(_root.Player.Weapon);
} else {
gotoAndStop(_root.MapWeapon);
}
}
}
instance JugIndicator of movieClip 1246 {
onClipEvent (load) {
gotoAndStop(5);
}
}
instance InstaKillIndicator of movieClip 1246 {
onClipEvent (load) {
gotoAndStop(2);
}
}
instance DoublePointsIndicator of movieClip 1246 {
onClipEvent (load) {
gotoAndStop(3);
}
}
}
instance Display of movieClip 1411 {
onClipEvent (load) {
_xscale = 100;
_yscale = 100;
}
onClipEvent (enterFrame) {
helptext = _root.helptext;
Energy.Bar._width = (668.3 / _root.MaxEP) * _root.Player.ep;
Health.Bar._width = (633.85 / _root.MaxHP) * _root.Player.hp;
if (_root.MedicTimer > 0) {
JugText = _root.MedicTimer;
JugIndicator._visible = true;
} else {
JugText = '';
JugIndicator._visible = false;
}
if (_root.InstaKillTimer > 0) {
InstaKillText = _root.InstaKillTimer;
InstaKillIndicator._visible = true;
} else {
InstaKillText = '';
InstaKillIndicator._visible = false;
}
if (_root.DoublePointTimer > 0) {
DoublePointsText = _root.DoublePointTimer;
DoublePointsIndicator._visible = true;
} else {
DoublePointsText = '';
DoublePointsIndicator._visible = false;
}
rifletext = _root.Player.RifleGrenades;
claymoretext = _root.Player.SpecialGrenades;
grenadetext = _root.Player.Grenades;
displaygold = 'Gold: ' + _root.FaciZombies.data.Gold;
displaylevel = 'Level: ' + _root.Level;
displayscore = 'Points: ' + Math.floor(_root.Player.Score);
if (_root.Player.PackAPunched[_root.Player.WeaponSlot]) {
showweapontext = _root.PAPWeaponNames[_root.Player.Weapon];
} else {
showweapontext = _root.Player.WeaponNames[_root.Player.Weapon];
}
if (_root.Player.AlternateFire) {
showweapontext = 'Attached Grenade launcher';
}
if (_root.Player.Weapon == 7) {
magtext = '' + _root.Player.Mags[_root.Player.WeaponSlot];
} else {
if (_root.Player.LoadStyle[_root.Player.Weapon] == 5) {
magtext = '' + _root.Player.Mags[_root.Player.WeaponSlot];
} else {
magtext = '' + _root.Player.Mags[_root.Player.WeaponSlot];
}
}
if (_root.Player.LoadStyle[_root.Player.Weapon] == 5) {
ammotext = '' + Math.floor(_root.Player.MaxAmmo[_root.Player.Weapon] - _root.Player.Ammo[_root.Player.WeaponSlot]);
} else {
ammotext = '' + _root.Player.Ammo[_root.Player.WeaponSlot];
}
}
}
movieClip 1414 {
}
movieClip 1419 {
}
instance ExplosionT of movieClip 1419 {
onClipEvent (load) {
Weapon = input1;
if (this == _root.ExplosionT) {
_visible = false;
gotoAndStop(1);
} else {
_root.soundFX.attachSound('Explosion.mp3');
_root.soundFx.attachSound('Bullet.mp3');
_root.soundFX.start();
_visible = true;
}
Kills = 0;
}
onClipEvent (enterFrame) {
if (!_root.Playing) {
this.removeMovieClip();
}
if (!_root.Pause) {
play();
if (this != _root.ExplosionT) {
if (_currentframe <= 6) {
for (zombie in _root.Zombies) {
Zombie = _root.Zombies[zombie];
if (_root.GetDistance(this, Zombie) < _width / 2) {
if (Zombie.hp > 0) {
Zombie.hp -= 100;
if (Zombie.TileHit != undefined) {
Zombie.Crawling = true;
}
if (Weapon == 11) {
Zombie.hp -= 100;
}
if (_root.Perk1 == 'DangerClose') {
Zombie.hp -= 100;
}
_root.Player.Score += _root.Double * _root.Bonus * 100;
if (_root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 100;
}
if (Zombie.hp <= 0 and _root.FaciZombies.data.Map != 'Sandbox') {
Zombie._rotation = Math.round(Math.atan2(this._x - _root.Zombies[zombie]._x, this._y - Zombie._y) * -180 / Math.PI) + 180;
if (Weapon < 80) {
++_root.FaciZombies.data.WeaponKills[Weapon];
} else {
++_root.FaciZombies.data.EquipmentKills[Weapon - 80];
}
_root.FaciZombies.data.ExplosiveKills += 1;
Kills += 1;
} else {
if (Zombie.TileHit != undefined) {
if (Zombie.Type == 1) {
Zombie.Crawling = true;
Zombie.Attacking = false;
Zombie.gotoAndPlay(44);
}
}
}
}
}
}
if (_root.GetDistance(this, _root.Player) < _width / 2) {
_root.Player.hp -= 25;
}
if (_root.GetDistance(this, _root.Partner) < _width / 2) {
_root.Partner.hp -= 25;
}
}
if (_currentframe == 49) {
if (Kills > 1) {
_root.FaciZombies.data.MultiKills += Kills;
_root.MultiKillText._visible = true;
_root.MultiKillTimer = 25;
_root.Player.Score += _root.Double * _root.Bonus * 100 * (Kills * _root.MultiBonus);
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 100 * (Kills * _root.MultiBonus);
}
this.removeMovieClip();
}
}
} else {
stop();
}
}
}
movieClip 1423 {
}
movieClip 1428 {
}
instance ClayExplosionT of movieClip 1428 {
onClipEvent (load) {
Weapon = input1;
if (this == _root.ClayExplosionT) {
_visible = false;
gotoAndStop(1);
} else {
_root.soundFX.attachSound('Explosion.mp3');
_root.soundFx.attachSound('Bullet.mp3');
_root.soundFX.start();
_visible = true;
}
Kills = 0;
}
onClipEvent (enterFrame) {
if (!_root.Playing) {
this.removeMovieClip();
}
if (!_root.Pause) {
play();
if (this != _root.ClayExplosionT) {
if (_currentframe <= 5) {
range = _currentframe * 25;
for (zombie in _root.Zombies) {
Zombie = _root.Zombies[zombie];
if (_root.GetDistance(this, Zombie) < range) {
ZombieDirection = (Math.round(Math.atan2(Zombie._y - this._y, Zombie._x - this._x) * 180 / Math.PI) + 360) % 360;
ThisDirection = (_rotation + 360) % 360;
if (Math.abs(ZombieDirection - ThisDirection) > 180) {
if (ThisDirection < ZombieDirection) {
ThisDirection += 360;
} else {
ZombieDirection += 360;
}
}
if (Math.abs(ThisDirection - ZombieDirection) <= 50 or _root.GetDistance(this, _root.Player) < 20) {
if (Zombie.hp > 0) {
Zombie.hp -= 100;
if (Zombie.TileHit != undefined) {
Zombie.Crawling = true;
}
if (Weapon == 11) {
Zombie.hp -= 100;
}
if (_root.Perk1 == 'DangerClose') {
Zombie.hp -= 100;
}
_root.Player.Score += _root.Double * _root.Bonus * 100;
if (_root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 100;
}
if (Zombie.hp <= 0 and _root.FaciZombies.data.Map != 'Sandbox') {
Zombie._rotation = Math.round(Math.atan2(this._x - _root.Zombies[zombie]._x, this._y - Zombie._y) * -180 / Math.PI) + 180;
if (Weapon < 80) {
++_root.FaciZombies.data.WeaponKills[Weapon];
} else {
++_root.FaciZombies.data.EquipmentKills[Weapon - 80];
}
_root.FaciZombies.data.ExplosiveKills += 1;
Kills += 1;
} else {
if (Zombie.TileHit != undefined) {
if (Zombie.Type == 1) {
Zombie.Crawling = true;
Zombie.Attacking = false;
Zombie.gotoAndPlay(44);
}
}
}
}
}
}
}
ZombieDirection = (Math.round(Math.atan2(_root.Player._y - this._y, _root.Player._x - this._x) * 180 / Math.PI) + 360) % 360;
ThisDirection = (_rotation + 360) % 360;
if (Math.abs(ZombieDirection - ThisDirection) > 180) {
if (ThisDirection < ZombieDirection) {
ThisDirection += 360;
} else {
ZombieDirection += 360;
}
}
if (Math.abs(ThisDirection - ZombieDirection) <= 50 or _root.GetDistance(this, _root.Player) < 20) {
if (_root.GetDistance(this, _root.Player) < range) {
_root.Player.hp -= 40;
}
}
ZombieDirection = (Math.round(Math.atan2(_root.Partner._y - this._y, _root.Partner._x - this._x) * 180 / Math.PI) + 360) % 360;
ThisDirection = (_rotation + 360) % 360;
if (Math.abs(ZombieDirection - ThisDirection) > 180) {
if (ThisDirection < ZombieDirection) {
ThisDirection += 360;
} else {
ZombieDirection += 360;
}
}
if (Math.abs(ThisDirection - ZombieDirection) <= 50 or _root.GetDistance(this, _root.Player) < 20) {
if (_root.GetDistance(this, _root.Partner) < range) {
_root.Partner.hp -= 40;
}
}
}
if (_currentframe == 31) {
if (Kills > 1) {
_root.FaciZombies.data.MultiKills += Kills;
_root.MultiKillText._visible = true;
_root.MultiKillTimer = 25;
_root.Player.Score += _root.Double * _root.Bonus * 100 * (Kills * _root.MultiBonus);
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 100 * (Kills * _root.MultiBonus);
}
this.removeMovieClip();
}
}
} else {
stop();
}
}
}
movieClip 1430 {
frame 1 {
stop();
}
}
movieClip 1432 {
frame 1 {
stop();
}
}
movieClip 1434 {
frame 1 {
stop();
}
}
movieClip 1436 {
frame 1 {
stop();
}
}
movieClip 1438 {
frame 1 {
stop();
}
}
movieClip 1440 {
frame 1 {
stop();
}
}
movieClip 1442 {
frame 1 {
stop();
}
}
movieClip 1443 {
frame 25 {
if (!Alive) {
gotoAndPlay(70);
} else {
gotoAndPlay(1);
}
}
frame 187 {
this.removeMovieClip();
}
}
instance HellHound2T of movieClip 1443 {
onClipEvent (load) {
_alpha = 0;
Attacking = false;
Burning = false;
AlphaDoT = false;
AlphaDoT2 = false;
Jumping = true;
Ash = false;
oldymove = 0;
oldxmove = 0;
PathFindTimer = 0;
Alive = true;
Type = 3;
WalkTo = _root.hitTester;
hp = 3 * (random(10) + 5 + 1 * _root.Level);
if (_root.Level > 20) {
hp *= Math.sqrt(_root.Level);
}
Random = random(3);
_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];
Wall = _root.SpawnTarget[StartPoint];
_rotation = 180 + Math.round(Math.atan2(_root['Wall' + Wall]._x - _x, _root['Wall' + Wall]._y - _y) * -180 / Math.PI);
_x = _x + 0.4 * (_root['Wall' + Wall]._width - 20) * (random(19) - 9) / 10;
_y = _y + 0.4 * (_root['Wall' + Wall]._height - 20) * (random(19) - 9) / 10;
gotoAndPlay(1);
_visible = true;
if (this == _root.HellHound2T) {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (!_root.Playing) {
this.removeMovieClip();
}
if (!_root.Pause) {
play();
_alpha = _alpha + 15;
if (this != _root.HellHound2T) {
if (Alive) {
if (Math.abs(_x - _root.Player._x) > Stage.width / 2 + 20 or Math.abs(_y - _root.Player._y) > Stage.height / 2 + 20) {
_visible = false;
} else {
_visible = true;
}
_root.getEnemy(this);
_root.DoT(this);
if (hp <= 0) {
_root.Dying(this);
gotoAndPlay(70);
}
switch (_currentframe) {
case 12:
case 24:
case 34:
case 44:
case 69:
Attacking = false;
Jumping = false;
gotoAndPlay(1);
break;
case 52:
if (_root.GetDistance(this, WalkTo) < 50) {
if (WalkTo == _root.hitTester) {
_root.Player.hp -= 30;
_root.Player.evenolderxmove = 0;
oldxmove = 0;
} else {
WalkTo.hp -= 30;
_root.Partern.olderxmove = 0;
oldxmove = 0;
}
}
break;
case 19:
if (_root.GetDistance(this, WalkTo) < 60) {
if (WalkTo == _root.hitTester) {
_root.Player.hp -= 30;
_root.Player.evenolderxmove = 0;
oldxmove = 0;
} else {
WalkTo.hp -= 30;
_root.Partern.olderxmove = 0;
oldxmove = 0;
}
}
break;
default:
}
if (_root.GetDistance(this, this.WalkTo) < 50 and !Jumping) {
this._rotation = 180 + Math.round(Math.atan2(WalkTo._x - this._x, WalkTo._y - this._y) * -180 / Math.PI);
if (!Attacking) {
gotoAndPlay(45);
Attacking = true;
}
} else {
if (_root.GetDistance(this, this.WalkTo) < 150 and _root.GetDistance(this, this.WalkTo) > 90) {
if (!Attacking) {
this._rotation = 180 + Math.round(Math.atan2(WalkTo._x - this._x, WalkTo._y - this._y) * -180 / Math.PI);
gotoAndPlay(13);
Jumping = true;
Attacking = true;
}
}
scaler = 12;
if (Attacking) {
scaler = 0;
}
if (Jumping) {
scaler = 15;
}
OldX1 = _x;
OldY1 = _y;
xmove = scaler * Math.sin((this._rotation + 180) / 57.2957);
ymove = scaler * Math.cos((this._rotation + 180) / 57.2957);
xmove = xmove * _root.Player.Friction + oldxmove * (1 - _root.Player.Friction);
ymove = ymove * _root.Player.Friction + oldymove * (1 - _root.Player.Friction);
this._x -= xmove;
this._y += ymove;
oldxmove = xmove;
oldymove = ymove;
if (_root.AbsoluteWalls.hitTest(_x, _y, true)) {
_y = OldY1;
_x = OldX1;
PathFindTimer = 0;
}
if (_root.Partner.LastStand) {
WalkTo = _root.hitTester;
}
if (PathFindTimer <= 0) {
_root.GetTile(this);
if (TileHit != undefined) {
if (!_root.Bite) {
if (_root.GetDistance(this, _root.hitTester) > _root.GetDistance(this, _root.Partner)) {
WalkTo = _root.Partner;
}
if (_root.GetDistance(this, _root.hitTester) <= _root.GetDistance(this, _root.Partner)) {
WalkTo = _root.hitTester;
}
if (_root.Player.LastStand) {
WalkTo = _root.Partner;
}
if (_root.Partner.LastStand) {
WalkTo = _root.hitTester;
}
}
if (WalkTo == undefined) {
WalkTo = _root.hitTester;
}
if (WalkTo.TileHit == undefined) {
WalkTo.TileHit = WalkTo.OldTileHit;
}
if (WalkTo.TileHit.hitTest(_x, _y, true)) {
this._rotation = 180 + Math.round(Math.atan2(WalkTo._x - this._x, WalkTo._y - this._y) * -180 / Math.PI);
} else {
this._rotation = 180 + _root.PathFind(this, this.WalkTo);
}
PathFindTimer = 3;
}
}
--PathFindTimer;
}
}
}
} else {
stop();
}
}
}
movieClip 1456 {
}
movieClip 1457 {
}
movieClip 1459 {
}
movieClip 1463 {
frame 1 {
if (Crawling) {
gotoAndPlay(54);
}
}
frame 2 {
if (Crawling) {
gotoAndPlay(54);
}
}
frame 24 {
if (!Alive and _currentframe < 159) {
gotoAndPlay(237);
}
}
frame 25 {
if (Crawling) {
gotoAndPlay(67);
}
}
frame 31 {
}
frame 32 {
if (Crawling) {
gotoAndPlay(67);
}
}
frame 39 {
}
frame 44 {
gotoAndPlay(1);
Attacking = false;
}
frame 45 {
}
frame 54 {
Attacking = false;
}
frame 66 {
gotoAndPlay(54);
Attacking = false;
if (hp <= 0) {
gotoAndPlay(246);
}
}
frame 81 {
}
frame 99 {
if (!Destroying) {
gotoAndPlay(1);
}
}
frame 100 {
_root.WallHP[Wall] -= 10;
}
frame 121 {
if (!Destroying) {
gotoAndPlay(1);
}
}
frame 134 {
if (!Destroying) {
gotoAndPlay(1);
}
}
frame 135 {
_root.WallHP[Wall] -= 10;
}
frame 158 {
Destroying = false;
gotoAndPlay(1);
}
frame 159 {
}
frame 236 {
this.removeMovieClip();
}
frame 237 {
}
frame 320 {
this.removeMovieClip();
}
}
instance Zombie2T of movieClip 1463 {
onClipEvent (load) {
Attacking = false;
Destroying = false;
Crawling = input2;
Burning = false;
AlphaDoT = false;
AlphaDoT2 = false;
Ash = false;
Scrambled = false;
oldymove = 0;
oldxmove = 0;
PathFindTimer = 0;
Alive = true;
Type = 1;
WalkTo = _root.hitTester;
hp = 8 * (random(10) + 5 + 1 * _root.Level);
if (_root.Level > 15) {
hp *= Math.sqrt(_root.Level);
}
Random = random(3);
if (random(10) == 1) {
Explosive = true;
} else {
Explosive = false;
}
_root.TotalBarricades = 3;
if (_root.RemovedWalls >= 2) {
_root.TotalBarricades = 5;
}
if (_root.RemovedWalls >= 4) {
_root.TotalBarricades = 6;
}
StartPoint = random(_root.TotalBarricades);
Wall = _root.SpawnTarget[StartPoint];
if (input1 == 100) {
_alpha = 0;
_x = _root.XSpawns[StartPoint];
_y = _root.YSpawns[StartPoint];
_rotation = Math.round(Math.atan2(_root['Wall' + Wall]._x - _x, _root['Wall' + Wall]._y - _y) * -180 / Math.PI);
_x = _x + 0.4 * (_root['Wall' + Wall]._width - 20) * (random(19) - 9) / 10;
_y = _y + 0.4 * (_root['Wall' + Wall]._height - 20) * (random(19) - 9) / 10;
}
gotoAndPlay(1);
_visible = true;
if (this == _root.Zombie2T) {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (!_root.Playing) {
this.removeMovieClip();
}
if (!_root.Pause) {
_alpha = _alpha + 5;
play();
if (this != _root.Zombie2T) {
if (Math.abs(_x - _root.Player._x) > Stage.width / 2 + 20 or Math.abs(_y - _root.Player._y) > Stage.height / 2 + 20) {
_visible = false;
} else {
_visible = true;
}
if (Alive) {
_root.getEnemy(this);
_root.DoT(this);
if (hp <= 0) {
Destroying = true;
_root.Dying(this);
}
if (Alive) {
switch (_currentframe) {
case 24:
case 66:
if (!Crawling) {
gotoAndPlay(1);
} else {
gotoAndPlay(54);
}
Attacking = false;
Destroying = false;
break;
case 31:
case 39:
case 81:
_root.Attack(this, 50);
break;
default:
}
if (!Attacking and _currentframe == 34 or _currentframe == 44 or _currentframe == 86) {
if (!Crawling) {
gotoAndPlay(1);
} else {
gotoAndPlay(54);
}
Attacking = false;
}
if (_root.GetDistance(this, this.WalkTo) < 46) {
if (Explosive) {
}
this._rotation = Math.round(Math.atan2(WalkTo._x - this._x, WalkTo._y - this._y) * -180 / Math.PI);
if (!Attacking) {
if (Crawling) {
gotoAndPlay(67);
} else {
gotoAndPlay(26);
}
}
Attacking = true;
} else {
scaler = (3 + Random + (_root.Level / 2) * Math.sqrt(Math.sqrt(_root.Level))) / 4;
if (scaler > 40) {
scaler = 40;
}
if (Crawling) {
scaler /= 2;
}
if (Scrambled) {
scaler *= 0.8;
}
if (!Destroying or Crawling) {
OldX1 = _x;
OldY1 = _y;
xmove = scaler * Math.sin(this._rotation / 57.2957);
ymove = scaler * Math.cos(this._rotation / 57.2957);
xmove = xmove * _root.Player.Friction + oldxmove * (1 - _root.Player.Friction);
ymove = ymove * _root.Player.Friction + oldymove * (1 - _root.Player.Friction);
this._x -= xmove;
this._y += ymove;
oldxmove = xmove;
oldymove = ymove;
if (_root.AbsoluteWalls.hitTest(_x, _y, true)) {
_y = OldY1;
_x = OldX1;
PathFindTimer = 0;
}
}
if (_root.WallHP[Wall] <= 0) {
Destroying = false;
}
if (TileHit == undefined) {
if (this.hitTest(_root['Wall' + Wall])) {
if (_root.WallType[Wall] == 2) {
if (!Destroying) {
gotoAndPlay(87);
}
Destroying = true;
}
if (_root.WallHP[Wall] <= 0 and _root.WallType[Wall] == 2) {
_root.WallType[Wall] = 5;
Destroying = false;
}
}
}
}
if (_root.Partner.LastStand) {
WalkTo = _root.hitTester;
}
if (PathFindTimer <= 0) {
_root.GetTile(this);
if (TileHit != undefined) {
if (!_root.Bite) {
if (_root.GetDistance(this, _root.hitTester) > _root.GetDistance(this, _root.Partner)) {
WalkTo = _root.Partner;
}
if (_root.GetDistance(this, _root.hitTester) <= _root.GetDistance(this, _root.Partner)) {
WalkTo = _root.hitTester;
}
if (_root.Player.LastStand) {
WalkTo = _root.Partner;
}
if (_root.Partner.LastStand) {
WalkTo = _root.hitTester;
}
}
if (WalkTo == undefined) {
WalkTo = _root.hitTester;
}
if (WalkTo.TileHit == undefined) {
WalkTo.TileHit = WalkTo.OldTileHit;
}
if (WalkTo.TileHit.hitTest(_x, _y, true)) {
this._rotation = Math.round(Math.atan2(WalkTo._x - this._x, WalkTo._y - this._y) * -180 / Math.PI);
} else {
this._rotation = _root.PathFind(this, this.WalkTo);
}
PathFindTimer = 5;
}
}
--PathFindTimer;
}
}
}
} else {
stop();
}
}
}
movieClip 1472 {
}
movieClip 1474 {
}
movieClip 1475 {
}
movieClip 1482 {
frame 1 {
}
frame 24 {
if (!Alive and _currentframe < 159) {
gotoAndPlay(159);
}
}
frame 39 {
}
frame 45 {
gotoAndPlay(1);
}
frame 131 {
if (!Destroying) {
gotoAndPlay(1);
}
}
frame 132 {
_root.WallHP[Wall] -= 30;
}
frame 158 {
Destroying = false;
gotoAndPlay(1);
}
frame 159 {
}
frame 236 {
this.removeMovieClip();
}
}
instance Zombie4T of movieClip 1482 {
onClipEvent (load) {
Attacking = false;
Destroying = false;
Crawling = false;
Burning = false;
AlphaDoT = false;
AlphaDoT2 = false;
Ash = false;
Scrambled = false;
oldymove = 0;
oldxmove = 0;
PathFindTimer = 0;
Alive = true;
Type = 2;
WalkTo = _root.hitTester;
hp = 25 * (random(10) + 5 + 1 * _root.Level);
if (_root.Level > 20) {
hp *= Math.sqrt(_root.Level);
}
MaxHP = hp;
Random = random(3);
_root.TotalBarricades = 3;
if (_root.RemovedWalls >= 2) {
_root.TotalBarricades = 5;
}
if (_root.RemovedWalls >= 4) {
_root.TotalBarricades = 6;
}
StartPoint = random(_root.TotalBarricades);
Wall = _root.SpawnTarget[StartPoint];
if (input1 == 100) {
_alpha = 0;
_x = _root.XSpawns[StartPoint];
_y = _root.YSpawns[StartPoint];
_rotation = Math.round(Math.atan2(_root['Wall' + Wall]._x - _x, _root['Wall' + Wall]._y - _y) * -180 / Math.PI);
_x = _x + 0.4 * (_root['Wall' + Wall]._width - 20) * (random(19) - 9) / 10;
_y = _y + 0.4 * (_root['Wall' + Wall]._height - 20) * (random(19) - 9) / 10;
}
gotoAndPlay(1);
_visible = true;
if (this == _root.Zombie4T) {
_visible = false;
} else {
_root.soundFX.attachSound('OfficerSpawn');
_root.soundFX.start();
}
}
onClipEvent (enterFrame) {
if (!_root.Playing) {
this.removeMovieClip();
}
if (!_root.Pause) {
_alpha = _alpha + 5;
play();
if (this != _root.Zombie4T) {
if (Math.abs(_x - _root.Player._x) > Stage.width / 2 + 20 or Math.abs(_y - _root.Player._y) > Stage.height / 2 + 20) {
_visible = false;
} else {
_visible = true;
}
if (Alive) {
_root.getEnemy(this);
Crawling = false;
_root.DoT(this);
if (hp <= 0) {
Destroying = true;
_root.Dying(this);
}
++hp;
if (hp > MaxHP) {
hp = MaxHP;
}
switch (_currentframe) {
case 24:
case 66:
gotoAndPlay(1);
Attacking = false;
Destroying = false;
break;
case 39:
_root.Attack(this, 60);
break;
case 44:
gotoAndPlay(1);
Attacking = false;
break;
default:
}
if (_root.GetDistance(this, this.WalkTo) < 50) {
this._rotation = Math.round(Math.atan2(WalkTo._x - this._x, WalkTo._y - this._y) * -180 / Math.PI);
if (!Attacking) {
gotoAndPlay(25);
}
Attacking = true;
} else {
scaler = (Random + (_root.Level / 2) * Math.sqrt(Math.sqrt(_root.Level))) / 3;
if (scaler > 40) {
scaler = 40;
}
if (Scrambled) {
scaler *= 0.7;
}
if (!Destroying) {
OldX1 = _x;
OldY1 = _y;
xmove = scaler * Math.sin(this._rotation / 57.2957);
ymove = scaler * Math.cos(this._rotation / 57.2957);
xmove = xmove * _root.Player.Friction + oldxmove * (1 - _root.Player.Friction);
ymove = ymove * _root.Player.Friction + oldymove * (1 - _root.Player.Friction);
this._x -= xmove;
this._y += ymove;
oldxmove = xmove;
oldymove = ymove;
if (_root.AbsoluteWalls.hitTest(_x, _y, true)) {
_y = OldY1;
_x = OldX1;
PathFindTimer = 0;
}
}
if (_root.WallHP[Wall] <= 0) {
Destroying = false;
}
if (TileHit == undefined) {
if (this.hitTest(_root['Wall' + Wall])) {
if (_root.WallType[Wall] == 2) {
if (!Destroying) {
gotoAndPlay(87);
}
Destroying = true;
}
if (_root.WallHP[Wall] <= 0 and _root.WallType[Wall] == 2) {
_root.WallType[Wall] = 5;
Destroying = false;
}
}
}
}
if (_root.Partner.LastStand) {
WalkTo = _root.hitTester;
}
if (PathFindTimer <= 0) {
_root.GetTile(this);
if (TileHit != undefined) {
if (!_root.Bite) {
if (_root.GetDistance(this, _root.hitTester) > _root.GetDistance(this, _root.Partner)) {
WalkTo = _root.Partner;
}
if (_root.GetDistance(this, _root.hitTester) <= _root.GetDistance(this, _root.Partner)) {
WalkTo = _root.hitTester;
}
if (_root.Player.LastStand) {
WalkTo = _root.Partner;
}
if (_root.Partner.LastStand) {
WalkTo = _root.hitTester;
}
}
if (WalkTo == undefined) {
WalkTo = _root.hitTester;
}
if (WalkTo.TileHit == undefined) {
WalkTo.TileHit = WalkTo.OldTileHit;
}
if (WalkTo.TileHit.hitTest(_x, _y, true)) {
this._rotation = Math.round(Math.atan2(WalkTo._x - this._x, WalkTo._y - this._y) * -180 / Math.PI);
} else {
this._rotation = _root.PathFind(this, this.WalkTo);
}
PathFindTimer = 5;
}
}
--PathFindTimer;
}
}
} else {
stop();
}
}
}
frame 16 {
_root.Player.Friction = 0.6;
_root.MapWeapon = 5;
MainBackground.cacheAsBitmap = true;
Vegitation.cacheAsBitmap = true;
XGoTos = [1223, 1223, -250, 1221, 510, -467];
YGoTos = [342, 1094, 1252, -383, -478, 46];
XSpawns = [1478, 1478, -250, 1478, 510, -969];
YSpawns = [342, 1094, 1550, -383, -992, 46];
SpawnTarget = [14, 15, 16, 13, 12, 18];
TotalTiles = 12;
}
instance Tile12 of movieClip 673 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.hitTester._x, _root.hitTester._y, true)) {
_root.FaciZombies.data.Achievements[2] = 1;
}
}
}
movieClip 1484 {
}
movieClip 1485 {
instance Wall5 of movieClip 1484 {
onClipEvent (enterFrame) {
Gone = false;
}
}
instance of movieClip 689 {
onClipEvent (load) {
_root.Lightning = false;
_root.LightningTimer = 0;
}
onClipEvent (enterFrame) {
if (_root.Lightning) {
gotoAndStop(1);
} else {
gotoAndStop(2);
if (this.hitTest(_root.hitTester) and !_root.Lightning) {
_root.HelpTextContent = 18;
_root.HelpTextTimer = 100;
if (_root.Player.Score >= 7500 and Key.isDown(70)) {
_root.Lightning = true;
_root.Player.Score -= 7500;
_root.LightningTimer = 500;
}
}
}
}
}
}
instance BuyM4 of movieClip 500 {
onClipEvent (load) {
gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hitTester)) {
_root.HelpTextContent = 13;
_root.HelpTextTimer = 100;
}
}
}
instance BuyIntervention of movieClip 500 {
onClipEvent (load) {
gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hitTester)) {
_root.HelpTextContent = 14;
_root.HelpTextTimer = 100;
}
}
}
instance Wall13 of movieClip 886 {
onClipEvent (enterFrame) {
if (_root.WallHP[13] <= 0) {
_visible = false;
} else {
_visible = true;
}
frame = Math.floor(_root.WallHP[13] / 10);
if (frame > 20) {
frame = 20;
}
gotoAndStop(frame);
this.cacheAsBitmap = true;
}
}
instance Wall12 of movieClip 886 {
onClipEvent (enterFrame) {
if (_root.WallHP[12] <= 0) {
_visible = false;
} else {
_visible = true;
}
frame = Math.floor(_root.WallHP[12] / 10);
if (frame > 20) {
frame = 20;
}
gotoAndStop(frame);
this.cacheAsBitmap = true;
}
}
instance Wall16 of movieClip 886 {
onClipEvent (enterFrame) {
if (_root.WallHP[16] <= 0) {
_visible = false;
} else {
_visible = true;
}
frame = Math.floor(_root.WallHP[16] / 10);
if (frame > 20) {
frame = 20;
}
gotoAndStop(frame);
this.cacheAsBitmap = true;
}
}
instance Wall14 of movieClip 886 {
onClipEvent (enterFrame) {
if (_root.WallHP[14] <= 0) {
_visible = false;
} else {
_visible = true;
}
frame = Math.floor(_root.WallHP[14] / 10);
if (frame > 20) {
frame = 20;
}
gotoAndStop(frame);
this.cacheAsBitmap = true;
}
}
instance Wall15 of movieClip 886 {
onClipEvent (enterFrame) {
if (_root.WallHP[15] <= 0) {
_visible = false;
} else {
_visible = true;
}
frame = Math.floor(_root.WallHP[15] / 10);
if (frame > 20) {
frame = 20;
}
gotoAndStop(frame);
this.cacheAsBitmap = true;
}
}
instance Wall18 of movieClip 886 {
onClipEvent (enterFrame) {
if (_root.WallHP[18] <= 0) {
_visible = false;
} else {
_visible = true;
}
frame = Math.floor(_root.WallHP[18] / 10);
if (frame > 20) {
frame = 20;
}
gotoAndStop(frame);
this.cacheAsBitmap = true;
}
}
instance Wall23 of movieClip 888 {
onClipEvent (enterFrame) {
if (_root.WallType[23] == 4) {
_visible = false;
}
this.cacheAsBitmap = true;
}
}
instance Wall22 of movieClip 888 {
onClipEvent (enterFrame) {
if (_root.WallType[22] == 4) {
_visible = false;
}
this.cacheAsBitmap = true;
}
}
instance Wall20 of movieClip 888 {
onClipEvent (enterFrame) {
if (_root.WallType[20] == 4) {
_visible = false;
}
this.cacheAsBitmap = true;
}
}
instance Wall21 of movieClip 888 {
onClipEvent (enterFrame) {
if (_root.WallType[21] == 4) {
_visible = false;
}
this.cacheAsBitmap = true;
}
}
instance Wall19 of movieClip 888 {
onClipEvent (enterFrame) {
if (_root.WallType[19] == 4) {
_visible = false;
}
this.cacheAsBitmap = true;
}
}
instance Crate of movieClip 890 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.HelpTextContent = 12;
_root.HelpTextTimer = 100;
}
}
}
movieClip 1489 {
}
instance Vegitation of movieClip 1489 {
onClipEvent (load) {
_x = 214.1;
_y = 452.45;
_width = 1589.85;
_height = 1760.6;
_alpha = 85;
}
}
instance BuyShotgun of movieClip 500 {
onClipEvent (load) {
gotoAndStop(7);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hitTester)) {
_root.HelpTextContent = 11;
_root.HelpTextTimer = 100;
}
}
}
movieClip 1491 {
}
instance PossibleRally of movieClip 1491 {
onClipEvent (load) {
_x = 0;
_y = 0;
_xscale = 100;
_yscale = 100;
_visible = false;
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
gotoAndStop(_root.RemovedWalls + 1);
}
}
frame 17 {
_root.Player.Friction = 0.03;
_root.RemovedWalls = 6;
_root.MapWeapon = 5;
MainBackground.cacheAsBitmap = true;
TotalTiles = 1;
}
movieClip 1493 {
}
movieClip 1494 {
}
instance BuyShotgun of movieClip 500 {
onClipEvent (load) {
gotoAndStop(7);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hitTester)) {
_root.HelpTextContent = 11;
_root.HelpTextTimer = 100;
}
}
}
frame 18 {
if (_root.FaciZombies.data.Map == 'Sandbox') {
_root.Player.Friction = 0.7;
_root.RemovedWalls = 6;
_root.Player.Score = NaN;
_root.Level = 13;
_root.LevelCap[Level] = 1000000;
_root.LevelCap[Level + 1] = 1000000;
}
MainBackground.cacheAsBitmap = true;
TotalTiles = 1;
}
movieClip 1496 {
}
movieClip 1497 {
}
instance BuyIntervention of movieClip 500 {
onClipEvent (load) {
gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hitTester)) {
_root.HelpTextContent = 14;
_root.HelpTextTimer = 100;
}
}
}
instance BuyM4 of movieClip 500 {
onClipEvent (load) {
gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hitTester)) {
_root.HelpTextContent = 14;
_root.HelpTextTimer = 100;
}
}
}
instance BuyUMP of movieClip 500 {
onClipEvent (load) {
gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hitTester)) {
_root.HelpTextContent = 14;
_root.HelpTextTimer = 100;
}
}
}
instance BuyRPD of movieClip 500 {
onClipEvent (load) {
gotoAndStop(4);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hitTester)) {
_root.HelpTextContent = 14;
_root.HelpTextTimer = 100;
}
}
}
instance BuyMG4 of movieClip 500 {
onClipEvent (load) {
gotoAndStop(5);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hitTester)) {
_root.HelpTextContent = 14;
_root.HelpTextTimer = 100;
}
}
}
instance BuyFAL of movieClip 500 {
onClipEvent (load) {
gotoAndStop(6);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hitTester)) {
_root.HelpTextContent = 14;
_root.HelpTextTimer = 100;
}
}
}
instance BuyAA of movieClip 500 {
onClipEvent (load) {
gotoAndStop(8);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hitTester)) {
_root.HelpTextContent = 11;
_root.HelpTextTimer = 100;
}
}
}
instance BuyGAU of movieClip 500 {
onClipEvent (load) {
gotoAndStop(9);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hitTester)) {
_root.HelpTextContent = 11;
_root.HelpTextTimer = 100;
}
}
}
instance BuyP90 of movieClip 500 {
onClipEvent (load) {
gotoAndStop(10);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hitTester)) {
_root.HelpTextContent = 11;
_root.HelpTextTimer = 100;
}
}
}
instance BuyAT4 of movieClip 500 {
onClipEvent (load) {
gotoAndStop(11);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hitTester)) {
_root.HelpTextContent = 11;
_root.HelpTextTimer = 100;
}
}
}
instance BuyBarrett of movieClip 500 {
onClipEvent (load) {
gotoAndStop(12);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hitTester)) {
_root.HelpTextContent = 11;
_root.HelpTextTimer = 100;
}
}
}
instance BuyFlame of movieClip 500 {
onClipEvent (load) {
gotoAndStop(13);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hitTester)) {
_root.HelpTextContent = 11;
_root.HelpTextTimer = 100;
}
}
}
instance BuyAK of movieClip 500 {
onClipEvent (load) {
gotoAndStop(14);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hitTester)) {
_root.HelpTextContent = 11;
_root.HelpTextTimer = 100;
}
}
}
instance PackAPunch of movieClip 893 {
onClipEvent (load) {
gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (ReadyUp) {
gotoAndStop(2);
}
if (_root.Player.hitTest(_root.PackAPunch) and (Possible or !ReadyUp)) {
_root.HelpTextContent = 17;
_root.HelpTextTimer = 100;
}
if (_root.Player.hitTest(this)) {
Possible = false;
Required = [0, 25, 20, 15, 25, 250, 17.5, 100, 100, 5000, 50, 10, 25, 125, 50, 100, 50, 125, 50, 35, 50, 100, 250, 100][_root.Player.Weapon];
Required *= 1000;
if (!_root.Player.PackAPunched[_root.Player.WeaponSlot]) {
Possible = true;
}
if (Required == 0) {
Possible = false;
}
if (!ReadyUp and this.hitTest(_root.Player) and Key.isDown(70) and _root.Player.Score >= 100000) {
ReadyUp = true;
_root.FaciZombies.data.PackAPunchReady = true;
_root.Player.Score -= 100000;
Possible = false;
}
if (Possible and ReadyUp and Key.isDown(70) and _root.Player.Score >= Required) {
_root.Player.Score -= Required;
_root.Player.PackAPunched[_root.Player.WeaponSlot] = true;
_root.Player.AmmoType[_root.Player.Weapon] += _root.PAPAmmoType[_root.Player.Weapon];
_root.Player.Damage[_root.Player.Weapon] += _root.PAPDamage[_root.Player.Weapon];
_root.Player.Penetrating[_root.Player.Weapon] += _root.PAPPenetrating[_root.Player.Weapon];
_root.Player.Speed[_root.Player.Weapon] += _root.PAPSpeed[_root.Player.Weapon];
_root.Player.Range[_root.Player.Weapon] += _root.PAPRange[_root.Player.Weapon];
_root.Player.Mobility[_root.Player.Weapon] += _root.PAPMobility[_root.Player.Weapon];
}
}
}
}
frame 19 {
MainBackground.cacheAsBitmap = true;
}
frame 28 {
kills = Kills;
_quality = 'high';
_root.FaciZombies.data.GameSaved = true;
if (_root.DeadTimer == 10) {
_root.FaciZombies.data.Savehp = _root.Player.hp;
_root.FaciZombies.data.PackAPunched = _root.Player.PackAPunched;
_root.FaciZombies.data.PartnerHP = _root.Partner.hp;
_root.FaciZombies.data.PlayerLastStand = _root.Player.LastStand;
_root.FaciZombies.data.PartnerLastStand = _root.Partner.LastStand;
_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.PartnerX = _root.Partner._x;
_root.FaciZombies.data.PartnerY = _root.Partner._y;
_root.FaciZombies.data.SaveKills = _root.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;
_root.FaciZombies.data.RemovedWalls = _root.RemovedWalls;
_root.FaciZombies.data.NewMap = false;
_root.FaciZombies.data.Saveep = _root.Player.ep;
}
_root.Player.reloading = false;
_root.Player.Loaded = true;
_root.Player.knifing = false;
_root.Palms.removeMovieClip();
_root.Player.removeMovieClip();
_root.Partner.removeMovieClip();
_root.DisplayWeapon.removeMovieClip();
_root.DamageView.removeMovieClip();
_root.ShowWeapon.removeMovieClip();
_root.MultiKillText.removeMovieClip();
_root.Aim.removeMovieClip();
_root.DamageView.removeMovieClip();
_root.ShowWeapon.removeMovieClip();
_root.ShowWeaponText.removeTextField();
_root.MagText.removeTextField();
_root.StatBar.removeMovieClip();
_root.DisplayLevel.removeTextField();
_root.DisplayGold.removeTextField();
_root.HelpText.removeTextField();
_root.HPBar.removeMovieClip();
_root.StatBackGround.removeMovieClip();
_root.ShowWeapon.removeMovieClip();
_root.HelpTextGround.removeMovieClip();
_root.Player.removeMovieClip();
_root.Partner.removeMovieClip();
_root.MultiKillText.removeMovieClip();
_root.Aim.removeMovieClip();
_root.DamageView.removeMovieClip();
_root.PerkSelect.removeMovieClip();
_root.Vegitation.removeMovieClip();
_root.Radar.removeMovieClip();
_root.Darkness.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();
}
Mouse.show();
_root._x = 0;
_root._y = 0;
if (_root.DeadTimer <= 0) {
_root.FaciZombies.data.GameSaved = undefined;
}
this.onEnterFrame = function () {};
}
// unknown tag 88 length 106
button 1501 {
on (press) {
gotoAndStop(_root.MenuFrame);
}
}
frame 30 {
_root.FaciZombies.data.Zombies = _root.Zombies;
_root.FaciZombies.data.Alive = new Array();
_root.FaciZombies.data.XCoords = new Array();
_root.FaciZombies.data.YCoords = new Array();
_root.FaciZombies.data.Type = new Array();
_root.FaciZombies.data.Rotation = new Array();
_root.FaciZombies.data.Crawling = new Array();
_root.FaciZombies.data.LevelKills = Kills;
for (temp in Zombies) {
Zombie = Zombies[temp];
if (Zombie.TileHit == undefined) {
Zombie.Alive = false;
}
_root.FaciZombies.data.XCoords[temp] = Zombie._x;
_root.FaciZombies.data.YCoords[temp] = Zombie._y;
_root.FaciZombies.data.Crawling[temp] = Zombie.Crawling;
_root.FaciZombies.data.Destroying[temp] = Zombie.Destroying;
_root.FaciZombies.data.Type[temp] = Zombie.Type;
_root.FaciZombies.data.Rotation[temp] = Zombie._rotation;
if (Zombie.Alive) {
_root.FaciZombies.data.Alive[temp] = true;
} else {
_root.FaciZombies.data.Alive[temp] = false;
}
}
kills = Kills;
_quality = 'high';
_root.FaciZombies.data.GameSaved = true;
if (_root.DeadTimer == 10) {
_root.FaciZombies.data.Savehp = _root.Player.hp;
if (_root.MedicTimer != 0) {
_root.FaciZombies.data.Savehp = 100;
_root.MedicTimer = -10;
}
_root.FaciZombies.data.PackAPunched = _root.Player.PackAPunched;
_root.FaciZombies.data.PartnerHP = _root.Partner.hp;
_root.FaciZombies.data.PlayerLastStand = _root.Player.LastStand;
_root.FaciZombies.data.PartnerLastStand = _root.Partner.LastStand;
_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.PartnerX = _root.Partner._x;
_root.FaciZombies.data.PartnerY = _root.Partner._y;
_root.FaciZombies.data.SaveKills = _root.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;
_root.FaciZombies.data.RemovedWalls = _root.RemovedWalls;
_root.FaciZombies.data.NewMap = false;
_root.FaciZombies.data.Saveep = _root.Player.ep;
}
_root.Player.reloading = false;
_root.Player.Loaded = true;
_root.Player.knifing = false;
_root.Palms.removeMovieClip();
_root.NextWaveSign.removeMovieClip();
_root.Player.removeMovieClip();
_root.Partner.removeMovieClip();
_root.DisplayWeapon.removeMovieClip();
_root.Display.removeMovieClip();
_root.DamageView.removeMovieClip();
_root.ShowWeapon.removeMovieClip();
_root.MultiKillText.removeMovieClip();
_root.Aim.removeMovieClip();
_root.DamageView.removeMovieClip();
_root.ShowWeapon.removeMovieClip();
_root.ShowWeaponText.removeTextField();
_root.MagText.removeTextField();
_root.StatBar.removeMovieClip();
_root.DisplayLevel.removeTextField();
_root.DisplayGold.removeTextField();
_root.HelpText.removeTextField();
_root.HPBar.removeMovieClip();
_root.StatBackGround.removeMovieClip();
_root.ShowWeapon.removeMovieClip();
_root.HelpTextGround.removeMovieClip();
_root.Player.removeMovieClip();
_root.Partner.removeMovieClip();
_root.MultiKillText.removeMovieClip();
_root.Aim.removeMovieClip();
_root.DamageView.removeMovieClip();
_root.PerkSelect.removeMovieClip();
_root.Vegitation.removeMovieClip();
_root.Radar.removeMovieClip();
_root.Darkness.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();
}
Mouse.show();
_root._x = 0;
_root._y = 0;
if (_root.DeadTimer <= 0) {
_root.FaciZombies.data.GameSaved = undefined;
}
if (_root.Pause) {
gotoAndStop(MenuFrame);
}
Pause = false;
Playing = false;
stopAllSounds();
BackgroundSong.loadSound('http://eivind.netau.net/Lullaby%20for%20a%20Dead%20Man%201.mp3', true);
BackgroundSong.start(0, 999);
SoundPlaying = 'LullabyforADeadMan';
BackgroundSong.setVolume(_root.FaciZombies.data.SongVolume);
}
movieClip 1511 {
}
instance of movieClip 1511 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.Player)) {
_root.FaciZombies.data.CampaignLevel += 1;
_root.gotoAndStop(_root.FaciZombies.data.CampaignLevel + _root.CampaignStart);
}
}
}
button 1514 {
on (press) {
if (_root.FaciZombies.data.NewMap) {
_root.FaciZombies.data.Map = 'Campaign';
}
}
}
button 1516 {
on (press) {
_root.FaciZombies.data.Chapter = 1;
}
}
movieClip 1521 {
}
movieClip 1524 {
}
instance of movieClip 1524 {
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
getURL('http://www.kongregate.com/accounts/ehaugw', '_blank');
}
}
}
instance Bullet3T of movieClip 901 {
onClipEvent (load) {
Damage = 5;
Range = 1000;
if (input1 != undefined) {
Damage = input1;
}
if (input2 != undefined) {
Range = input2;
}
StartX = _x;
StartY = _y;
if (this == _root.Bullet3T) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
if (!_root.Playing) {
this.removeMovieClip();
}
if (!_root.Pause) {
if (this != _root.Bullet3T) {
if (Math.sqrt((StartX - _x) * (StartX - _x) + (StartY - _y) * (StartY - _y)) > Range) {
this.removeMovieClip();
}
Counter = 1;
while (Counter <= 6) {
if (_root.hitTester.hitTest(_x, _y, true)) {
_root.Player.hp -= Damage;
}
this._x += 18 * Math.sin(this._rotation / -57.2957);
this._y += 18 * Math.cos(this._rotation / -57.2957);
if (_root.AbsoluteWalls.hitTest(_x, _y, true)) {
_root.MakeObject('Dust', _root.DustT, 'TopAllign', _x, _y, _rotation);
this.removeMovieClip();
}
++Counter;
}
}
}
}
}
button 1527 {
on (press) {
G1Check._visible = !G1Check._visible;
_root.FaciZombies.data.GraphicSettings[0] = !_root.FaciZombies.data.GraphicSettings[0];
}
}
instance G1Check of movieClip 616 {
onClipEvent (load) {
_visible = _root.FaciZombies.data.GraphicSettings[0];
}
}
button 1530 {
on (rollOver) {
Requirements = _root.FaciZombies.data.TotalKills + ' / 250 Kills';
_root.Description.Stat = 10;
}
on (rollOut) {
_root.Description.Stat = 0;
}
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;
}
if (_root.CloverButton._alpha == 100) {
_root.CloverButton._alpha = 50;
}
}
}
}
instance GrenadeLight of movieClip 503 {
onClipEvent (enterFrame) {
_x = 112 + 108 * _root.FaciZombies.data.Grenade;
}
}
button 1533 {
on (press) {
if (_root.FaciZombies.data.EquipmentKills[0] >= 500) {
_root.FaciZombies.data.Grenade = 2;
}
}
on (rollOver) {
_root.Req.Req = 500;
_root.Req.current = 'Frag Grenade: ' + _root.FaciZombies.data.EquipmentKills[0];
}
on (rollOut) {
_root.Req.Req = 0;
}
}
instance SpecialGrenadeLight of movieClip 503 {
onClipEvent (enterFrame) {
_x = 572.65 + 163 * _root.FaciZombies.data.SpecialGrenade;
}
}
button 1534 {
on (press) {
if (_root.FaciZombies.data.EquipmentKills[0] >= 100) {
_root.FaciZombies.data.Grenade = 1;
}
}
on (rollOver) {
_root.Req.Req = 100;
_root.Req.current = 'Frag Grenade: ' + _root.FaciZombies.data.EquipmentKills[0];
}
on (rollOut) {
_root.Req.Req = 0;
}
}
button 1535 {
on (press) {
_root.FaciZombies.data.Grenade = 0;
}
on (rollOver) {
_root.Req.Req = 0;
_root.Req.current = _root.FaciZombies.data.EquipmentKills[0];
}
on (rollOut) {
_root.Req.Req = 0;
}
}
button 1538 {
on (press) {
_root.FaciZombies.data.SpecialGrenade = 0;
}
on (rollOver) {
_root.Req.Req = 0;
_root.Req.current = _root.FaciZombies.data.EquipmentKills[10];
}
on (rollOut) {
_root.Req.Req = 0;
}
}
button 1539 {
on (press) {
if (_root.FaciZombies.data.EquipmentKills[10] >= 500) {
_root.FaciZombies.data.SpecialGrenade = 1;
}
}
on (rollOver) {
_root.Req.Req = 500;
_root.Req.current = 'Claymore: ' + _root.FaciZombies.data.EquipmentKills[10];
}
on (rollOut) {
_root.Req.Req = 0;
}
}
movieClip 1548 {
frame 1 {
stop();
}
}
movieClip 1549 {
instance of movieClip 1548 {
onClipEvent (load) {
gotoAndStop(_root.FaciZombies.data.PersonColor);
if (_root.FaciZombies.data.PersonLook != 3) {
gotoAndStop(1);
}
if (!_root.FaciZombies.data.UnlockedLooks[3]) {
gotoAndStop(4);
}
}
onClipEvent (enterFrame) {
gotoAndStop(_root.FaciZombies.data.PersonColor);
if (_root.FaciZombies.data.PersonLook != 3) {
gotoAndStop(1);
}
if (!_root.FaciZombies.data.UnlockedLooks[3]) {
gotoAndStop(4);
}
}
}
}
movieClip 1555 {
frame 1 {
stop();
}
}
movieClip 1556 {
instance of movieClip 1555 {
onClipEvent (load) {
gotoAndStop(_root.FaciZombies.data.PersonColor);
if (_root.FaciZombies.data.PersonLook != 2) {
gotoAndStop(1);
}
if (!_root.FaciZombies.data.UnlockedLooks[2]) {
gotoAndStop(4);
}
}
onClipEvent (enterFrame) {
gotoAndStop(_root.FaciZombies.data.PersonColor);
if (_root.FaciZombies.data.PersonLook != 2) {
gotoAndStop(1);
}
if (!_root.FaciZombies.data.UnlockedLooks[2]) {
gotoAndStop(4);
}
}
}
}
movieClip 1561 {
frame 1 {
stop();
}
}
movieClip 1563 {
instance of movieClip 1561 {
onClipEvent (load) {
if (!_root.FaciZombies.data.UnlockedLooks[1]) {
gotoAndStop(4);
} else {
gotoAndStop(_root.FaciZombies.data.PersonColor);
if (_root.FaciZombies.data.PersonLook != 1) {
gotoAndStop(1);
}
}
}
onClipEvent (enterFrame) {
if (!_root.FaciZombies.data.UnlockedLooks[1]) {
gotoAndStop(4);
} else {
gotoAndStop(_root.FaciZombies.data.PersonColor);
if (_root.FaciZombies.data.PersonLook != 1) {
gotoAndStop(1);
}
}
}
}
}
button 1566 {
on (release) {
_root.FaciZombies.data.PersonColor = 1;
}
}
button 1568 {
on (release) {
if (_root.FaciZombies.data.UnlockedColors[2]) {
_root.FaciZombies.data.PersonColor = 2;
}
}
}
button 1570 {
on (release) {
if (_root.FaciZombies.data.UnlockedColors[3]) {
_root.FaciZombies.data.PersonColor = 3;
}
}
}
movieClip 1576 {
frame 1 {
stop();
}
}
button 1580 {
on (release) {
gotoAndStop((_currentframe + 1) % 3 + 1);
_root.FaciZombies.data.PersonColor = 1;
}
}
button 1582 {
on (release) {
gotoAndStop((_currentframe + 3) % 3 + 1);
_root.FaciZombies.data.PersonColor = 1;
}
}
button 1584 {
on (release) {
_root.gotoAndStop(_root.SelectClassFrame);
}
}
button 1587 {
on (release) {
_root.FaciZombies.data.PersonColor = 1;
}
}
button 1589 {
on (release) {
if (_root.FaciZombies.data.UnlockedColors[5]) {
_root.FaciZombies.data.PersonColor = 2;
}
}
}
button 1591 {
on (release) {
if (_root.FaciZombies.data.UnlockedColors[6]) {
_root.FaciZombies.data.PersonColor = 3;
}
}
}
movieClip 1597 {
}
button 1599 {
on (release) {
if (_root.FaciZombies.data.UnlockedColors[8]) {
_root.FaciZombies.data.PersonColor = 2;
}
}
}
button 1601 {
on (release) {
_root.FaciZombies.data.PersonColor = 1;
}
}
button 1602 {
on (release) {
if (_root.FaciZombies.data.UnlockedColors[9]) {
_root.FaciZombies.data.PersonColor = 3;
}
}
}
movieClip 1604 {
frame 1 {
stop();
if (_root.FaciZombies.data.UnlockedLooks[_currentframe]) {
_root.FaciZombies.data.PersonLook = 1;
}
}
instance of movieClip 1549 {
onClipEvent (enterFrame) {
if (_root.isMouseDown and this.hitTest(_root._xmouse, _root._ymouse, true) and _root._xmouse > 61) {
_root.FaciZombies.data.PersonColor = 1;
_root.isMouseDown = false;
_parent.gotoAndStop(3);
}
}
}
instance of movieClip 1556 {
onClipEvent (enterFrame) {
if (_root.isMouseDown and this.hitTest(_root._xmouse, _root._ymouse, true) and _root._xmouse > -39) {
_root.FaciZombies.data.PersonColor = 1;
_root.isMouseDown = false;
_parent.gotoAndStop(2);
}
}
}
instance of movieClip 1576 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.UnlockedColors[2]) {
_visible = false;
}
}
}
instance of movieClip 1576 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.UnlockedColors[3]) {
_visible = false;
}
}
}
frame 2 {
stop();
if (_root.FaciZombies.data.UnlockedLooks[_currentframe]) {
_root.FaciZombies.data.PersonLook = 2;
}
}
instance of movieClip 1563 {
onClipEvent (enterFrame) {
if (_root.isMouseDown and this.hitTest(_root._xmouse, _root._ymouse, true) and _root._xmouse > 61) {
_root.FaciZombies.data.PersonColor = 1;
_root.isMouseDown = false;
_parent.gotoAndStop(1);
}
}
}
instance of movieClip 1549 {
onClipEvent (enterFrame) {
if (_root.isMouseDown and this.hitTest(_root._xmouse, _root._ymouse, true) and _root._xmouse > -39) {
_root.FaciZombies.data.PersonColor = 1;
_root.isMouseDown = false;
_parent.gotoAndStop(3);
}
}
}
instance of movieClip 1597 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.UnlockedLooks[2]) {
_visible = false;
} else {
_visible = true;
gotoAndStop(2);
}
}
}
instance of movieClip 1576 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.UnlockedColors[5]) {
_visible = false;
}
}
}
instance of movieClip 1576 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.UnlockedColors[6]) {
_visible = false;
}
}
}
frame 3 {
stop();
if (_root.FaciZombies.data.UnlockedLooks[_currentframe]) {
_root.FaciZombies.data.PersonLook = 3;
}
}
instance of movieClip 1556 {
onClipEvent (enterFrame) {
if (_root.isMouseDown and this.hitTest(_root._xmouse, _root._ymouse, true) and _root._xmouse > 61) {
_root.FaciZombies.data.PersonColor = 1;
_root.isMouseDown = false;
_parent.gotoAndStop(2);
}
}
}
instance of movieClip 1563 {
onClipEvent (enterFrame) {
if (_root.isMouseDown and this.hitTest(_root._xmouse, _root._ymouse, true) and _root._xmouse > -39) {
_root.FaciZombies.data.PersonColor = 1;
_root.isMouseDown = false;
_parent.gotoAndStop(1);
}
}
}
instance of movieClip 1576 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.UnlockedColors[8]) {
_visible = false;
}
}
}
instance of movieClip 1576 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.UnlockedColors[9]) {
_visible = false;
}
}
}
}
instance of movieClip 1604 {
onClipEvent (load) {
gotoAndStop(_root.FaciZombies.data.PersonLook);
}
}
instance Req of movieClip 519 {
onClipEvent (load) {
Req = 0;
}
onClipEvent (enterFrame) {
_x = _root._xmouse + 20;
_y = _root._ymouse - 121;
req = current + ' / ' + Req;
if (Req == 0 or Req == undefined) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 489 {
onClipEvent (enterFrame) {
if (_root.Player.Walking == undefined) {
Turret._rotation = Math.round(Math.atan2(_root._xmouse - _x, _root._ymouse - _y) * -180 / Math.PI - _rotation - 90);
if (Key.isDown(65)) {
_rotation = _rotation - 4;
}
if (Key.isDown(68)) {
_rotation = _rotation + 4;
}
if (Key.isDown(87)) {
_x = _x - 8 * Math.cos(_rotation * Math.PI / 180);
_y = _y - 8 * Math.sin(_rotation * Math.PI / 180);
}
if (Key.isDown(83)) {
_x = _x + 8 * Math.cos(_rotation * Math.PI / 180);
_y = _y + 8 * Math.sin(_rotation * Math.PI / 180);
}
}
}
}
movieClip 1606 {
}
instance CockroachT of movieClip 1606 {
onClipEvent (load) {
if (this == _root.CockroachT) {
_visible = false;
} else {
_visible = true;
}
HitTimer = 0;
}
onClipEvent (enterFrame) {
if (!_root.Playing) {
this.removeMovieClip();
}
if (!_root.Pause) {
if (this == _root.CockroachT) {
if (_root.CockroachAmount < 100) {
_root.MakeObject('Cockroach', _root.CockroachT, 'TopAllign', 0, 0);
++_root.CockroachAmount;
}
} else {
if (HitTimer == 0) {
for (temp in _root.PlayerShots) {
if (_root.PlayerShots[temp].hitTest(_x, _y, true)) {
_root.Player.Score += 2;
_root.FaciZombies.data.TotalScore += 2;
--_root.PlayerShots[temp].Penetrating;
--_root.CockroachAmount;
this.removeMovieClip();
}
}
HitTimer = 8;
this._rotation = Math.round(Math.atan2(WalkTo._x - this._x, WalkTo._y - this._y) * -180 / Math.PI);
}
--HitTimer;
_x = _x - 8 * Math.sin(this._rotation / 57.2957);
_y = _y + 8 * Math.cos(this._rotation / 57.2957);
if (_root.AbsoluteWalls.hitTest(_x, _y, true)) {
_x = _x + 4 * Math.sin(this._rotation / 57.2957);
_y = _y - 4 * Math.cos(this._rotation / 57.2957);
}
if (_root.Player.LastStand or _root.GetDistance(this, _root.hitTester) > _root.GetDistance(this, _root.Partner)) {
WalkTo = _root.Partner;
}
if (_root.Partner.LastStand or _root.GetDistance(this, _root.hitTester) <= _root.GetDistance(this, _root.Partner)) {
WalkTo = _root.hitTester;
}
if (WalkTo.hitTest(_x, _y, true)) {
if (WalkTo == _root.hitTester) {
_root.Player.hp -= 0.1;
_root.Player.evenolderxmove = 0;
} else {
WalkTo.hp -= 0.1;
_root.Partern.olderxmove = 0;
}
}
this._rotation = Math.round(Math.atan2(WalkTo._x - this._x, WalkTo._y - this._y) * -180 / Math.PI);
}
}
}
}
instance of movieClip 616 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.Achievements[9] == 1) {
_visible = true;
} else {
_visible = false;
}
}
}
movieClip 1617 {
frame 1 {
if (this != _root.ExplosionT) {
Kills = 0;
for (zombie in _root._level0.Zombies) {
if (_root.GetDistance(this, _root.Zombies[zombie]) < _width / 2) {
if (_root.Zombies[zombie].hp > 0) {
_root.Zombies[zombie].hp -= 20 * _root.InstaKill;
if (_root.Perk1 == 'DangerClose') {
_root.Zombies[zombie].hp -= 10;
}
_root.Player.Score += _root.Double * _root.Bonus * 50;
if (_root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 50;
}
if (_root.Zombies[zombie].hp <= 0 and _root.FaciZombies.data.Map != 'Sandbox') {
_root.Zombies[zombie]._rotation = Math.round(Math.atan2(this._x - _root.Zombies[zombie]._x, this._y - _root.Zombies[zombie]._y) * -180 / Math.PI) + 180;
if (Weapon < 80) {
++_root.FaciZombies.data.WeaponKills[Weapon];
} else {
++_root.FaciZombies.data.EquipmentKills[Weapon - 80];
}
_root.FaciZombies.data.ExplosiveKills += 1;
Kills += 1;
}
}
}
}
if (_root.GetDistance(this, _root.Player) < _width / 2) {
_root.Player.hp -= 20;
}
if (_root.GetDistance(this, _root.Partner) < _width / 2) {
_root.Partner.hp -= 20;
}
}
}
frame 2 {
if (this != _root.ExplosionT) {
for (zombie in _root._level0.Zombies) {
if (_root.GetDistance(this, _root.Zombies[zombie]) < _width / 2) {
if (_root.Zombies[zombie].hp > 0) {
_root.Zombies[zombie].hp -= 20;
if (_root.Perk1 == 'DangerClose') {
_root.Zombies[zombie].hp -= 10;
}
_root.Player.Score += _root.Double * _root.Bonus * 50;
if (_root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 50;
}
if (_root.Zombies[zombie].hp <= 0 and _root.FaciZombies.data.Map != 'Sandbox') {
_root.Zombies[zombie]._rotation = Math.round(Math.atan2(this._x - _root.Zombies[zombie]._x, this._y - _root.Zombies[zombie]._y) * -180 / Math.PI) + 180;
if (Weapon < 80) {
++_root.FaciZombies.data.WeaponKills[Weapon];
} else {
++_root.FaciZombies.data.EquipmentKills[Weapon - 80];
}
_root.FaciZombies.data.ExplosiveKills += 1;
Kills += 1;
}
}
}
}
if (_root.GetDistance(this, _root.Player) < _width / 2) {
_root.Player.hp -= 20;
}
if (_root.GetDistance(this, _root.Partner) < _width / 2) {
_root.Partner.hp -= 20;
}
}
}
frame 3 {
if (this != _root.ExplosionT) {
for (zombie in _root._level0.Zombies) {
if (_root.GetDistance(this, _root.Zombies[zombie]) < _width / 2) {
if (_root.Zombies[zombie].hp > 0) {
_root.Zombies[zombie].hp -= 20 * _root.InstaKill;
if (_root.Perk1 == 'DangerClose') {
_root.Zombies[zombie].hp -= 10;
}
_root.Player.Score += _root.Double * _root.Bonus * 50;
if (_root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 50;
}
if (_root.Zombies[zombie].hp <= 0 and _root.FaciZombies.data.Map != 'Sandbox') {
_root.Zombies[zombie]._rotation = Math.round(Math.atan2(this._x - _root.Zombies[zombie]._x, this._y - _root.Zombies[zombie]._y) * -180 / Math.PI) + 180;
if (Weapon < 80) {
++_root.FaciZombies.data.WeaponKills[Weapon];
} else {
++_root.FaciZombies.data.EquipmentKills[Weapon - 80];
}
_root.FaciZombies.data.ExplosiveKills += 1;
Kills += 1;
}
}
}
}
if (_root.GetDistance(this, _root.Player) < _width / 2) {
_root.Player.hp -= 20;
}
if (_root.GetDistance(this, _root.Partner) < _width / 2) {
_root.Partner.hp -= 20;
}
}
}
frame 4 {
for (zombie in _root._level0.Zombies) {
if (_root.GetDistance(this, _root.Zombies[zombie]) < _width / 2) {
if (_root.Zombies[zombie].hp > 0) {
_root.Zombies[zombie].hp -= 20;
if (_root.Perk1 == 'DangerClose') {
_root.Zombies[zombie].hp -= 10;
}
_root.Player.Score += _root.Double * _root.Bonus * 50;
if (_root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 50;
}
if (_root.Zombies[zombie].hp <= 0 and _root.FaciZombies.data.Map != 'Sandbox') {
_root.Zombies[zombie]._rotation = Math.round(Math.atan2(this._x - _root.Zombies[zombie]._x, this._y - _root.Zombies[zombie]._y) * -180 / Math.PI) + 180;
if (Weapon < 80) {
++_root.FaciZombies.data.WeaponKills[Weapon];
} else {
++_root.FaciZombies.data.EquipmentKills[Weapon - 80];
}
_root.FaciZombies.data.ExplosiveKills += 1;
Kills += 1;
}
}
}
}
if (_root.GetDistance(this, _root.Player) < _width / 2) {
_root.Player.hp -= 20;
}
if (_root.GetDistance(this, _root.Partner) < _width / 2) {
_root.Partner.hp -= 20;
}
}
frame 5 {
for (zombie in _root._level0.Zombies) {
if (_root.GetDistance(this, _root.Zombies[zombie]) < _width / 2) {
if (_root.Zombies[zombie].hp > 0) {
_root.Zombies[zombie].hp -= 20 * _root.InstaKill;
if (_root.Perk1 == 'DangerClose') {
_root.Zombies[zombie].hp -= 10;
}
_root.Player.Score += _root.Double * _root.Bonus * 50;
if (_root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 50;
}
if (_root.Zombies[zombie].hp <= 0 and _root.FaciZombies.data.Map != 'Sandbox') {
_root.Zombies[zombie]._rotation = Math.round(Math.atan2(this._x - _root.Zombies[zombie]._x, this._y - _root.Zombies[zombie]._y) * -180 / Math.PI) + 180;
if (Weapon < 80) {
++_root.FaciZombies.data.WeaponKills[Weapon];
} else {
++_root.FaciZombies.data.EquipmentKills[Weapon - 80];
}
_root.FaciZombies.data.ExplosiveKills += 1;
Kills += 1;
}
}
}
}
if (_root.GetDistance(this, _root.Player) < _width / 2) {
_root.Player.hp -= 20;
}
if (_root.GetDistance(this, _root.Partner) < _width / 2) {
_root.Partner.hp -= 20;
}
}
frame 6 {
for (zombie in _root._level0.Zombies) {
if (_root.GetDistance(this, _root.Zombies[zombie]) < _width / 2) {
if (_root.Zombies[zombie].hp > 0) {
_root.Zombies[zombie].hp -= 20 * _root.InstaKill;
if (_root.Perk1 == 'DangerClose') {
_root.Zombies[zombie].hp -= 10;
}
_root.Player.Score += _root.Double * _root.Bonus * 50;
if (_root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 50;
}
if (_root.Zombies[zombie].hp <= 0 and _root.FaciZombies.data.Map != 'Sandbox') {
_root.Zombies[zombie]._rotation = Math.round(Math.atan2(this._x - _root.Zombies[zombie]._x, this._y - _root.Zombies[zombie]._y) * -180 / Math.PI) + 180;
if (Weapon < 80) {
++_root.FaciZombies.data.WeaponKills[Weapon];
} else {
++_root.FaciZombies.data.EquipmentKills[Weapon - 80];
}
_root.FaciZombies.data.ExplosiveKills += 1;
Kills += 1;
}
}
}
}
if (_root.GetDistance(this, _root.Player) < _width / 2) {
_root.Player.hp -= 20;
}
if (_root.GetDistance(this, _root.Partner) < _width / 2) {
_root.Partner.hp -= 20;
}
}
frame 7 {
for (zombie in _root._level0.Zombies) {
if (_root.GetDistance(this, _root.Zombies[zombie]) < _width / 2) {
if (_root.Zombies[zombie].hp > 0) {
_root.Zombies[zombie].hp -= 20;
if (_root.Zombies[zombie].TileHit != undefined) {
_root.Zombies[zombie].Crawling = true;
}
if (Weapon == 11) {
_root.Zombies[zombie].hp -= 20;
}
if (_root.Perk1 == 'DangerClose') {
_root.Zombies[zombie].hp -= 10;
}
_root.Player.Score += _root.Double * _root.Bonus * 50;
if (_root.FaciZombies.data.Map != 'Sandbox') {
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 50;
}
if (_root.Zombies[zombie].hp <= 0 and _root.FaciZombies.data.Map != 'Sandbox') {
_root.Zombies[zombie]._rotation = Math.round(Math.atan2(this._x - _root.Zombies[zombie]._x, this._y - _root.Zombies[zombie]._y) * -180 / Math.PI) + 180;
if (Weapon < 80) {
++_root.FaciZombies.data.WeaponKills[Weapon];
} else {
++_root.FaciZombies.data.EquipmentKills[Weapon - 80];
}
_root.FaciZombies.data.ExplosiveKills += 1;
Kills += 1;
} else {
if (_root.Zombies[zombie].TileHit != undefined) {
if (_root.Zombies[zombie].Type == 1) {
_root.Zombies[zombie].Crawling = true;
_root.Zombies[zombie].Attacking = false;
_root.Zombies[zombie].gotoAndPlay(44);
}
}
}
}
}
}
if (_root.GetDistance(this, _root.Player) < _width / 2) {
_root.Player.hp -= 20;
}
if (_root.GetDistance(this, _root.Partner) < _width / 2) {
_root.Partner.hp -= 20;
}
if (Kills > 1) {
_root.FaciZombies.data.MultiKills += Kills;
_root.MultiKillText._visible = true;
_root.MultiKillTimer = 25;
_root.Player.Score += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
_root.FaciZombies.data.TotalScore += _root.Double * _root.Bonus * 50 * (Kills * _root.MultiBonus);
}
this.removeMovieClip();
}
}
instance ExplosionT of movieClip 1617 {
onClipEvent (load) {
Weapon = input1;
if (this == _root.ExplosionT) {
_visible = false;
gotoAndStop(1);
} else {
_root.soundFX.attachSound('Explosion.mp3');
_root.soundFx.attachSound('Bullet.mp3');
_root.soundFX.start();
_visible = true;
}
}
onClipEvent (enterFrame) {
if (!_root.Playing) {
this.removeMovieClip();
}
if (!_root.Pause) {
play();
} else {
stop();
}
}
}
instance of movieClip 1231 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.EquipmentKills[0] >= 500) {
_visible = true;
} else {
_visible = false;
}
}
}
instance of movieClip 1227 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.EquipmentKills[0] >= 100) {
_visible = true;
} else {
_visible = false;
}
}
}
button 1644 {
on (release) {
play();
}
}
button 1645 {
on (release) {
gotoAndPlay(21);
}
}
button 1648 {
on (release) {
gotoAndPlay(21);
}
}
button 1649 {
on (release) {
play();
}
}
button 1651 {
on (release) {
gotoAndPlay(16);
}
}
button 1652 {
on (release) {
gotoAndPlay(16);
}
}
movieClip 1656 {
}
button 1657 {
on (release) {
gotoAndPlay(26);
}
}
button 1658 {
on (release) {
gotoAndPlay(26);
}
}
button 1659 {
on (release) {
gotoAndPlay(30);
}
}
button 1660 {
on (release) {
gotoAndPlay(30);
}
}
button 1661 {
on (release) {
pgotoAndPlay(21);
}
}
button 1662 {
on (release) {
pgotoAndPlay(21);
}
}
movieClip 1665 {
frame 1 {
stop();
_root.FaciZombies.data.Grenade = 0;
}
frame 5 {
stop();
if (_root.FaciZombies.data.EquipmentKills[0] >= 500) {
_root.FaciZombies.data.Grenade = 2;
}
}
instance of movieClip 1656 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.EquipmentKills[0] >= 500) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
frame 10 {
stop();
if (_root.FaciZombies.data.EquipmentKills[0] >= 100) {
_root.FaciZombies.data.Grenade = 1;
}
}
instance of movieClip 1656 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.EquipmentKills[0] >= 100) {
gotoAndStop(3);
} else {
gotoAndStop(1);
}
}
}
frame 15 {
gotoAndStop(5);
}
instance of movieClip 1656 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.EquipmentKills[0] >= 500) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
frame 20 {
gotoAndStop(1);
}
frame 25 {
gotoAndStop(10);
}
instance of movieClip 1656 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.EquipmentKills[0] >= 100) {
gotoAndStop(3);
} else {
gotoAndStop(1);
}
}
}
}
instance of movieClip 1229 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.EquipmentKills[10] >= 500) {
_visible = true;
} else {
_visible = false;
}
}
}
movieClip 1668 {
frame 1 {
stop();
_root.FaciZombies.data.SpecialGrenade = 0;
}
frame 5 {
stop();
if (_root.FaciZombies.data.EquipmentKills[10] >= 500) {
_root.FaciZombies.data.SpecialGrenade = 1;
}
}
}
button 1670 {
on (release) {
gotoAndPlay(30);
}
}
button 1671 {
on (release) {
gotoAndPlay(2);
}
}
movieClip 1685 {
}
button 1686 {
on (release) {
gotoAndPlay(2);
}
}
button 1687 {
on (release) {
gotoAndPlay(30);
}
}
button 1688 {
on (release) {
gotoAndPlay(50);
}
}
button 1689 {
on (release) {
gotoAndPlay(11);
}
}
button 1691 {
on (release) {
gotoAndPlay(11);
}
}
button 1692 {
on (release) {
gotoAndPlay(50);
}
}
button 1693 {
on (release) {
gotoAndPlay(40);
}
}
button 1694 {
on (release) {
gotoAndPlay(21);
}
}
button 1696 {
on (release) {
gotoAndPlay(21);
}
}
button 1697 {
on (release) {
gotoAndPlay(40);
}
}
button 1698 {
on (release) {
play();
}
}
movieClip 1699 {
frame 1 {
stop();
if (_root.FaciZombies.data.UnlockedLooks[1]) {
_root.FaciZombies.data.PersonLook = 1;
}
if (!_root.FaciZombies.data.UnlockedColors[2] or !_root.FaciZombies.data.UnlockedColors[3]) {
_root.FaciZombies.data.PersonColor = 1;
}
}
instance of movieClip 1576 {
onClipEvent (enterFrame) {
cost = 10000;
slot = 2;
if (_root.FaciZombies.data.UnlockedColors[slot]) {
_visible = false;
} else {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
gotoAndStop(2);
Cost = 'Cost: ' + cost;
if (_root.isMouseDown and _root.FaciZombies.data.Gold >= cost) {
_root.FaciZombies.data.Gold -= cost;
_root.FaciZombies.data.UnlockedColors[slot] = true;
}
} else {
gotoAndStop(1);
}
}
}
}
instance of movieClip 1576 {
onClipEvent (enterFrame) {
cost = 100000;
slot = 3;
if (_root.FaciZombies.data.UnlockedColors[slot]) {
_visible = false;
} else {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
gotoAndStop(2);
Cost = 'Cost: ' + cost;
if (_root.isMouseDown and _root.FaciZombies.data.Gold >= cost) {
_root.FaciZombies.data.Gold -= cost;
_root.FaciZombies.data.UnlockedColors[slot] = true;
}
} else {
gotoAndStop(1);
}
}
}
}
instance of movieClip 1685 {
onClipEvent (enterFrame) {
gotoAndStop(_root.FaciZombies.data.PersonLook);
if (!_root.FaciZombies.data.UnlockedLooks[_root.FaciZombies.data.PersonLook]) {
gotoAndStop(4);
}
}
}
instance of movieClip 1597 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.UnlockedLooks[1]) {
_visible = false;
} else {
_visible = true;
gotoAndStop(1);
}
}
}
frame 10 {
stop();
if (_root.FaciZombies.data.UnlockedLooks[2]) {
_root.FaciZombies.data.PersonLook = 2;
}
if (!_root.FaciZombies.data.UnlockedColors[5] or !_root.FaciZombies.data.UnlockedColors[6]) {
_root.FaciZombies.data.PersonColor = 1;
}
}
instance of movieClip 1576 {
onClipEvent (enterFrame) {
cost = 10000;
slot = 5;
if (_root.FaciZombies.data.UnlockedColors[slot]) {
_visible = false;
} else {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
gotoAndStop(2);
Cost = 'Cost: ' + cost;
if (_root.isMouseDown and _root.FaciZombies.data.Gold >= cost) {
_root.FaciZombies.data.Gold -= cost;
_root.FaciZombies.data.UnlockedColors[slot] = true;
}
} else {
gotoAndStop(1);
}
}
}
}
instance of movieClip 1576 {
onClipEvent (enterFrame) {
cost = 100000;
slot = 6;
if (_root.FaciZombies.data.UnlockedColors[slot]) {
_visible = false;
} else {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
gotoAndStop(2);
Cost = 'Cost: ' + cost;
if (_root.isMouseDown and _root.FaciZombies.data.Gold >= cost) {
_root.FaciZombies.data.Gold -= cost;
_root.FaciZombies.data.UnlockedColors[slot] = true;
}
} else {
gotoAndStop(1);
}
}
}
}
instance of movieClip 1597 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.UnlockedLooks[2]) {
_visible = false;
} else {
_visible = true;
gotoAndStop(2);
}
}
}
frame 20 {
stop();
if (_root.FaciZombies.data.UnlockedLooks[3]) {
_root.FaciZombies.data.PersonLook = 3;
}
if (!_root.FaciZombies.data.UnlockedColors[8] or !_root.FaciZombies.data.UnlockedColors[9]) {
_root.FaciZombies.data.PersonColor = 1;
}
}
instance of movieClip 1576 {
onClipEvent (enterFrame) {
cost = 10000;
slot = 8;
if (_root.FaciZombies.data.UnlockedColors[slot]) {
_visible = false;
} else {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
gotoAndStop(2);
Cost = 'Cost: ' + cost;
if (_root.isMouseDown and _root.FaciZombies.data.Gold >= cost) {
_root.FaciZombies.data.Gold -= cost;
_root.FaciZombies.data.UnlockedColors[slot] = true;
}
} else {
gotoAndStop(1);
}
}
}
}
instance of movieClip 1576 {
onClipEvent (enterFrame) {
cost = 100000;
slot = 9;
if (_root.FaciZombies.data.UnlockedColors[slot]) {
_visible = false;
} else {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
gotoAndStop(2);
Cost = 'Cost: ' + cost;
if (_root.isMouseDown and _root.FaciZombies.data.Gold >= cost) {
_root.FaciZombies.data.Gold -= cost;
_root.FaciZombies.data.UnlockedColors[slot] = true;
}
} else {
gotoAndStop(1);
}
}
}
}
frame 29 {
gotoAndStop(1);
if (_root.FaciZombies.data.UnlockedLooks[1]) {
_root.FaciZombies.data.PersonLook = 1;
}
}
instance of movieClip 1576 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.UnlockedColors[2]) {
_visible = false;
}
}
}
instance of movieClip 1576 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.UnlockedColors[3]) {
_visible = false;
}
}
}
instance of movieClip 1597 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.UnlockedLooks[1]) {
_visible = false;
} else {
_visible = true;
gotoAndStop(1);
}
}
}
frame 39 {
gotoAndStop(20);
if (_root.FaciZombies.data.UnlockedLooks[3]) {
_root.FaciZombies.data.PersonLook = 3;
}
}
instance of movieClip 1576 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.UnlockedColors[8]) {
_visible = false;
}
}
}
instance of movieClip 1576 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.UnlockedColors[9]) {
_visible = false;
}
}
}
frame 49 {
gotoAndStop(10);
}
instance of movieClip 1576 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.UnlockedColors[5]) {
_visible = false;
}
}
}
instance of movieClip 1576 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.UnlockedColors[6]) {
_visible = false;
}
}
}
instance of movieClip 1597 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.UnlockedLooks[2]) {
_visible = false;
} else {
_visible = true;
gotoAndStop(2);
}
}
}
frame 60 {
gotoAndStop(1);
if (_root.FaciZombies.data.UnlockedLooks[1]) {
_root.FaciZombies.data.PersonLook = 1;
}
}
instance of movieClip 1576 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.UnlockedColors[2]) {
_visible = false;
}
}
}
instance of movieClip 1576 {
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.UnlockedColors[3]) {
_visible = false;
}
}
}
instance of movieClip 1597 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.FaciZombies.data.UnlockedLooks[1]) {
_visible = false;
} else {
_visible = true;
gotoAndStop(1);
}
}
}
}
instance of movieClip 1699 {
onClipEvent (load) {
switch (_root.FaciZombies.data.PersonLook) {
case 1:
gotoAndStop(1);
break;
case 2:
gotoAndStop(10);
break;
case 3:
gotoAndStop(20);
}
}
}