Frame 1
function goTo() {
getURL ("http://www.MoFunZone.com");
}
stop();
var newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
newMenu.customItems.push(new ContextMenuItem("MoFunZone.com - Play More Games", goTo));
this.menu = newMenu;
Frame 2
MoFunZone_URL = "http://gamefilez.mofunzone.com/";
MoFunZone_path = _url.substring(0, length(MoFunZone_URL));
MoFunZone_loader = new LoadVars();
MoFunZone_loader.load("http://www.mofunzone.com/hotlink/check_online_game.php");
MoFunZone_loader.onLoad = function (success) {
if ((success && (this.mofunzone_allow_game)) && (MoFunZone_path == MoFunZone_URL)) {
} else {
getURL ("http://www.mofunzone.com/", "_self");
unloadMovie (_root);
}
};
Frame 3
function mysound(idname) {
mysoundobj = new Sound(this);
mysoundobj.attachSound(idname);
mysoundobj.start();
}
function clearscreen() {
var _local2 = 0;
for (_local2 in _root) {
if (_root[_local2].atc == ".") {
_root[_local2].removeMovieClip();
}
}
}
function resetgame(fullreset) {
clearscreen();
grenades = 5;
hc = 0;
spc = 0;
shield = 0;
dcrane._x = 0;
dcrane._y = 0;
dropshield = false;
gotshield = false;
sl1 = false;
sl2 = false;
sl3 = false;
dn1 = false;
dn2 = false;
dn3 = false;
tc.torso.gotoAndStop("idle");
tc.shield.gotoAndPlay("idle");
tc.legs.gotoAndStop("idle");
tc.legs._visible = true;
tc._x = -100;
tc._y = 700;
gbit.dispose();
clonebit.dispose();
housebit.dispose();
gbit = new flash.display.BitmapData(bmpwidth, bmpheight, true, 16777215);
clonebit = new flash.display.BitmapData(bmpwidth, bmpheight, true, 16777215);
housebit = new flash.display.BitmapData(bmpwidth, bmpheight, true, 16777215);
sky._visible = false;
dcrane._visible = false;
sky.cacheAsBitmap = true;
houses.cacheAsBitmap = true;
zombies = new Array(30);
zdead = 0;
psycharge = 10;
psytimer = 0;
psytimermax = 150;
mc._x = -100;
mc._y = 0;
househost._x = 0;
househost._y = 0;
dead = false;
timer = 0;
maxtimer = 30;
bodytick = 0;
maxbodytick = 60;
d = 0;
ens = 0;
maxens = 4;
r = 0.0175;
mousestate = 0;
menu_exists = false;
tutorial_exists = false;
game_exists = false;
game_paused = false;
tutorial_task1 = false;
tutorial_task2 = false;
tutorial_task3 = false;
cs1exists = false;
cs2exists = false;
cs3exists = false;
health = 100;
gameover = false;
playerdeath = false;
sway = 0;
youfailed._x = 1000;
if (fullreset == true) {
gamestate = "menu";
} else {
gamestate = "main";
}
weptype = 1;
stackheight = 0;
kills = 0;
killratio = 1;
score = 0;
}
function within(dist, m1, m2, t) {
if (t) {
return(Math.sqrt(((m2._x - m1._x) * (m2._x - m1._x)) + ((m2._y - m1._y) * (m2._y - m1._y))) <= dist);
}
return(Math.sqrt(((m1._x - m2._x) * (m1._x - m2._x)) + ((m1._y - m2._y) * (m1._y - m2._y))));
}
function make_ragdoll(x, y, f, a, p) {
_root.e++;
_root.attachMovie("rag", "rag" + _root.e, _root.getNextHighestDepth(), {initx:x, inity:y, force:f, angle:a, points:p});
if (gamestate == "tutorial") {
zdead++;
} else {
kills++;
if (killratio != 0) {
score = score + ((random(200) + 500) / killratio);
} else {
score = score + (random(200) + 500);
}
hud.killtext.text = "Kills: " + kills;
score = Math.round(score);
hud.scoretext.text = "Score: " + score;
}
}
function control_spawn() {
if (ens < maxens) {
if (_root.timer >= _root.maxtimer) {
var _local2 = random(2) + 1;
if (_local2 == 1) {
_root.spawnEnemy("right");
} else {
_root.spawnEnemy("left");
}
_root.timer = 0;
} else {
_root.timer++;
}
}
}
function grenade_launch(x, y, d) {
_root.e++;
if (d == "right") {
a = 30 * r;
} else if (d == "left") {
a = -30 * r;
}
_root.attachMovie("grenade", "grenade" + _root.e, _root.getNextHighestDepth(), {_x:x, _y:y, angle:a});
}
function killzombs() {
var _local2 = 0;
while (_local2 < _root.zombies.length) {
_root[_root.zombies[_local2]].dying = true;
_local2++;
}
}
function spawnEnemy(place) {
ens++;
if (place == "right") {
_root.e++;
_root.attachMovie("zombie", "zombie" + _root.e, _root.getNextHighestDepth(), {_x:640, _y:430, ident:"zombie" + _root.e});
} else {
_root.e++;
_root.attachMovie("zombie", "zombie" + _root.e, _root.getNextHighestDepth(), {_x:-90, _y:430, ident:"zombie" + _root.e});
}
_root.zombies.push("zombie" + _root.e);
}
stop();
_root.dragging = null;
bmpheight = 700;
bmpwidth = 750;
bmpoffset = 100;
mflogo._visible = false;
var gbit = (new flash.display.BitmapData(bmpwidth, bmpheight, true, 16777215));
var clonebit = (new flash.display.BitmapData(bmpwidth, bmpheight, true, 16777215));
var housebit = (new flash.display.BitmapData(bmpwidth, bmpheight, true, 16777215));
loadVariablesNum ("http://gamefilez.mofunzone.com/game_scores/body_ladder/mfz2.php", 0);
_quality = "medium";
Array.prototype.remove = function (o) {
var _local3 = [];
var _local2 = 0;
while (_local2 < this.length) {
if (this[_local2] != o) {
_local3.push(this[_local2]);
}
_local2++;
}
return(_local3);
};
shield = 0;
e = 0;
wepnotice._x = 0;
wepnotice._y = 0;
sl1 = false;
sl2 = false;
sl3 = false;
dn1 = false;
dn2 = false;
dn3 = false;
sky._visible = false;
dcrane._visible = false;
dcrane._x = 0;
dcrane._y = 0;
sky.cacheAsBitmap = true;
houses.cacheAsBitmap = true;
zombies = new Array(30);
zdead = 0;
psycharge = 10;
psytimer = 0;
psytimermax = 150;
mc._x = -100;
mc._y = 0;
househost._x = 0;
househost._y = 0;
dead = false;
timer = 0;
maxtimer = 30;
bodytick = 0;
maxbodytick = 60;
d = 0;
ens = 0;
maxens = 4;
r = 0.0175;
mousestate = 0;
hc = 0;
spc = 0;
dropshield = false;
gotshield = false;
menu_exists = false;
tutorial_exists = false;
game_exists = false;
game_paused = false;
tutorial_task1 = false;
tutorial_task2 = false;
tutorial_task3 = false;
cs1exists = false;
cs2exists = false;
cs3exists = false;
health = 100;
gameover = false;
playerdeath = false;
sway = 0;
youfailed._x = 1000;
gamestate = "menu";
weptype = 1;
stackheight = 0;
kills = 0;
killratio = 1;
score = 0;
grenades = 5;
isLand = function (x, y) {
_root.gnd.lock();
varo = false;
if (0 != gbit.getPixel32(x + 100, y)) {
o = true;
} else {
o = false;
}
_root.gnd.unlock();
return(o);
};
bloodpop = function (x, y, n, a, o, f, sf) {
var _local2 = 0;
while (_local2 < n) {
e++;
_root.attachMovie("blood", "blood" + e, _root.getNextHighestDepth(), {_x:x, _y:y, angle:(((a + random(o)) - random(o)) + 90) * _root.r, cranium:false, force:random(f) + sf});
_local2++;
}
};
casing = function (x, y, a, o) {
e++;
_root.attachMovie("casing", "casing" + e, _root.getNextHighestDepth(), {_x:x, _y:y, angle:((a + random(o)) - random(o)) * _root.r, cranium:false});
};
glowpop = function (x, y, n) {
var _local2 = 0;
while (_local2 < n) {
e++;
_root.attachMovie("glowbit", "glowbit" + e, _root.getNextHighestDepth(), {_x:x, _y:y});
_local2++;
}
};
cranium = function (x, y, n, a) {
var _local2 = 0;
while (_local2 < n) {
e++;
_root.attachMovie("blood", "blood" + e, _root.getNextHighestDepth(), {_x:x, _y:y, angle:(random(a) + 90) * _root.r, cranium:true});
_local2++;
}
};
makeMenu = function () {
e++;
_root.attachMovie("menu", "menuc", _root.getNextHighestDepth());
menu_exists = true;
};
unmakeMenu = function () {
menuc.removeMovieClip();
menu_exists = false;
};
makeTutorial = function () {
zdead = 0;
sky._visible = true;
dcrane._visible = true;
tutorial_exists = true;
clonebit.dispose();
housebit.dispose();
gbit.dispose();
gbit = new flash.display.BitmapData(bmpwidth, bmpheight, true, 16777215);
clonebit = new flash.display.BitmapData(bmpwidth, bmpheight, true, 16777215);
housebit = new flash.display.BitmapData(bmpwidth, bmpheight, true, 16777215);
househost.attachBitmap(housebit, this.getNextHighestDepth());
mc.attachBitmap(gbit, this.getNextHighestDepth());
gbit.draw(tutgnd);
housebit.draw(tuthouses);
_root.e++;
_root.attachMovie("tutorialtasks", "tutorialtasks", _root.getNextHighestDepth());
};
unmakeTutorial = function () {
sky._visible = false;
dcrane._visible = false;
tutorial_exists = false;
unmakePlayer();
gbit.dispose();
clonebit.dispose();
removeMovieClip(tutorialtasks);
};
makeGame = function () {
sky._visible = true;
dcrane._visible = true;
sky._y = 0;
clonebit.dispose();
housebit.dispose();
gbit.dispose();
gbit = new flash.display.BitmapData(bmpwidth, bmpheight, true, 16777215);
clonebit = new flash.display.BitmapData(bmpwidth, bmpheight, true, 16777215);
housebit = new flash.display.BitmapData(bmpwidth, bmpheight, true, 16777215);
househost.attachBitmap(housebit, this.getNextHighestDepth());
mc.attachBitmap(gbit, this.getNextHighestDepth());
gbit.draw(gnd);
housebit.draw(houses);
makePlayer(0);
makeHUD();
hud.stack.text = "0 m";
hud.scoretext.text = "Score: 0";
hud.killtext.text = "Kills: 0";
game_exists = true;
};
makePlayer = function (st) {
_root.attachMovie("player", "guy", _root.getNextHighestDepth(), {_x:266, _y:350, st:st});
glowpop(266, 350, 5);
};
unmakePlayer = function () {
removeMovieClip(guy);
tc._x = 1000;
};
unmakeGame = function () {
sky._visible = false;
dcrane._visible = false;
gbit.dispose();
housebit.dispose();
clearscreen();
guy.removeMovieClip();
tc._x = -1000;
unmakeHUD();
game_exists = false;
};
makeHUD = function () {
_root.e++;
_root.attachMovie("hudclip", "hud", _root.getNextHighestDepth());
};
unmakeHUD = function () {
_root.hud.removeMovieClip();
};
findBodyBounds = function () {
var _local4 = 4294967295;
var _local3 = 4278190080;
var _local2 = _root.gbit.getColorBoundsRect(_local4, _local3, true);
return(_local2.y);
};
checkTutorialTask = function () {
if (!tutorial_task1) {
tutorialtasks.instructionpanel.gotoAndStop(1);
} else if (!tutorial_task2) {
tutorialtasks.instructionpanel.gotoAndStop(2);
} else if (!tutorial_task3) {
tutorialtasks.instructionpanel.gotoAndStop(3);
if (zdead >= 3) {
tutorial_task3 = true;
}
} else {
tutorialtasks.instructionpanel.gotoAndStop(4);
}
};
makeCutscene = function (cs) {
if (cs == "1") {
if (cs1exists == false) {
_root.attachMovie("cutscene1", "cs1", _root.getNextHighestDepth());
cs1exists = true;
}
}
if (cs == "2") {
if (cs2exists == false) {
_root.attachMovie("cutscene2", "cs2", _root.getNextHighestDepth());
cs2exists = true;
}
}
if (cs == "3") {
if (cs3exists == false) {
_root.attachMovie("cutscene3", "cs3", _root.getNextHighestDepth());
cs3exists = true;
}
}
};
unmakecs1 = function () {
removeMovieClip(cs1);
_root.screenfade.gotoAndStop("black");
stopAllSounds();
_root.musmanager.gotoAndStop(2);
_root.gamestate = "main";
};
onEnterFrame = function () {
sway = sway + ((random(10) - random(10)) / 5);
if (gamestate == "menu") {
if (!menu_exists) {
makeMenu();
}
}
if (gamestate == "tutorial") {
if (!tutorial_exists) {
unmakeMenu();
makeTutorial();
} else {
checkTutorialTask();
}
}
if (gamestate == "cut1") {
unmakeTutorial();
makeCutscene(1);
}
if (gamestate == "cs0") {
makeCutscene(2);
}
if (gamestate == "main") {
if (!game_exists) {
makeGame();
} else if (!game_paused) {
if (!dead) {
if (health <= 0) {
dead = true;
gameover = true;
} else {
if (bodytick > maxbodytick) {
d = 400 - findBodyBounds();
bodytick = 0;
if (d > 20) {
stackheight = stackheight + (Math.round(d / 1.2) / 100);
}
} else {
bodytick++;
}
if (d > 1) {
var _local9 = d / 20;
down(d / 20);
d = d - _local9;
}
control_spawn();
zmb.text = zombies;
hud.health.text = health;
hud.stacktext.text = stackheight + " m";
if (stackheight <= 0) {
killratio = 1;
} else {
killratio = Math.round(kills / stackheight);
}
if (hc < 160) {
hc++;
} else {
hc = 0;
if ((random(6) == 2) && (health < 50)) {
e++;
_root.attachMovie("healthpack", "hp" + e, _root.getNextHighestDepth(), {_x:random(500) + 50, _y:-10});
}
}
if (spc < 200) {
spc++;
} else {
spc = 0;
if ((random(6) == 4) && (shield == 0)) {
e++;
_root.attachMovie("shieldpack", "sp" + e, _root.getNextHighestDepth(), {_x:random(500) + 50, _y:-10});
}
}
maxens = Math.floor((stackheight / 25) * 9) + 4;
var _local10 = (stackheight >= 0) && (stackheight < 5);
var _local5 = (stackheight >= 4) && (stackheight < 5);
var _local8 = (stackheight >= 5) && (stackheight < 10);
var _local4 = (stackheight >= 9) && (stackheight < 10);
var _local7 = (stackheight >= 10) && (stackheight < 15);
var _local3 = (stackheight >= 14) && (stackheight < 15);
var _local6 = (stackheight >= 15) && (stackheight < 100);
if (_local10) {
_root.guy.weapon = "bat";
weptype = 1;
if (_local5) {
if (!sl1) {
sl1 = true;
wepnotice.gotoAndStop("almost");
}
}
}
if (_local8) {
_root.guy.weapon = "axe";
weptype = 1;
if (!dn1) {
dn1 = true;
wepnotice.gotoAndStop("axe");
}
if (_local4) {
if (!sl2) {
sl2 = true;
wepnotice.gotoAndStop("almost");
}
}
}
if (_local7) {
_root.guy.weapon = "chain";
weptype = 1;
if (!dn2) {
dn2 = true;
wepnotice.gotoAndStop("chainsaw");
}
if (_local3) {
if (!sl3) {
sl3 = true;
wepnotice.gotoAndStop("almost");
}
}
}
if (_local6) {
if (!dn3) {
dn3 = true;
wepnotice.gotoAndStop("duelies");
}
_root.guy.weapon = "duelies";
weptype = 2;
}
if (shield > 0) {
shield--;
if (gotshield == false) {
tc.shield.gotoAndPlay("pickup");
dropshield = false;
gotshield = true;
}
} else if (dropshield == false) {
tc.shield.gotoAndPlay("loseshield");
dropshield = true;
gotshield = false;
}
if ((300 - (maxens * 35)) < 85) {
psytimermax = 85;
} else {
psytimermax = 300 - (maxens * 35);
}
if (psycharge <= 9) {
if (psytimer > psytimermax) {
psycharge++;
psytimer = 0;
} else {
psytimer++;
}
}
}
} else {
e++;
_root.attachMovie("blood", "blood" + e, _root.getNextHighestDepth(), {_x:random(550), _y:y, angle:random(90) + (sway * 0.0175), cranium:false, force:random(20)});
if (playerdeath == false) {
var _local2 = 0;
for (_local2 in _root) {
if (_root[_local2].asdfgh == "asdfgh") {
_root[_local2].removeMovieClip();
}
}
_root.make_ragdoll(guy._x, guy._y, 20, 0, 2);
_root.bloodpop(guy._x, guy._y, 30, 0, 360, 20, 20);
removeMovieClip(guy);
playerdeath = true;
_root.tc._x = 5000;
unmakeHUD();
youfailed.gotoAndPlay(2);
youfailed._x = 0;
youfailed._y = 0;
}
}
}
}
};
down = function (a) {
if ((a >= 1) && (_root.sky._y < 1000)) {
_root.sky._y = _root.sky._y + (Math.round(a) / 1.5);
_root.dcrane._y = _root.dcrane._y + (Math.round(a) / 1.5);
}
_root.housebit.scroll(0, a);
_root.gbit.scroll(0, a);
};
onMouseDown = function () {
if (!dead) {
if ((weptype != 1) && (_root.guy.jumping == false)) {
_root.guy.shoot();
} else {
_root.guy.swing();
}
}
mousestate = 1;
};
onMouseUp = function () {
mousestate = 0;
};
Instance of Symbol 741 MovieClip "tc" in Frame 3
onClipEvent (enterFrame) {
_x = _root.guy._x;
if (_root.guy.jumping == true) {
_y = _root.guy._y;
} else {
var dy = (_y - _root.guy._y);
_y = (_y - (dy / 3));
}
}
Instance of Symbol 793 MovieClip in Frame 3
onClipEvent (load) {
clickable = false;
}
onClipEvent (enterFrame) {
if (_root.gamestate == "main") {
_visible = true;
clickable = true;
} else {
_visible = false;
clickable = false;
}
}
Instance of Symbol 812 MovieClip "cursor" in Frame 3
onClipEvent (enterFrame) {
if (((_root.gamestate == "main") || (_root.gamestate == "tutorial")) || (_root.gamestate == "menu")) {
this.swapDepths(_root.getNextHighestDepth());
_x = _root._xmouse;
_y = _root._ymouse;
_visible = true;
Mouse.hide();
} else {
_visible = false;
Mouse.show();
}
}
Symbol 23 MovieClip Frame 11
stop();
Symbol 45 MovieClip [splode] Frame 25
stop();
_parent.removeMovieClip(this);
Symbol 60 MovieClip [splatter] Frame 14
stop();
Symbol 60 MovieClip [splatter] Frame 30
removeMovieClip(this);
Symbol 63 MovieClip Frame 8
stop();
Symbol 64 MovieClip [player] Frame 1
r = 0.0175;
speed = 0.5;
atc = ".";
nr._x = 0;
nr._y = 0;
tn._x = 0;
tn._y = 0;
radius = 20;
precision = 360;
collisions = 0;
sum_x = 0;
sum_y = 0;
spot_x = 0;
spot_y = 0;
g = 0;
vy = 0;
g = -1;
jumping = false;
lookdir = "right";
swinging = false;
xspeed = 0;
yspeed = 0;
max_yspeed = 20;
walk_speed = 4;
climb_speed = 2;
climbing = false;
jumping = false;
can_jump = true;
gravity = 1.1;
jump_power = 19;
walking_while_jumping = true;
oldxspeed = 0;
var mindist = 10000;
closest = null;
hx = 0;
hy = 0;
nx = 0;
ny = 0;
dx = 0;
dy = 0;
range = new Array();
range.bat = 80;
range.axe = 60;
range.chain = 70;
range.duelies = -500;
lockKeys = false;
savedxpeed = 0;
starting_to_jump = false;
h = this._height / 2;
w = this._width / 2;
weapon = "axe";
throwing = false;
facing = "right";
armlength = 37;
shldr = 45;
gturn = 1;
_root.tc.gun_arm._visible = false;
goffset = 0.0875;
lkang = 0;
rkang = 0;
gtimer = 0;
greloadtimer = 10;
if (st == 1) {
weapon = "none";
}
mouseLook = function () {
var _local4 = _root._xmouse - _x;
var _local3 = _root._ymouse - (_y - shldr);
var _local2 = Math.atan2(_local3, _local4);
if (_root.tc.torso._xscale == 100) {
_root.tc.torso.d1._rotation = ((_local2 / r) - 90) - lkang;
_root.tc.torso.d2._rotation = (((_local2 / r) + 90) - 5) - rkang;
} else {
_root.tc.torso.d1._rotation = -(((_local2 / r) - 90) + lkang);
_root.tc.torso.d2._rotation = -((((_local2 / r) + 90) + 5) + rkang);
}
};
shoot = function () {
_root.mysound("shotsound");
if (gturn == 1) {
gturn = 2;
_root.tc.torso.d1.pistol.gotoAndPlay(2);
if ((lkang + 20) < 30) {
lkang = lkang + 20;
}
} else {
gturn = 1;
_root.tc.torso.d2.pistol.gotoAndPlay(2);
if ((rkang + 20) < 30) {
rkang = rkang + 20;
}
}
var _local26 = _root._xmouse - _x;
var _local25 = _root._ymouse - (_y - shldr);
var _local17 = Math.atan2(_local25, _local26);
_root.tc.gun_arm._rotation = ad;
var _local19 = _local25 / _local26;
var _local22 = _local17 + 1.575;
if (_root.tc.torso._xscale == 100) {
var _local24 = (armlength * Math.sin(_local22 + goffset)) + _x;
var _local23 = (((armlength * Math.cos(_local22 + goffset)) * -1) - shldr) + _y;
} else {
var _local24 = (armlength * Math.sin(_local22 - goffset)) + _x;
var _local23 = (((armlength * Math.cos(_local22 - goffset)) * -1) - shldr) + _y;
}
if (_root.tc.torso._xscale == 100) {
_root.casing(_local24, _local23, (-(_local17 / 0.0175)) + 180, 10);
} else {
_root.casing(_local24, _local23, (-_local17) / 0.0175, 10);
}
if (_root._xmouse > _x) {
gfacing = "right";
} else {
gfacing = "left";
}
var _local20 = _local23 - (_local19 * _local24);
var _local21 = _root.zombies.length;
var _local13 = new Array();
var _local29 = new Array();
closest = null;
minyhit = null;
mindist = 10000;
var _local18 = 0;
var _local5 = 0;
while (_local5 < _local21) {
var _local2 = _root[_root.zombies[_local5]];
var _local15 = _root.zombies[_local5];
var _local3 = _local2._x - _x;
var _local4 = _local2._y - _y;
var _local6 = Math.sqrt((_local3 * _local3) + (_local4 * _local4));
var _local12 = _local2._x < _x;
var _local11 = _local2._x > _x;
_local6 = Math.sqrt((_local3 * _local3) + (_local4 * _local4));
if (((_local12 && (gfacing == "left")) || (_local11 && (gfacing == "right"))) && (_local6 < mindist)) {
var _local14 = _local2._x - _local2.hhit;
var _local16 = _local2._x + _local2.hhit;
var _local10 = _local2._y - _local2.vhit;
var _local8 = _local2._y + _local2.vhit;
var _local7 = (_local19 * _local2._x) + _local20;
var _local9 = (_local7 > _local10) && (_local7 < _local8);
if (_local9) {
_local13[_local13.length] = _local2;
if (_local6 < mindist) {
mindist = _local6;
minyhit = _local7;
closest = _local2;
_local18 = _local17;
}
}
}
_local5++;
}
_root.fail.text = mindist;
if (closest != null) {
var _local28 = minyhit < (closest._y - 30);
var _local27 = minyhit > closest._y;
if (_local28) {
closest.headshot(_local18);
} else if (_local27) {
closest.legshot(_local18);
} else {
closest.bodyshot(_local18);
}
}
};
intersect = function (m, x, y) {
return(y - (m * x));
};
gradient = function () {
collisions = 0;
sum_x = 0;
sum_y = 0;
var _local2 = 1;
while (_local2 < precision) {
spot_x = _x + (radius * Math.sin((_local2 * 360) / precision));
spot_y = _y - (radius * Math.cos((_local2 * 360) / precision));
if (_root.isLand(spot_x, spot_y) == true) {
collisions++;
sum_x = sum_x + spot_x;
sum_y = sum_y + spot_y;
}
_local2++;
}
if (collisions > 0) {
spot_x = sum_x / collisions;
spot_y = sum_y / collisions;
mkr._x = spot_x;
mkr._y = spot_y;
var _local3 = (spot_y - _y) / (spot_x - _x);
var _local4 = Math.atan2(spot_y - _y, spot_x - _x);
_root.g.text = _local3;
nr._rotation = _local4 / r;
collisions = 0;
return(_local3);
}
return(10);
};
swing = function () {
if ((!jumping) && (_root.tc.legs._visible == true)) {
swinging = true;
}
};
throwGrenade = function () {
if ((((!jumping) && (_root.tc.legs._visible == true)) && (!throwing)) && (_root.grenades > 0)) {
if (_root.gamestate == "main") {
if (_root.tc.torso._currentframe < 145) {
_root.tc.torso.gotoAndStop(145);
throwing = true;
}
}
}
};
hit = function () {
var _local2 = 0;
var _local4 = 1000;
var _local5 = null;
var _local3 = 0;
if (_root._xmouse > _x) {
if (weapon != "chain") {
for (_local2 in _root) {
if (_root[_local2].ai_legit == true) {
if ((_root[_local2]._x < (_x + range[weapon])) && (_root[_local2]._x > _x)) {
if (Math.abs((_y - 40) - _root[_local2]._y) < 80) {
_local3 = _root[_local2]._x - _x;
if (_local3 < _local4) {
_local4 = _local3;
_local5 = _root[_local2];
}
}
}
}
}
_local5.hit("right", weapon);
} else {
for (_local2 in _root) {
if (_root[_local2].ai_legit == true) {
if ((_root[_local2]._x < (_x + range[weapon])) && (_root[_local2]._x > _x)) {
if (Math.abs((_y - 40) - _root[_local2]._y) < 80) {
_local3 = _root[_local2]._x - _x;
if (_local3 < _local4) {
_local4 = _local3;
_local5 = _root[_local2];
_local5.hit("right", weapon);
}
}
}
}
}
}
}
if (_root._xmouse < _x) {
if (weapon != "chain") {
for (_local2 in _root) {
if (_root[_local2].ai_legit == true) {
if ((_root[_local2]._x > (_x - range[weapon])) && (_root[_local2]._x < _x)) {
if (Math.abs((_y - 40) - _root[_local2]._y) < 80) {
_local3 = _x - _root[_local2]._x;
if (_local3 < _local4) {
_local4 = _local3;
_local5 = _root[_local2];
}
}
}
}
}
_local5.hit("left", weapon);
} else {
for (_local2 in _root) {
if (_root[_local2].ai_legit == true) {
if ((_root[_local2]._x > (_x - range[weapon])) && (_root[_local2]._x < _x)) {
if (Math.abs((_y - 40) - _root[_local2]._y) < 80) {
_local3 = _x - _root[_local2]._x;
if (_local3 < _local4) {
_local4 = _local3;
_local5 = _root[_local2];
_local5.hit("left", weapon);
}
}
}
}
}
}
}
};
control = function () {
function levf() {
return(_root.isLand(_root.guy._x, _root.guy._y + 2));
}
if (gtimer > 0) {
if (gtimer <= 0) {
gtimer = 0;
} else {
gtimer--;
}
} else if (Key.isDown(83) || (Key.isDown(40))) {
throwGrenade();
gtimer = greloadtime;
}
if ((!jumping) || (starting_to_jump == false)) {
if (Key.isDown(37) || (Key.isDown(65))) {
if (walking_while_jumping or can_jump) {
xspeed = -walk_speed;
}
} else if (Key.isDown(39) || (Key.isDown(68))) {
if (walking_while_jumping or can_jump) {
xspeed = walk_speed;
}
}
oldxspeed = xspeed * 1.2;
} else {
xspeed = oldxspeed;
}
if (((((Key.isDown(38) || (Key.isDown(87))) and can_jump) and (!jumping)) && (!swinging)) && (!throwing)) {
_root.tc.torso.gotoAndStop(weapon + "jump");
gundisabled = true;
_root.tc.legs._visible = false;
starting_to_jump = true;
oldxspeed = xspeed * 1.2;
savedxspeed = oldxspeed;
xspeed = 0;
}
yspeed = yspeed - g;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((levf() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
t_x = this._x + xspeed;
t_y = this._y + yspeed;
while (_root.isLand(t_x, t_y + h, true)) {
t_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
while (_root.isLand(t_x, t_y - h)) {
t_y--;
yspeed = 0;
xspeed = 0;
}
hx = _x;
hy = _y;
this._x = t_x;
this._y = t_y;
dx = _x - hx;
dy = _y - hy;
if (_x > (550 - w)) {
_x = (550 - w);
}
if (_x < w) {
_x = w;
}
if ((!swinging) && (!throwing)) {
if (dx >= 1) {
if ((dy < 5) && (starting_to_jump == false)) {
if (_root.weptype == 1) {
_root.tc.torso.gotoAndStop(weapon + "walk");
} else {
_root.tc.torso.gotoAndStop("duelies");
}
if (_root._xmouse > _x) {
_root.tc.legs.gotoAndStop("walk");
} else {
_root.tc.legs.gotoAndStop("backwards");
}
}
} else if (dx <= -1) {
if ((dy < 5) && (starting_to_jump == false)) {
if (_root.weptype == 1) {
_root.tc.torso.gotoAndStop(weapon + "walk");
} else {
_root.tc.torso.gotoAndStop("duelies");
}
if (_root._xmouse < _x) {
_root.tc.legs.gotoAndStop("walk");
} else {
_root.tc.legs.gotoAndStop("backwards");
}
}
} else if ((dy < 5) && (starting_to_jump == false)) {
if (_root.weptype == 1) {
_root.tc.torso.gotoAndStop("idle");
_root.tc.torso.wep_display.gotoAndStop(weapon);
} else {
_root.tc.torso.gotoAndStop("duelies");
}
_root.tc.legs.gotoAndStop("idle");
}
} else if (!throwing) {
_root.tc.torso.gotoAndStop(weapon + "swing");
if (dx >= 1) {
if ((dy < 5) && (starting_to_jump == false)) {
if (_root._xmouse > _x) {
_root.tc.legs.gotoAndStop("walk");
} else {
_root.tc.legs.gotoAndStop("backwards");
}
}
} else if (dx <= -1) {
if ((dy < 5) && (starting_to_jump == false)) {
if (_root._xmouse < _x) {
_root.tc.legs.gotoAndStop("walk");
} else {
_root.tc.legs.gotoAndStop("backwards");
}
}
} else if ((dy < 5) && (starting_to_jump == false)) {
_root.tc.torso.wep_display.gotoAndStop(weapon);
_root.tc.legs.gotoAndStop("idle");
}
}
if (_root._xmouse > _x) {
lookdir = "right";
}
if (_root._xmouse < _x) {
lookdir = "left";
}
if (!jumping) {
if (_root._xmouse > _x) {
_root.tc.torso._xscale = 100;
_root.tc.legs._xscale = 100;
} else {
_root.tc.torso._xscale = -100;
_root.tc.legs._xscale = -100;
}
}
xspeed = 0;
if (_y > 570) {
yspeed = 0;
_y = 570;
}
};
_visible = false;
onEnterFrame = function () {
control();
_root.sw.text = swinging;
if (_root.weptype == 2) {
weapon = "duelies";
mouseLook();
if (lkang > 0) {
lkang = lkang * 0.7;
}
if (rkang > 0) {
rkang = rkang * 0.7;
}
}
};
Symbol 77 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 2
stop();
Symbol 79 MovieClip [joint] Frame 1
function onEnterFrame() {
if (allowed == true) {
if (kt < 1) {
kt++;
} else if (kd < 2) {
_parent._visible = true;
kd++;
_x = (_x + (xmodifier + xran));
_y = (_y + (ymodifier + yran));
}
}
xs = _x - lx;
ys = _y - ly;
lx = _x;
ly = _y;
if (tagged == true) {
} else if (_root.isLand(px + _x, (py + _y) + (ys * 0.9)) || (_y > 630)) {
ys = 0;
xs = 0;
tagged = true;
_parent.k++;
if (this._name == "lknee") {
if (!playedThud) {
_root.mysound("thud");
playedThud = true;
}
}
} else {
if (ys < 10) {
_y = (_y + (ys + fs));
} else {
_y = (_y + ys);
}
_x = (_x + xs);
}
}
var allowed = tbx[0];
var xmodifier = tbx[1];
var ymodifier = tbx[2];
t.gotoAndStop(id);
var kt = 0;
var kd = 0;
var lx = _x;
var ly = _y;
var xs = 0;
var ys = 0;
var rndfrc = 2;
var xran = (random(rndfrc) - random(rndfrc));
var yran = (random(rndfrc) - random(rndfrc));
var tagged = false;
var ff = 0;
var ft = 3;
var fs = 0.8;
var px = _parent._x;
var py = _parent._y;
var playedThud = false;
Symbol 80 MovieClip [rag] Frame 1
function constrain(particle1, particle2, distance) {
var _local4 = particle1._x - particle2._x;
var _local3 = particle1._y - particle2._y;
var _local1 = Math.ceil(Math.sqrt((_local4 * _local4) + (_local3 * _local3)));
var _local2 = _local1 - distance;
var _local8 = particle1.tagged;
var _local7 = particle2.tagged;
if (_local8 && (!_local7)) {
particle2._x = particle2._x + (((_local2 / 2) * _local4) / _local1);
particle2._y = particle2._y + (((_local2 / 2) * _local3) / _local1);
} else if (_local7 && (!_local8)) {
particle1._x = particle1._x - (((_local2 / 2) * _local4) / _local1);
particle1._y = particle1._y - (((_local2 / 2) * _local3) / _local1);
} else if (_local8 && (_local7)) {
} else if ((!_local8) && (!_local7)) {
particle1._x = particle1._x - (((_local2 / 2) * _local4) / _local1);
particle1._y = particle1._y - (((_local2 / 2) * _local3) / _local1);
particle2._x = particle2._x + (((_local2 / 2) * _local4) / _local1);
particle2._y = particle2._y + (((_local2 / 2) * _local3) / _local1);
}
}
function lookat(particle1, particle2) {
var _local2 = particle1._x - particle2._x;
var _local1 = particle1._y - particle2._y;
var _local3 = -Math.atan2(_local2, _local1);
particle1._rotation = (_local3 / 0.0175) - 90;
}
function constraints() {
constrain(head, neck, 8.3);
constrain(neck, lshoulder, 9.5);
constrain(neck, rshoulder, 6.5);
constrain(neck, waist, 34.4);
constrain(lshoulder, lelbow, 16.1);
constrain(lelbow, lhand, 16.4);
constrain(rshoulder, relbow, 15.6);
constrain(relbow, rhand, 14.5);
constrain(waist, lhip, 4.3);
constrain(waist, rhip, 3);
constrain(lhip, lknee, 19.7);
constrain(rhip, rknee, 19.7);
constrain(rknee, rfoot, 21.6);
constrain(lknee, lfoot, 22.4);
constrain(lshoulder, rshoulder, 9.5);
constrain(head, lshoulder, 17.25);
constrain(head, rshoulder, 16.8);
constrain(lshoulder, waist, 28.5);
constrain(rshoulder, waist, 27.1);
lookat(lknee, lhip);
lookat(lfoot, lknee);
lookat(rfoot, rknee);
lookat(rknee, rhip);
lookat(lhand, lelbow);
lookat(rhand, relbow);
lookat(lelbow, lshoulder);
lookat(relbow, rshoulder);
lookat(head, neck);
lookat(waist, neck);
}
function checktagged() {
final++;
if ((k >= 9) || (final > finaltime)) {
return(true);
}
return(false);
}
function onEnterFrame() {
if (neck._y > 650) {
_root.gbit.lock();
var _local3 = new flash.geom.Matrix();
var _local4 = new flash.geom.ColorTransform();
_local3.translate(100, 0);
_root.gbit.draw(this, _local3, _local4);
_root.gbit.unlock();
this.removeMovieClip();
}
if (checktagged() == false) {
constrain(head, neck, 8.3);
constrain(neck, lshoulder, 9.5);
constrain(neck, rshoulder, 6.5);
constrain(neck, waist, 34.4);
constrain(lshoulder, lelbow, 16.1);
constrain(lelbow, lhand, 16.4);
constrain(rshoulder, relbow, 15.6);
constrain(relbow, rhand, 14.5);
constrain(waist, lhip, 4.3);
constrain(waist, rhip, 3);
constrain(lhip, lknee, 19.7);
constrain(rhip, rknee, 19.7);
constrain(rknee, rfoot, 21.6);
constrain(lknee, lfoot, 22.4);
constrain(lshoulder, rshoulder, 9.5);
constrain(head, lshoulder, 17.25);
constrain(head, rshoulder, 16.8);
constrain(lshoulder, waist, 28.5);
constrain(rshoulder, waist, 27.1);
lookat(lknee, lhip);
lookat(lfoot, lknee);
lookat(rfoot, rknee);
lookat(rknee, rhip);
lookat(lhand, lelbow);
lookat(rhand, relbow);
lookat(lelbow, lshoulder);
lookat(relbow, rshoulder);
lookat(head, neck);
lookat(waist, neck);
} else {
_root.gbit.lock();
var _local3 = new flash.geom.Matrix();
var _local4 = new flash.geom.ColorTransform();
_local3.translate(100, 0);
_root.gbit.draw(this, _local3, _local4);
delete myGlowFilter;
_root.gbit.unlock();
_root.blip.gotoAndPlay(1);
this.removeMovieClip();
}
if (points != 2) {
head.t.headclip.gotoAndStop(1);
} else {
head.t.headclip.gotoAndStop(2);
}
if (points == 4) {
head.t.headclip.gotoAndStop(1);
}
if (points == 5) {
head.t.headclip.gotoAndStop(3);
}
}
var fmod = 0.5;
var xf = ((force * fmod) * Math.sin(angle));
var yf = (((-force) * fmod) * Math.cos(angle));
var ox = 0;
var oy = 0;
var nx = 0;
var ny = 0;
var k = 0;
var tbb = new Array(5);
_root.ens--;
if (points == 1) {
tbb = new Array(true, xf, yf);
neck.tbx = tbb;
} else if (points == 2) {
tbb = new Array(true, xf, -5);
neck.tbx = tbb;
tbb = new Array(true, xf, 5);
head.tbx = tbb;
tbb = new Array(true, random(10) - random(10), random(10) - random(10));
lhand.tbx = tbb;
rhand.tbx = tbb;
lfoot.tbx = tbb;
rfoot.tbx = tbb;
} else if (points == 3) {
tbb = new Array(true, xf, yf);
lhand.tbx = tbb;
lhip.tbx = tbb;
rhand.tbx = tbb;
relbow.tbx = tbb;
lelbow.tbx = tbb;
rhip.tbx = tbb;
neck.tbx = tbb;
waist.tbx = tbb;
lknee.tbx = tbb;
lfoot.tbx = tbb;
rfoot.tbx = tbb;
rknee.tbx = tbb;
lshoulder.tbx = tbb;
rshoulder.tbx = tbb;
head.tbx = tbb;
} else if (points == 4) {
tbb = new Array(true, xf * 2, yf * 2);
head.tbx = tbb;
tbb = new Array(true, xf, yf);
lhip.tbx = tbb;
rhip.tbx = tbb;
waist.tbx = tbb;
tbb = new Array(true, xf, -5);
lhand.tbx = tbb;
rhand.tbx = tbb;
tbb = new Array(true, -xf, yf);
lknee.tbx = tbb;
rknee.tbx = tbb;
} else if (points == 5) {
tbb = new Array(true, xf, yf);
neck.tbx = tbb;
waist.tbx = tbb;
tbb = new Array(true, xf, -yf);
head.tbx = tbb;
} else if (points == 6) {
tbb = new Array(true, xf, yf);
neck.tbx = tbb;
waist.tbx = tbb;
tbb = new Array(true, 0, yf / 2);
lhand.tbx = tbb;
rhand.tbx = tbb;
tbb = new Array(false, 0, 0);
head.tbx = tbb;
lknee.tbx = tbb;
lfoot.tbx = tbb;
rfoot.tbx = tbb;
rknee.tbx = tbb;
} else if (points == 7) {
tbb = new Array(true, xf, yf);
waist.tbx = tbb;
lknee.tbx = tbb;
lfoot.tbx = tbb;
rfoot.tbx = tbb;
rknee.tbx = tbb;
tbb = new Array(true, -xf, 0);
lhand.tbx = tbb;
rhand.tbx = tbb;
neck.tbx = tbb;
tbb = new Array(false, 0, 0);
head.tbx = tbb;
}
var final = 0;
var finaltime = 100;
var joints = new Array("lhand", "lhip", "lelbow", "relbow", "rhand", "rhip", "neck", "waist", "lknee", "lfoot", "rknee", "rfoot", "rshoulder", "lshoulder", "head");
var jl = joints.length;
var a = 0;
while (a < jl) {
this[joints[a]]._x = this[joints[a]]._x + initx;
this[joints[a]]._y = this[joints[a]]._y + inity;
head.t.headclip.gotoAndStop(2);
a++;
}
constraints();
lhand.id = "lhand";
lhip.id = "lhip";
rhand.id = "rhand";
relbow.id = "relbow";
lelbow.id = "lelbow";
rhip.id = "rhip";
neck.id = "neck";
waist.id = "waist";
lknee.id = "lknee";
lfoot.id = "lfoot";
rfoot.id = "rfoot";
rknee.id = "rknee";
lshoulder.id = "lshoulder";
rshoulder.id = "rshoulder";
head.id = "head";
Symbol 116 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 11
_parent._parent.attack();
Symbol 124 MovieClip Frame 19
_parent.gotoAndStop(1);
Symbol 125 MovieClip Frame 1
stop();
Symbol 126 MovieClip [zombie] Frame 1
ai_legit = true;
atc = ".";
hhit = 12.25;
vhit = 50;
flatground = true;
xspeed = 0;
yspeed = 0;
max_yspeed = 10;
walk_speed = 2;
climb_speed = 2;
climbing = false;
jumping = false;
can_jump = true;
gravity = 1;
jump_power = 15;
walking_while_jumping = true;
impulse = "idle";
impulse2 = "idle";
attackrange = 50;
ox = 0;
nx = 0;
ddx = 0;
threshold = 0;
headdmg = 0;
dying = false;
hw = 10;
attacking = false;
ho = 40;
stray = 65;
health = 100;
bloodForce = new Array();
attack = function () {
if (((_root.guy._x > (_x - attackrange)) && (_root.guy._x < (_x + attackrange))) && (Math.abs(_root.guy._y - _y) < 45)) {
if (_root.shield > 0) {
} else {
_root.health = _root.health - (random(3) + 10);
_root.mysound("zombiepunch");
_root.bloodpop(_root.guy._x, _root.guy._y - 25, 3, 0, 360, 10, 5);
}
}
};
headshot = function (a) {
var _local4 = 20;
var _local3 = 5;
var _local6 = 60;
var _local7 = health - _local6;
if (_local7 <= 0) {
_root.bloodpop(_x, _y - 30, 4, (-a) / 0.0175, 45, _local4, _local3);
_root.bloodpop(_x, _y - 30, 3, (-(a / 0.0175)) + 180, 10, _local4, _local3);
_root.make_ragdoll(_x, _y, 40, a + 1.575, 5);
_root.zombies = _root.zombies.remove(ident);
_root.mysound(5);
removeMovieClip(this);
} else {
innards.walk.head.play();
_root.bloodpop(_x, _y - 30, 3, (-a) / 0.0175, 25, _local4, _local3);
health = health - _local6;
}
};
bodyshot = function (a) {
var _local5 = 10;
var _local3 = 5;
var _local4 = 20;
var _local7 = health - _local4;
if (_local7 <= 0) {
_root.bloodpop(_x, (_y - random(10)) + random(10), 4, (-a) / 0.0175, 25, _local5, _local3);
_root.make_ragdoll(_x, _y, 60, a + 1.575, 6);
_root.zombies = _root.zombies.remove(ident);
removeMovieClip(this);
} else {
_root.bloodpop(_x, _y, 3, (-a) / 0.0175, 25, _local5, _local3);
health = health - _local4;
}
};
legshot = function (a) {
var _local5 = 10;
var _local3 = 5;
var _local4 = 20;
var _local7 = health - _local4;
if (_local7 <= 0) {
_root.bloodpop(_x, _y + random(35), 4, (-a) / 0.0175, 25, _local5, _local3);
_root.make_ragdoll(_x, _y, 8, a + 1.575, 7);
_root.zombies = _root.zombies.remove(ident);
removeMovieClip(this);
} else {
_root.bloodpop(_x, _y + 25, 3, (-a) / 0.0175, 25, _local5, _local3);
health = health - _local4;
}
};
hit = function (dir, w) {
if (dir == "right") {
if (w == "bat") {
var _local4 = random(2) + 1;
if (_local4 == 1) {
_root.mysound("hit1");
} else if (_local4 == 2) {
_root.mysound("hit2");
}
if ((health - 50) > 0) {
health = health - 50;
_x = (_x + 5);
_root.bloodpop(_x, _y - 25, 5, 0, 360, 10, 5);
} else {
_root.make_ragdoll(_x, _y, (15 - random(5)) + random(5), -80, 4);
_root.zombies = _root.zombies.remove(ident);
removeMovieClip(this);
}
} else if (w != "chain") {
if (w == "axe") {
_root.mysound("axewav");
}
_root.bloodpop(_x, _y - random(25), 5, 270, 180, 10, 5);
_root.make_ragdoll(_x, _y, (25 - random(5)) + random(5), -80, 1);
_root.zombies = _root.zombies.remove(ident);
removeMovieClip(this);
} else {
var _local4 = random(2) + 1;
if (_local4 == 1) {
_root.mysound("hit1");
} else if (_local4 == 2) {
_root.mysound("hit2");
}
_root.bloodpop(_x, _y - random(25), 5, 270, 180, 10, 5);
_root.make_ragdoll(_x, _y, (25 - random(5)) + random(5), -80, 1);
_root.zombies = _root.zombies.remove(ident);
removeMovieClip(this);
}
}
if (dir == "left") {
if (w == "bat") {
var _local4 = random(2) + 1;
if (_local4 == 1) {
_root.mysound("hit1");
} else if (_local4 == 2) {
_root.mysound("hit2");
}
if ((health - 50) > 0) {
health = health - 50;
_x = (_x - 5);
_root.bloodpop(_x, _y - 25, 5, 0, 360, 10, 5);
} else {
_root.make_ragdoll(_x, _y, (15 - random(5)) + random(5), 80, 4);
_root.zombies = _root.zombies.remove(ident);
removeMovieClip(this);
}
} else if (w != "chain") {
if (w == "axe") {
_root.mysound("axewav");
}
_root.bloodpop(_x, _y - random(25), 5, 270, 180, 10, 5);
_root.make_ragdoll(_x, _y, (25 - random(5)) + random(5), 80, 1);
_root.zombies = _root.zombies.remove(ident);
removeMovieClip(this);
} else {
var _local4 = random(2) + 1;
if (_local4 == 1) {
_root.mysound("hit1");
} else if (_local4 == 2) {
_root.mysound("hit2");
}
_root.bloodpop(_x, _y - random(25), 5, 270, 180, 10, 5);
_root.make_ragdoll(_x, _y, (25 - random(5)) + random(5), 80, 1);
_root.zombies = _root.zombies.remove(ident);
removeMovieClip(this);
}
}
};
h = this._height / 2;
w = this._width / 2;
control = function () {
function levf() {
return(_root.isLand(this._x, this._y + 2));
}
if ((innards._currentframe != 1) && (innards._currentframe != 4)) {
innards.gotoAndStop("walk");
}
if (_root.guy._x > (_x + attackrange)) {
impulse = 2;
walk_speed = 2;
} else if (_root.guy._x < (_x - attackrange)) {
impulse = 1;
walk_speed = 2;
} else if (_root.guy._x > (_x - attackrange)) {
innards.gotoAndStop(4);
walk_speed = walk_speed * 0.8;
} else if (_root.guy._x < (_x + attackrange)) {
innards.gotoAndStop(4);
walk_speed = walk_speed * 0.8;
}
if (impulse == 1) {
xspeed = -walk_speed;
}
if (impulse == 2) {
xspeed = walk_speed;
}
yspeed = yspeed + gravity;
if (yspeed > max_yspeed) {
yspeed = max_yspeed;
}
if ((levf() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
if ((lumf() and (!jumping)) and (!climbing)) {
yspeed = 0;
}
t_x = this._x + xspeed;
t_y = this._y + yspeed;
while (_root.isLand(t_x, t_y + h, true)) {
t_y--;
xspeed = 0;
yspeed = 0;
jumping = false;
}
hx = _x;
hy = _y;
this._x = t_x;
this._y = t_y;
var _local3 = _x - hx;
var _local4 = _y - hy;
if (_local3 < 0) {
innards._xscale = -100;
}
if (_local3 > 0) {
innards._xscale = 100;
}
xspeed = 0;
if (climbing) {
yspeed = 0;
}
if (_y > 600) {
yspeed = 0;
_y = 600;
}
innards._rotation = 0;
};
gradient = function () {
collisions = 0;
sum_x = 0;
sum_y = 0;
var _local2 = 1;
while (_local2 < precision) {
spot_x = _x + (radius * Math.sin((_local2 * 360) / precision));
spot_y = _y - (radius * Math.cos((_local2 * 360) / precision));
if (_root.isLand(spot_x, spot_y) == true) {
collisions++;
sum_x = sum_x + spot_x;
sum_y = sum_y + spot_y;
}
_local2++;
}
if (collisions > 0) {
spot_x = sum_x / collisions;
spot_y = sum_y / collisions;
mkr._x = spot_x;
mkr._y = spot_y;
var _local4 = (spot_y - _y) / (spot_x - _x);
var _local3 = Math.atan2(spot_y - _y, spot_x - _x);
_root.g.text = _local4;
nr._rotation = _local3 / r;
collisions = 0;
return(_local3 / _root.r);
}
return(0);
};
climb = function () {
function levf() {
return(_root.isLand(this._x, this._y));
}
if (innards._currentframe != 2) {
innards.gotoAndStop("climb");
}
if (_root.guy._x > (_x + stray)) {
impulse = 2;
walk_speed = 0.6;
} else if (_root.guy._x < (_x - stray)) {
impulse = 1;
walk_speed = 0.6;
} else if (((_root.guy._x > (_x - stray)) && (_root.guy._x < (_x + stray))) && (_y < (_root.guy._y + 60))) {
walk_speed = 0.1;
}
if (impulse == 1) {
xspeed = -walk_speed;
}
if (impulse == 2) {
xspeed = walk_speed;
}
hx = _x;
hy = _y;
if (innards._xscale == 100) {
if (_root.isLand(_x + 35, _y - 25, true) || (_root.isLand(_x + 10, _y - 48, true))) {
_y = (_y - 2);
} else {
_y = (_y - 1);
}
}
if (innards._xscale == -100) {
if (_root.isLand(_x - 35, _y - 25, true) || (_root.isLand(_x - 10, _y - 48, true))) {
_y = (_y - 2);
} else {
_y = (_y - 1);
}
}
_x = (_x + xspeed);
if (impulse == 2) {
innards._xscale = 100;
} else {
innards._xscale = -100;
}
xspeed = 0;
if (climbing) {
yspeed = 0;
}
if (_y > 660) {
_y = 660;
}
};
checkhead = function () {
return(((((_root._xmouse > (_x - hw)) && (_root._xmouse < (_x + hw))) && (_root._ymouse > ((_y - ho) - hw))) && (_root._ymouse < ((_y - ho) + hw))) && (_root.mousestate == 1));
};
onEnterFrame = function () {
if (_root.gameover == true) {
innards.gotoAndStop(3);
_root.e++;
if (random(2) == 1) {
_root.make_ragdoll(_x, _y, 40, 90, 6);
} else {
_root.make_ragdoll(_x, _y, 40, -90, 6);
}
_root.zombies = _root.zombies.remove(ident);
removeMovieClip(this);
} else if (!dying) {
if (innards._xscale == 100) {
if (_root.isLand(_x + 35, _y - 25, true) || (_root.isLand(_x + 10, _y - 48, true))) {
flatground = false;
} else {
flatground = true;
}
}
if (innards._xscale == -100) {
if (_root.isLand(_x - 35, _y - 25, true) || (_root.isLand(_x - 10, _y - 48, true))) {
flatground = false;
} else {
flatground = true;
}
}
if (Math.abs(_root.guy._y - _y) < 50) {
if (flatground == true) {
control();
} else {
climb();
}
} else if (flatground == true) {
control();
} else {
climb();
}
if (checkhead() == true) {
if (_root.psycharge > 0) {
_root.psycharge--;
dying = true;
}
}
} else {
_root.bloodpop(_x, _y - 25, 10, 1, 360, 15, 5);
_root.cranium(_x, _y - 25, 2, 270);
_root.e++;
_root.attachMovie("splatter", "splatter" + _root.e, _root.getNextHighestDepth(), {_x:_x, _y:_y - 50});
_root.make_ragdoll(_x, _y, random(100) + 50, 0, 2);
_root.zombies = _root.zombies.remove(ident);
removeMovieClip(this);
}
};
Symbol 128 MovieClip [grenade] Frame 1
function explode() {
exploded = true;
var _local3 = 0;
for (_local3 in _root) {
if (_root[_local3].ai_legit == true) {
if (_root.within(280, this, _root[_local3], false) <= 280) {
var _local5 = _root[_local3]._x;
var _local4 = _root[_local3]._y;
var _local6 = (280 - _root.within(280, this, _root[_local3], false)) * forcemod;
var _local7 = Math.atan2(this._y - _local4, this._x - _local5);
_root.make_ragdoll(_local5, _local4, _local6 / 3, _local7 - (90 * _root.r), 2);
_root.bloodpop(_local5, _local4, 8, _local7 / _root.r, 30, (_local6 / 10) + 1, setbloodforce);
_root.zombies = _root.zombies.remove(_root[_local3].ident);
_root[_local3].removeMovieClip();
}
}
}
}
framerate = 30;
atc = ".";
seconds = 3;
delay = framerate * seconds;
timer = 0;
exploded = false;
forcemod = 6;
a = 0;
fs = 0;
xm = 0;
ym = 0;
oldx = 0;
oldy = 0;
newx = 0;
newy = 0;
dx = 0;
dy = 0;
force = 10;
rs = random(30) - random(30);
bloodforce = 20;
setbloodforce = 10;
limits = function () {
return(!(((_x < 10) || (_x > 560)) || (_y > 650)));
};
onEnterFrame = function () {
if (!limits()) {
removeMovieClip(this);
}
if (!_root.isLand(_x, _y)) {
rotator.rot = 1;
a = a + 1;
fs = a + 0.5;
xm = force * Math.sin(angle);
ym = (force * Math.cos(angle)) + fs;
oldx = _x;
oldy = _y;
_x = (_x + xm);
_y = (_y + ym);
newx = _x;
newy = _y;
dx = newx - oldx;
dy = newy - oldy;
_rotation = (_rotation + rs);
} else {
rotator.rot = 0;
if ((timer > (delay - 1)) && (!exploded)) {
explode();
_root.e++;
_root.attachMovie("splode", "splode" + _root.e, _root.getNextHighestDepth(), {_x:_x, _y:_y});
_root.mysound("explosion");
_root.screenfade.gotoAndStop("grenadeflash");
removeMovieClip(this);
} else {
timer++;
}
}
};
Symbol 133 MovieClip Frame 95
_root.tutorial_task1 = true;
Symbol 136 MovieClip Frame 65
stop();
Symbol 139 MovieClip Frame 30
stop();
Symbol 150 MovieClip Frame 5
stop();
Symbol 151 MovieClip Frame 1
stop();
Symbol 156 Button
on (press) {
_parent._parent.fader.play();
}
Symbol 159 MovieClip Frame 118
stop();
Symbol 162 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 41
_root.gamestate = "cut1";
Symbol 163 MovieClip Frame 1
stop();
_root.makePlayer(1);
Symbol 163 MovieClip Frame 2
_root.spawnEnemy("right");
_root.spawnEnemy("left");
_root.psycharge = 3;
onEnterFrame = function () {
if (_root.zdead >= 2) {
_root.tutorial_task2 = true;
_root.zdead = 0;
}
};
Symbol 163 MovieClip Frame 3
_root.psycharge = 0;
_root.guy.weapon = "bat";
_root.spawnEnemy("right");
_root.spawnEnemy("left");
onEnterFrame = function () {
if (_root.zdead >= 2) {
_root.tutorial_task3 = true;
_root.zdead = 0;
}
};
Symbol 163 MovieClip Frame 4
stop();
_root.psycharge = 10;
_root.health = 100;
Symbol 165 MovieClip [tutorialtasks] Frame 1
atc = ".";
Symbol 168 MovieClip Frame 1
stop();
Symbol 168 MovieClip Frame 20
stop();
Symbol 174 Button
on (press) {
_parent.popped = false;
}
Symbol 175 MovieClip Frame 1
stop();
Symbol 179 MovieClip Frame 1
stop();
Symbol 179 MovieClip Frame 80
_root.tutorial_task2 = true;
Symbol 180 MovieClip [idlezomb] Frame 1
hw = 10;
ho = 40;
popped = true;
onEnterFrame = function () {
if (popped == false) {
popped = true;
zomb.gotoAndStop(2);
good.play();
arrow.play();
_root.bloodpop(_x, _y - 25, 10, 1, 360, 15, 5);
_root.cranium(_x, _y - 25, 2, 270);
_root.e++;
_root.attachMovie("splatter", "splatter" + _root.e, _root.getNextHighestDepth(), {_x:_x, _y:_y - 50});
_root.make_ragdoll(_x, _y, random(100) + 50, 0, 2);
}
};
Symbol 184 MovieClip Frame 1
stop();
Symbol 184 MovieClip Frame 47
stop();
Symbol 185 MovieClip [shieldpack] Frame 1
atc = ".";
asdfgh = "asdfgh";
ofs = 33;
vy = 0;
falling = true;
b = 7;
dds = false;
onEnterFrame = function () {
this.swapDepths(_root.getNextHighestDepth());
if (dds == false) {
if (_root.guy.hitTest(_x, _y, true)) {
_root.shield = 300;
cross.play();
dds = true;
}
if (_root.isLand(_x, (_y + ofs) + vy) || ((_y + vy) > 580)) {
falling = false;
while (_root.isLand(_x, ((_y + ofs) + vy) - 2) || ((_y + vy) > 578)) {
_y = (_y-1);
}
((b > 0) ? (b--) : ((b = 0)));
vy = -b;
} else {
_y = (_y + vy);
vy = vy + 0.5;
}
}
};
Symbol 188 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 47
stop();
_parent.removeMovieClip();
Symbol 189 MovieClip [healthpack] Frame 1
atc = ".";
asdfgh = "asdfgh";
ofs = 33;
vy = 0;
falling = true;
b = 7;
dds = false;
onEnterFrame = function () {
this.swapDepths(_root.getNextHighestDepth());
if (dds == false) {
if (_root.guy.hitTest(_x, _y, true)) {
if ((_root.health + 20) >= 100) {
_root.health = 100;
} else {
_root.health = _root.health + 20;
}
cross.play();
dds = true;
}
if (_root.isLand(_x, (_y + ofs) + vy) || ((_y + vy) > 580)) {
falling = false;
while (_root.isLand(_x, ((_y + ofs) + vy) - 2) || ((_y + vy) > 578)) {
_y = (_y-1);
}
((b > 0) ? (b--) : ((b = 0)));
vy = -b;
} else {
_y = (_y + vy);
vy = vy + 0.5;
}
}
};
Symbol 204 MovieClip Frame 5
stop();
Symbol 205 Button
on (press) {
Mouse.show();
stopAllSounds();
_root.mflogo._visible = true;
_root.gamestate = "cs0";
_root.screenfade.gotoAndStop(2);
_root.unmakeMenu();
}
Symbol 207 MovieClip Frame 5
stop();
Symbol 209 Button
on (press) {
getURL ("http://www.mofunzone.com/game_scores/body_ladder/highscores.shtml", "_blank");
}
Symbol 219 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 20
stop();
Instance of Symbol 219 MovieClip in Symbol 220 MovieClip Frame 1
on (rollOver) {
gotoAndPlay (1);
}
on (rollOut) {
gotoAndPlay (21);
}
on (press) {
getURL ("http://insanicode.wordpress.com", "_blank");
}
Instance of Symbol 225 MovieClip in Symbol 226 MovieClip Frame 1
on (press) {
getURL ("http://www.octomon.net", "_blank");
}
Symbol 230 Button
on (press) {
getURL ("http://www.MoFunZone.com/", "_blank");
}
Symbol 232 MovieClip [menu] Frame 1
Mouse.hide();
stop();
Symbol 238 MovieClip Frame 1
function onEnterFrame() {
bar._xscale = _root.health;
}
Symbol 246 MovieClip Frame 1
onEnterFrame = function () {
_yscale = (_root.stackheight * 4);
_parent.tr.trt.text = Math.round(_root.stackheight) * 2;
};
Symbol 253 MovieClip Frame 1
oy = hbar._y;
gb._y = oy - 168;
cb._y = oy - 112;
ab._y = oy - 56;
bb._y = oy;
tr._y = oy - 2.8;
Symbol 258 MovieClip Frame 1
stop();
Symbol 259 MovieClip [hudclip] Frame 1
atc = ".";
Instance of Symbol 243 MovieClip in Symbol 259 MovieClip [hudclip] Frame 1
onClipEvent (enterFrame) {
var ds = ((_root.psycharge * 10) - inner._xscale);
inner._xscale = inner._xscale + (ds / 10);
}
Instance of Symbol 258 MovieClip "gcw" in Symbol 259 MovieClip [hudclip] Frame 1
onClipEvent (enterFrame) {
gotoAndStop(_root.grenades + 1);
}
Symbol 262 MovieClip [glowbit] Frame 1
angle = random(360) * _root.r;
force = random(5);
atc = ".";
xm = 0;
ym = 0;
fs = 0;
a = 0;
oldx = 0;
oldy = 0;
newx = 0;
newy = 0;
dx = 0;
dy = 0;
rx = random(60) - random(60);
k = random(50) / 100;
add_ang = (random(90) - random(90)) * _root.r;
limits = function () {
return(((_x < 10) || (_x > 560)) || (_y > 650));
};
onEnterFrame = function () {
angle = angle + ((random(90) - random(90)) * _root.r);
if (_xscale > 0) {
if (_xscale < 50) {
force--;
} else {
force++;
}
xm = force * Math.sin(angle);
ym = (force * Math.cos(angle)) + fs;
oldx = _x;
oldy = _y;
_x = (_x + xm);
_y = (_y + ym);
newx = _x;
newy = _y;
dx = newx - oldx;
dy = newy - oldy;
_rotation = (_rotation + rx);
_xscale = (_xscale - 5);
_yscale = (_yscale - 5);
_alpha = (_alpha - 1);
} else {
removeMovieClip(this);
}
};
Symbol 270 MovieClip [casing] Frame 1
force = random(10) + 6;
atc = ".";
xm = 0;
ym = 0;
fs = 0;
a = 0;
oldx = 0;
oldy = 0;
newx = 0;
newy = 0;
dx = 0;
dy = 0;
dir = 1;
rrot = random(20) - random(20);
xsf = (random(150) + 30) / 100;
ysf = (random(150) + 30) / 100;
var sinangle = Math.sin(angle);
var cosangle = Math.cos(angle);
limits = function () {
return(!(((_x < 10) || (_x > 560)) || (_y > 650)));
};
onEnterFrame = function () {
if (_y > 660) {
removeMovieClip(this);
}
t.str.gotoAndStop(1);
if (!limits()) {
dir = dir * -1;
force = force / 2;
}
if (!_root.isLand(_x, _y)) {
a++;
fs = a + 0.5;
xm = (force * sinangle) * dir;
ym = (force * cosangle) + fs;
oldx = _x;
oldy = _y;
_x = (_x + xm);
_y = (_y + ym);
newx = _x;
newy = _y;
dx = newx - oldx;
dy = newy - oldy;
t._rotation = t._rotation + ((Math.atan2(dy, dx) / _root.r) / 2);
} else {
_root.gbit.lock();
t._x = _x;
t._y = _y;
var _local3 = new flash.geom.Matrix();
var _local5 = new flash.geom.ColorTransform();
_local3.translate(100, 0);
_root.gbit.draw(this, _local3, _local5);
_root.gbit.unlock();
var _local4 = random(3) + 1;
if (_local4 == 1) {
_root.mysound("case1");
} else if (_local4 == 2) {
_root.mysound("case2");
} else {
_root.mysound("case3");
}
removeMovieClip(this);
}
};
Symbol 274 MovieClip Frame 1
stop();
Instance of Symbol 273 MovieClip in Symbol 274 MovieClip Frame 2
onClipEvent (load) {
rspeed = random(30) - random(30);
rot = 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + (rspeed * rot));
}
Symbol 276 MovieClip Frame 1
stop();
Symbol 277 MovieClip [blood] Frame 1
if (cranium == true) {
force = random(10) + 5;
}
var atc = ".";
var xm = 0;
var ym = 0;
var fs = 0;
var a = 0;
var oldx = 0;
var oldy = 0;
var newx = 0;
var newy = 0;
var dx = 0;
var dy = 0;
var dir = 1;
var xsf = ((random(150) + 30) / 100);
var ysf = ((random(150) + 30) / 100);
var sinangle = Math.sin(angle);
var cosangle = Math.cos(angle);
limits = function () {
return(((_x < 10) || (_x > 560)) || (_y > 650));
};
onEnterFrame = function () {
if (_y > 660) {
removeMovieClip(this);
}
if (cranium == true) {
t.str.gotoAndStop(2);
} else {
t.str.gotoAndStop(1);
}
if (limits()) {
removeMovieClip(this);
}
if (!_root.isLand(_x, _y)) {
a++;
fs = a + 0.5;
xm = (force * sinangle) * dir;
ym = (force * cosangle) + fs;
oldx = _x;
oldy = _y;
_x = (_x + xm);
_y = (_y + ym);
newx = _x;
newy = _y;
dx = newx - oldx;
dy = newy - oldy;
if (cranium == false) {
t.str._xscale = ((Math.sqrt((dx * dx) + (dy * dy)) * 10) + 10) * xsf;
}
_rotation = (Math.atan2(dy, dx) / _root.r);
} else {
if (cranium == true) {
t.str.gotoAndStop(2);
t.str.chunk.rot = 0;
} else {
t.gotoAndStop(2);
}
_root.gbit.lock();
t._x = _x;
t._y = _y;
var _local3 = new flash.geom.Matrix();
var _local4 = new flash.geom.ColorTransform();
_local3.translate(100, 0);
_root.gbit.draw(this, _local3, _local4);
_root.gbit.unlock();
removeMovieClip(this);
}
};
Symbol 294 MovieClip [cutscene1] Frame 217
stop();
_root.unmakecs1();
Symbol 300 Button
on (press) {
_root.gamestate = "tutorial";
removeMovieClip(this);
}
Symbol 416 MovieClip Frame 1
stop();
Symbol 416 MovieClip Frame 32
stop();
Instance of Symbol 416 MovieClip in Symbol 417 MovieClip Frame 1
on (rollOver) {
this.play();
}
on (rollOut) {
this.stop();
}
Symbol 422 MovieClip Frame 8
stop();
Symbol 424 MovieClip Frame 23
stop();
Symbol 428 MovieClip [cutscene2] Frame 435
stop();
_root.gamestate = "tutorial";
removeMovieClip(this);
Symbol 431 MovieClip Frame 16
stop();
_parent.gotoAndStop(1);
Symbol 434 MovieClip Frame 16
stop();
_parent.gotoAndStop(1);
_root.gamestate = "pre";
Symbol 444 MovieClip Frame 11
stop();
_parent.gotoAndStop(1);
Symbol 445 MovieClip [sf] Frame 1
stop();
Symbol 471 MovieClip Frame 11
_parent.gotoAndStop(2);
Symbol 481 MovieClip Frame 1
this.onEnterFrame = function () {
bytesloaded = Math.round(_root.getBytesLoaded());
bytestotal = Math.round(_root.getBytesTotal());
percent = bytesloaded / bytestotal;
barmask._xscale = percent * 100;
};
Symbol 513 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 513 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 524 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 524 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 532 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 532 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 540 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 540 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 548 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 548 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 556 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 556 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 564 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 564 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.nextFrame();
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 572 MovieClip Frame 1
if (Math.random() > 0.5) {
_xscale = (-_xscale);
_x = (_x - _parent.shiftamt);
}
Symbol 572 MovieClip Frame 90
if (_parent.isloaded) {
_parent.gotoAndStop(10);
} else {
thenextframe = Math.ceil(Math.random() * 8) + 1;
if (thenextframe == _parent._currentframe) {
_parent.gotoAndStop(2);
} else {
_parent.gotoAndStop(thenextframe);
}
}
Symbol 579 MovieClip Frame 133
_root.play();
Symbol 580 MovieClip Frame 1
stop();
_root.stop();
shiftamt = 17;
isloaded = false;
this.onEnterFrame = function () {
bytesloaded = Math.round(_root.getBytesLoaded());
bytestotal = Math.round(_root.getBytesTotal());
percent = bytesloaded / bytestotal;
if (bytesloaded == bytestotal) {
isloaded = true;
}
};
this.onRelease = function () {
getURL ("http://www.mofunzone.com/", "_blank");
};
Symbol 598 MovieClip Frame 1
Instance of Symbol 620 MovieClip in Symbol 621 MovieClip Frame 1
onClipEvent (enterFrame) {
this.cog.stop();
this.cog2.stop();
}
Instance of Symbol 620 MovieClip in Symbol 621 MovieClip Frame 200
onClipEvent (enterFrame) {
this.cog.play();
this.cog2.play();
}
Instance of Symbol 620 MovieClip in Symbol 621 MovieClip Frame 503
onClipEvent (enterFrame) {
this.cog.stop();
this.cog2.stop();
}
Instance of Symbol 620 MovieClip in Symbol 621 MovieClip Frame 747
onClipEvent (enterFrame) {
this.cog.play();
this.cog2.play();
}
Instance of Symbol 620 MovieClip in Symbol 621 MovieClip Frame 1045
onClipEvent (enterFrame) {
this.cog.stop();
this.cog2.stop();
}
Instance of Symbol 620 MovieClip in Symbol 621 MovieClip Frame 1273
onClipEvent (enterFrame) {
this.cog.play();
this.cog2.play();
}
Instance of Symbol 620 MovieClip in Symbol 621 MovieClip Frame 1520
onClipEvent (enterFrame) {
this.cog.stop();
this.cog2.stop();
}
Symbol 626 MovieClip Frame 1
stop();
Symbol 626 MovieClip Frame 1250
_parent._xscale = _parent._xscale * -1;
Symbol 627 MovieClip Frame 1
onEnterFrame = function () {
if (_root.gamestate == "main") {
bloon.play();
}
};
Symbol 647 MovieClip Frame 1
stop();
Symbol 648 MovieClip Frame 2
Instance of Symbol 658 MovieClip "c1" in Symbol 659 MovieClip Frame 1
onClipEvent (load) {
rf = 0;
rd = 0;
tr = 0;
}
onClipEvent (enterFrame) {
rf = _root.turret.barrel._rotation - rd;
_rotation = (_rotation - ((-rf) * 2.415));
rd = _root.turret.barrel._rotation;
}
Symbol 687 MovieClip Frame 6
_root.guy.xspeed = _root.guy.savedxspeed;
_root.guy.jumping = true;
_root.guy.yspeed = _root.guy.yspeed - _root.guy.jump_power;
Symbol 687 MovieClip Frame 14
stop();
this.onEnterFrame = function () {
if (((_root.guy.yspeed < 1) || (_root.guy.yspeed > -1)) || (_root.isLand(_root.guy._x, _root.guy._y + 35, true))) {
play();
}
};
Symbol 687 MovieClip Frame 16
stop();
this.onEnterFrame = function () {
if ((_root.guy.yspeed > 3.5) || (_root.isLand(_root.guy._x, _root.guy._y + 35, true))) {
play();
}
};
Symbol 687 MovieClip Frame 17
stop();
this.onEnterFrame = function () {
if ((_root.guy.yspeed > 6) || (_root.isLand(_root.guy._x, _root.guy._y + 35, true))) {
play();
}
};
Symbol 687 MovieClip Frame 18
stop();
this.onEnterFrame = function () {
if ((_root.guy.yspeed > 8) || (_root.isLand(_root.guy._x, _root.guy._y + 35, true))) {
play();
}
};
Symbol 687 MovieClip Frame 19
stop();
this.onEnterFrame = function () {
if ((_root.guy.yspeed == 0) || (_root.isLand(_root.guy._x, _root.guy._y + 35, true))) {
play();
}
};
Symbol 687 MovieClip Frame 25
_root.guy.jumping = false;
_root.guy.lockKeys = false;
_root.guy.starting_to_jump = false;
_root.tc.legs._visible = true;
_parent.gotoAndStop("idle");
Symbol 688 MovieClip Frame 9
_root.guy.hit();
Symbol 688 MovieClip Frame 11
_root.guy.swinging = false;
Symbol 688 MovieClip Frame 14
_root.guy.swinging = false;
Symbol 700 MovieClip Frame 6
_root.guy.xspeed = _root.guy.savedxspeed;
_root.guy.jumping = true;
_root.guy.yspeed = _root.guy.yspeed - _root.guy.jump_power;
Symbol 700 MovieClip Frame 14
stop();
this.onEnterFrame = function () {
if (((_root.guy.yspeed < 1) || (_root.guy.yspeed > -1)) || (_root.isLand(_root.guy._x, _root.guy._y + 35, true))) {
play();
}
};
Symbol 700 MovieClip Frame 16
stop();
this.onEnterFrame = function () {
if ((_root.guy.yspeed > 3.5) || (_root.isLand(_root.guy._x, _root.guy._y + 35, true))) {
play();
}
};
Symbol 700 MovieClip Frame 17
stop();
this.onEnterFrame = function () {
if ((_root.guy.yspeed > 6) || (_root.isLand(_root.guy._x, _root.guy._y + 35, true))) {
play();
}
};
Symbol 700 MovieClip Frame 18
stop();
this.onEnterFrame = function () {
if ((_root.guy.yspeed > 8) || (_root.isLand(_root.guy._x, _root.guy._y + 35, true))) {
play();
}
};
Symbol 700 MovieClip Frame 19
stop();
this.onEnterFrame = function () {
if ((_root.guy.yspeed == 0) || (_root.isLand(_root.guy._x, _root.guy._y + 35, true))) {
play();
}
};
Symbol 700 MovieClip Frame 25
_root.guy.jumping = false;
_root.guy.lockKeys = false;
_root.guy.starting_to_jump = false;
_root.tc.legs._visible = true;
_parent.gotoAndStop("idle");
Symbol 702 MovieClip Frame 9
_root.guy.hit();
Symbol 702 MovieClip Frame 14
_root.guy.swinging = false;
Symbol 714 MovieClip Frame 6
_root.guy.xspeed = _root.guy.savedxspeed;
_root.guy.jumping = true;
_root.guy.yspeed = _root.guy.yspeed - _root.guy.jump_power;
Symbol 714 MovieClip Frame 14
stop();
this.onEnterFrame = function () {
if (((_root.guy.yspeed < 1) || (_root.guy.yspeed > -1)) || (_root.isLand(_root.guy._x, _root.guy._y + 35, true))) {
play();
}
};
Symbol 714 MovieClip Frame 16
stop();
this.onEnterFrame = function () {
if ((_root.guy.yspeed > 3.5) || (_root.isLand(_root.guy._x, _root.guy._y + 35, true))) {
play();
}
};
Symbol 714 MovieClip Frame 17
stop();
this.onEnterFrame = function () {
if ((_root.guy.yspeed > 6) || (_root.isLand(_root.guy._x, _root.guy._y + 35, true))) {
play();
}
};
Symbol 714 MovieClip Frame 18
stop();
this.onEnterFrame = function () {
if ((_root.guy.yspeed > 8) || (_root.isLand(_root.guy._x, _root.guy._y + 35, true))) {
play();
}
};
Symbol 714 MovieClip Frame 19
stop();
this.onEnterFrame = function () {
if ((_root.guy.yspeed == 0) || (_root.isLand(_root.guy._x, _root.guy._y + 35, true))) {
play();
}
};
Symbol 714 MovieClip Frame 25
_root.guy.jumping = false;
_root.guy.lockKeys = false;
_root.guy.starting_to_jump = false;
_root.tc.legs._visible = true;
_parent.gotoAndStop("idle");
Symbol 716 MovieClip Frame 2
_root.chainsawsounds.play();
Symbol 716 MovieClip Frame 9
_root.guy.hit();
Symbol 716 MovieClip Frame 10
_root.guy.swinging = false;
Symbol 716 MovieClip Frame 14
_root.guy.swinging = false;
Symbol 723 MovieClip Frame 6
_root.guy.xspeed = _root.guy.savedxspeed;
_root.guy.jumping = true;
_root.guy.yspeed = _root.guy.yspeed - _root.guy.jump_power;
Symbol 723 MovieClip Frame 14
stop();
this.onEnterFrame = function () {
if (((_root.guy.yspeed < 1) || (_root.guy.yspeed > -1)) || (_root.isLand(_root.guy._x, _root.guy._y + 35, true))) {
play();
}
};
Symbol 723 MovieClip Frame 16
stop();
this.onEnterFrame = function () {
if ((_root.guy.yspeed > 3.5) || (_root.isLand(_root.guy._x, _root.guy._y + 35, true))) {
play();
}
};
Symbol 723 MovieClip Frame 17
stop();
this.onEnterFrame = function () {
if ((_root.guy.yspeed > 6) || (_root.isLand(_root.guy._x, _root.guy._y + 35, true))) {
play();
}
};
Symbol 723 MovieClip Frame 18
stop();
this.onEnterFrame = function () {
if ((_root.guy.yspeed > 8) || (_root.isLand(_root.guy._x, _root.guy._y + 35, true))) {
play();
}
};
Symbol 723 MovieClip Frame 19
stop();
this.onEnterFrame = function () {
if ((_root.guy.yspeed == 0) || (_root.isLand(_root.guy._x, _root.guy._y + 35, true))) {
play();
}
};
Symbol 723 MovieClip Frame 25
_root.guy.jumping = false;
_root.guy.lockKeys = false;
_root.guy.starting_to_jump = false;
_root.tc.legs._visible = true;
_parent.gotoAndStop("idle");
Symbol 726 MovieClip Frame 6
_root.guy.xspeed = _root.guy.savedxspeed;
_root.guy.jumping = true;
_root.guy.yspeed = _root.guy.yspeed - _root.guy.jump_power;
Symbol 726 MovieClip Frame 14
stop();
this.onEnterFrame = function () {
if (((_root.guy.yspeed < 1) || (_root.guy.yspeed > -1)) || (_root.isLand(_root.guy._x, _root.guy._y + 35, true))) {
play();
}
};
Symbol 726 MovieClip Frame 16
stop();
this.onEnterFrame = function () {
if ((_root.guy.yspeed > 3.5) || (_root.isLand(_root.guy._x, _root.guy._y + 35, true))) {
play();
}
};
Symbol 726 MovieClip Frame 17
stop();
this.onEnterFrame = function () {
if ((_root.guy.yspeed > 6) || (_root.isLand(_root.guy._x, _root.guy._y + 35, true))) {
play();
}
};
Symbol 726 MovieClip Frame 18
stop();
this.onEnterFrame = function () {
if ((_root.guy.yspeed > 8) || (_root.isLand(_root.guy._x, _root.guy._y + 35, true))) {
play();
}
};
Symbol 726 MovieClip Frame 19
stop();
this.onEnterFrame = function () {
if ((_root.guy.yspeed == 0) || (_root.isLand(_root.guy._x, _root.guy._y + 35, true))) {
play();
}
};
Symbol 726 MovieClip Frame 25
_root.guy.jumping = false;
_root.guy.lockKeys = false;
_root.guy.starting_to_jump = false;
_root.tc.legs._visible = true;
_parent.gotoAndStop("idle");
Symbol 728 MovieClip Frame 2
_root.guy.swinging = false;
Symbol 729 MovieClip Frame 1
_root.guy.throwing = true;
Symbol 729 MovieClip Frame 8
if (_root.guy.lookdir == "right") {
_root.grenade_launch(_root.guy._x + 22, _root.guy._y - 50, _root.guy.lookdir);
_root.grenades--;
} else {
_root.grenade_launch(_root.guy._x - 22, _root.guy._y - 50, _root.guy.lookdir);
_root.grenades--;
}
Symbol 729 MovieClip Frame 21
_root.guy.throwing = false;
Symbol 729 MovieClip Frame 22
_root.guy.throwing = false;
_parent.gotoAndStop("idle");
Symbol 730 MovieClip Frame 1
stop();
Symbol 739 MovieClip Frame 87
stop();
Symbol 740 MovieClip Frame 1
stop();
Symbol 740 MovieClip Frame 11
stop();
Symbol 741 MovieClip Frame 1
atc = ".";
Symbol 744 MovieClip Frame 1
stop();
Symbol 744 MovieClip Frame 2
_root.down(20);
Symbol 744 MovieClip Frame 3
_root.down(17);
Symbol 744 MovieClip Frame 4
_root.down(15);
Symbol 744 MovieClip Frame 5
_root.down(13);
Symbol 744 MovieClip Frame 6
_root.down(11);
Symbol 744 MovieClip Frame 7
_root.down(9);
Symbol 744 MovieClip Frame 8
_root.down(7);
Symbol 744 MovieClip Frame 9
_root.down(5);
Symbol 744 MovieClip Frame 10
_root.down(3);
Symbol 744 MovieClip Frame 11
_root.down(2);
Symbol 744 MovieClip Frame 12
_root.down(1);
Symbol 751 Button
on (press) {
_root.gotoAndStop(4);
}
Symbol 760 Button
on (press) {
if (nameinput.text != "") {
YEAR = 2008;
nowTime = new Date();
EPOCH_TIME = nowTime.getTime();
PLAYER_NAME = nameinput.text;
getURL ((((("http://www.MoFunZone.com/game_scores/body_ladder/highscore.php?" + PLAYER_NAME) + "/") + EPOCH_TIME) + "/") + YEAR, "_blank");
_parent.sb._visible = false;
}
}
Symbol 764 Button
on (press) {
_root.resetgame(false);
}
Symbol 765 MovieClip Frame 1
stop();
Symbol 765 MovieClip Frame 18
stop();
game_score = Math.round(_root.score);
ec.scrtxt.text = game_score;
ec.sb.nameinput.text = "";
ec.sb._visible = true;
Selection.setFocus(ec.sb.nameinput);
loadVariablesNum ("http://gamefilez.mofunzone.com/game_scores/body_ladder/mfz.php?" + game_score, 0);
Symbol 773 MovieClip Frame 61
stop();
Symbol 775 MovieClip Frame 96
stop();
Symbol 779 MovieClip Frame 96
stop();
Symbol 783 MovieClip Frame 96
stop();
Symbol 786 MovieClip Frame 102
stop();
Symbol 787 MovieClip Frame 1
stop();
Symbol 787 MovieClip Frame 2
stop();
Symbol 790 Button
on (press) {
if (clickable == true) {
stopAllSounds();
_root.musmanager.gotoAndStop(1);
gotoAndStop (2);
}
}
Symbol 792 Button
on (press) {
if (clickable == true) {
_root.musmanager.gotoAndStop(2);
gotoAndStop (1);
}
}
Symbol 793 MovieClip Frame 1
stop();
Symbol 796 MovieClip Frame 279
_root.stopAllSounds();
_root.musmanager.gotoAndStop(3);
Symbol 799 MovieClip Frame 1
stop();
Symbol 802 MovieClip Frame 1
stop();
Symbol 802 MovieClip Frame 2
var choice = (random(2) + 1);
if (choice == 1) {
_root.mysound("chain1");
} else if (choice == 2) {
_root.mysound("chain2");
}
Symbol 808 MovieClip Frame 1
stop();
counter = 0;
max = 3600;
onEnterFrame = function () {
if (_root.gamestate == "main") {
if (counter < max) {
counter++;
} else {
counter = 0;
gotoAndPlay (2);
}
}
};
Symbol 812 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 813 Button
on (press) {
getURL ("http://www.MoFunZone.com/", "_blank");
}