Frame 1
_root.pippo._xscale = 50;
_root.pippo._yscale = 50;
_root.pippo2._xscale = 50;
_root.pippo2._yscale = 50;
fscommand ("showmenu", "false");
fscommand ("trapallkeys");
Instance of Symbol 1622 MovieClip [Preloader Bar (NewgroundsAPI)] "pippo" in Frame 1
//component parameters
onClipEvent (construct) {
AUTO_PLAY = false;
}
Instance of Symbol 1728 MovieClip [API Connector (NewgroundsAPI)] in Frame 1
//component parameters
onClipEvent (construct) {
api_id = "15354:rMwlzxoH";
encryption_key = "50NRKJfAswNvfMnCCu13QdJFd3uHbmTE";
version = "";
fake_session = true;
debug = true;
error_screens = true;
medal_popups = true;
}
Instance of Symbol 1656 MovieClip [Flash Ad (NewgroundsAPI)] "pippo2" in Frame 1
//component parameters
onClipEvent (construct) {
show_background = true;
}
Frame 3
function musica(clip, mus, mVol) {
clip.suono.stop();
clip.suono = new Sound(clip);
clip.suono.attachSound(mus);
clip.suono.start(0, 999);
clip.suono.setVolume(mVol);
}
function effetti(clip, sfx) {
if (_root.sfxs == 1) {
clip.soundfx = new Sound(clip);
clip.soundfx.attachSound(sfx);
clip.soundfx.stop();
clip.soundfx.start(0, 0);
}
}
stop();
_root.attachMovie("scanline", "scan", 10001);
_root.trackID = 0;
_root.currentTheme = "theHorde";
_root.music = 1;
_root.sfxs = 1;
_root.masterVolume = 100;
_root.totalMario_stars = 0;
_root.chainsawIsUnlocked = 0;
_root.policemanIsUnlocked = 0;
_root.arcade = 0;
_root.scan._visible = false;
_root.scoreTable = new Array();
_root.soundTrack = 0;
_root.goreOn = 1;
_root.easyMode = 0;
Frame 6
currentTrackID = 100;
_root.musica(music_clip, "introTheme", _root.masterVolume);
function generate_background(element, position, far) {
_root.road.attachMovie(element, "bck" + _root.n_object, _root.n_object);
bck = eval ("_root.road.bck" + _root.n_object);
bck.livello = _root.n_object;
bck.farness = Math.random() * far;
if (position == 1) {
bck.posizione = 1;
} else {
bck.posizione = 2;
}
if (_root.n_object < 100000) {
_root.n_object = _root.n_object + 1;
} else {
_root.n_object = 200;
}
}
_root.attachMovie("intro_pointer", "pointer", 100);
Mouse.hide();
nobject = 1000;
posizione = 1;
_quality = "low";
_root.spazio = 0;
_root.spaziopercorso = 0;
_root.createEmptyMovieClip("road", 0);
_root.road._x = 20;
_root.road._y = 150;
_root.createEmptyMovieClip("scena", 1);
_root.scena.createEmptyMovieClip("sprites", 0);
this.attachMovie("title", "title", 10);
_root.title._x = 160;
_root.title._y = 60;
_root.scena.sprites._x = 160;
_root.scena.sprites._y = 100;
tratto = _root.path;
_root.element1 = "bushes";
_root.element2 = "dirt2";
_root.element3 = "dirt";
_root.element4 = "intro_fog";
_root.generate_background(element4, rl, 1);
this.onEnterFrame = function () {
if (_root.spazio > 500) {
rl = Math.ceil(Math.random() * 2);
_root.generate_background(element4, rl, 1);
_root.generate_background(element1, rl, 3);
_root.generate_background(element3, rl, 1);
_root.generate_background(element2, rl, 1);
_root.spazio = 0;
}
};
stop();
_quality = "low";
_root.accel = 0;
_root.speed = 120;
_root.maxspeed = 350;
_root.startpoint = 5;
_root.path = 240;
_root.nobject = 200;
_root.n_object = 200;
_root.circuit = 1;
_root.steerR = 0;
_root.steerL = 0;
_root.scena.sprites.attachMovie("subaru", "player1", 500);
car = _root.scena.sprites.player1;
car._y = 80;
car._x = 80;
_root.roadArray = new Array();
r = 0;
while (r <= _root.path) {
_root.road.attachMovie("road_00", "road" + r, r);
strada = eval ("_root.road.road" + r);
strada._x = (r / 20) * 18;
strada._y = _root.startpoint / 2;
strada.far = r / 20;
strada._xscale = startpoint * 1.5;
strada._alpha = startpoint;
_root.roadArray.push([strada.getBounds(_root.road).xMax, strada.getBounds(_root.road).yMax]);
_root.startpoint = _root.startpoint + 1;
r++;
}
stop();
_root.hud2.removeMovieClip();
_root.inGame = 0;
this.onMouseDown = function () {
switch (_root._currentframe) {
case 12 :
_root.gotoAndStop("title");
break;
case 13 :
_root.gotoAndStop("hiscore");
break;
case 14 :
_root.gotoAndStop("title");
break;
}
};
Frame 7
_root.road.removeMovieClip();
_root.pointer.removeMovieClip();
_root.scena.removeMovieClip();
_root.title.removeMovieClip();
Frame 8
function chooseEnemy(clip, nset) {
dato = ((((("[" + nset) + ",") + Math.floor(clip._x)) + ",") + Math.floor(clip._y)) + "]";
_root.scena.sprites.sel.removeMovieClip();
trace(dato);
}
_root.gun_ammo = 50;
_root.shotgun_ammo = 999;
_root.machinegun_ammo = 999;
_root.flamethrower_ammo = 999;
_root.chainsaw_ammo = 999;
_root.magnum_ammo = 999;
_root.rifle_ammo = 100;
_root.energy = 60;
_root.score = 0;
_root._currentWeapon = 0;
_root._currentMelee = 11;
_root.mario_stars = 0;
_root.pausa = 0;
_root.room0visited = 0;
_root.Key_items = new Array(10);
_root.createEmptyMovieClip("items", 102);
_root.items._x = 90;
_root.items._y = 30;
Frame 10
switch (_root.room) {
case 0 :
_root.currentTheme = "drops";
_root.trackID = 1;
break;
case 1 :
_root.currentTheme = "theHorde";
_root.trackID = 2;
break;
case 2 :
_root.currentTheme = "theHorde";
_root.trackID = 2;
break;
case 3 :
_root.currentTheme = "theHorde";
_root.trackID = 2;
break;
case 4 :
_root.currentTheme = "ambient1";
_root.trackID = 0;
break;
case 5 :
_root.currentTheme = "vampire_night";
_root.trackID = 4;
break;
case 6 :
_root.currentTheme = "vampire_night";
_root.trackID = 4;
break;
case 7 :
_root.currentTheme = "metal_ghost";
_root.trackID = 5;
break;
case 8 :
_root.currentTheme = "theHorde";
_root.trackID = 2;
break;
case 9 :
_root.currentTheme = "waterdripping";
_root.trackID = 3;
break;
case 10 :
_root.currentTheme = "ambient1";
_root.trackID = 0;
break;
case 11 :
_root.currentTheme = "vampire_night";
_root.trackID = 4;
break;
case 12 :
_root.currentTheme = "metal_ghost";
_root.trackID = 5;
break;
case 13 :
_root.currentTheme = "metal_ghost";
_root.trackID = 5;
}
if (_root.currentTrackID != _root.trackID) {
_root.musica(music_clip, _root.currentTheme, _root.masterVolume);
_root.currentTrackID = _root.trackID;
}
stop();
_root.editorMode = 0;
_root.character = 0;
_quality = "low";
_root.inGame = 1;
_root.enemyLayer = 1000;
_root.objsLayer = 100;
_root.shotLevel = 0;
_root.floorBlevel = 0;
_root.actionReleased = 0;
_root.fireReleased = 0;
_root.pauseReleased = 0;
keydown = new Object();
keydown.onKeyDown = function () {
if (_root.pausa == 0) {
if (Key.isDown(32)) {
_root.jump = 1;
}
if (Key.isDown(37)) {
_root.left = 1;
}
if (Key.isDown(39)) {
_root.right = 1;
}
if (Key.isDown(38)) {
_root.up = 1;
}
if (Key.isDown(40)) {
_root.dw = 1;
}
if (Key.isDown(88)) {
_root.melee = 1;
}
}
};
keydown.onKeyUp = function () {
if (Key.isDown(80) == false) {
_root.pauseReleased = 0;
}
if (_root.pausa == 0) {
if (Key.isDown(32) == false) {
_root.jump = 0;
}
if (Key.isDown(37) == false) {
_root.left = 0;
}
if (Key.isDown(39) == false) {
_root.right = 0;
}
if (Key.isDown(38) == false) {
_root.up = 0;
}
if (Key.isDown(40) == false) {
_root.dw = 0;
}
if (Key.isDown(88) == false) {
_root.melee = 0;
}
if (Key.isDown(90) == false) {
_root.fireReleased = 0;
}
if (Key.isDown(65) == false) {
_root.actionReleased = 0;
}
}
};
Key.addListener(keydown);
_root.createEmptyMovieClip("scena", 1);
_root.createEmptyMovieClip("parallasse", 0);
_root.createEmptyMovieClip("darkness", 2);
_root.scena.createEmptyMovieClip("back", 0);
_root.scena.createEmptyMovieClip("blood", 1);
_root.scena.createEmptyMovieClip("sprites", 2);
_root.scena.createEmptyMovieClip("particles", 3);
_root.scena.createEmptyMovieClip("front", 4);
_root.loadEnemies = new Array();
_root.loadWeapons = new Array();
_root.enemyArray = new Array();
_root.laHorde = 0;
_root.objs = new Array();
_root.backgroundTiles = new Array();
_root.frontgroundTiles = new Array();
switch (_root.room) {
case 0 :
_root.scrollingEnabled = 0;
_root.type_of_scenario = 0;
_root.room_parallasse = 0;
_root.backgroundTiles.push("XX");
_root.frontgroundTiles.push("XX");
_root.loadWeapons.push([20, 270, 183], [12, 90, 175]);
if (_root.policemanIsUnlocked == 1) {
_root.loadWeapons.push([5, 190, 175]);
}
scrollMin = 0;
scrollMax = 0;
yMinScroll = 150;
yMaxScroll = 220;
collision_left = 40;
collision_right = 280;
_root.lightOn = 0;
break;
case 1 :
_root.scrollingEnabled = 1;
_root.type_of_scenario = 0;
_root.room_parallasse = 0;
_root.backgroundTiles.push("00", "01", "03", "01", "03", "03", "01", "02", "03", "01", "04");
_root.frontgroundTiles.push("//", "//", "00", "//", "//", "00", "//", "//", "00", "//", "00");
_root.loadWeapons.push([0, 1600, 172], [20, 1850, 172], [1, 3200, 172]);
scrollMin = 0;
scrollMax = -3200;
yMinScroll = 150;
yMaxScroll = 220;
collision_left = 170;
collision_right = 3430;
_root.lightOn = 0;
break;
case 2 :
_root.scrollingEnabled = 1;
_root.type_of_scenario = 0;
_root.room_parallasse = 0;
_root.frontgroundTiles.push("01", "01", "01", "01", "01b", "01", "01b", "01", "01", "01b", "01", "01", "01", "01");
_root.backgroundTiles.push("20", "21", "22", "21", "22b", "22", "22b", "21", "22", "22b", "21", "22", "22", "23");
_root.loadWeapons.push([0, 800, 180], [3, 1000, 160], [2, 1200, 185], [21, 2150, 180], [0, 3500, 180]);
scrollMin = 0;
scrollMax = -4160;
yMinScroll = 140;
yMaxScroll = 220;
collision_left = 170;
collision_right = 4360;
_root.lightOn = 0;
break;
case 3 :
_root.scrollingEnabled = 1;
_root.type_of_scenario = 0;
_root.room_parallasse = 0;
_root.backgroundTiles.push("30", "31", "31", "31", "31", "31", "32");
_root.frontgroundTiles.push("30", "//", "//", "//", "//", "//", "32");
_root.loadWeapons.push([10, 250, 160]);
scrollMin = 0;
scrollMax = -1920;
yMinScroll = 150;
yMaxScroll = 220;
collision_left = 170;
collision_right = 2120;
_root.lightOn = 1;
break;
case 6 :
_root.scrollingEnabled = 1;
_root.type_of_scenario = 0;
_root.room_parallasse = 1;
_root.movie_parallasse = "parallasse_60";
_root.backgroundTiles.push("60", "61", "64", "64", "61", "64", "61", "62", "61", "64", "61", "64", "64", "64", "61", "63");
_root.loadWeapons.push([21, 500, 180], [4, 1000, 180], [1, 2500, 160], [20, 2560, 175], [20, 3500, 175]);
scrollMin = 0;
scrollMax = -4800;
yMinScroll = 160;
yMaxScroll = 220;
collision_left = 0;
collision_right = 5080;
_root.lightOn = 0;
break;
case 4 :
_root.scrollingEnabled = 1;
_root.type_of_scenario = 0;
_root.room_parallasse = 1;
_root.movie_parallasse = "parallasse_40";
_root.backgroundTiles.push("40", "41", "42", "42", "43");
_root.frontgroundTiles.push("40", "//", "40", "//", "40");
_root.loadWeapons.push([21, 300, 180], [3, 700, 180], [1, 1000, 160], [2, 1150, 175], [20, 1400, 175]);
scrollMin = 0;
scrollMax = -1280;
yMinScroll = 165;
yMaxScroll = 230;
collision_left = 0;
collision_right = 1600;
_root.lightOn = 0;
break;
case 5 :
_root.scrollingEnabled = 1;
_root.type_of_scenario = 0;
_root.room_parallasse = 1;
_root.movie_parallasse = "parallasse_60";
_root.backgroundTiles.push("50", "54", "51", "54", "52", "54", "53", "54", "52", "54", "50");
_root.frontgroundTiles.push("52", "50", "50", "50", "50", "50", "50", "50", "50", "51", "50");
_root.loadWeapons.push([20, 1650, 160], [2, 1680, 175], [21, 2400, 175]);
scrollMin = 0;
scrollMax = -3200;
yMinScroll = 165;
yMaxScroll = 230;
collision_left = 0;
collision_right = 3520;
_root.lightOn = 0;
break;
case 7 :
_root.scrollingEnabled = 1;
_root.type_of_scenario = 0;
_root.room_parallasse = 1;
_root.movie_parallasse = "parallasse_70";
_root.backgroundTiles.push("70", "71", "72", "71", "72", "71", "72", "71", "72", "71", "73");
_root.loadWeapons.push([0, 320, 160], [2, 400, 175], [20, 1600, 175]);
scrollMin = 0;
scrollMax = -3200;
yMinScroll = 175;
yMaxScroll = 230;
collision_left = 0;
collision_right = 3520;
_root.lightOn = 0;
_root.key.genre = 0;
break;
case 8 :
_root.scrollingEnabled = 1;
_root.type_of_scenario = 0;
_root.room_parallasse = 0;
_root.movie_parallasse = "//";
_root.backgroundTiles.push("80", "81", "82", "81", "82", "81", "82", "81", "82", "82", "83");
_root.frontgroundTiles.push("80", "81", "80", "81", "80", "81", "80", "81", "80", "81", "80");
_root.loadWeapons.push([21, 320, 160], [2, 1600, 175]);
scrollMin = 0;
scrollMax = -3200;
yMinScroll = 150;
yMaxScroll = 220;
collision_left = 0;
collision_right = 3520;
_root.lightOn = 0;
_root.key.genre = 0;
break;
case 9 :
_root.scrollingEnabled = 0;
_root.type_of_scenario = 0;
_root.room_parallasse = 1;
_root.movie_parallasse = "parallasse_90";
_root.loadWeapons.push([2, 100, 160]);
_root.backgroundTiles.push("90");
scrollMin = 0;
scrollMax = 0;
yMinScroll = 150;
yMaxScroll = 175;
collision_left = 50;
collision_right = 160;
_root.lightOn = 0;
break;
case 10 :
_root.scrollingEnabled = 1;
_root.type_of_scenario = 1;
_root.room_parallasse = 0;
_root.backgroundTiles.push("100", "101", "101", "101", "102");
_root.loadWeapons.push([0, 500, 320]);
if (_root.chainsawIsUnlocked == 1) {
_root.loadWeapons.push([6, 310, 300]);
}
scrollMin = 0;
scrollMax = -1280;
yMinScroll = 265;
yMaxScroll = 400;
collision_left = 0;
collision_right = 1600;
_root.lightOn = 1;
break;
case 11 :
_root.scrollingEnabled = 1;
_root.type_of_scenario = 0;
_root.room_parallasse = 1;
_root.backgroundTiles.push("110", "111", "112", "111", "112", "113", "111", "112", "113", "111", "114");
_root.frontgroundTiles.push("//", "110", "//", "110", "//", "110", "110", "//", "110", "//", "//");
_root.loadWeapons.push([20, 300, 175], [4, 1500, 183], [21, 2500, 175]);
_root.loadWeapons.push([4, 1000, 175], [21, 2000, 183]);
_root.movie_parallasse = "parallasse_110";
scrollMin = 0;
scrollMax = -3200;
yMinScroll = 175;
yMaxScroll = 220;
collision_left = 0;
collision_right = 3520;
_root.lightOn = 1;
break;
case 12 :
_root.scrollingEnabled = 1;
_root.type_of_scenario = 0;
_root.room_parallasse = 1;
_root.backgroundTiles.push("120");
_root.frontgroundTiles.push("120", "//", "120", "//", "120", "120", "//", "120", "//", "120");
_root.movie_parallasse = "parallasse_70";
_root.loadWeapons.push([21, 300, 175], [1, 1500, 183], [2, 3000, 175], [21, 2500, 175]);
scrollMin = 0;
scrollMax = -2810;
yMinScroll = 160;
yMaxScroll = 205;
collision_left = 0;
collision_right = 3130;
_root.lightOn = 0;
break;
case 13 :
_root.scrollingEnabled = 1;
_root.type_of_scenario = 0;
_root.room_parallasse = 1;
_root.backgroundTiles.push("131", "130", "130", "130", "130", "130", "130", "130", "130", "130", "130", "130", "132");
_root.frontgroundTiles.push("130", "130", "130", "130", "130", "130", "130", "130", "130", "130", "130", "130", "130", "130");
_root.movie_parallasse = "parallasse_130";
_root.loadWeapons.push([20, 2500, 180]);
_root.loadWeapons.push([0, 1500, 180]);
scrollMin = 0;
scrollMax = -3840;
yMinScroll = 180;
yMaxScroll = 180;
collision_left = 0;
collision_right = 4160;
_root.lightOn = 0;
}
_root.createEmptyMovieClip("tutorial", 103);
_root.createEmptyMovieClip("messages", 99);
if (_root.room == 10) {
_root.tutorial.attachMovie("tut", "tut", 0);
}
btn = _root.backgroundTiles.length;
tileWidth = 320;
frontTileWidth = 320;
n = 0;
while (n < btn) {
tileIndex = _root.backgroundTiles[n];
tile = "backtile_" + tileIndex;
_root.scena.back.attachMovie(tile, "bt" + n, n);
tile = eval ("_root.scena.back.bt" + n);
tile._x = tileWidth * n;
tile._y = 0;
tileIndex = _root.frontgroundTiles[n];
front_tile = "fronttile_" + tileIndex;
_root.scena.front.attachMovie(front_tile, "ft" + n, n);
ftile = eval ("_root.scena.front.ft" + n);
ftile._x = frontTileWidth * n;
ftile._y = 0;
n++;
}
if (room_parallasse == 1) {
n_clip_parallasse = 0;
while (n_clip_parallasse < 15) {
_root.parallasse.attachMovie(movie_parallasse, "parallasse" + n_clip_parallasse, n_clip_parallasse);
prl = eval ("_root.parallasse.parallasse" + n_clip_parallasse);
prl._x = tileWidth * n_clip_parallasse;
prl._y = 0;
n_clip_parallasse++;
}
}
if (_root.lightOn == 1) {
_root.darkness.attachMovie("light", "light", 1);
}
if (_root.editorMode == 0) {
switch (_root.room) {
case 0 :
if (_root.room0visited == 1) {
_root.loadEnemies.push([10, 729, 161], [10, 230, 164], [10, 0, 165], [10, 0, 174]);
}
_root.room0visited = 1;
break;
case 12 :
_root.loadEnemies.push([10, 729, 161], [10, 800, 174], [10, 810, 197], [10, 1000, 141], [10, 1200, 173], [10, 1300, 207], [10, 1350, 143], [10, 1400, 209], [10, 1420, 144], [10, 1430, 183], [9, 1500, 213], [10, 1600, 159], [10, 1750, 210], [10, 1780, 152], [10, 1810, 197], [10, 1830, 204], [10, 1840, 178], [10, 1900, 212], [10, 2000, 213], [9, 2100, 198], [10, 2110, 155], [10, 2120, 154], [10, 2130, 211], [10, 2140, 200], [10, 3279, 163], [10, 3324, 181], [9, 2443, 186]);
break;
case 1 :
_root.loadEnemies.push([10, 729, 161], [10, 1460, 174], [10, 1659, 197], [10, 1810, 141], [10, 1920, 173], [1, 2028, 207], [1, 2204, 143], [1, 2324, 209], [1, 2523, 144], [1, 2550, 183], [1, 2485, 213], [10, 2730, 159], [10, 2811, 210], [10, 2980, 152], [10, 3117, 197], [10, 3344, 204], [1, 1076, 178], [6, 1267, 212], [6, 1565, 213], [6, 1894, 198], [6, 2026, 155], [1, 3139, 154], [1, 3308, 211], [1, 3363, 200], [1, 3279, 163], [1, 3324, 181], [6, 2443, 186]);
break;
case 2 :
_root.loadEnemies.push([5, 678, 146], [5, 691, 190], [5, 995, 145], [5, 1258, 165], [1, 1443, 205], [1, 1604, 142], [1, 1793, 187], [1, 1959, 203], [1, 2123, 158], [1, 2287, 193], [1, 2548, 144], [6, 2928, 150], [6, 2670, 195], [6, 3270, 203], [6, 3273, 147], [6, 3153, 173], [1, 3774, 182], [1, 3891, 145], [1, 4119, 202], [1, 4200, 170], [1, 4304, 142]);
break;
case 3 :
_root.loadEnemies.push([1, 651, 184], [1, 680, 208], [1, 787, 161], [6, 939, 172], [6, 950, 173], [1, 1000, 178], [1, 1100, 200], [6, 1150, 180], [6, 1169, 182], [6, 1363, 204], [6, 1590, 156], [1, 1592, 201], [6, 1729, 177], [6, 1890, 169]);
break;
case 5 :
_root.loadEnemies.push([2, 510, 162], [1, 868, 191], [2, 981, 152], [1, 1175, 199], [1, 1321, 174], [2, 1518, 156], [3, 1513, 190], [5, 1582, 204], [2, 1927, 144], [1, 2122, 202], [3, 2854, 203], [1, 2909, 185], [2, 2964, 175], [1, 3080, 163], [2, 3095, 208], [6, 3251, 189], [5, 3336, 199], [2, 2868, 202], [1, 2881, 218], [6, 2939, 147], [1, 2769, 165]);
break;
case 6 :
_root.loadEnemies.push([1, 611, 164], [1, 696, 188], [1, 800, 155], [2, 892, 182], [4, 1057, 152], [2, 1198, 195], [6, 1415, 154], [6, 1577, 170], [6, 1831, 174], [6, 1997, 166], [7, 2370, 155], [7, 2388, 191], [3, 2773, 157], [2, 3009, 187], [1, 3296, 199], [4, 3534, 198], [1, 3669, 189], [4, 3933, 163], [1, 4389, 173], [6, 4450, 158], [6, 4572, 170], [6, 4659, 191], [6, 4787, 108]);
break;
case 4 :
_root.loadEnemies.push([9, 472, 156], [7, 613, 175], [9, 806, 158], [7, 890, 196], [9, 1136, 157], [7, 1138, 194], [7, 1365, 183], [7, 1545, 193]);
break;
case 8 :
_root.loadEnemies.push([10, 550, 165], [10, 900, 166], [10, 1200, 167], [10, 1750, 168], [10, 2500, 169], [3, 510, 171], [3, 868, 191], [3, 1000, 163], [3, 1500, 192], [3, 2000, 164], [3, 2200, 190], [3, 2769, 170]);
break;
case 11 :
_root.loadEnemies.push([8, 510, 162], [8, 868, 191], [8, 1000, 163], [8, 1500, 192], [8, 2000, 164], [8, 2200, 190], [8, 2769, 170]);
break;
case 13 :
_root.loadEnemies.push([10, 729, 161], [10, 1460, 174], [10, 1659, 197], [10, 1810, 141], [10, 1920, 173], [1, 2028, 207], [1, 2204, 143], [3, 2324, 209], [1, 2523, 144], [1, 2550, 183], [1, 2485, 213], [10, 2730, 159], [10, 2811, 210], [10, 2980, 152], [10, 3117, 197], [10, 3344, 204], [1, 1076, 178], [1, 1267, 212], [1, 1565, 213], [3, 1894, 198], [1, 2026, 155], [1, 3139, 154], [10, 3308, 211], [10, 3363, 200], [10, 3279, 163], [1, 3324, 181], [6, 2443, 186]);
}
n_elements = _root.loadEnemies.length;
nen = 0;
while (nen < n_elements) {
enemyFrameSet = _root.loadEnemies[nen][0];
_root.scena.sprites.attachMovie("infected_1", "inf" + _root.enemyLayer, _root.enemyLayer);
inf = eval ("_root.scena.sprites.inf" + _root.enemyLayer);
inf.set = enemyFrameSet;
inf._x = _root.loadEnemies[nen][1];
inf._y = _root.loadEnemies[nen][2];
_root.enemyArray.push(inf);
_root.enemyLayer = _root.enemyLayer + 1;
nen++;
}
_root.scena.sprites.attachMovie("cassaX", "cassa" + _root.enemyLayer, _root.enemyLayer);
cassa = eval ("_root.scena.sprites.cassa" + _root.enemyLayer);
cassa._x = 500;
cassa._y = 303;
_root.enemyLayer = _root.enemyLayer + 1;
}
noNeedToGiveAKey = 0;
switch (_root.room) {
case 0 :
_root.doorID = 0;
break;
case 1 :
_root.doorID = 1;
break;
case 2 :
_root.doorID = 3;
break;
case 3 :
_root.doorID = 2;
break;
case 4 :
_root.doorID = 9;
break;
case 5 :
_root.doorID = 5;
break;
case 6 :
_root.doorID = 6;
break;
case 7 :
_root.doorID = 4;
break;
case 8 :
_root.doorID = 8;
break;
case 9 :
_root.doorID = 0;
break;
case 10 :
_root.doorID = 0;
break;
case 11 :
_root.doorID = 0;
break;
case 12 :
_root.doorID = 7;
break;
case 13 :
_root.doorID = 0;
}
Kil = _root.Key_items.length;
n = 0;
while (n < Kil) {
if (Key_items[n] == _root.doorID) {
noNeedToGiveAKey = 1;
break;
}
n++;
}
if (_root.doorID > 0) {
key_assigned = 0;
ordeLength = _root.enemyArray.length;
while (key_assigned == 0) {
key_enemy = Math.floor(Math.random() * ordeLength);
enemyKeeper = _root.enemyArray[key_enemy];
if ((enemyKeeper.set != 7) && (enemyKeeper.set != 2)) {
_root.enemyArray[key_enemy].keeper = 1;
key_assigned = 1;
}
}
}
this.onEnterFrame = function () {
if (Key.isDown(80) && (_root.pauseReleased == 0)) {
_root.pauseReleased = 1;
_root.pausedd = 1;
} else {
_root.pausedd = 0;
}
if (_root.pausedd == 1) {
if ((_root.pausa == 0) && (_root.inGame == 1)) {
_root.pausa = 1;
_root.effetti(_root.tutorial, "sound_menu");
_root.tutorial.attachMovie("map", "map", 101);
} else {
Mouse.hide();
_root.tutorial.map.removeMovieClip();
_root.pausa = 0;
}
}
if (_root.pausa == 0) {
if (Key.isDown(65) && (_root.actionReleased == 0)) {
_root.actionReleased = 1;
_root.action = 1;
} else {
_root.action = 0;
}
if (Key.isDown(90) && (_root.fireReleased == 0)) {
_root.fireReleased = 1;
_root.fire = 1;
} else {
_root.fire = 0;
}
if (_root.energy <= 0) {
_root.gotoAndStop("gameover");
}
_root.scrolling(pl1);
if (_root.lightOn == 1) {
_root.darkness.light._x = _root.light_x;
_root.darkness.light._y = _root.light_y;
}
_root.darkness.light._xscale = -_root.scena.sprites.player1._xscale;
}
};
function pickUp(clip) {
oal = _root.objs.length;
no = 0;
while (no < oal) {
collidedObj = _root.objs[no];
if (collidedObj.pickable == 1) {
_root.effetti(clip, "sound_change");
layer = collidedObj.getDepth(collidedObj);
obj_x = collidedObj._x;
obj_y = collidedObj._y;
if (collidedObj.genre < 10) {
switch (clip.weaponID) {
case 0 :
releasedWeapon = "gunicon";
releasedAmmo = _root.gun_ammo;
break;
case 1 :
releasedWeapon = "machinegunicon";
releasedAmmo = _root.machinegun_ammo;
break;
case 2 :
releasedWeapon = "shotgunicon";
releasedAmmo = _root.shotgun_ammo;
break;
case 3 :
releasedWeapon = "flamethrowericon";
releasedAmmo = _root.flamethrower_ammo;
break;
case 4 :
releasedWeapon = "magnumicon";
releasedAmmo = _root.magnum_ammo;
break;
case 5 :
releasedWeapon = "rifleicon";
releasedAmmo = _root.rifle_ammo;
break;
case 6 :
releasedWeapon = "chainsawicon";
releasedAmmo = _root.chainsaw_ammo;
}
_root._currentWeapon = collidedObj.genre;
switch (collidedObj.genre) {
case 0 :
_root.hud_messages("swap_gun");
_root.gun_ammo = collidedObj.mag;
break;
case 1 :
_root.hud_messages("swap_machinegun");
_root.machinegun_ammo = collidedObj.mag;
break;
case 2 :
_root.hud_messages("swap_shotgun");
_root.shotgun_ammo = collidedObj.mag;
break;
case 3 :
_root.hud_messages("swap_flamethrower");
_root.flamethrower_ammo = collidedObj.mag;
break;
case 4 :
_root.hud_messages("swap_magnum");
_root.magnum_ammo = collidedObj.mag;
break;
case 5 :
_root.hud_messages("swap_rifle");
_root.rifle_ammo = collidedObj.mag;
break;
case 6 :
_root.hud_messages("swap_chainsaw");
_root.chainsaw_ammo = collidedObj.mag;
}
}
if (collidedObj.genre >= 10) {
switch (clip.meleeID) {
case 10 :
releasedWeapon = "katanaicon";
_root._currentMelee = collidedObj.genre;
break;
case 11 :
releasedWeapon = "baticon";
_root._currentMelee = collidedObj.genre;
break;
case 12 :
releasedWeapon = "macheteicon";
_root._currentMelee = collidedObj.genre;
}
switch (collidedObj.genre) {
case 12 :
_root.hud_messages("swap_machete");
break;
case 11 :
_root.hud_messages("swap_bat");
break;
case 10 :
_root.hud_messages("swap_katana");
}
}
cOg = collidedObj.genre;
_root.scena.back.attachMovie(releasedWeapon, "obj" + layer, layer);
newObj = eval ("_root.scena.back.obj" + layer);
newObj._x = obj_x;
newObj._y = obj_y;
if (cOg < 10) {
newObj.mag = releasedAmmo;
}
return;
}
no++;
}
}
function hud_messages(clip, genre) {
plHand = _root.scena.sprites.player1;
_root.hud1.attachMovie(clip, "icon", 102);
hudicon = _root.hud1.icon;
hudicon._x = plHand.getBounds(_root.hud1).xMax - 40;
hudicon._y = plHand.getBounds(_root.hud1).yMax - 70;
}
function key_items_generation(keeper_value, roomKey, kx, ky) {
if (keeper_value == 1) {
_root.scena.sprites.attachMovie(roomKey, "r_key" + _root.enemyLayer, _root.enemyLayer);
r_key = eval ("_root.scena.sprites.r_key" + _root.enemyLayer);
r_key._x = kx;
r_key._y = ky;
r_key.soundOff = 0;
if (_root.noNeedToGiveAKey == 1) {
r_key.gotoAndStop("star");
} else {
r_key.gotoAndStop(_root.doorID);
}
_root.enemyLayer = _root.enemyLayer + 1;
}
}
function key_actions(clip) {
clip.swapDepths(clip._y);
clip.player = _root.scena.sprites.player1;
clip.p_x = clip.player._x;
clip.p_y = clip.player._y;
clip.xOffset = Math.abs(clip._x - clip.p_x);
clip.yOffset = Math.abs(clip._y - clip.p_y);
if ((clip.xOffset < 20) && (clip.yOffset < 20)) {
if (_root.noNeedToGiveAKey == 0) {
_root.items.attachMovie("all_key_items", "Kobj" + _root.doorID, _root.doorID);
_root.effetti(clip, "sound_beep");
_root.Key_items[_root.doorID] = _root.doorID;
Kobj = eval ("_root.items.Kobj" + _root.doorID);
Kobj.gotoAndStop(_root.doorID);
Kobj._x = _root.doorID * 24;
Kobj.soundOff = 1;
_root.items.Kobj.item_genre = clip._currentframe;
_root.hud1.ki.removeMovieClip();
clip.removeMovieClip();
} else {
_root.totalMario_stars = _root.totalMario_stars + 1;
_root.mario_stars = _root.mario_stars + 1;
_root.effetti(clip, "smas_1up");
clip.removeMovieClip();
_root.hud1.ki.removeMovieClip();
switch (_root.room) {
case 1 :
_root.score = _root.score + 50;
return;
case 2 :
_root.score = _root.score + 150;
return;
case 3 :
_root.score = _root.score + 50;
return;
case 4 :
_root.score = _root.score + 10;
return;
case 5 :
_root.score = _root.score + 300;
return;
case 6 :
_root.score = _root.score + 500;
return;
case 8 :
_root.score = _root.score + 250;
return;
case 12 :
_root.score = _root.score + 1000;
}
}
}
}
function doors(clip, rightKey, newX, newY) {
clip.plx = _root.scena.sprites.player1._x;
clip.ply = _root.scena.sprites.player1.y;
clip.door_x = clip.plx - (clip.getBounds(_root.scena.sprites).xMax - 23);
clip.door_y = clip.ply - clip.getBounds(_root.scena.sprites).yMax;
clip.distance = Math.sqrt((clip.door_x * clip.door_x) + (clip.door_y * clip.door_y));
if (clip.distance <= 30) {
clip.icon._visible = true;
_root.messages.attachMovie("pressA", "pressA", 0);
_root.messages.pressA._x = 160;
_root.messages.pressA._y = 225;
if (_root.action == 1) {
doorCheck = 0;
Kil = _root.Key_items.length;
n = 0;
while (n < Kil) {
if ((_root.Key_items[n] == rightKey) || (rightKey == 0)) {
doorCheck = 1;
_root.effetti(clip, "sound_door");
_root.room = clip.room;
_root.gotoAndStop("change_level");
break;
}
n++;
}
if (doorCheck == 0) {
_root.tutorial.attachMovie("doormessage", "doorM", 0);
}
}
} else {
clip.icon._visible = false;
}
}
_root.nWeapons = _root.loadWeapons.length;
n = 0;
while (n <= (_root.nWeapons - 1)) {
weapon_index = _root.loadWeapons[n][0];
switch (weapon_index) {
case 0 :
weapon = "gunicon";
mag = 75;
break;
case 1 :
weapon = "machinegunicon";
mag = 100;
break;
case 2 :
weapon = "shotgunicon";
mag = 30;
break;
case 3 :
weapon = "flamethrowericon";
mag = 200;
break;
case 4 :
weapon = "magnumicon";
mag = 10;
break;
case 5 :
weapon = "rifleicon";
mag = 20;
break;
case 6 :
weapon = "chainsawicon";
mag = 2048;
break;
case 10 :
weapon = "katanaicon";
break;
case 11 :
weapon = "baticon";
break;
case 12 :
weapon = "macheteicon";
break;
case 13 :
weapon = "chainsawicon";
break;
case 20 :
weapon = "medikiticon";
break;
case 21 :
weapon = "painkillericon";
}
_root.scena.back.attachMovie(weapon, "obj" + _root.objsLayer, _root.objsLayer);
obj = eval ("_root.scena.back.obj" + _root.objsLayer);
obj._x = _root.loadWeapons[n][1];
obj._y = _root.loadWeapons[n][2];
obj.mag = mag;
_root.objs.push(obj);
_root.objsLayer = _root.objsLayer + 1;
n++;
}
function swapWeapon(clip) {
switch (_root._currentWeapon) {
case 0 :
clip._currentWeapon = "e_gun";
clip.weaponID = 0;
clip.chestPosition_x = -13;
clip.chestPosition_y = -27;
break;
case 1 :
clip._currentWeapon = "e_machinegun";
clip.weaponID = 1;
clip.chestPosition_x = -13;
clip.chestPosition_y = -27;
break;
case 2 :
clip.weaponID = 2;
clip._currentWeapon = "e_shotgun";
clip.chestPosition_x = -15;
clip.chestPosition_y = -27;
break;
case 3 :
clip.weaponID = 3;
clip._currentWeapon = "e_flamethrower";
clip.chestPosition_x = -15;
clip.chestPosition_y = -27;
break;
case 4 :
clip.weaponID = 4;
clip._currentWeapon = "e_magnum";
clip.chestPosition_x = -13;
clip.chestPosition_y = -27;
break;
case 5 :
clip.weaponID = 5;
clip._currentWeapon = "e_rifle";
clip.chestPosition_x = -13;
clip.chestPosition_y = -30;
break;
case 6 :
clip.weaponID = 6;
clip._currentWeapon = "e_chainsaw";
clip.chestPosition_x = -18;
clip.chestPosition_y = -27;
}
hudFrame = 1 + _root._currentWeapon;
_root.hud1.weaponry.gotoAndStop(hudFrame);
}
function swapMelee(clip) {
switch (_root._currentMelee) {
case 10 :
clip.meleeID = 10;
clip._currentMelee = "e_katana";
break;
case 11 :
clip.meleeID = 11;
clip._currentMelee = "e_bat";
break;
case 12 :
clip.meleeID = 12;
clip._currentMelee = "e_machete";
break;
case 13 :
clip.meleeID = 13;
clip._currentMelee = "e_chainsaw2";
}
}
function shotGeneration(clip, genre) {
clip.currentClip = _root.scena.sprites.player1;
switch (genre) {
case 0 :
shotType = "gunFire";
_root.gun_ammo = _root.gun_ammo - 1;
danno = 15;
break;
case 1 :
shotType = "machinegunFire";
danno = 10;
_root.machinegun_ammo = _root.machinegun_ammo - 1;
break;
case 2 :
shotType = "shotgunFire";
danno = 40;
_root.shotgun_ammo = _root.shotgun_ammo - 1;
break;
case 3 :
shotType = "flamethrowerFire";
danno = 10;
_root.flamethrower_ammo = _root.flamethrower_ammo - 1;
break;
case 4 :
shotType = "magnumFire";
danno = 100;
_root.magnum_ammo = _root.magnum_ammo - 1;
break;
case 5 :
shotType = "rifleFire";
danno = 5;
_root.rifle_ammo = _root.rifle_ammo - 1;
break;
case 6 :
shotType = "chainsawFire";
danno = 5;
_root.chainsaw_ammo = _root.chainsaw_ammo - 1;
break;
case 10 :
shotType = "katana";
danno = 20;
break;
case 11 :
shotType = "bat";
danno = 5;
break;
case 12 :
shotType = "machete";
danno = 2;
break;
case 13 :
shotType = "fistFire";
danno = 5;
}
_root.scena.sprites.shotLayer.attachMovie(shotType, "shot" + _root.shotLevel, _root.shotLevel);
dynamicShot = eval ("_root.scena.sprites.shotLayer.shot" + _root.shotLevel);
dynamicShot._x = clip.fp.getBounds(_root.scena.sprites.shotLayer).xMax;
dynamicShot._y = clip.fp.getBounds(_root.scena.sprites.shotLayer).yMax;
dynamicShot._xscale = clip.currentClip._xscale;
dynamicShot.damage = danno;
dynamicShot.genre = genre;
dynamicShot.z = clip.currentClip.z;
dynamicShot.y = clip.currentClip.y;
if (_root.shotLevel < 3) {
_root.shotLevel = _root.shotLevel + 1;
} else {
_root.shotLevel = 0;
}
}
function backCollision(clip) {
if (clip.state != 7) {
orde_length = _root.enemyArray.length;
c = 0;
while (c < orde_length) {
clip.enemyCollided = _root.enemyArray[c];
clip.collisionOffset = Math.abs(clip.y - clip.enemyCollided.y);
if (clip.coll.hitTest(clip.enemyCollided.coll) && (clip.collisionOffset < 6)) {
if ((((clip.enemyCollided.state != 3) && (clip.enemyCollided.set != 3)) && (clip.enemyCollided.set != 2)) && (clip.enemyCollided.set != 4)) {
clip.enemyCollided._y = clip.playerY;
attack_dir = clip.enemyCollided._x - clip._x;
if (attack_dir < 0) {
clip.enemyCollided._xscale = -100;
} else {
clip.enemyCollided._xscale = 100;
}
clip.enemyCollided.attachMovie(clip.enemyCollided.attack, "stand", 1);
clip.enemyCollided.state = 3;
}
coox = clip._x - clip.enemyCollided._x;
enemyPush = clip.enemyCollided.speed + 4;
if (coox < 0) {
clip._x = clip._x - enemyPush;
} else {
clip._x = clip._x + enemyPush;
}
}
c++;
}
if (clip._x < collision_left) {
clip._x = collision_left;
}
if (clip._x > collision_right) {
clip._x = collision_right;
}
if (clip.y < yMinScroll) {
clip.y = yMinScroll;
}
if (clip.y > yMaxScroll) {
clip.y = yMaxScroll;
}
}
}
_root.newPlayerX = 200;
_root.newPlayerY = 189;
if (_root.room == 10) {
_root.newPlayerY = 275;
}
if (editorMode == 0) {
_root.scena.sprites.attachMovie("ellis", "player1", 100);
_root.scena.sprites.attachMovie("shadow", "shadow1", 0);
} else {
Mouse.hide();
_root.scena.sprites.attachMovie("pointer", "player1", 100);
_root.attachMovie("pointer2", "pointer", 5);
}
_root.pl1 = _root.scena.sprites.player1;
_root.pl1._x = _root.newPlayerX;
_root.pl1._y = _root.newPlayerY;
_root.scena.sprites.createEmptyMovieClip("shotLayer", 99);
_root.attachMovie("score_panel", "hud2", 101);
_root.attachMovie("ellis_hud", "hud1", 100);
_root.hud1.gotoAndPlay(2);
_root.hud1._x = 5;
_root.hud1._y = 195;
_root.hud1.bar._width = 0;
function enemy_backCollision(clip) {
if (clip._x < collision_left) {
clip._x = collision_left;
}
if (clip._x > collision_right) {
clip._x = collision_right;
}
if (clip._y < yMinScroll) {
clip._y = yMinScroll;
}
if (clip._y > yMaxScroll) {
clip._y = yMaxScroll;
}
}
function enemyCollision(clip) {
ns = 0;
while (ns <= 4) {
shot = eval ("_root.scena.sprites.shotLayer.shot" + ns);
if (clip.coll.hitTest(shot) && (shot.genre < 10)) {
clip.range = Math.abs(shot.y - clip._y);
if (clip.range < 8) {
if ((clip.set == 3) && (clip.cover == 0)) {
clip.energy = clip.energy - (shot.damage * 200);
} else {
if (shot.genre == 3) {
clip.onFire = 1;
} else {
clip.onFire = 0;
}
clip.energy = clip.energy - shot.damage;
if (_root.easyMode == 1) {
clip.energy = clip.energy - 20;
}
}
if (clip.state != 10) {
switch (shot.genre) {
case 0 :
clip.attachMovie(clip.infected_hit, "stand", 1);
break;
case 1 :
clip.attachMovie(clip.infected_hit, "stand", 1);
break;
case 2 :
clip.attachMovie(clip.infected_hit, "stand", 1);
break;
case 3 :
clip.attachMovie(clip.infected_hit, "stand", 1);
break;
case 4 :
clip.attachMovie(clip.infected_hit, "stand", 1);
break;
case 5 :
clip.attachMovie(clip.infected_hit, "stand", 1);
break;
case 6 :
_root.effetti(_root.scena, "sound_chainsaw", stopFlag);
clip.attachMovie(clip.infected_hit2, "stand", 1);
}
}
clip.state = 10;
if (clip.set == 3) {
if (clip.cover == 1) {
_root.particelle("shot_stop", clip._x, shot._y, shot._xscale);
} else {
_root.particelle("blood_1", clip._x, shot._y, shot._xscale);
}
} else {
_root.particelle("blood_1", clip._x, shot._y, shot._xscale);
}
removeMovieClip(shot);
}
}
ns++;
}
}
function enemyHitByMelee(clip) {
clip.len = _root.enemyArray.length;
clip.n = 0;
while (clip.n < clip.len) {
clip.tango = _root.enemyArray[clip.n];
clip.range = Math.abs(clip.y - clip.tango._y);
if (clip.hitTest(clip.tango.coll) && (clip.range < 8)) {
_root.effetti(clip, "sound_thud");
clip.tango.onFire = 0;
if ((clip.tango.set == 3) && (clip.tango.cover == 0)) {
clip.tango.energy = clip.tango.energy - (clip.damage * 200);
} else {
clip.tango.energy = clip.tango.energy - clip.damage;
if (_root.easyMode == 1) {
clip.tango.energy = clip.tango.energy - 20;
}
}
switch (clip.genre) {
case 10 :
clip.tango.attachMovie(clip.tango.infected_hit2, "stand", 1);
break;
case 11 :
clip.tango.attachMovie(clip.tango.infected_hit2, "stand", 1);
break;
case 12 :
clip.tango.attachMovie(clip.tango.infected_hit2, "stand", 1);
break;
case 13 :
clip.tango.attachMovie(clip.tango.infected_hit2, "stand", 1);
}
clip.tango.state = 10;
if (clip.tango.set == 3) {
if (clip.tango.cover == 1) {
_root.particelle("shot_stop", clip.tango._x, clip.tango._y - 40, clip._xscale);
} else {
_root.particelle("blood_nosound", clip.tango._x, clip.tango._y - 40, clip._xscale);
}
} else {
_root.particelle("blood_nosound", clip.tango._x, clip.tango._y - 40, clip._xscale);
}
}
clip.n++;
}
removeMovieClip(clip);
}
function enemyAttack(clip, energyAmount, pos, scale) {
direction = clip._xscale;
playerAttacked = clip.pl1;
clip.attachMovie("enemy_hits", "eh", 100);
clip.eh._xscale = scale;
clip.eh._yscale = scale;
clip.eh._x = -pos;
clip.eh._y = -pos;
if (playerAttacked.coll.hitTest(clip.eh)) {
spritesOffset = Math.abs(playerAttacked.y - clip.y);
if ((spritesOffset < 8) && (clip.eh._currentframe <= 5)) {
_root.effetti(playerAttacked, "sound_thud");
clip.eh.gotoAndPlay("hit");
_root.energy = _root.energy - energyAmount;
_root.hud1.gotoAndPlay(2);
}
}
}
function swap_Depths(clip) {
clip.y = clip._y;
clip.swapDepths(Math.round(clip.y));
clip.dir = clip._xscale / 100;
}
function spriteIsOnScreen(clip) {
onScreen_max = clip.getBounds(_root).xMax;
onScreen_min = clip.getBounds(_root).xMin;
if ((onScreen_max >= -100) && (onScreen_min <= 500)) {
if (clip.set != 7) {
clip.onScreen = 1;
}
} else {
clip.onScreen = 0;
}
}
function player_position(clip) {
clip.pl1 = _root.scena.sprites.player1;
clip.player_dir = _root.scena.sprites.player1.dir;
clip.playerX = clip.pl1._x;
clip.playerY = clip.pl1.y;
}
function choose_side(clip) {
switch (clip.attack_side) {
case 0 :
clip.side = clip.playerX - clip.attack_distance;
if (clip.side <= _root.collision_left) {
clip.side = _root.collision_left + 1;
}
break;
case 1 :
clip.side = clip.playerX + clip.attack_distance;
if (clip.side >= _root.collision_right) {
clip.side = _root.collision_right - 1;
}
break;
default :
clip.side = clip.playerX - clip.attack_distance;
if (clip.side > _root.collision_left) {
break;
}
clip.side = _root.collision_left + 1;
}
}
function check_distance(clip, position_x, position_y) {
clip.xOffset = clip._x - position_x;
clip.yOffset = clip._y - position_y;
clip.absxOffset = Math.abs(clip.xOffset);
clip.absyOffset = Math.abs(clip.yOffset);
}
function traiettoria(clip, position_x, position_y) {
_root.check_distance(clip, position_x, position_y);
clip.wait = clip.wait + 1;
if (clip.wait >= clip.timeOfReaction) {
clip.speedUnit = clip.speed / (clip.absxOffset + clip.absyOffset);
clip.s_x = clip.speedUnit * clip.xOffset;
clip.s_y = clip.speedUnit * clip.yOffset;
clip.wait = 0;
}
}
function moveToPoint(clip) {
clip._x = clip._x - clip.s_x;
clip._y = clip._y - clip.s_y;
clip._xscale = 100 * (clip.s_x / Math.abs(clip.s_x));
if ((clip.absxOffset < 10) && (clip.absyOffset < 6)) {
attack_dir = clip._x - clip.playerX;
if (attack_dir < 0) {
clip._xscale = -100;
} else {
clip._xscale = 100;
}
clip._y = clip.playerY;
clip.attachMovie(clip.attack, "stand", 1);
clip.state = 3;
}
}
function escapeToPoint(clip) {
switch (clip.set) {
case 5 :
speedMultiplier = 2;
break;
default :
speedMultiplier = 1.5;
}
speedMultiplier = 1;
clip._x = clip._x - (clip.s_x * speedMultiplier);
clip._y = clip._y - (clip.s_y * speedMultiplier);
clip._xscale = 100 * (clip.s_x / Math.abs(clip.s_x));
if ((clip.absxOffset < 10) && (clip.absyOffset < 6)) {
clip.attachMovie(clip.stand, "stand", 1);
clip.wait = 0;
clip.standingTime = Math.floor(Math.random() * 60);
attack_dir = clip._x - clip.playerX;
if (attack_dir < 0) {
clip._xscale = -100;
} else {
clip._xscale = 100;
}
clip.state = 6;
}
}
function choose_safePoint(clip) {
random_Xposition = (Math.random() * 600) - 300;
random_Yposition = (Math.random() * 100) - 50;
Xresult = clip.playerX + random_Xposition;
Yresult = clip.playerY + random_Yposition;
if (Xresult < _root.collision_left) {
Xresult = _root.collision_left;
}
if (Xresult > _root.collision_right) {
Xresult = _root.collision_right;
}
if (Yresult < _root.yMinScroll) {
Yresult = _root.yMinScroll;
}
if (Yresult > _root.yMaxScroll) {
Yresult = _root.yMaxScroll;
}
clip.punto_x = Xresult;
clip.punto_y = Yresult;
}
function scrolling(clip, sx, sy) {
if (_root.scrollingEnabled == 1) {
plx = clip.coll.getBounds(_root).xMax;
ply = clip.coll.getBounds(_root).yMax;
Xscene = _root.scena;
Xscene._x = Xscene._x + ((160 - plx) * 0.2);
if (Xscene._x > scrollMin) {
Xscene._x = 0;
}
if (Xscene._x < scrollMax) {
Xscene._x = scrollMax;
}
if (type_of_scenario == 1) {
_root.scena._y = _root.scena._y + ((190 - ply) * 0.1);
}
if (_root.room_parallasse == 1) {
_root.parallasse._x = _root.scena._x / 4;
}
}
}
function particelle(tipo, parx, pary, parScale) {
_root.scena.particles.attachMovie(tipo, "par" + _root.np, _root.np);
par = eval ("_root.scena.particles.par" + _root.np);
par._x = parx;
par._y = pary;
par._xscale = parScale;
_root.np = _root.np + 1;
}
function bloodParticles(tipo, howMuch, parx, pary, parScale, bloodSpeed_x, bloodSpeed_y) {
if (_root.goreOn == 1) {
nblood = 0;
while (nblood < howMuch) {
_root.scena.particles.attachMovie(tipo, "par" + _root.np, _root.np);
par = eval ("_root.scena.particles.par" + _root.np);
par._x = parx;
par._y = pary;
par.decay = 0;
par.speed = (Math.random() * bloodSpeed_x) + 1;
par.yspeed = Math.random() * bloodSpeed_y;
par._xscale = parScale;
_root.np = _root.np + 1;
nblood++;
}
}
}
function floor_particle(tipo, parx, pary, parScale) {
_root.scena.back.attachMovie(tipo, "par" + _root.objsLayer, _root.objsLayer);
par = eval ("_root.scena.back.par" + _root.objsLayer);
par._x = parx;
par._y = pary;
par._xscale = parScale;
_root.objsLayer = _root.objsLayer + 1;
}
_root.np = 100;
function scrolling9(clip) {
_root.parallasse._x = _root.parallasse._x - 0.5;
if (_root.parallasse._x <= -320) {
_root.parallasse._x = 0;
}
}
function bossTimer(clip) {
clip.swapDepths(clip._y - 15);
}
function bossDamage(clip) {
ns = 0;
while (ns <= 4) {
shot = eval ("_root.scena.sprites.shotLayer.shot" + ns);
if (clip.coll.hitTest(shot)) {
clip.energy = clip.energy - shot.damage;
clip.stand.gotoAndPlay(40);
_root.effetti(clip, "sound_groan", stopFlag);
_root.particelle("blood_1", clip._x + 30, shot._y, shot._xscale);
removeMovieClip(shot);
}
ns++;
}
}
if (_root.room == 13) {
_root.scena.sprites.attachMovie("wreckBall", "wb", _root.enemyLayer);
_root.scena.sprites.wb._x = 500;
_root.scena.sprites.wb._y = 185;
_root.enemyLayer = _root.enemyLayer + 1;
}
Frame 11
_root.attachMovie("curtain", "curtain", 1000);
_root.inGame = 0;
_root.tutorial.map.removeMovieClip();
_root.darkness.removeMovieClip();
_root.messages.removeMovieClip();
_root.scena.removeMovieClip();
_root.parallasse.removeMovieClip();
_root.gotoAndPlay("game");
Frame 12
_root.music_clip.suono.stop();
currentTrackID = 100;
quality = "high";
_root.scoreTable.push(_root.score);
_root.inGame = 0;
_root.tutorial.removeMovieClip();
_root.darkness.removeMovieClip();
_root.scena.removeMovieClip();
_root.items.removeMovieClip();
_root.messages.removeMovieClip();
_root.hud1.removeMovieClip();
_root.parallasse.removeMovieClip();
_root.energy = 100;
Instance of Symbol 1785 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (_root.action == 1) {
_root.gotoAndPlay("startgame");
}
}
Frame 13
_root.music_clip.suono.stop();
currentTrackID = 100;
stop();
_root.easefactor = 1 - _root.easyMode;
finalBonus = (5000 * _root.easefactor) + ((1000 * _root.mario_stars) * _root.easefactor);
_root.score = _root.score + finalBonus;
_root.scoreTable.push(_root.score);
_root.inGame = 0;
_root.tutorial.removeMovieClip();
_root.darkness.removeMovieClip();
_root.scena.removeMovieClip();
_root.items.removeMovieClip();
_root.hud1.removeMovieClip();
_root.messages.removeMovieClip();
_root.parallasse.removeMovieClip();
_root.energy = 100;
Instance of Symbol 1801 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (_root.action == 1) {
_root.gotoAndStop("hiscore");
}
}
Frame 14
_root.music_clip.suono.stop();
currentTrackID = 100;
_root.inGame = 0;
_root.policemanIsUnlocked = 1;
if ((_root.totalMario_stars >= 13) && (_root.easyMode == 0)) {
_root.chainsawIsUnlocked = 1;
}
Instance of Symbol 1805 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (_root.action == 1) {
_root.mario_stars = 0;
_root.score = 0;
_root.finalBonus = 0;
_root.gotoAndStop("title");
}
}
Symbol 50 MovieClip [curtain] Frame 1
l = 0;
l = 0;
while (l < 8) {
this.attachMovie("square", "sq" + l, l);
sq = eval ("this.sq" + l);
sq._x = 40 * l;
l++;
}
l = 8;
this.onEnterFrame = function () {
this.attachMovie("square2", "sq" + l, l);
sq = eval ("this.sq" + l);
sq._x = 40 * l;
if (l >= 0) {
l = l - 1;
}
};
Symbol 50 MovieClip [curtain] Frame 31
removeMovieClip(this);
Symbol 52 MovieClip [square2] Frame 10
stop();
Symbol 53 MovieClip [square] Frame 1
stop();
Symbol 56 MovieClip [intro_pointer] Frame 1
this.onEnterFrame = function () {
this._x = _root._xmouse;
this._y = _root._ymouse;
};
Symbol 64 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 73 Button
on (release) {
_root.editorMode = 0;
_root.room = parseInt(_root.chosenRoom);
_root.attachMovie("curtain", "curtain", 10000);
_root.gotoAndPlay("startgame");
}
Symbol 78 Button
on (release) {
this.gotoAndStop(151);
}
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 2
stop();
Symbol 93 Button
on (release) {
if (_root.music == 0) {
_root.music = 1;
_root.masterVolume = 100;
_root.music_clip.suono.setVolume(_root.masterVolume);
this.music.gotoAndStop(2);
} else {
_root.music = 0;
_root.masterVolume = 0;
_root.music_clip.suono.setVolume(_root.masterVolume);
this.music.gotoAndStop(1);
}
}
Symbol 94 Button
on (release) {
if (_root.sfxs == 0) {
_root.sfxs = 1;
this.sound.gotoAndStop(2);
} else {
_root.sfxs = 0;
this.sound.gotoAndStop(1);
}
}
Symbol 95 Button
on (release) {
if (_root.goreOn == 0) {
_root.goreOn = 1;
this.blood.gotoAndStop(2);
} else {
_root.goreOn = 0;
this.blood.gotoAndStop(1);
}
}
Symbol 96 Button
on (release) {
if (_root.easyMode == 0) {
_root.easyMode = 1;
this.modesel.gotoAndStop(2);
} else {
_root.easyMode = 0;
this.modesel.gotoAndStop(1);
}
}
Symbol 97 Button
on (release) {
if (_root.arcade == 0) {
_root.arcade = 1;
_root.scan._visible = true;
this.arcade.gotoAndStop(2);
} else {
_root.arcade = 0;
_root.scan._visible = false;
this.arcade.gotoAndStop(1);
}
}
Symbol 98 Button
on (rollOver) {
this.done.gotoAndStop(2);
}
on (rollOut) {
this.done.gotoAndStop(1);
}
on (release) {
_parent.gotoAndStop(150);
}
Symbol 99 MovieClip Frame 1
if (_root.music == 1) {
this.music.gotoAndStop(2);
} else {
this.music.gotoAndStop(1);
}
if (_root.sfxs == 1) {
this.sound.gotoAndStop(2);
} else {
this.sound.gotoAndStop(1);
}
if (_root.goreOn == 1) {
this.blood.gotoAndStop(2);
} else {
this.blood.gotoAndStop(1);
}
if (_root.easyMode == 1) {
this.modesel.gotoAndStop(2);
} else {
this.modesel.gotoAndStop(1);
}
if (_root.arcade == 1) {
this.arcade.gotoAndStop(2);
} else {
this.arcade.gotoAndStop(1);
}
this.done.gotoAndStop(1);
Symbol 99 MovieClip Frame 15
stop();
Symbol 100 MovieClip [title] Frame 150
stop();
Symbol 105 MovieClip [subaru] Frame 1
this.onEnterFrame = function () {
speed = _root.speed;
this._y = 100;
if (Key.isDown(38)) {
if (_root.speed < 145) {
_root.speed = _root.speed + 5;
} else {
_root.speed = 150;
}
}
if (Key.isDown(40)) {
if (_root.speed > 4) {
_root.speed = _root.speed - 4;
} else {
_root.speed = 0;
}
}
_root.spazio = _root.spazio + _root.speed;
_root.spaziopercorso = _root.spaziopercorso + _root.speed;
};
Symbol 108 MovieClip [road_00] Frame 1
this.onEnterFrame = function () {
};
Symbol 110 MovieClip [intro_fog] Frame 1
n = _root.path;
startsize = 5;
this.farness = (Math.random() * 60) - 30;
spazio = 0;
this.onEnterFrame = function () {
this.swapDepths(100000 - this.livello);
speed_fraction = _root.speed / 2000;
if (this.getBounds(_root).yMax > 300) {
removeMovieClip(this);
}
absypos = Math.ceil(this._y);
lev = eval ("_root.road.road" + absypos);
this.dir = 1;
pos = lev._x;
spazio = spazio + (speed_fraction * (spazio + 1));
this._x = pos;
this._y = spazio;
this._alpha = 50 - spazio;
this._xscale = (dir * (spazio + startsize)) * 10;
this._yscale = Math.abs(this._xscale);
};
Symbol 110 MovieClip [intro_fog] Frame 2
stop();
Symbol 113 MovieClip [dirt2] Frame 1
n = _root.path;
startsize = 5;
this._alpha = 75;
this.farness = Math.random() * 5;
this.swapDepths(100000 - this.livello);
spazio = 0;
this.onEnterFrame = function () {
speed_fraction = _root.speed / 2000;
if (this.getBounds(_root).yMax > 400) {
removeMovieClip(this);
}
absypos = Math.ceil(this._y);
lev = eval ("_root.road.road" + absypos);
this.dir = 1;
pos = lev._x - ((this._width / 2) * farness);
spazio = spazio + (speed_fraction * (spazio + 1));
this._x = pos;
this._y = spazio;
this._xscale = (dir * (spazio + startsize)) * 3;
this._yscale = Math.abs(this._xscale);
};
Symbol 113 MovieClip [dirt2] Frame 2
stop();
Symbol 116 MovieClip [dirt] Frame 1
n = _root.path;
startsize = 5;
this._alpha = 0;
this.farness = Math.random() * 5;
this.swapDepths(100000 - this.livello);
spazio = 0;
this.onEnterFrame = function () {
speed_fraction = _root.speed / 2000;
if (this.getBounds(_root).yMax > 300) {
removeMovieClip(this);
}
absypos = Math.ceil(this._y);
lev = eval ("_root.road.road" + absypos);
this.dir = 1;
pos = lev._x + ((this._width / 2) * farness);
spazio = spazio + (speed_fraction * (spazio + 1));
this._x = pos;
this._y = spazio;
this._alpha = this._alpha + 5;
this._xscale = (dir * (spazio + startsize)) * 3;
this._yscale = Math.abs(this._xscale);
};
Symbol 116 MovieClip [dirt] Frame 2
stop();
Symbol 119 MovieClip [bushes] Frame 1
n = _root.path;
startsize = 5;
this._alpha = 0;
this.farness = (Math.random() * 2) + 1;
this.swapDepths(100000 - this.livello);
spazio = 0;
this.onEnterFrame = function () {
speed_fraction = _root.speed / 2000;
if (this.getBounds(_root).yMax > 200) {
removeMovieClip(this);
}
absypos = Math.ceil(this._y);
lev = eval ("_root.road.road" + absypos);
this.dir = 1;
pos = lev.getBounds(_root.road).xMax + ((this._width / 2) * farness);
spazio = spazio + (speed_fraction * (spazio + 1));
this._x = pos;
this._y = spazio;
this._alpha = this._alpha + 5;
this._xscale = (dir * (spazio + startsize)) * 3;
this._yscale = Math.abs(this._xscale);
};
Symbol 119 MovieClip [bushes] Frame 2
stop();
Symbol 192 MovieClip [bigone_walk] Frame 1
_root.effetti(this, "sound_heavystep");
Symbol 192 MovieClip [bigone_walk] Frame 17
_root.effetti(this, "sound_heavystep");
Symbol 206 MovieClip [policeman_walk] Frame 1
_root.effetti(this, "sound_heavystep");
Symbol 206 MovieClip [policeman_walk] Frame 17
_root.effetti(this, "sound_heavystep");
Symbol 217 MovieClip [infected3_run] Frame 1
_root.effetti(this, "sound_heavystep");
Symbol 217 MovieClip [infected3_run] Frame 17
_root.effetti(this, "sound_heavystep");
Symbol 238 MovieClip [bigone_attack] Frame 15
_root.enemyAttack(_parent, 10, 75, 150);
_root.effetti(this, "sound_sword");
Symbol 238 MovieClip [bigone_attack] Frame 32
_parent.state = 4;
_parent.attachMovie(_parent.walk, "stand", 1);
Symbol 245 MovieClip [policeman_attack] Frame 3
_root.enemyAttack(_parent, 5, 40);
Symbol 245 MovieClip [policeman_attack] Frame 10
_root.enemyAttack(_parent, 5, 40);
Symbol 245 MovieClip [policeman_attack] Frame 17
_root.enemyAttack(_parent, 5, 40);
Symbol 245 MovieClip [policeman_attack] Frame 30
_parent.state = 4;
_parent.attachMovie(_parent.walk, "stand", 1);
Symbol 252 MovieClip [infected3_attack] Frame 15
_root.effetti(this, "sound_chainsaw");
Symbol 252 MovieClip [infected3_attack] Frame 16
_root.enemyAttack(_parent, 2, 40);
Symbol 252 MovieClip [infected3_attack] Frame 20
_root.enemyAttack(_parent, 2, 40);
Symbol 252 MovieClip [infected3_attack] Frame 25
_root.enemyAttack(_parent, 2, 40);
Symbol 252 MovieClip [infected3_attack] Frame 30
_root.enemyAttack(_parent, 2, 40);
Symbol 252 MovieClip [infected3_attack] Frame 35
_root.enemyAttack(_parent, 2, 40);
Symbol 252 MovieClip [infected3_attack] Frame 40
_root.enemyAttack(_parent, 2, 40);
Symbol 252 MovieClip [infected3_attack] Frame 47
_parent.state = 4;
_parent.attachMovie(_parent.walk, "stand", 1);
Symbol 259 MovieClip [infected2_attack] Frame 1
strangleX = 40;
pl = _root.scena.sprites.player1;
if (pl.state != 7) {
_root.effetti(this, "sound_laugh");
_parent._y = pl.y - 4;
pl._xscale = _parent._xscale;
switch (_parent._xscale) {
case 100 :
pl._x = _parent._x - strangleX;
break;
case -100 :
pl._x = _parent._x + strangleX;
}
pl.z = pl._ground;
pl.state = 7;
} else {
_parent.state = 4;
_parent.attachMovie(_parent.walk, "stand", 1);
}
Symbol 259 MovieClip [infected2_attack] Frame 13
_root.energy = _root.energy - 2;
_root.hud1.gotoAndPlay(2);
Symbol 259 MovieClip [infected2_attack] Frame 25
_root.energy = _root.energy - 2;
_root.hud1.gotoAndPlay(2);
Symbol 259 MovieClip [infected2_attack] Frame 37
_root.energy = _root.energy - 2;
_root.hud1.gotoAndPlay(2);
Symbol 259 MovieClip [infected2_attack] Frame 40
_parent.state = 4;
_parent.attachMovie(_parent.walk, "stand", 1);
Symbol 276 MovieClip [infected2_death] Frame 1
this.onEnterFrame = function () {
_root.bloodParticles("emo", 1, _parent._x, _parent._y - 30, _parent._xscale, 5, 2);
};
Symbol 276 MovieClip [infected2_death] Frame 27
stop();
cont = 0;
this.onEnterFrame = function () {
cont = cont + 1;
if (cont == 60) {
if (_parent.nTimesDown < 2) {
play();
} else {
_parent.removeMovieClip();
}
}
};
Symbol 276 MovieClip [infected2_death] Frame 28
play();
Symbol 276 MovieClip [infected2_death] Frame 52
_parent.energy = 60;
_parent.state = 1;
_parent.death = 0;
_parent.wait = 0;
_parent.shadow._visible = true;
_parent.attachMovie("playerCollision", "coll", 0);
_parent.attachMovie(_parent.walk, "stand", 1);
Symbol 283 MovieClip [infected3_hit2] Frame 1
_parent.cover = 0;
Symbol 283 MovieClip [infected3_hit2] Frame 10
_root.effetti(this, "sound_blow");
Symbol 283 MovieClip [infected3_hit2] Frame 25
_root.effetti(this, "sound_blow");
Symbol 283 MovieClip [infected3_hit2] Frame 40
_root.effetti(this, "sound_blow");
Symbol 283 MovieClip [infected3_hit2] Frame 50
stop();
_parent.cover = 1;
_parent.state = 1;
_parent.attachMovie("infected3_stand", "stand", 1);
Symbol 290 MovieClip [policeman_hit2] Frame 14
_parent.state = 1;
_parent.attachMovie("infected3_stand", "stand", 1);
Symbol 291 MovieClip [bigone_hit] Frame 1
_root.bloodParticles("emo", 2, _parent._x, _parent._y - 40, _parent._xscale, 5, 2);
Symbol 291 MovieClip [bigone_hit] Frame 2
_parent.state = 1;
_parent.attachMovie("infected3_stand", "stand", 1);
Symbol 292 MovieClip [policeman_hit] Frame 2
_parent.state = 1;
_parent.attachMovie("infected3_stand", "stand", 1);
Symbol 297 MovieClip [infected3_hit] Frame 9
_parent.state = 1;
_parent.attachMovie("infected3_stand", "stand", 1);
Symbol 298 MovieClip [infected2_hit] Frame 1
_root.bloodParticles("emo", 8, _parent._x, _parent._y - 50, _parent._xscale, 5, 2);
Symbol 298 MovieClip [infected2_hit] Frame 4
_parent.state = 1;
_parent.attachMovie("infected2_stand", "stand", 1);
Symbol 299 MovieClip [bigone_death] Frame 1
cont = 0;
this.onEnterFrame = function () {
cont = cont + 1;
if (cont == 2) {
this._visible = false;
}
if (cont == 4) {
this._visible = true;
cont = 0;
}
_root.bloodParticles("emo", 1, _parent._x, _parent._y - 40, _parent._xscale, 5, 2);
};
Symbol 299 MovieClip [bigone_death] Frame 39
removeMovieClip(_parent);
Symbol 308 MovieClip [policeman_death] Frame 1
this.onEnterFrame = function () {
_root.bloodParticles("emo", 1, _parent._x, _parent._y - 40, _parent._xscale, 5, 2);
};
Symbol 308 MovieClip [policeman_death] Frame 21
stop();
removeMovieClip(_parent);
Symbol 335 MovieClip [infected3_death] Frame 1
this.onEnterFrame = function () {
_root.bloodParticles("emo", 1, _parent._x, _parent._y - 40, _parent._xscale, 5, 2);
};
Symbol 335 MovieClip [infected3_death] Frame 36
_root.effetti(this, "sound_boom");
Symbol 335 MovieClip [infected3_death] Frame 40
_root.enemyAttack(_parent, 10, 0, 200);
Symbol 335 MovieClip [infected3_death] Frame 58
stop();
removeMovieClip(_parent);
Symbol 344 MovieClip [boomer_attack] Frame 5
parx = this.fp._x;
pary = this.fp._y;
this.dir = _parent._xscale / 100;
l = 0;
_root.effetti(this, "sound_burp");
this.onEnterFrame = function () {
if (_currentframe < 20) {
this.attachMovie("boomer_puke", "par" + l, l);
par = eval ("this.par" + l);
par._x = parx;
par._y = pary;
par.dir = dir;
l = l + 1;
}
};
Symbol 344 MovieClip [boomer_attack] Frame 45
_parent.state = 4;
_parent.attachMovie(_parent.walk, "stand", 1);
Symbol 357 MovieClip [boomer_hit] Frame 1
_root.bloodParticles("emo", 8, _parent._x, _parent._y - 40, _parent._xscale, 5, 2);
Symbol 357 MovieClip [boomer_hit] Frame 19
_parent.state = 1;
_parent.attachMovie("boomer_stand", "stand", 1);
Symbol 378 MovieClip [boomer_death] Frame 5
_root.effetti(this, "sound_boom");
this.onEnterFrame = function () {
xpos = _parent._x + ((Math.random() * 24) - 12);
ypos = (_parent._y - 40) + (Math.random() * 12);
scale = 100;
_root.particelle("boomer_blood", xpos, ypos, scale);
};
Symbol 378 MovieClip [boomer_death] Frame 6
_root.effetti(_parent, "sound_guts");
Symbol 378 MovieClip [boomer_death] Frame 7
_root.enemyAttack(_parent, 10, 0, 200);
Symbol 378 MovieClip [boomer_death] Frame 30
stop();
cont = 0;
times = 0;
this.onEnterFrame = function () {
cont = cont + 1;
if (cont == 2) {
this._visible = false;
}
if (cont == 4) {
this._visible = true;
cont = 0;
times = times + 1;
}
if (times >= 20) {
removeMovieClip(_parent);
}
};
Symbol 387 MovieClip [worker_death] Frame 1
dir = _parent._xscale / 100;
decay = 0;
_parent._x = _parent._x + (30 * dir);
this.onEnterFrame = function () {
decay = decay + 0.1;
if (decay < 6) {
_parent._x = _parent._x + ((6 - decay) * dir);
}
_root.bloodParticles("emo", 1, _parent._x, _parent._y - 40, _parent._xscale, 5, 2);
};
Symbol 387 MovieClip [worker_death] Frame 23
stop();
cont = 0;
times = 0;
this.onEnterFrame = function () {
cont = cont + 1;
if (cont == 2) {
this._visible = false;
}
if (cont == 4) {
this._visible = true;
cont = 0;
times = times + 1;
}
if (times >= 20) {
removeMovieClip(_parent);
}
};
Symbol 396 MovieClip [infectedOnFire] Frame 1
dir = _parent._xscale / 100;
decay = 0;
this.onEnterFrame = function () {
decay = decay + 0.1;
if (decay < 6) {
_parent._x = _parent._x + ((6 - decay) * dir);
}
xoffset = (Math.random() * 60) - 30;
yoffset = Math.random() * 40;
_root.bloodParticles("onFire", 1, _parent._x - xoffset, _parent._y - yoffset, _parent._xscale, 5, 2);
_root.bloodParticles("chainsaw_smoke", 1, _parent._x - xoffset, _parent._y - yoffset, _parent._xscale, 5, 2);
};
Symbol 396 MovieClip [infectedOnFire] Frame 27
stop();
cont = 0;
times = 0;
this.onEnterFrame = function () {
cont = cont + 1;
if (cont == 2) {
this._visible = false;
}
if (cont == 4) {
this._visible = true;
cont = 0;
times = times + 1;
}
if (times >= 20) {
removeMovieClip(_parent);
}
};
Symbol 405 MovieClip [infected_death] Frame 1
dir = _parent._xscale / 100;
decay = 0;
this.onEnterFrame = function () {
decay = decay + 0.1;
if (decay < 6) {
_parent._x = _parent._x + ((6 - decay) * dir);
}
_root.bloodParticles("emo", 1, _parent._x, _parent._y - 40, _parent._xscale, 5, 2);
};
Symbol 405 MovieClip [infected_death] Frame 25
stop();
cont = 0;
times = 0;
this.onEnterFrame = function () {
cont = cont + 1;
if (cont == 2) {
this._visible = false;
}
if (cont == 4) {
this._visible = true;
cont = 0;
times = times + 1;
}
if (times >= 20) {
removeMovieClip(_parent);
}
};
Symbol 408 MovieClip [worker_hit] Frame 1
_root.bloodParticles("emo", 8, _parent._x, _parent._y - 40, _parent._xscale, 5, 2);
Symbol 408 MovieClip [worker_hit] Frame 3
_parent.state = 1;
_parent.attachMovie("worker_stand", "stand", 1);
Symbol 413 MovieClip [infected_hit] Frame 1
_root.bloodParticles("emo", 8, _parent._x, _parent._y - 40, _parent._xscale, 5, 2);
Symbol 413 MovieClip [infected_hit] Frame 21
_parent.state = 1;
_parent.attachMovie("infected_stand", "stand", 1);
Symbol 420 MovieClip [worker_attack] Frame 7
_root.enemyAttack(_parent, 4, 30);
Symbol 420 MovieClip [worker_attack] Frame 20
_parent.state = 4;
_parent.attachMovie(_parent.walk, "stand", 1);
Symbol 429 MovieClip [infected_attack] Frame 5
_root.enemyAttack(_parent, 2, 30);
Symbol 429 MovieClip [infected_attack] Frame 13
_root.enemyAttack(_parent, 2, 30);
Symbol 429 MovieClip [infected_attack] Frame 16
_parent.state = 4;
_parent.attachMovie(_parent.walk, "stand", 1);
Symbol 459 MovieClip Frame 1
if (_root.rifle_ammo <= 0) {
this.gotoAndPlay("reload");
}
Symbol 459 MovieClip Frame 2
_root.effetti(this, "new_gun", stopFlag);
_root.shotGeneration(this, 5);
fpx = this.fp.getBounds(_root.scena.particles).xMax;
fpy = this.fp.getBounds(_root.scena.particles).yMax;
_root.particelle("rifleBlow", fpx, fpy, _root.scena.sprites.player1._xscale);
_root.particelle("chainsaw_smoke", fpx, fpy, _root.scena.sprites.player1._xscale);
_root.particelle("shotgunBullet", currentClip._x, currentClip._y - 52, _root.scena.sprites.player1._xscale);
Symbol 459 MovieClip Frame 3
if (_root.rifle_ammo <= 0) {
_parent.gotoAndStop(1);
}
Symbol 459 MovieClip Frame 4
_root.effetti(this, "new_gun", stopFlag);
_root.shotGeneration(this, 5);
fpx = this.fp.getBounds(_root.scena.particles).xMax;
fpy = this.fp.getBounds(_root.scena.particles).yMax;
_root.particelle("rifleBlow", fpx, fpy, _root.scena.sprites.player1._xscale);
_root.particelle("shotgunBullet", currentClip._x, currentClip._y - 52, _root.scena.sprites.player1._xscale);
Symbol 459 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 459 MovieClip Frame 6
play();
Symbol 459 MovieClip Frame 7
_root.effetti(this, "reload", stopFlag);
Symbol 459 MovieClip Frame 40
_root.rifle_ammo = 20;
_parent.gotoAndStop(1);
Symbol 460 MovieClip [e_rifle] Frame 1
stop();
Symbol 460 MovieClip [e_rifle] Frame 2
stop();
Symbol 476 MovieClip Frame 1
if (_root.chainsaw_ammo <= 0) {
this.suono.stop();
_parent.gotoAndStop(1);
}
Symbol 476 MovieClip Frame 2
this.onEnterFrame = function () {
smpx = this.fp2.getBounds(_root.scena.particles).xMax;
smpy = this.fp2.getBounds(_root.scena.particles).yMax;
_root.particelle("chainsaw_smoke", smpx, smpy, _parent._xscale);
};
if (_root.chainsaw_ammo <= 0) {
_parent.gotoAndStop(1);
}
fpx = this.fp.getBounds(_root.scena.particles).xMax;
fpy = this.fp.getBounds(_root.scena.particles).yMax;
_root.shotGeneration(this, 6);
Symbol 476 MovieClip Frame 4
_root.effetti(this, "chainsaw_new", 0);
Symbol 476 MovieClip Frame 5
if (_root.chainsaw_ammo <= 0) {
_parent.gotoAndStop(1);
}
fpx = this.fp.getBounds(_root.scena.particles).xMax;
fpy = this.fp.getBounds(_root.scena.particles).yMax;
_root.shotGeneration(this, 6);
Symbol 476 MovieClip Frame 8
if (_root.chainsaw_ammo <= 0) {
_parent.gotoAndStop(1);
}
fpx = this.fp.getBounds(_root.scena.particles).xMax;
fpy = this.fp.getBounds(_root.scena.particles).yMax;
_root.shotGeneration(this, 6);
Symbol 476 MovieClip Frame 11
if (_root.chainsaw_ammo <= 0) {
_parent.gotoAndStop(1);
}
fpx = this.fp.getBounds(_root.scena.particles).xMax;
fpy = this.fp.getBounds(_root.scena.particles).yMax;
_root.shotGeneration(this, 6);
Symbol 476 MovieClip Frame 12
if (Key.isDown(90)) {
this.gotoAndPlay(4);
} else {
_parent.gotoAndStop(1);
}
Symbol 477 MovieClip [e_chainsaw] Frame 1
stop();
Symbol 477 MovieClip [e_chainsaw] Frame 2
stop();
Symbol 484 MovieClip Frame 1
if (_root.machinegun_ammo <= 0) {
_parent.gotoAndStop(1);
}
Symbol 484 MovieClip Frame 2
_root.effetti(this, "new_machinegun", stopFlag);
_root.shotGeneration(this, 1);
fpx = this.fp.getBounds(_root.scena.particles).xMax;
fpy = this.fp.getBounds(_root.scena.particles).yMax;
_root.particelle("machinegunBlow", fpx, fpy, _root.scena.sprites.player1._xscale);
_root.particelle("shotgunBullet", currentClip._x, currentClip._y - 52, _root.scena.sprites.player1._xscale);
Symbol 484 MovieClip Frame 3
if (_root.machinegun_ammo <= 0) {
_parent.gotoAndStop(1);
}
Symbol 484 MovieClip Frame 4
_root.shotGeneration(this, 1);
fpx = this.fp.getBounds(_root.scena.particles).xMax;
fpy = this.fp.getBounds(_root.scena.particles).yMax;
_root.particelle("machinegunBlow", fpx, fpy, _root.scena.sprites.player1._xscale);
_root.particelle("shotgunBullet", currentClip._x, currentClip._y - 52, _root.scena.sprites.player1._xscale);
Symbol 484 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 485 MovieClip [e_machinegun] Frame 1
stop();
Symbol 485 MovieClip [e_machinegun] Frame 2
stop();
Symbol 494 MovieClip Frame 1
if (_root.magnum_ammo <= 0) {
_parent.gotoAndStop(1);
}
Symbol 494 MovieClip Frame 2
_root.effetti(this, "sound_shotgun", stopFlag);
_root.shotGeneration(this, 4);
_root.particelle("shotgunBullet", currentClip._x, currentClip._y - 52, _root.scena.sprites.player1._xscale);
Symbol 494 MovieClip Frame 12
_parent.gotoAndStop(1);
Symbol 495 MovieClip [e_magnum] Frame 1
stop();
Symbol 495 MovieClip [e_magnum] Frame 2
stop();
Symbol 505 MovieClip Frame 1
if (_root.flamethrower_ammo <= 0) {
_parent.gotoAndStop(1);
}
Symbol 505 MovieClip Frame 2
_root.effetti(this, "sound_flame", stopFlag);
fpx = this.fp.getBounds(_root.scena.particles).xMax;
fpy = this.fp.getBounds(_root.scena.particles).yMax;
_root.particelle("flamethrowerBlow", fpx, fpy, _root.scena.sprites.player1._xscale);
_root.shotGeneration(this, 3);
Symbol 505 MovieClip Frame 4
if (Key.isDown(90)) {
this.gotoAndPlay(1);
} else {
_parent.gotoAndStop(1);
}
Symbol 506 MovieClip [e_flamethrower] Frame 1
stop();
_root.effetti(this, "sound_gas");
Symbol 506 MovieClip [e_flamethrower] Frame 2
stop();
Symbol 517 MovieClip Frame 1
if (_root.gun_ammo <= 0) {
_parent.gotoAndStop(1);
}
Symbol 517 MovieClip Frame 2
_root.effetti(this, "new_gun", stopFlag);
_root.shotGeneration(this, 0);
_root.particelle("shotgunBullet", currentClip._x, currentClip._y - 52, _root.scena.sprites.player1._xscale);
Symbol 517 MovieClip Frame 7
_parent.gotoAndStop(1);
Symbol 518 MovieClip [e_gun] Frame 1
stop();
Symbol 518 MovieClip [e_gun] Frame 2
stop();
Symbol 531 MovieClip Frame 1
if (_root.shotgun_ammo <= 0) {
_parent.gotoAndStop(1);
}
Symbol 531 MovieClip Frame 2
_root.effetti(this, "sound_shotgun", stopFlag);
fpx = this.fp.getBounds(_root.scena.particles).xMax;
fpy = this.fp.getBounds(_root.scena.particles).yMax;
_root.particelle("shotgunBlow", fpx, fpy, _root.scena.sprites.player1._xscale);
_root.shotGeneration(this, 2);
Symbol 531 MovieClip Frame 16
_root.effetti(this, "sound_reload", stopFlag);
_root.particelle("shotgunBullet", currentClip._x, currentClip._y - 45, _root.scena.sprites.player1._xscale);
Symbol 531 MovieClip Frame 21
_parent.gotoAndStop(1);
Symbol 532 MovieClip [e_shotgun] Frame 1
stop();
Symbol 532 MovieClip [e_shotgun] Frame 2
stop();
Symbol 541 MovieClip [e_standlegs] Frame 1
_parent.standtorso._y = -27;
Symbol 541 MovieClip [e_standlegs] Frame 6
_parent.standtorso._y = -28;
Symbol 541 MovieClip [e_standlegs] Frame 11
_parent.standtorso._y = -29;
Symbol 541 MovieClip [e_standlegs] Frame 16
_parent.standtorso._y = -30;
Symbol 541 MovieClip [e_standlegs] Frame 21
_parent.standtorso._y = -29;
Symbol 541 MovieClip [e_standlegs] Frame 26
_parent.standtorso._y = -28;
Symbol 548 MovieClip [e_jumplegs] Frame 1
_parent.standtorso._y = -28;
Symbol 548 MovieClip [e_jumplegs] Frame 4
_parent.standtorso._y = -30;
Symbol 548 MovieClip [e_jumplegs] Frame 7
stop();
_parent.standtorso._y = -32;
Symbol 579 MovieClip [e_legs] Frame 1
_parent.standtorso._y = -28;
Symbol 579 MovieClip [e_legs] Frame 2
_root.effetti(this, "sound_step");
Symbol 579 MovieClip [e_legs] Frame 6
_parent.standtorso._y = -29;
Symbol 579 MovieClip [e_legs] Frame 11
_parent.standtorso._y = -31;
Symbol 579 MovieClip [e_legs] Frame 15
_root.effetti(this, "sound_step");
Symbol 579 MovieClip [e_legs] Frame 16
_parent.standtorso._y = -28;
Symbol 579 MovieClip [e_legs] Frame 21
_parent.standtorso._y = -29;
Symbol 579 MovieClip [e_legs] Frame 26
_parent.standtorso._y = -31;
Symbol 580 MovieClip [ellis] Frame 1
dir = -1;
this._xscale = -100;
this.attachMovie("playerCollision", "coll", 0);
_root.swapWeapon(this);
_root.swapMelee(this);
this.attachMovie(this._currentWeapon, "standtorso", 4);
this.attachMovie("e_standlegs", "standlegs", 5);
this.standtorso._y = chestPosition_y;
shadow = _root.scena.sprites.shadow1;
_ground = 0;
z = _ground;
y = _root.newPlayerY;
this.onEnterFrame = function () {
if (_root.pausa == 1) {
this.gotoAndStop("paused");
this.state = 8;
}
this.standtorso._x = chestPosition_x;
this._y = this.y + this.z;
shadow._x = this._x;
shadow._y = this.y;
this.swapDepths(Math.floor(this.y));
_root.scena.sprites.shotLayer.swapDepths(Math.floor(this.y - 1));
if ((_root.fire == 1) && (this.standtorso._currentframe == 1)) {
this.standtorso.gotoAndStop("fire");
}
switch (state) {
case 1 :
if ((_root.action == 1) && (this.standtorso._currentframe == 1)) {
state = 6;
break;
}
if ((_root.melee == 1) && (this.standtorso._currentframe == 1)) {
state = 5;
this.gotoAndStop("melee");
} else if (_root.left == 1) {
_currentWalkDirection = 0;
this._xscale = 100;
this.gotoAndStop("walk");
} else if (_root.right == 1) {
_currentWalkDirection = 1;
this._xscale = -100;
this.gotoAndStop("walk");
} else if ((_root.up == 1) || (_root.dw == 1)) {
this.gotoAndStop("walk");
} else if (_root.jump == 1) {
this.state = 4;
decay = 0;
jumpspeed = 0;
this.gotoAndStop("jump");
} else {
break;
dir = this._xscale / 100;
if ((_root.melee == 1) && (this.standtorso._currentframe == 1)) {
this.state = 5;
this.gotoAndStop("melee");
} else if ((_root.action == 1) && (this.standtorso._currentframe == 1)) {
state = 6;
} else {
if ((_root.right == 1) && (_root.left == 0)) {
_currentWalkDirection = 1;
this._xscale = -100;
}
if ((_root.left == 1) && (_root.right == 0)) {
_currentWalkDirection = 0;
this._xscale = 100;
}
if ((_root.left == 1) && (_root.right == 1)) {
switch (_currentWalkDirection) {
case 0 :
this._xscale = -100;
_currentWalkDirection = 0;
break;
case 1 :
this._xscale = 100;
_currentWalkDirection = 1;
}
}
if ((_root.left == 1) || (_root.right == 1)) {
this._x = this._x - (4 * dir);
}
if (_root.up == 1) {
this.y = this.y - 2;
}
if (_root.dw == 1) {
this.y = this.y + 2;
}
if ((((_root.left == 0) && (_root.right == 0)) && (_root.up == 0)) && (_root.dw == 0)) {
this.gotoAndStop("stand");
} else if (_root.jump == 1) {
this.state = 4;
decay = 0;
jumpspeed = 0;
this.gotoAndStop("jump");
} else {
break;
jumpspeed = 5 - decay;
z = z - jumpspeed;
if (z <= _ground) {
decay = decay + 0.5;
} else {
z = _ground;
this.gotoAndStop("stand");
state = 1;
}
this._x = this._x - (4 * dir);
break;
if ((this.weaponID != 5) && (this.weaponID != 6)) {
switch (this.meleeID) {
case 10 :
frameToStop = 25;
break;
case 11 :
frameToStop = 15;
break;
case 12 :
frameToStop = 10;
}
} else {
frameToStop = 15;
}
if (this.meleeAttack._currentframe == frameToStop) {
this.meleeAttack.removeMovieClip();
_root.swapWeapon(this);
this.attachMovie(this._currentWeapon, "standtorso", 4);
this.standtorso._x = chestPosition_x;
this.standtorso._y = chestPosition_y;
this.gotoAndStop("stand");
this.state = 1;
} else {
break;
_root.pickUp(this);
_root.swapMelee(this);
_root.swapWeapon(this);
this.attachMovie(this._currentWeapon, "standtorso", 4);
this.standtorso._x = chestPosition_x;
this.standtorso._y = chestPosition_y;
this.gotoAndStop("stand");
this.state = 1;
break;
this.gotoAndStop("grabbed");
if (this.ellis_grabbed._currentframe == 40) {
this.ellis_grabbed.removeMovieClip();
_root.swapWeapon(this);
this.attachMovie(this._currentWeapon, "standtorso", 4);
this.standtorso._x = chestPosition_x;
this.standtorso._y = chestPosition_y;
this.gotoAndStop("stand");
this.state = 1;
} else {
break;
if (_root.pausa != 0) {
break;
}
_root.swapWeapon(this);
this.attachMovie(this._currentWeapon, "standtorso", 4);
this.standtorso._x = chestPosition_x;
this.standtorso._y = chestPosition_y;
this.gotoAndStop("stand");
this.state = 1;
break;
}
}
}
}
}
case 2 :
dir = this._xscale / 100;
if ((_root.melee == 1) && (this.standtorso._currentframe == 1)) {
this.state = 5;
this.gotoAndStop("melee");
} else if ((_root.action == 1) && (this.standtorso._currentframe == 1)) {
state = 6;
} else {
if ((_root.right == 1) && (_root.left == 0)) {
_currentWalkDirection = 1;
this._xscale = -100;
}
if ((_root.left == 1) && (_root.right == 0)) {
_currentWalkDirection = 0;
this._xscale = 100;
}
if ((_root.left == 1) && (_root.right == 1)) {
switch (_currentWalkDirection) {
case 0 :
this._xscale = -100;
_currentWalkDirection = 0;
break;
case 1 :
this._xscale = 100;
_currentWalkDirection = 1;
}
}
if ((_root.left == 1) || (_root.right == 1)) {
this._x = this._x - (4 * dir);
}
if (_root.up == 1) {
this.y = this.y - 2;
}
if (_root.dw == 1) {
this.y = this.y + 2;
}
if ((((_root.left == 0) && (_root.right == 0)) && (_root.up == 0)) && (_root.dw == 0)) {
this.gotoAndStop("stand");
} else if (_root.jump == 1) {
this.state = 4;
decay = 0;
jumpspeed = 0;
this.gotoAndStop("jump");
} else {
break;
jumpspeed = 5 - decay;
z = z - jumpspeed;
if (z <= _ground) {
decay = decay + 0.5;
} else {
z = _ground;
this.gotoAndStop("stand");
state = 1;
}
this._x = this._x - (4 * dir);
break;
if ((this.weaponID != 5) && (this.weaponID != 6)) {
switch (this.meleeID) {
case 10 :
frameToStop = 25;
break;
case 11 :
frameToStop = 15;
break;
case 12 :
frameToStop = 10;
}
} else {
frameToStop = 15;
}
if (this.meleeAttack._currentframe == frameToStop) {
this.meleeAttack.removeMovieClip();
_root.swapWeapon(this);
this.attachMovie(this._currentWeapon, "standtorso", 4);
this.standtorso._x = chestPosition_x;
this.standtorso._y = chestPosition_y;
this.gotoAndStop("stand");
this.state = 1;
} else {
break;
_root.pickUp(this);
_root.swapMelee(this);
_root.swapWeapon(this);
this.attachMovie(this._currentWeapon, "standtorso", 4);
this.standtorso._x = chestPosition_x;
this.standtorso._y = chestPosition_y;
this.gotoAndStop("stand");
this.state = 1;
break;
this.gotoAndStop("grabbed");
if (this.ellis_grabbed._currentframe == 40) {
this.ellis_grabbed.removeMovieClip();
_root.swapWeapon(this);
this.attachMovie(this._currentWeapon, "standtorso", 4);
this.standtorso._x = chestPosition_x;
this.standtorso._y = chestPosition_y;
this.gotoAndStop("stand");
this.state = 1;
} else {
break;
if (_root.pausa != 0) {
break;
}
_root.swapWeapon(this);
this.attachMovie(this._currentWeapon, "standtorso", 4);
this.standtorso._x = chestPosition_x;
this.standtorso._y = chestPosition_y;
this.gotoAndStop("stand");
this.state = 1;
break;
}
}
}
}
case 4 :
jumpspeed = 5 - decay;
z = z - jumpspeed;
if (z <= _ground) {
decay = decay + 0.5;
} else {
z = _ground;
this.gotoAndStop("stand");
state = 1;
}
this._x = this._x - (4 * dir);
break;
case 5 :
if ((this.weaponID != 5) && (this.weaponID != 6)) {
switch (this.meleeID) {
case 10 :
frameToStop = 25;
break;
case 11 :
frameToStop = 15;
break;
case 12 :
frameToStop = 10;
}
} else {
frameToStop = 15;
}
if (this.meleeAttack._currentframe == frameToStop) {
this.meleeAttack.removeMovieClip();
_root.swapWeapon(this);
this.attachMovie(this._currentWeapon, "standtorso", 4);
this.standtorso._x = chestPosition_x;
this.standtorso._y = chestPosition_y;
this.gotoAndStop("stand");
this.state = 1;
} else {
break;
_root.pickUp(this);
_root.swapMelee(this);
_root.swapWeapon(this);
this.attachMovie(this._currentWeapon, "standtorso", 4);
this.standtorso._x = chestPosition_x;
this.standtorso._y = chestPosition_y;
this.gotoAndStop("stand");
this.state = 1;
break;
this.gotoAndStop("grabbed");
if (this.ellis_grabbed._currentframe == 40) {
this.ellis_grabbed.removeMovieClip();
_root.swapWeapon(this);
this.attachMovie(this._currentWeapon, "standtorso", 4);
this.standtorso._x = chestPosition_x;
this.standtorso._y = chestPosition_y;
this.gotoAndStop("stand");
this.state = 1;
} else {
break;
if (_root.pausa != 0) {
break;
}
_root.swapWeapon(this);
this.attachMovie(this._currentWeapon, "standtorso", 4);
this.standtorso._x = chestPosition_x;
this.standtorso._y = chestPosition_y;
this.gotoAndStop("stand");
this.state = 1;
break;
}
}
case 6 :
_root.pickUp(this);
_root.swapMelee(this);
_root.swapWeapon(this);
this.attachMovie(this._currentWeapon, "standtorso", 4);
this.standtorso._x = chestPosition_x;
this.standtorso._y = chestPosition_y;
this.gotoAndStop("stand");
this.state = 1;
break;
case 7 :
this.gotoAndStop("grabbed");
if (this.ellis_grabbed._currentframe == 40) {
this.ellis_grabbed.removeMovieClip();
_root.swapWeapon(this);
this.attachMovie(this._currentWeapon, "standtorso", 4);
this.standtorso._x = chestPosition_x;
this.standtorso._y = chestPosition_y;
this.gotoAndStop("stand");
this.state = 1;
} else {
break;
if (_root.pausa != 0) {
break;
}
_root.swapWeapon(this);
this.attachMovie(this._currentWeapon, "standtorso", 4);
this.standtorso._x = chestPosition_x;
this.standtorso._y = chestPosition_y;
this.gotoAndStop("stand");
this.state = 1;
break;
}
case 8 :
if (_root.pausa != 0) {
break;
}
_root.swapWeapon(this);
this.attachMovie(this._currentWeapon, "standtorso", 4);
this.standtorso._x = chestPosition_x;
this.standtorso._y = chestPosition_y;
this.gotoAndStop("stand");
this.state = 1;
break;
}
_root.backCollision(_root.scena.sprites.player1);
};
Symbol 580 MovieClip [ellis] Frame 4
stop();
state = 1;
this.attachMovie("e_standlegs", "standlegs", 5);
if (_root.lightOn == 1) {
this.attachMovie("playerLight", "light", 8);
this.light._x = -5;
this.light._y = -24;
}
Symbol 580 MovieClip [ellis] Frame 7
stop();
state = 2;
this.attachMovie("e_legs", "standlegs", 5);
Symbol 580 MovieClip [ellis] Frame 10
stop();
this.attachMovie("e_jumplegs", "standlegs", 5);
Symbol 580 MovieClip [ellis] Frame 13
stop();
this.standlegs.removeMovieClip();
this.standtorso.removeMovieClip();
if (this.weaponID == 5) {
this.attachMovie("jackie_knife", "meleeAttack", 7);
}
if (this.weaponID == 6) {
this.attachMovie("ellis_melee_chainsaw", "meleeAttack", 7);
}
if ((this.weaponID != 5) && (this.weaponID != 6)) {
this.attachMovie(this._currentMelee, "meleeAttack", 7);
}
Symbol 580 MovieClip [ellis] Frame 16
stop();
Symbol 580 MovieClip [ellis] Frame 19
this.standlegs.removeMovieClip();
this.standtorso.removeMovieClip();
if (this.weaponID == 5) {
this.attachMovie("ellis_grabbed2", "ellis_grabbed", 7);
} else {
this.attachMovie("ellis_grabbed", "ellis_grabbed", 7);
}
Symbol 580 MovieClip [ellis] Frame 22
this.ellis_grabbed.removeMovieClip();
this.meleeAttack.removeMovieClip();
this.standlegs.removeMovieClip();
this.standtorso.removeMovieClip();
this.z = this._ground;
Symbol 597 MovieClip Frame 1
this.onEnterFrame = function () {
_root.doors(this, this.rightKey);
};
Instance of Symbol 597 MovieClip in Symbol 598 MovieClip [backtile_02] Frame 1
onClipEvent (load) {
this.room = 3;
this.rightKey = 1;
}
Symbol 604 MovieClip Frame 1
this.onEnterFrame = function () {
_root.doors(this, this.rightKey);
};
Instance of Symbol 604 MovieClip in Symbol 605 MovieClip [fronttile_30] Frame 1
onClipEvent (load) {
this.room = 1;
this.rightKey = 1;
}
Instance of Symbol 604 MovieClip in Symbol 606 MovieClip [fronttile_32] Frame 1
onClipEvent (load) {
this.room = 2;
this.rightKey = 2;
}
Symbol 610 MovieClip Frame 1
this.onEnterFrame = function () {
_root.spriteIsOnScreen(this);
if (this.onScreen == 1) {
pl = _root.scena.sprites.player1;
plx = pl.coll.getBounds(_parent).xMax - 20;
ply = pl.coll.getBounds(_parent).yMin;
xoff = plx - this._x;
yoff = ply - this._y;
this.clear();
vx1 = this.getBounds(this).xMin;
vx2 = this.getBounds(this).xMax;
vy1 = this.getBounds(this).yMin;
vy2 = this.getBounds(this).yMax;
vvx1 = this.getBounds(this).xMin - xoff;
vvx2 = this.getBounds(this).xMax - xoff;
vvy1 = this.getBounds(this).yMin - yoff;
vvy2 = this.getBounds(this).yMax - yoff;
alpha = 100;
this.lineStyle(1, 6749952, 0);
this.beginFill(0, alpha);
this.moveTo(vx1, vy1);
this.lineTo(vvx1, vvy1);
this.lineTo(vvx2, vvy1);
this.lineTo(vx2, vy1);
this.lineTo(vx1, vy1);
this.endFill();
this.lineStyle(1, 6749952, 0);
this.beginFill(0, alpha);
this.moveTo(vx2, vy1);
this.lineTo(vvx2, vvy1);
this.lineTo(vvx2, vvy2);
this.lineTo(vx2, vy2);
this.lineTo(vx2, vy1);
this.endFill();
this.lineStyle(1, 6749952, 0);
this.beginFill(0, alpha);
this.moveTo(vx1, vy2);
this.lineTo(vx1, vy1);
this.lineTo(vvx1, vvy1);
this.lineTo(vvx1, vvy2);
this.lineTo(vx1, vy2);
this.endFill();
this.lineStyle(1, 6749952, 0);
this.beginFill(0, alpha);
this.moveTo(vx1, vy2);
this.lineTo(vvx1, vvy2);
this.lineTo(vvx2, vvy2);
this.lineTo(vx2, vy1);
this.lineTo(vx1, vy2);
this.endFill();
}
};
Symbol 622 MovieClip Frame 1
ranRot = 1 + (Math.random() * 5);
this.onEnterFrame = function () {
this._rotation = this._rotation + ranRot;
};
Instance of Symbol 604 MovieClip in Symbol 646 MovieClip [fronttile_52] Frame 1
onClipEvent (load) {
this.room = 4;
this.rightKey = 9;
}
Instance of Symbol 604 MovieClip in Symbol 647 MovieClip [fronttile_51] Frame 1
onClipEvent (load) {
this.room = 11;
this.rightKey = 5;
}
Symbol 659 MovieClip Frame 1
this.onEnterFrame = function () {
_root.doors(this, this.rightKey);
};
Instance of Symbol 659 MovieClip in Symbol 660 MovieClip [backtile_63] Frame 1
onClipEvent (load) {
this.room = 9;
this.rightKey = 6;
}
Instance of Symbol 659 MovieClip in Symbol 672 MovieClip [backtile_43] Frame 1
onClipEvent (load) {
this.room = 5;
this.rightKey = 9;
}
Instance of Symbol 659 MovieClip in Symbol 684 MovieClip [backtile_40] Frame 1
onClipEvent (load) {
this.room = 8;
this.rightKey = 8;
}
Symbol 687 MovieClip [backtile_60] Frame 1
Instance of Symbol 659 MovieClip in Symbol 687 MovieClip [backtile_60] Frame 1
onClipEvent (load) {
this.room = 11;
this.rightKey = 0;
}
Instance of Symbol 597 MovieClip in Symbol 700 MovieClip [backtile_23] Frame 1
onClipEvent (load) {
this.room = 8;
this.rightKey = 3;
}
Symbol 709 MovieClip [backtile_20] Frame 1
sprite = _root.scena.sprites.player1;
this.onEnterFrame = function () {
sx = sprite._x;
py = -30;
i = 0;
while (i < 3) {
px = sx + ((Math.random() * 600) - 300);
_root.particelle("rain", px, py, 100);
i++;
}
};
Instance of Symbol 597 MovieClip in Symbol 709 MovieClip [backtile_20] Frame 1
onClipEvent (load) {
this.room = 3;
this.rightKey = 2;
}
Symbol 724 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hitTest(_root.scena.sprites.player1.coll)) {
_root.messages.attachMovie("pressA", "pressA", 0);
_root.messages.pressA._x = 160;
_root.messages.pressA._y = 225;
this.clip._visible = true;
if (_root.action == 1) {
_root.gotoAndStop("credits");
}
} else {
this.clip._visible = false;
}
};
Symbol 726 MovieClip [backtile_70] Frame 1
interval = 0;
nInf = 0;
pl = _root.scena.sprites.player1;
this.onEnterFrame = function () {
if (_root.pausa == 0) {
interval = interval + 1;
if (((interval >= 30) && (nInf < 100)) && (_root.laHorde < 30)) {
_root.scena.sprites.attachMovie("infected_1", "inf" + _root.enemyLayer, _root.enemyLayer);
inf = eval ("_root.scena.sprites.inf" + _root.enemyLayer);
inf.set = 1;
side = Math.floor(Math.random() * 10);
if (side <= 7) {
inf._x = (pl._x + 300) + Math.floor(Math.random() * 100);
} else {
inf._x = pl._x - 300;
}
inf._y = Math.floor((pl._y + (Math.random() * 50)) - 25);
_root.enemyArray.push(inf);
_root.enemyLayer = _root.enemyLayer + 1;
interval = 0;
_root.laHorde = _root.laHorde + 1;
nInf = nInf + 1;
}
}
};
Symbol 729 MovieClip [fronttile_120] Frame 1
pl = _root.scena.sprites.player1;
this.onEnterFrame = function () {
if (_currentframe == 5) {
plx = pl._x + ((Math.random() * 500) - 200);
ply = -(Math.random() * 20);
_root.particelle("sheet", plx, ply, 100);
}
};
Instance of Symbol 597 MovieClip in Symbol 732 MovieClip [backtile_120] Frame 1
onClipEvent (load) {
this.room = 7;
this.rightKey = 7;
}
Instance of Symbol 597 MovieClip in Symbol 732 MovieClip [backtile_120] Frame 1
onClipEvent (load) {
this.room = 13;
this.rightKey = 0;
}
Instance of Symbol 597 MovieClip in Symbol 735 MovieClip [backtile_00] Frame 1
onClipEvent (load) {
this.room = 0;
this.rightKey = 0;
}
Symbol 739 MovieClip Frame 1
_root.safe_points.push(this);
this.spx = this.getBounds(_root.scena.sprites).xMax;
this.spy = this.getBounds(_root.scena.sprites).yMax;
Symbol 743 MovieClip [shadow] Frame 1
Symbol 744 MovieClip [infected_1] Frame 1
death = 0;
nTimesDown = 0;
wait = 0;
switch (set) {
case 1 :
stand = "infected_stand";
walk = "infected_run";
attack = "infected_attack";
infected_hit = "infected_hit";
infected_hit2 = "infected_hit";
infectedDeath = "infected_death";
infectedFireDeath = "infectedOnFire";
attack_distance = 40;
killscore = 10;
this.timeOfReaction = 60;
this.speed = 4;
energy = 40;
break;
case 2 :
stand = "infected2_stand";
walk = "infected2_run";
attack = "infected2_attack";
infected_hit = "infected2_hit";
infected_hit2 = "infected2_hit";
infectedDeath = "infected2_death";
infectedFireDeath = "infected2_death";
attack_distance = 40;
killscore = 20;
this.timeOfReaction = 10;
this.speed = 1;
energy = 80;
break;
case 3 :
stand = "infected3_stand";
walk = "infected3_run";
attack = "infected3_attack";
infected_hit = "infected3_hit";
infected_hit2 = "infected3_hit2";
infectedDeath = "infected3_death";
infectedFireDeath = "infected3_death";
attack_distance = 50;
killscore = 100;
this.timeOfReaction = 5;
this.cover = 1;
this.speed = 0.5 + Math.ceil(Math.random() * 2);
energy = 18000;
break;
case 4 :
stand = "boomer_stand";
walk = "boomer_walk";
attack = "boomer_attack";
infected_hit = "boomer_hit";
infected_hit2 = "boomer_hit";
infectedDeath = "boomer_death";
infectedFireDeath = "boomer_death";
attack_distance = 190;
killscore = 50;
this.timeOfReaction = 60;
this.speed = 2;
energy = 200;
break;
case 5 :
stand = "dog_stand";
walk = "dog_walk";
attack = "dog_attack";
infected_hit = "dog_hit";
infected_hit2 = "dog_hit";
infectedDeath = "dog_death";
infectedFireDeath = "dog_death";
attack_distance = 90;
killscore = 20;
this.timeOfReaction = 5;
this.speed = 3;
energy = 10;
break;
case 6 :
stand = "worker_stand";
walk = "worker_walk";
attack = "worker_attack";
infected_hit = "worker_hit";
infected_hit2 = "worker_hit";
infectedDeath = "worker_death";
infectedFireDeath = "infectedOnFire";
attack_distance = 40;
killscore = 15;
this.timeOfReaction = 10;
this.speed = 3;
energy = 60;
break;
case 7 :
stand = "mine_stand";
walk = "mine_stand";
attack = "mine_stand";
infected_hit = "mine_stand";
infected_hit2 = "mine_stand";
infectedDeath = "mine_death";
infectedFireDeath = "mine_death";
attack_distance = 10;
killscore = 0;
this.timeOfReaction = 10;
this.speed = 0;
energy = 1;
break;
case 8 :
stand = "policeman_stand";
walk = "policeman_walk";
attack = "policeman_attack";
infected_hit = "policeman_hit";
infected_hit2 = "policeman_hit2";
infectedDeath = "policeman_death";
infectedFireDeath = "infectedOnFire";
attack_distance = 60;
killscore = 100;
this.timeOfReaction = 5;
this.speed = 2;
energy = 300;
break;
case 9 :
stand = "bigone_stand";
walk = "bigone_walk";
attack = "bigone_attack";
infected_hit = "bigone_hit";
infected_hit2 = "bigone_hit";
infectedDeath = "bigone_death";
infectedFireDeath = "bigone_death";
attack_distance = 70;
killscore = 2000;
this.timeOfReaction = 10;
this.speed = 2;
energy = 500;
break;
case 10 :
stand = "z_classic_stand";
walk = "z_classic";
attack = "z_classic_attack";
infected_hit = "z_classic_hit";
infected_hit2 = "z_classic_hit";
infectedDeath = "z_classic_death";
infectedFireDeath = "infectedOnFire";
attack_distance = 20;
killscore = 20;
this.timeOfReaction = 10;
this.speed = 1 + Math.floor(Math.random() * 2);
energy = 60;
}
this.attachMovie(stand, "stand", 1);
if (this.set != 7) {
this.attachMovie("playerCollision", "coll", 0);
}
if (this.set == 5) {
this.coll._yscale = 50;
}
if (this.set == 7) {
this.state = 101;
} else {
this.state = 1;
}
this.onEnterFrame = function () {
if ((_root.pausa == 1) && (this.state != 200)) {
previousState = this.state;
this.state = 200;
}
_root.spriteIsOnScreen(this);
_root.swap_Depths(this);
_root.player_position(this);
if (this.energy > 0) {
if (onScreen == 1) {
_root.enemyCollision(this);
}
} else {
this.state = 100;
}
switch (state) {
case 1 :
_root.check_distance(this, playerX, playerY);
if (absxOffset < 500) {
this.attachMovie(walk, "stand", 1);
attack_side = Math.floor(Math.random() * 2);
wait = timeOfReaction;
state = 2;
}
break;
case 2 :
_root.choose_side(this);
_root.traiettoria(this, side, playerY);
_root.moveToPoint(this);
break;
case 3 :
break;
case 4 :
this.attachMovie(walk, "stand", 1);
_root.choose_safePoint(this);
state = 5;
break;
case 5 :
_root.traiettoria(this, punto_x, punto_y);
_root.escapeToPoint(this);
break;
case 6 :
wait = wait + 1;
if (wait >= standingTime) {
this.attachMovie(walk, "stand", 1);
attack_side = Math.floor(Math.random() * 2);
state = 2;
}
break;
case 10 :
if (set == 5) {
this.coll._yscale = 50;
}
if ((set != 3) && (set != 4)) {
this._x = this._x + (1 * dir);
}
break;
case 100 :
if (death == 0) {
switch (set) {
case 1 :
_root.effetti(this, "sound_pig");
_root.laHorde = _root.laHorde - 1;
break;
case 5 :
_root.effetti(this, "sound_caicai");
break;
case 7 :
_root.effetti(this, "sound_boom");
break;
default :
_root.effetti(this, "sound_groan");
}
this.coll.removeMovieClip();
_root.key_items_generation(this.keeper, "all_key_items", this._x, this._y);
if (this.onFire == 0) {
this.attachMovie(infectedDeath, "stand", 1);
} else {
this.attachMovie(infectedFireDeath, "stand", 1);
}
_root.score = _root.score + killscore;
this.death = 1;
this.shadow._visible = false;
this.nTimesDown = this.nTimesDown + 1;
break;
}
break;
case 101 :
_root.check_distance(this, playerX, playerY);
if (((absxOffset < 20) && (absyOffset < 10)) && (pl1.z == 0)) {
this.energy = 0;
this.state = 100;
}
break;
case 200 :
this.attachMovie(stand, "stand", 1);
if (_root.pausa != 0) {
break;
}
this.state = 1;
if (this.set != 7) {
break;
}
this.state = 101;
}
_root.enemy_backCollision(this);
};
Instance of Symbol 743 MovieClip [shadow] "shadow" in Symbol 744 MovieClip [infected_1] Frame 1
onClipEvent (load) {
if (_parent.set == 7) {
this._visible = false;
}
}
Symbol 757 MovieClip [shotgunBlow] Frame 1
speed = 2 * (this._xscale / 100);
Symbol 757 MovieClip [shotgunBlow] Frame 3
this.onEnterFrame = function () {
this._x = this._x - speed;
};
Symbol 757 MovieClip [shotgunBlow] Frame 13
removeMovieClip(this);
Symbol 776 MovieClip [flamethrowerBlow] Frame 1
dir = this._xscale / 100;
speed = 1 + ((Math.random() * 2) * dir);
this.onEnterFrame = function () {
this._xscale = this._xscale + (5 * dir);
this._yscale = this._xscale;
this._x = this._x - speed;
};
Symbol 776 MovieClip [flamethrowerBlow] Frame 18
removeMovieClip(this);
Symbol 778 MovieClip [flamethrowerFire] Frame 1
dir = this._xscale / 100;
speed = 10 * dir;
this.onEnterFrame = function () {
this._x = this._x - speed;
};
Symbol 778 MovieClip [flamethrowerFire] Frame 11
removeMovieClip(this);
Symbol 779 MovieClip [chainsawFire] Frame 5
removeMovieClip(this);
Symbol 781 MovieClip [shotgunFire] Frame 1
speed = 8 * (this._xscale / 100);
this.onEnterFrame = function () {
this._x = this._x - speed;
};
Symbol 781 MovieClip [shotgunFire] Frame 10
removeMovieClip(this);
Symbol 784 MovieClip [machete] Frame 1
speed = 8 * (this._xscale / 100);
this.onEnterFrame = function () {
_root.enemyHitByMelee(this);
this._x = this._x - speed;
};
Symbol 784 MovieClip [machete] Frame 4
removeMovieClip(this);
Symbol 785 MovieClip [bat] Frame 1
speed = 8 * (this._xscale / 100);
this.onEnterFrame = function () {
_root.enemyHitByMelee(this);
this._x = this._x - speed;
};
Symbol 785 MovieClip [bat] Frame 4
removeMovieClip(this);
Symbol 787 MovieClip [fistFire] Frame 1
speed = 8 * (this._xscale / 100);
this.onEnterFrame = function () {
_root.enemyHitByMelee(this);
this._x = this._x - speed;
};
Symbol 787 MovieClip [fistFire] Frame 4
removeMovieClip(this);
Symbol 790 MovieClip [katana] Frame 1
speed = 8 * (this._xscale / 100);
this.onEnterFrame = function () {
_root.enemyHitByMelee(this);
this._x = this._x - speed;
};
Symbol 790 MovieClip [katana] Frame 4
removeMovieClip(this);
Symbol 791 MovieClip [fist] Frame 1
speed = 8 * (this._xscale / 100);
this.onEnterFrame = function () {
_root.enemyHitByMelee(this);
this._x = this._x - speed;
};
Symbol 791 MovieClip [fist] Frame 4
removeMovieClip(this);
Symbol 792 MovieClip [rifleFire] Frame 1
speed = 20 * (this._xscale / 100);
this.onEnterFrame = function () {
this._x = this._x - speed;
};
Symbol 792 MovieClip [rifleFire] Frame 11
removeMovieClip(this);
Symbol 801 MovieClip [machinegunFire] Frame 1
speed = 20 * (this._xscale / 100);
this.onEnterFrame = function () {
this._x = this._x - speed;
};
Symbol 801 MovieClip [machinegunFire] Frame 11
removeMovieClip(this);
Symbol 804 MovieClip [magnumFire] Frame 1
speed = 20 * (this._xscale / 100);
this.onEnterFrame = function () {
this._x = this._x - speed;
};
Symbol 804 MovieClip [magnumFire] Frame 16
removeMovieClip(this);
Symbol 805 MovieClip [gunFire] Frame 1
speed = 15 * (this._xscale / 100);
this.onEnterFrame = function () {
this._x = this._x - speed;
};
Symbol 805 MovieClip [gunFire] Frame 16
removeMovieClip(this);
Symbol 816 MovieClip [shot_stop] Frame 1
_root.effetti(this, "sound_ptoing");
Symbol 816 MovieClip [shot_stop] Frame 6
removeMovieClip(this);
Symbol 835 MovieClip [blood_nosound] Frame 1
Symbol 835 MovieClip [blood_nosound] Frame 19
removeMovieClip(this);
Symbol 836 MovieClip [blood_1] Frame 1
_root.effetti(this, "sound_thud");
Symbol 836 MovieClip [blood_1] Frame 19
removeMovieClip(this);
Symbol 845 MovieClip Frame 1
stop();
Symbol 845 MovieClip Frame 2
stop();
Symbol 845 MovieClip Frame 3
stop();
Symbol 870 MovieClip Frame 1
stop();
Symbol 870 MovieClip Frame 2
stop();
Symbol 870 MovieClip Frame 3
stop();
Symbol 870 MovieClip Frame 4
stop();
Symbol 870 MovieClip Frame 5
stop();
Symbol 871 MovieClip [ellis_hud] Frame 1
stop();
Symbol 871 MovieClip [ellis_hud] Frame 2
if (_root.energy > 0) {
if (_root.energy < 50) {
this.bar2.gotoAndStop(2);
}
if (_root.energy < 20) {
this.bar2.gotoAndStop(3);
}
if (_root.energy > 50) {
this.bar2.gotoAndStop(1);
}
this.bar._width = 0.6 * (100 - _root.energy);
}
gotoAndStop (1);
Symbol 874 MovieClip [shotgunBullet] Frame 1
decay = 0;
dir = this._xscale / 100;
rot = (Math.random() * 45) + 10;
speed = (Math.random() * 4) + 2;
this.onEnterFrame = function () {
this._rotation = this._rotation + 10;
this._y = this._y - (speed - decay);
this._x = this._x + ((12 - decay) * dir);
decay = decay + 0.4;
if (decay >= 12) {
removeMovieClip(this);
}
};
Symbol 897 MovieClip [onFire] Frame 1
this._xscale = (Math.random() * 50) + 50;
this._yscale = this._xscale;
firespeed = 0.5 + (Math.random() * 1);
this.onEnterFrame = function () {
this._y = this._y - firespeed;
};
Symbol 897 MovieClip [onFire] Frame 22
removeMovieClip(this);
Symbol 914 MovieClip [emo] Frame 1
dir = this._xscale / 100;
this.onEnterFrame = function () {
this._y = this._y - (yspeed - decay);
this._x = this._x - ((speed - decay) * dir);
decay = decay + 0.2;
};
Symbol 914 MovieClip [emo] Frame 19
_root.scena.blood.attachMovie("bloodyFloor", "bf" + _root.floorBlevel, _root.floorBlevel);
bf = eval ("_root.scena.blood.bf" + _root.floorBlevel);
bf._x = this._x;
bf._y = this._y + 20;
_root.floorBlevel = _root.floorBlevel + 1;
removeMovieClip(this);
Symbol 961 MovieClip [playerLight] Frame 1
this.onEnterFrame = function () {
_root.light_x = this.getBounds(_root.darkness).xMax - 9;
_root.light_y = this.getBounds(_root.darkness).yMax - 12;
};
Symbol 970 MovieClip [jackie_knife] Frame 5
_root.effetti(this, "sound_bat", stopFlag);
_root.shotGeneration(this, 11);
Symbol 979 MovieClip [ellis_melee_chainsaw] Frame 1
decay = 0;
this.onEnterFrame = function () {
if (_currentframe > 7) {
decay = decay + 0.5;
}
};
Symbol 979 MovieClip [ellis_melee_chainsaw] Frame 7
_root.effetti(this, "sound_fist", stopFlag);
_root.shotGeneration(this, 13);
Symbol 994 MovieClip [e_bat] Frame 10
_root.effetti(this, "sound_bat", stopFlag);
_root.shotGeneration(this, 11);
Symbol 1005 MovieClip [e_machete] Frame 5
_root.effetti(this, "sound_bat", stopFlag);
_root.shotGeneration(this, 12);
Symbol 1022 MovieClip [e_katana] Frame 1
decay = 0;
this.onEnterFrame = function () {
if (_currentframe > 12) {
_parent._x = _parent._x - ((4 - decay) * _parent.dir);
decay = decay + 0.4;
}
};
Symbol 1022 MovieClip [e_katana] Frame 16
_root.effetti(this, "sound_sword", stopFlag);
_root.shotGeneration(this, 10);
Symbol 1023 MovieClip Frame 1
this.onEnterFrame = function () {
pl1 = _root.scena.sprites.player1.coll;
xm = pl1._width / 2;
px = pl1.getBounds(_root).xMax - xm;
py = pl1.getBounds(_root).yMax;
if (this.hitTest(px, py, true)) {
_parent.pickable = 1;
_root.messages.attachMovie("pressA", "pressA", 0);
_root.messages.pressA._x = 160;
_root.messages.pressA._y = 225;
} else {
_parent.pickable = false;
}
};
Symbol 1026 MovieClip [shotgunicon] Frame 1
this.genre = 2;
Symbol 1029 MovieClip [flamethrowericon] Frame 1
this.genre = 3;
Symbol 1032 MovieClip [magnumicon] Frame 1
this.genre = 4;
Symbol 1035 MovieClip [machinegunicon] Frame 1
this.genre = 1;
Symbol 1038 MovieClip [chainsawicon] Frame 1
this.genre = 6;
Symbol 1041 MovieClip [rifleicon] Frame 1
this.genre = 5;
Symbol 1044 MovieClip [gunicon] Frame 1
this.genre = 0;
Symbol 1068 MovieClip [boomer_blood] Frame 1
decay = 0;
sx = (Math.random() * 8) - 4;
sy = (Math.random() * 10) + 4;
rot = Math.random() * 30;
this.onEnterFrame = function () {
this._x = this._x + sx;
this._y = this._y - (sy - decay);
decay = decay + 0.4;
};
Symbol 1068 MovieClip [boomer_blood] Frame 10
stop();
removeMovieClip(this);
Symbol 1079 MovieClip [boomer_puke] Frame 1
decay = 0;
this._rotation = 10;
speed = 16;
decay = 0;
this.onEnterFrame = function () {
this._x = this._x - (speed - decay);
this._y = this._y + decay;
this._rotation = this._rotation - 2;
decay = decay + 0.4;
};
Symbol 1079 MovieClip [boomer_puke] Frame 17
ran_x = (Math.random() * 50) - 25;
ran_y = (Math.random() * 50) - 25;
par_x = this.getBounds(_root.scena.back).xMin + ran_x;
par_y = this.getBounds(_root.scena.back).yMax + ran_y;
_root.floor_particle("floorPuke", par_x, par_y, 100);
removeMovieClip(this);
Instance of Symbol 597 MovieClip in Symbol 1084 MovieClip [backtile_XX] Frame 1
onClipEvent (load) {
this.room = 1;
}
Symbol 1087 MovieClip [macheteicon] Frame 1
this.genre = 12;
Symbol 1090 MovieClip [baticon] Frame 1
this.genre = 11;
Symbol 1093 MovieClip [katanaicon] Frame 1
this.genre = 10;
Symbol 1096 MovieClip [painkillericon] Frame 1
this.onEnterFrame = function () {
pl1 = _root.scena.sprites.player1.coll;
xm = pl1._width / 2;
px = pl1.getBounds(_root).xMax - xm;
py = pl1.getBounds(_root).yMax;
if (this.hitTest(px, py, true)) {
_root.hud_messages("energy_plus");
if (_root.energy >= 75) {
_root.energy = 100;
} else {
_root.energy = _root.energy + 25;
}
_root.hud1.gotoAndPlay(2);
removeMovieClip(this);
}
};
Symbol 1099 MovieClip [medikiticon] Frame 1
this.onEnterFrame = function () {
pl1 = _root.scena.sprites.player1.coll;
xm = pl1._width / 2;
px = pl1.getBounds(_root).xMax - xm;
py = pl1.getBounds(_root).yMax;
if (this.hitTest(px, py, true)) {
_root.hud_messages("energy_full");
_root.energy = 100;
_root.hud1.gotoAndPlay(2);
removeMovieClip(this);
}
};
Symbol 1109 MovieClip [enemy_hits] Frame 5
removeMovieClip(this);
Symbol 1109 MovieClip [enemy_hits] Frame 6
play();
Symbol 1109 MovieClip [enemy_hits] Frame 12
removeMovieClip(this);
Symbol 1112 MovieClip [floorPuke] Frame 1
interval = 0;
this.onEnterFrame = function () {
interval = interval + 1;
if (interval == 5) {
pl = _root.scena.sprites.player1;
plx = pl.coll.getBounds(_root).xMax - (pl.coll._width / 2);
ply = pl.coll.getBounds(_root).yMax;
if (this.hitTest(plx, ply, true) && (pl.z == 0)) {
_root.effetti(this, "sound_thud");
_root.energy = _root.energy - 1;
_root.hud1.gotoAndPlay(2);
}
interval = 0;
}
this._alpha = this._alpha - 2;
this._xscale = this._xscale - 1;
this._yscale = this._yscale - 1;
};
Symbol 1112 MovieClip [floorPuke] Frame 25
removeMovieClip(this);
Symbol 1123 MovieClip [rain] Frame 1
this._alpha = 75;
stop();
this._y = this._y - (Math.random() * 40);
this._yscale = 100 + (Math.random() * 300);
this.onEnterFrame = function () {
if (this._currentframe == 1) {
this._y = this._y + 30;
if (this._y >= 215) {
this._yscale = 100;
this.gotoAndPlay(2);
}
}
};
Symbol 1123 MovieClip [rain] Frame 2
play();
Symbol 1123 MovieClip [rain] Frame 10
removeMovieClip(this);
Symbol 1134 MovieClip [dog_death] Frame 1
dir = _parent.dir;
decay = 0;
this.onEnterFrame = function () {
decay = decay + 0.1;
if (decay < 6) {
_parent._x = _parent._x + ((6 - decay) * dir);
}
_root.bloodParticles("emo", 1, _parent._x, _parent._y - 40, _parent._xscale, 5, 2);
};
Symbol 1134 MovieClip [dog_death] Frame 24
stop();
cont = 0;
times = 0;
this.onEnterFrame = function () {
cont = cont + 1;
if (cont == 2) {
this._visible = false;
}
if (cont == 4) {
this._visible = true;
cont = 0;
times = times + 1;
}
if (times >= 20) {
removeMovieClip(_parent);
}
};
Symbol 1143 MovieClip [dog_attack] Frame 1
dir = _parent._xscale / 100;
speed = 12;
decay = 1;
this.onEnterFrame = function () {
_parent._x = _parent._x - (dir * (speed - decay));
decay = decay + 0.5;
};
Symbol 1143 MovieClip [dog_attack] Frame 5
_root.enemyAttack(_parent, 4, 30);
Symbol 1143 MovieClip [dog_attack] Frame 21
_parent.state = 4;
_parent.attachMovie(_parent.walk, "stand", 1);
Symbol 1146 MovieClip [dog_hit] Frame 4
_parent.state = 1;
_parent.attachMovie("dog_stand", "stand", 1);
Symbol 1151 MovieClip [dog_stand] Frame 6
ran = Math.floor(Math.random() * 10);
if (ran >= 8) {
_root.effetti(this, "sound_grrr");
}
Symbol 1175 MovieClip [pointer] Frame 1
this.onEnterFrame = function () {
this._xscale = 100;
this._x = _root.pointer.getBounds(_root.scena.sprites).xMax;
this._y = _root.pointer.getBounds(_root.scena.sprites).yMax;
this.y = this._y;
xpos = this._x;
ypos = this._y;
};
this.onMouseDown = function () {
if (_root.scrollingEnabled == 1) {
_root.scrollingEnabled = 0;
_root.scena.sprites.attachMovie("selector", "sel", 90);
_root.scena.sprites.sel._x = this._x;
_root.scena.sprites.sel._y = this._y;
} else {
_root.scrollingEnabled = 1;
}
};
Symbol 1176 MovieClip [pointer2] Frame 1
this.onEnterFrame = function () {
this._x = _root._xmouse;
this._y = _root._ymouse;
};
Symbol 1180 Button
on (release) {
chosenSet = 5;
_root.chooseEnemy(this, chosenSet);
}
Symbol 1181 Button
on (release) {
chosenSet = 4;
_root.chooseEnemy(this, chosenSet);
}
Symbol 1182 Button
on (release) {
chosenSet = 3;
_root.chooseEnemy(this, chosenSet);
}
Symbol 1183 Button
on (release) {
chosenSet = 2;
_root.chooseEnemy(this, chosenSet);
}
Symbol 1184 Button
on (release) {
chosenSet = 1;
_root.chooseEnemy(this, chosenSet);
}
Symbol 1186 Button
on (release) {
chosenSet = 6;
_root.chooseEnemy(this, chosenSet);
}
Symbol 1187 Button
on (release) {
chosenSet = 7;
_root.chooseEnemy(this, chosenSet);
}
Symbol 1239 MovieClip [all_key_items] Frame 1
sound_interval = 0;
this.gotoAndStop(item_genre);
if (this.soundOff == 0) {
_root.hud1.attachMovie("key_indicator", "ki", 101);
this.ki = _root.hud1.ki;
}
this.onEnterFrame = function () {
if (this.soundOff == 0) {
ki._x = this.getBounds(_root.hud1).xMax - 11;
ki._y = this.getBounds(_root.hud1).yMax - 15;
_root.key_actions(this);
sound_interval = sound_interval + 1;
if (sound_interval >= 60) {
_root.effetti(this, "sound_key");
sound_interval = 0;
}
}
};
keyID = 1;
Symbol 1239 MovieClip [all_key_items] Frame 2
keyID = 2;
Symbol 1239 MovieClip [all_key_items] Frame 3
keyID = 3;
Symbol 1239 MovieClip [all_key_items] Frame 4
keyID = 4;
Symbol 1239 MovieClip [all_key_items] Frame 5
keyID = 5;
Symbol 1239 MovieClip [all_key_items] Frame 6
keyID = 6;
Symbol 1239 MovieClip [all_key_items] Frame 7
keyID = 7;
Symbol 1239 MovieClip [all_key_items] Frame 8
keyID = 8;
Symbol 1239 MovieClip [all_key_items] Frame 9
keyID = 9;
Symbol 1239 MovieClip [all_key_items] Frame 10
stop();
Symbol 1261 MovieClip [mine_death] Frame 1
_root.energy = _root.energy - 10;
_root.hud1.gotoAndPlay(2);
Symbol 1261 MovieClip [mine_death] Frame 2
Symbol 1261 MovieClip [mine_death] Frame 22
removeMovieClip(_parent);
Symbol 1278 MovieClip Frame 1
counter = 0;
player = _root.scena.sprites.player1;
this.onEnterFrame = function () {
counter = counter + 1;
if ((counter >= 1) && (this._currentframe >= 80)) {
fX = this.getBounds(_root.scena.sprites).xMin;
fY = this.getBounds(_root.scena.sprites).yMin;
level = _root.enemyLayer;
_root.scena.sprites.attachMovie("flame_caldaie", "fc" + level, level);
fc = eval ("_root.scena.sprites.fc" + level);
fc._x = fX + 10;
fc._y = fY + 5;
_root.enemyLayer = _root.enemyLayer + 1;
counter = 0;
}
};
Symbol 1278 MovieClip Frame 2
startFrame = 2 + Math.floor(Math.random() * 50);
this.gotoAndPlay(startFrame);
Symbol 1278 MovieClip Frame 100
gotoAndPlay (3);
Symbol 1279 MovieClip [backtile_81] Frame 1
Instance of Symbol 597 MovieClip in Symbol 1288 MovieClip [backtile_83] Frame 1
onClipEvent (load) {
this.room = 4;
this.rightKey = 8;
}
Instance of Symbol 659 MovieClip in Symbol 1298 MovieClip [backtile_114] Frame 1
onClipEvent (load) {
this.room = 6;
this.rightKey = 0;
}
Symbol 1309 MovieClip [backtile_110] Frame 1
sprite = _root.scena.sprites.player1;
this.onEnterFrame = function () {
sx = sprite._x;
py = -30;
px = sx + ((Math.random() * 800) - 400);
_root.particelle("rain", px, py, 100);
};
Instance of Symbol 659 MovieClip in Symbol 1309 MovieClip [backtile_110] Frame 1
onClipEvent (load) {
this.room = 5;
this.rightKey = 5;
}
Instance of Symbol 597 MovieClip in Symbol 1310 MovieClip [backtile_80] Frame 1
onClipEvent (load) {
this.room = 2;
this.rightKey = 3;
}
Symbol 1322 MovieClip [flame_caldaie] Frame 1
ran = Math.ceil((Math.random() * 10) - 5);
ran2 = Math.ceil(Math.random() * 50) + 100;
this._x = this._x + ran;
this._xscale = ran2;
this._yscale = ran2;
speed_x = (Math.random() * 1) + 2;
speed_y = (Math.random() * 1) + 1;
player = _root.scena.sprites.player1;
this.onEnterFrame = function () {
if (_root.pausa == 1) {
this.removeMovieClip();
}
px = this.getBounds(_root).xMax - (this._width / 2);
py = this.getBounds(_root).yMax - (this._height / 2);
if (player.coll.hitTest(this) && (Math.abs(this.realz - player.y) < 4)) {
_root.energy = _root.energy - 1;
_root.hud1.gotoAndPlay(2);
this.removeMovieClip();
}
this.realz = Math.floor(this._y + 50);
this.swapDepths(this.realz);
this._xscale = this._xscale + 1;
this._yscale = this._yscale + 1;
this._x = this._x + (1 + speed_x);
this._y = this._y + (1 + speed_y);
};
Symbol 1322 MovieClip [flame_caldaie] Frame 34
removeMovieClip(this);
Symbol 1335 MovieClip [backtile_90] Frame 1
waitingForBoss = 0;
timer = 0;
sprite = _root.scena.sprites.player1;
this.onEnterFrame = function () {
_root.scrolling9(this);
if (waitingForBoss == 0) {
timer = timer + 1;
if (timer >= 120) {
_root.scena.sprites.attachMovie("swampThing", "inf" + _root.enemyLayer, _root.enemyLayer);
_root.enemyLayer = _root.enemyLayer + 1;
waitingForBoss = 1;
}
}
sx = sprite._x;
py = -30;
i = 0;
while (i < 3) {
px = sx + ((Math.random() * 600) - 300);
_root.particelle("rain", px, py, 100);
i++;
}
};
Symbol 1335 MovieClip [backtile_90] Frame 2
_root.scena.back._y = _root.scena.back._y - 2;
Symbol 1335 MovieClip [backtile_90] Frame 11
_root.scena.back._y = _root.scena.back._y + 2;
Symbol 1335 MovieClip [backtile_90] Frame 21
_root.scena.back._y = _root.scena.back._y + 1;
Symbol 1335 MovieClip [backtile_90] Frame 32
_root.scena.back._y = _root.scena.back._y - 1;
Symbol 1335 MovieClip [backtile_90] Frame 42
gotoAndPlay (2);
Symbol 1344 MovieClip [swampThing_dies] Frame 1
this.onEnterFrame = function () {
if (_currentframe <= 40) {
_root.bloodParticles("emo", 1, _parent._x, _parent._y - 40, _parent._xscale, 5, 2);
}
};
Symbol 1344 MovieClip [swampThing_dies] Frame 60
stop();
_root.room = 13;
_root.gotoAndStop("change_level");
Symbol 1345 MovieClip [swampThing_goDown] Frame 24
stop();
Symbol 1346 MovieClip [swampThing_appears] Frame 60
_parent.state = 2;
_parent.attachMovie("swampThing_stand", "stand", 10);
Symbol 1355 MovieClip [swampThing_stand] Frame 1
this.play();
Symbol 1355 MovieClip [swampThing_stand] Frame 37
this.gotoAndPlay(1);
Symbol 1355 MovieClip [swampThing_stand] Frame 40
this.play();
Symbol 1356 MovieClip [swampThing_hit] Frame 2
_parent.state = 2;
_parent.attachMovie("swampThing_stand", "stand", 10);
Symbol 1367 MovieClip [swampThing_attack] Frame 16
pl1 = _root.scena.sprites.player1;
if ((pl1.z == 0) && (pl1.coll.hitTest(this.tongue))) {
_root.energy = _root.energy - 10;
_root.effetti(this, "sound_thud");
_root.hud1.gotoAndPlay(2);
}
Symbol 1367 MovieClip [swampThing_attack] Frame 30
_parent.state = 2;
_parent.attachMovie("swampThing_stand", "stand", 10);
Symbol 1368 MovieClip Frame 1
l = 0;
this.onEnterFrame = function () {
this.attachMovie("watercircle", "wc" + l, l);
wc = eval ("this.wc" + l);
wc._x = (90 + (Math.random() * 80)) - 40;
wc._y = ((Math.random() * 40) - 20) - 10;
l = l + 1;
};
Symbol 1369 MovieClip [swampThing] Frame 1
this.state = 1;
this.wait = 0;
this.nStings = 0;
this.energy = 800;
this._x = 190;
this._y = 180;
this.attachMovie("bossCollision", "coll", 9);
bossCollision._x = bossCollision._x + 20;
this.attachMovie("swampThing_appears", "stand", 10);
this.onEnterFrame = function () {
if (_root.pausa == 1) {
this.state = 9;
}
_root.bossTimer(this);
switch (state) {
case 1 :
return;
case 2 :
if (energy <= 0) {
this.attachMovie("swampThing_dies", "stand", 10);
this.state = 7;
return;
}
_root.bossDamage(this);
this.wait = this.wait + 1;
if (wait >= 180) {
this.wait = 0;
ran = Math.floor(Math.random() * 2);
switch (ran) {
case 0 :
this.attachMovie("swampThing_attack", "stand", 10);
this.state = 3;
break;
case 1 :
this.state = 6;
}
}
return;
case 3 :
return;
case 4 :
this.wait = this.wait + 1;
if (this.wait == 30) {
pl1 = _root.scena.sprites.player1;
_root.scena.sprites.attachMovie("sting", "sting" + _root.enemyLayer, _root.enemyLayer);
sting = eval ("_root.scena.sprites.sting" + _root.enemyLayer);
nStings = nStings + 1;
sting._x = pl1._x;
sting._y = pl1.y;
this.wait = 0;
_root.enemyLayer = _root.enemyLayer + 1;
}
if (this.nStings >= 10) {
this.nStings = 0;
this.attachMovie("swampThing_appears", "stand", 10);
this.state = 1;
}
return;
case 5 :
_root.bossDamage(this);
return;
case 6 :
this.attachMovie("swampThing_goDown", "stand", 10);
this.state = 4;
return;
case 7 :
return;
case 8 :
return;
case 9 :
if (_root.pausa != 0) {
break;
}
if (this.wait == 0) {
this.wait = 180;
}
this.attachMovie("swampThing_stand", "stand", 10);
this.state = 2;
}
};
Symbol 1379 MovieClip [sting] Frame 1
this.onEnterFrame = function () {
this.y = this._y;
pl1 = _root.scena.sprites.player1;
this.swapDepths(this._y);
};
Symbol 1379 MovieClip [sting] Frame 10
_root.enemyAttack(this, 10, 0, 50);
_root.effetti(this, "sound_arpione");
Symbol 1379 MovieClip [sting] Frame 25
removeMovieClip(this);
Symbol 1388 MovieClip [watercircle] Frame 1
this._alpha = (Math.random() * 80) + 20;
this._xscale = (Math.random() * 50) + 50;
this._yscale = this._xscale;
Symbol 1388 MovieClip [watercircle] Frame 17
removeMovieClip(this);
Symbol 1393 MovieClip Frame 1
this._visible = false;
Symbol 1393 MovieClip Frame 30
this._visible = true;
Symbol 1394 MovieClip Frame 1
this.onEnterFrame = function () {
_root.doors(this, this.rightKey);
};
Instance of Symbol 1394 MovieClip in Symbol 1395 MovieClip [backtile_102] Frame 1
onClipEvent (load) {
this.room = 0;
this.rightKey = 0;
}
Symbol 1401 MovieClip [backtile_100] Frame 1
interval = 0;
pl = _root.scena.sprites.player1;
this.onEnterFrame = function () {
interval = interval + 1;
if (interval >= 5) {
_root.scena.sprites.attachMovie("fog", "fog" + _root.enemyLayer, _root.enemyLayer);
fog = eval ("_root.scena.sprites.fog" + _root.enemyLayer);
fog._x = pl._x + 300;
fog._y = Math.floor(pl._y - ((Math.random() * 240) - 120));
_root.enemyLayer = _root.enemyLayer + 1;
interval = 0;
}
};
Symbol 1404 MovieClip [fog] Frame 1
speed = (Math.random() * 2) + 2;
this._alpha = Math.floor(25 + (Math.random() * 25));
this.onEnterFrame = function () {
this._alpha = this._alpha - 0.2;
if (this.getBounds(_root).xMax < 0) {
this.removeMovieClip();
}
if (this._alpha <= 0) {
this.removeMovieClip();
}
this._x = this._x - speed;
this._y = this._y + speed2;
this.swapDepths(Math.floor(this._y));
};
Symbol 1408 MovieClip [doormessage] Frame 1
play();
Symbol 1408 MovieClip [doormessage] Frame 90
this.removeMovieClip();
Symbol 1416 MovieClip [tut] Frame 1
stop();
_root.tutorialEnd = 0;
this.onEnterFrame = function () {
if (_root.action == 1) {
switch (this._currentframe) {
case 1 :
this.gotoAndStop(2);
break;
case 2 :
this.gotoAndStop(3);
break;
case 3 :
_root.tutorialEnd = 1;
_root.hud1.attachMovie("go", "go", 100);
_root.hud1.go._x = 290;
_root.hud1.go._y = -150;
this.removeMovieClip();
}
}
};
Symbol 1422 MovieClip [swap_machete] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 0.5;
this._alpha = this._alpha - 1;
if (this._alpha < 50) {
removeMovieClip(this);
}
};
Symbol 1425 MovieClip [swap_flamethrower] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 0.5;
this._alpha = this._alpha - 1;
if (this._alpha < 50) {
removeMovieClip(this);
}
};
Symbol 1428 MovieClip [swap_magnum] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 0.5;
this._alpha = this._alpha - 1;
if (this._alpha < 50) {
removeMovieClip(this);
}
};
Symbol 1431 MovieClip [swap_shotgun] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 0.5;
this._alpha = this._alpha - 1;
if (this._alpha < 50) {
removeMovieClip(this);
}
};
Symbol 1434 MovieClip [swap_katana] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 0.5;
this._alpha = this._alpha - 1;
if (this._alpha < 50) {
removeMovieClip(this);
}
};
Symbol 1437 MovieClip [swap_bat] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 0.5;
this._alpha = this._alpha - 1;
if (this._alpha < 50) {
removeMovieClip(this);
}
};
Symbol 1440 MovieClip [swap_chainsaw] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 0.5;
this._alpha = this._alpha - 1;
if (this._alpha < 50) {
removeMovieClip(this);
}
};
Symbol 1443 MovieClip [swap_rifle] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 0.5;
this._alpha = this._alpha - 1;
if (this._alpha < 50) {
removeMovieClip(this);
}
};
Symbol 1446 MovieClip [swap_gun] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 0.5;
this._alpha = this._alpha - 1;
if (this._alpha < 50) {
removeMovieClip(this);
}
};
Symbol 1449 MovieClip [swap_machinegun] Frame 1
this.onEnterFrame = function () {
this._y = this._y - 0.5;
this._alpha = this._alpha - 1;
if (this._alpha < 50) {
removeMovieClip(this);
}
};
Symbol 1452 MovieClip [energy_full] Frame 1
_root.effetti(this, "energyUp", 0);
this.onEnterFrame = function () {
this._y = this._y - 0.5;
this._alpha = this._alpha - 1;
if (this._alpha < 50) {
removeMovieClip(this);
}
};
Symbol 1455 MovieClip [energy_plus] Frame 1
_root.effetti(this, "energyUp", 0);
this.onEnterFrame = function () {
this._y = this._y - 0.5;
this._alpha = this._alpha - 1;
if (this._alpha < 50) {
removeMovieClip(this);
}
};
Symbol 1468 Button
on (release) {
if (_root.music == 0) {
_root.music = 1;
_root.masterVolume = 100;
_root.music_clip.suono.setVolume(_root.masterVolume);
this.music.gotoAndStop(2);
} else {
_root.music = 0;
_root.masterVolume = 0;
_root.music_clip.suono.setVolume(_root.masterVolume);
this.music.gotoAndStop(1);
}
}
Symbol 1469 MovieClip Frame 1
Mouse.show();
if (_root.music == 1) {
this.music.gotoAndStop(2);
}
if (_root.sfxs == 1) {
this.sound.gotoAndStop(2);
}
Symbol 1471 MovieClip [map] Frame 1
room = _root.room + 1;
this.gotoAndStop(room);
Symbol 1474 MovieClip [keykeeper_icon] Frame 1
this._alpha = 50;
Symbol 1474 MovieClip [keykeeper_icon] Frame 10
this._alpha = 100;
Symbol 1483 MovieClip [bloodyFloor] Frame 1
ran = 1 + Math.floor(Math.random() * 5);
this.gotoAndStop(ran);
time = 0;
this.onEnterFrame = function () {
if (time >= 50) {
_alpha = (_alpha - 5);
if (this._alpha <= 10) {
removeMovieClip(this);
}
} else {
time = time + 1;
}
};
Symbol 1488 MovieClip [z_classic_hit] Frame 1
_root.bloodParticles("emo", 8, _parent._x, _parent._y - 40, _parent._xscale, 5, 2);
Symbol 1488 MovieClip [z_classic_hit] Frame 6
_parent.state = 1;
_parent.attachMovie("infected_stand", "stand", 1);
Symbol 1495 MovieClip [z_classic_death] Frame 1
dir = _parent._xscale / 100;
decay = 0;
this.onEnterFrame = function () {
decay = decay + 0.1;
if (decay < 6) {
_parent._x = _parent._x + ((4 - decay) * dir);
}
_root.bloodParticles("emo", 1, _parent._x, _parent._y - 40, _parent._xscale, 5, 2);
};
Symbol 1495 MovieClip [z_classic_death] Frame 20
stop();
cont = 0;
times = 0;
this.onEnterFrame = function () {
cont = cont + 1;
if (cont == 2) {
this._visible = false;
}
if (cont == 4) {
this._visible = true;
cont = 0;
times = times + 1;
}
if (times >= 20) {
removeMovieClip(_parent);
}
};
Symbol 1506 MovieClip [z_classic_attack] Frame 5
_root.enemyAttack(_parent, 2, 30);
Symbol 1506 MovieClip [z_classic_attack] Frame 30
_root.enemyAttack(_parent, 2, 30);
Symbol 1506 MovieClip [z_classic_attack] Frame 50
_parent.state = 4;
_parent.attachMovie(_parent.walk, "stand", 1);
Symbol 1531 MovieClip [ventLight] Frame 1
this.onEnterFrame = function () {
this._xscale = 10 + (Math.abs(-this._x) * 5);
this._alpha = 100 - (this._y * 4);
switch (this.id) {
case 1 :
this._x = _parent.ph1x;
this._y = _parent.ph1y;
break;
case 2 :
this._x = _parent.ph2x;
this._y = _parent.ph2y;
break;
case 3 :
this._x = _parent.ph3x;
this._y = _parent.ph3y;
break;
case 4 :
this._x = _parent.ph4x;
this._y = _parent.ph4y;
}
};
Symbol 1538 MovieClip [rifleBlow] Frame 4
removeMovieClip(this);
Symbol 1544 MovieClip [machinegunBlow] Frame 4
removeMovieClip(this);
Symbol 1547 MovieClip [chainsaw_smoke] Frame 1
this._xscale = 50 + (Math.random() * 50);
this._rotation = Math.random() * 180;
this.onEnterFrame = function () {
this._y = this._y - 1;
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
removeMovieClip(this);
}
};
Symbol 1550 MovieClip [cassa] Frame 1
this.yarea = 16;
this.xarea = 42;
this.zarea = 36;
pl = _root.scena.sprites.player1;
this.onEnterFrame = function () {
_root.swap_Depths(this);
ply = pl.y;
plx = pl._x;
};
Symbol 1561 MovieClip [sheet] Frame 1
decay = 0;
speed = 1 + (Math.random() * 2);
yspeed = 1 + (Math.random() * 3);
this.onEnterFrame = function () {
this._y = this._y + yspeed;
this._x = this._x - speed;
decay = decay + 0.1;
if (decay >= 20) {
removeMovieClip(this);
}
};
Symbol 1561 MovieClip [sheet] Frame 27
gotoAndPlay (2);
Instance of Symbol 659 MovieClip in Symbol 1564 MovieClip [backtile_132] Frame 1
onClipEvent (load) {
this.room = 12;
this.rightKey = 0;
}
Symbol 1568 MovieClip [backtile_130] Frame 1
Symbol 1581 MovieClip [wreckBall] Frame 1
p1 = _root.scena.sprites.player1;
this.onEnterFrame = function () {
if (_root.pausa == 0) {
play();
ns = 0;
while (ns <= 4) {
shot = eval ("_root.scena.sprites.shotLayer.shot" + ns);
if (this.coll.hitTest(shot)) {
_root.effetti(this.coll, "sound_ptoing", 0);
removeMovieClip(shot);
}
ns++;
}
if (p1.coll.hitTest(this.coll)) {
if (p1._x < this._x) {
p1._x = p1._x - 4;
}
if (p1._x > this._x) {
p1._x = p1._x + 4;
}
}
if (this._currentframe >= 100) {
tx = this._x;
px = _root.scena.sprites.player1._x;
diff = px - tx;
this._x = this._x + (diff * 0.1);
}
} else {
this.gotoAndStop(20);
}
};
Symbol 1581 MovieClip [wreckBall] Frame 42
_root.effetti(this, "wreckball_crash", 0);
if (this.coll.hitTest(p1.coll)) {
_root.hud1.gotoAndPlay(2);
_root.energy = _root.energy - 20;
}
pippo = _root.enemyArray.length;
n = 0;
while (n < pippo) {
foe = _root.enemyArray[n];
if (this.coll.hitTest(foe.coll)) {
foe.onFire = 0;
foe.energy = foe.energy - 10000;
}
n++;
}
Symbol 1581 MovieClip [wreckBall] Frame 80
_root.effetti(this, "chains", 0);
Symbol 1581 MovieClip [wreckBall] Frame 190
gotoAndPlay (2);
Symbol 1587 MovieClip [pressA] Frame 2
removeMovieClip(this);
Symbol 1590 MovieClip [scanline] Frame 1
this._xscale = 50;
this._yscale = 50;
this._alpha = 50;
Symbol 1614 MovieClip Frame 40
stop();
Symbol 1621 Button
on (release) {
startMovie();
}
Symbol 1622 MovieClip [Preloader Bar (NewgroundsAPI)] Frame 1
#initclip 24
Object.registerClass("Preloader Bar (NewgroundsAPI)", com.newgrounds.components.PreloaderBar);
#endinitclip
Symbol 1648 Button
on (release) {
com.newgrounds.API.loadNewgrounds();
}
Symbol 1654 MovieClip Frame 1
// swfAction0xFC hexdata 0x03,0x00 // Unknown action
function \u0004\u0005() {
Set("\x03", (865 % 511) * true);
return(\x03);
}
var \x01 = (-67 + \x04\x05());
// swfAction0x03 // Unknown action
Symbol 1655 MovieClip Frame 11
gotoAndPlay (1);
Symbol 1656 MovieClip [Flash Ad (NewgroundsAPI)] Frame 1
#initclip 25
Object.registerClass("Flash Ad (NewgroundsAPI)", com.newgrounds.components.FlashAd);
#endinitclip
Symbol 1664 MovieClip Frame 1
// swfAction0xFC hexdata 0x03,0x00 // Unknown action
function \u0004\u0005() {
Set("\x03", (2892 % 511) * true);
return(\x03);
}
var \x01 = (-160 + \x04\x05());
// swfAction0x03 // Unknown action
Symbol 1666 MovieClip Frame 10
stop();
Symbol 1668 MovieClip Frame 37
_parent.setGotoFrame("done");
stop();
Symbol 1680 MovieClip [NewgroundsAPIAsset_Medal_Popup] Frame 1
// swfAction0xFC hexdata 0x03,0x00 // Unknown action
function \u0004\u0005() {
Set("\x03", (737 % 511) * true);
return(\x03);
}
var \x01 = (9 + \x04\x05());
// swfAction0x03 // Unknown action
Symbol 1680 MovieClip [NewgroundsAPIAsset_Medal_Popup] Frame 2
medal.attachIcon(icon);
Symbol 1680 MovieClip [NewgroundsAPIAsset_Medal_Popup] Frame 10
// swfAction0xFC hexdata 0x03,0x00 // Unknown action
function \u0004\u0005() {
Set("\x03", (2142 % 511) * true);
return(\x03);
}
var \x01 = (78 + \x04\x05());
// swfAction0x03 // Unknown action
Symbol 1680 MovieClip [NewgroundsAPIAsset_Medal_Popup] Frame 21
this.removeMovieClip();
_visible = false;
stop();
Symbol 1686 MovieClip [NewgroundsAPIAsset_Login_Warning] Frame 1
!!!ERROR
Symbol 1686 MovieClip [NewgroundsAPIAsset_Login_Warning] Frame 10
stop();
Symbol 1686 MovieClip [NewgroundsAPIAsset_Login_Warning] Frame 21
this.removeMovieClip();
_visible = false;
stop();
Symbol 1689 MovieClip [NewgroundsAPIAsset_Connection_Error] Frame 1
!!!ERROR
Symbol 1689 MovieClip [NewgroundsAPIAsset_Connection_Error] Frame 10
stop();
Symbol 1689 MovieClip [NewgroundsAPIAsset_Connection_Error] Frame 21
this.removeMovieClip();
_visible = false;
stop();
Symbol 1710 MovieClip [NewgroundsAPIAsset_big_popup_background] Frame 1
!!!ERROR
Symbol 1714 Button
on (release) {
!!!ERROR
Symbol 1720 Button
on (release) {
getURL (official_version_url, "_blank");
}
Symbol 1722 MovieClip [NewgroundsAsset_New_Version_Available] Frame 1
!!!ERROR
Symbol 1723 Button
on (release) {
getURL (official_version_url, "_blank");
}
Symbol 1727 MovieClip [NewgroundsAsset_Illegal_Host] Frame 1
!!!ERROR
Symbol 1728 MovieClip [API Connector (NewgroundsAPI)] Frame 1
#initclip 26
Object.registerClass("API Connector (NewgroundsAPI)", com.newgrounds.components.APIConnector);
#endinitclip
Symbol 1728 MovieClip [API Connector (NewgroundsAPI)] Frame 20
_visible = false;
Symbol 1591 MovieClip [__Packages.com.newgrounds.components.PreloaderBar] Frame 0
!!!ERROR
Symbol 1623 MovieClip [__Packages.com.newgrounds.APIError] Frame 0
!!!ERROR
Symbol 1624 MovieClip [__Packages.com.newgrounds.API] Frame 0
!!!ERROR
Symbol 1625 MovieClip [__Packages.com.newgrounds.Bridge] Frame 0
!!!ERROR
Symbol 1626 MovieClip [__Packages.com.newgrounds.SaveFile] Frame 0
!!!ERROR
Symbol 1627 MovieClip [__Packages.com.newgrounds.SaveGroup] Frame 0
!!!ERROR
Symbol 1628 MovieClip [__Packages.com.newgrounds.ValidationTools] Frame 0
!!!ERROR
Symbol 1629 MovieClip [__Packages.com.newgrounds.APIEvent] Frame 0
!!!ERROR
Symbol 1630 MovieClip [__Packages.com.newgrounds.SaveGroupQuery] Frame 0
!!!ERROR
Symbol 1631 MovieClip [__Packages.com.newgrounds.encoders.BaseN] Frame 0
!!!ERROR
Symbol 1632 MovieClip [__Packages.com.newgrounds.encoders.ImageScanner] Frame 0
!!!ERROR
Symbol 1633 MovieClip [__Packages.com.newgrounds.encoders.SerialXML] Frame 0
!!!ERROR
Symbol 1634 MovieClip [__Packages.com.newgrounds.encoders.LZW2] Frame 0
!!!ERROR
Symbol 1635 MovieClip [__Packages.com.newgrounds.encoders.LZW] Frame 0
!!!ERROR
Symbol 1636 MovieClip [__Packages.com.newgrounds.Medal] Frame 0
!!!ERROR
Symbol 1637 MovieClip [__Packages.com.newgrounds.ScoreBoard] Frame 0
!!!ERROR
Symbol 1638 MovieClip [__Packages.com.newgrounds.Score] Frame 0
!!!ERROR
Symbol 1639 MovieClip [__Packages.com.newgrounds.encoders.RC4] Frame 0
!!!ERROR
Symbol 1640 MovieClip [__Packages.com.newgrounds.encoders.JSON] Frame 0
!!!ERROR
Symbol 1641 MovieClip [__Packages.com.newgrounds.APIEventDispatcher] Frame 0
!!!ERROR
Symbol 1642 MovieClip [__Packages.com.newgrounds.encoders.MD5] Frame 0
!!!ERROR
Symbol 1643 MovieClip [__Packages.com.newgrounds.components.FlashAd] Frame 0
!!!ERROR
Symbol 1657 MovieClip [__Packages.com.newgrounds.components.APIConnector] Frame 0
!!!ERROR
Symbol 1774 MovieClip Frame 256
_root.play();
Symbol 1785 MovieClip Frame 5
_root.effetti(this, "sound_laugh");
Symbol 1785 MovieClip Frame 33
stop();
Symbol 1793 MovieClip Frame 1
this.onEnterFrame = function () {
if (this._x > -320) {
this._x = this._x - 5;
} else {
this._x = 0;
}
};
Symbol 1801 MovieClip Frame 90
stop();